/* Docufactu - Corporate Website Styles */

:root {
    --color-primary: #5B2CAF;
    --color-primary-dark: #4a2391;
    --color-secondary: #E6D9FF;
    --color-bg: #F7F7FB;
    --color-white: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-light: #666666;
    --border-radius: 12px;
    --shadow-soft: 0 4px 20px rgba(91, 44, 175, 0.08);
    --container-width: 1200px;
    --font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.flex {
    display: flex;
    align-items: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 44, 175, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F7F7FB 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    background-color: var(--color-secondary);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

/* Cards */
.card {
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

/* Features/Benefits Grid */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Steps */
.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 50px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-secondary);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 15px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    border: 4px solid var(--color-white);
}

/* Pricing */
.pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.pricing-card.recommended {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-header {
    background-color: var(--color-secondary);
    padding: 30px;
    text-align: center;
}

.pricing-header h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text-light);
}

.pricing-body {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: '✓';
    color: var(--color-primary);
    font-weight: bold;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-secondary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    margin-top: 5px;
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid #eee;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .pricing-card.recommended {
        transform: none;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        gap: 15px;
        text-align: center;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .steps-container::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        justify-content: center;
    }
}

/* Refactored Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-white {
    color: var(--color-white);
}

.text-primary {
    color: var(--color-primary);
}

.text-light {
    color: var(--color-text-light);
}

.font-bold {
    font-weight: bold;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.w-100 {
    width: 100%;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

/* Refactored Component Classes */
.header-tagline {
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    color: #666;
}

.header-tagline a {
    color: inherit;
    text-decoration: underline;
}

.hero-trust-message {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(230, 217, 255, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.section-white {
    background-color: var(--color-white);
}

.trust-section-grid {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.trust-badge {
    background: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--color-primary);
}

.trust-badge-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.trust-badge-title {
    font-weight: bold;
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.trust-badge-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-text);
}

.trust-badge-footer {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 10px;
}

.verifactu-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.verifactu-list {
    margin-top: 20px;
}

.verifactu-list li {
    margin-bottom: 10px;
}

.verifactu-card {
    background: var(--color-secondary);
    padding: 40px;
    border-radius: 20px;
}

.cta-final {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.cta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.cta-form-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    color: var(--color-text);
}

.footer-description {
    font-size: 0.9rem;
    margin-top: 10px;
}

.contact-link {
    color: white;
    padding: 8px 20px;
}

.hero-dashboard-preview {
    text-align: center;
    color: var(--color-primary);
}

.hero-dashboard-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-dashboard-text {
    font-size: 0.9rem;
}

.testimonial-card-bg {
    background-color: var(--color-bg);
}

.testimonial-author {
    margin-top: 20px;
    font-weight: bold;
}

.step-icon-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background-color: #f0f0f0;
}

.step-icon {
    font-size: 4rem;
}

.step-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.faq-question {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.faq-item {
    margin-bottom: 20px;
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-image {
    height: 200px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 3rem;
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-excerpt {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-link {
    color: var(--color-primary);
    font-weight: bold;
}

.contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-info-item {
    margin-bottom: 30px;
}

.contact-info-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.contact-support-box {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.contact-form-container {
    background: var(--color-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.pricing-recommended-badge {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 0.9rem;
    font-weight: bold;
}

.verifactu-table-container {
    overflow-x: auto;
}

.verifactu-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.verifactu-table th,
.verifactu-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.verifactu-table th {
    background-color: var(--color-primary);
    color: white;
}

.verifactu-table tr:last-child td {
    border-bottom: none;
}

.verifactu-info-box {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #f0e6ff 100%);
    border: 2px solid var(--color-primary);
    padding: 40px;
}

/* Additional Refactored Classes */
.bg-secondary {
    background-color: var(--color-secondary);
}

.page-header {
    background-color: var(--color-secondary);
    padding: 60px 0;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.warning-box {
    background-color: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-bottom: 30px;
}

.list-disc {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 30px;
}

.list-disc li {
    margin-bottom: 10px;
}

.check-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
}

.check-list li {
    margin-bottom: 10px;
}

.cta-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-white {
    background-color: white;
}

.technical-design-box {
    background: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    margin-top: 60px;
    border-left: 4px solid var(--color-primary);
}

.technical-design-text {
    font-size: 1.05rem;
    color: var(--color-text);
}

/* Pricing & Contact Refactoring */
.pricing-header-recommended {
    background-color: var(--color-primary);
    color: white;
}

.pricing-header-recommended h3,
.pricing-header-recommended .price {
    color: white;
}

.pricing-header-recommended p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info-item {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.bg-primary {
    background-color: var(--color-primary);
}

.contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.bg-white {
    background-color: white;
}

.border-none {
    border: none;
}

.text-white {
    color: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.text-muted {
    color: var(--color-text-light);
}

.mb-4 {
    margin-bottom: 30px;
}

.text-white-opacity {
    color: rgba(255, 255, 255, 0.9);
}

.mt-3 {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 60px;
}