/*
 * Fernandia LLC Website Stylesheet
 * Version: 1.0
 * Description: Main stylesheet for Fernandia distribution partnership website
 * Author: Fernandia LLC
 * Last Updated: December 2025
 */

        /* Font Declarations */
        @font-face {
            font-family: 'Open Sans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Regular.otf');
            font-weight: 400;
            font-display: swap;
        }
        @font-face {
            font-family: 'Open Sans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/AlibabaSans-Medium.otf');
            font-weight: 600;
            font-display: swap;
        }
        @font-face {
            font-family: 'Open Sans';
            src: url('https://assets-persist.lovart.ai/agent-static-assets/Alibaba-PuHuiTi-Bold.otf');
            font-weight: 700;
            font-display: swap;
        }

        /* Base Styles */
        :root {
            --navy: #2A4D69;
            --orange: #FF6B35;
            --brown: #6F4E37;
            --cream: #F5F2EA;
            --white: #FFFFFF;
            --gray-light: #F5F5F5;
            --text-dark: #333333;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* ✅ FIXED: Responsive body width */
        body {
            max-width: 100%;
            font-family: 'Open Sans', sans-serif;
            background-color: var(--white);
            color: var(--text-dark);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        /* ✅ ADDED: Skip to content link for accessibility */
        .skip-link {
            position: absolute;
            top: -40px;
            left: 0;
            background: var(--navy);
            color: white;
            padding: 8px 16px;
            text-decoration: none;
            z-index: 10000;
            border-radius: 0 0 4px 0;
        }
        
        .skip-link:focus {
            top: 0;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            color: var(--navy);
        }

        .h1-large {
            font-size: 64px;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 24px;
        }

        .h2-title {
            font-size: 48px;
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .h3-title {
            font-size: 28px;
            font-weight: 600;
            line-height: 1.3;
            margin-bottom: 12px;
        }

        .section-label {
            color: var(--orange);
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            display: block;
            margin-bottom: 16px;
        }

        .text-body {
            font-size: 18px;
            line-height: 1.6;
            color: #555;
        }

        /* ✅ FIXED: Responsive container */
        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .section {
            padding: 100px 0;
            position: relative;
        }

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

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

        .grid-3 {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }

        /* Components */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 18px 36px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

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

        .btn-primary:hover {
            background-color: #e55a2b;
            border-color: #e55a2b;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background-color: var(--navy);
            color: white;
            border-color: var(--navy);
        }

        .btn-secondary:hover {
            background-color: #1e3a51;
            border-color: #1e3a51;
            transform: translateY(-2px);
        }

        .btn-outline {
            background-color: transparent;
            color: var(--white);
            border: 2px solid var(--white);
        }

        .btn-outline:hover {
            background-color: var(--white);
            color: var(--navy);
        }

        /* ✅ FIXED: Responsive header */
        header {
            position: fixed;
            top: 0;
            width: 100%;
            height: 90px;
            background: white;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            display: flex;
            align-items: center;
            padding: 0 100px;
            justify-content: space-between;
        }

        .logo img {
            height: 50px;
        }

        .nav-links {
            display: flex;
            gap: 40px;
            align-items: center;
        }

        .nav-links a {
            font-size: 16px;
            font-weight: 600;
            color: var(--navy);
            transition: color 0.3s;
        }

        .nav-links a:hover {
            color: var(--orange);
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 25px;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 1001;
        }

        .hamburger-line {
            width: 30px;
            height: 3px;
            background-color: var(--navy);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Hero */
        .hero-section {
            height: 100vh;
            min-height: 700px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.5;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(180deg, rgba(42, 77, 105, 0.85) 0%, rgba(42, 77, 105, 0.95) 100%);
            z-index: 1;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            padding-top: 90px;
        }

        .hero-title {
            color: white;
            font-size: 64px;
        }

        .hero-tagline {
            font-size: 28px;
            color: #f0f0f0;
            margin-bottom: 48px;
        }

        .trust-badges {
            display: flex;
            justify-content: center;
            gap: 60px;
            margin-bottom: 48px;
            flex-wrap: wrap;
        }

        .trust-badges .badge {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 16px;
            font-weight: 600;
            color: white;
        }

        .trust-badges .badge i {
            font-size: 28px;
            color: var(--orange);
        }

        .hero-ctas {
            display: flex;
            justify-content: center;
            gap: 24px;
            flex-wrap: wrap;
        }

        /* Pathways */
        .pathways-section {
            background-color: var(--gray-light);
        }

        .pathway-card {
            background: white;
            padding: 48px;
            border-radius: 16px;
            box-shadow: 0 8px 30px rgba(0,0,0,0.08);
            transition: transform 0.3s ease;
        }

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

        .pathway-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--orange), #ff8c5a);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
        }

        .pathway-icon i {
            font-size: 40px;
            color: white;
        }

        .benefit-list {
            margin: 24px 0 32px 0;
        }

        .benefit-list li {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 12px;
            font-size: 16px;
            color: #555;
        }

        .benefit-list i {
            color: var(--orange);
            font-size: 20px;
        }

        /* Process & Category Images */
        .process-img {
            width: 100%;
            height: auto;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            margin-top: 20px;
        }

        .category-img {
            width: 100%;
            height: 600px;
            object-fit: cover;
            border-radius: 16px;
        }

        /* Why Partner */
        .value-props-section {
            background: white;
        }

        .value-card {
            background: var(--gray-light);
            padding: 40px;
            border-radius: 12px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .value-card:hover {
            background: white;
            box-shadow: 0 12px 40px rgba(0,0,0,0.1);
            transform: translateY(-5px);
        }

        .value-icon {
            width: 70px;
            height: 70px;
            background: var(--navy);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
        }

        .value-icon i {
            font-size: 32px;
            color: white;
        }

        .value-card:nth-child(even) .value-icon {
            background: var(--orange);
        }

        /* FAQ */
        .faq-section {
            background: var(--gray-light);
        }

        details {
            background: white;
            padding: 24px;
            border-radius: 8px;
            margin-bottom: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            cursor: pointer;
        }

        summary {
            font-size: 18px;
            font-weight: 600;
            color: var(--navy);
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        summary::-webkit-details-marker {
            display: none;
        }

        summary::after {
            content: '+';
            font-size: 24px;
            color: var(--orange);
            font-weight: 700;
        }

        details[open] summary::after {
            content: '-';
        }

        .faq-content {
            padding: 16px 0 0 0;
            color: #555;
            line-height: 1.6;
        }

        /* Contact */
        .contact-section {
            background-color: var(--navy);
            color: white;
        }

        .contact-section h2, .contact-section p {
            color: white;
        }
        
        .contact-section .section-label {
            color: var(--orange);
        }

        .contact-form-wrapper {
            max-width: 800px;
            margin: 40px auto 0;
            background: rgba(255, 255, 255, 0.1);
            padding: 60px;
            border-radius: 16px;
            backdrop-filter: blur(10px);
        }

        /* ✅ FIXED: Proper form elements with accessibility */
        .form-group {
            margin-bottom: 24px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 14px;
            color: var(--cream);
        }

        .form-control {
            width: 100%;
            padding: 16px;
            border-radius: 8px;
            border: 1px solid rgba(255,255,255,0.2);
            background: rgba(255,255,255,0.95);
            font-family: 'Open Sans', sans-serif;
            font-size: 16px;
            color: var(--navy);
            transition: border-color 0.3s ease;
        }
        
        .form-control:focus {
            outline: none;
            border-color: var(--orange);
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
        }
        
        select.form-control {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%232A4D69' d='M12 16l-6-6h12z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
        }

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

        .submit-btn {
            width: 100%;
            background: var(--orange);
            color: white;
            border: none;
            padding: 18px;
            font-size: 18px;
            font-weight: 700;
            border-radius: 8px;
            cursor: pointer;
            margin-bottom: 32px;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: #e55a2b;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
        }

        .submit-btn:active {
            transform: translateY(0);
        }

        .secondary-actions {
            display: flex;
            justify-content: center;
            gap: 24px;
            margin-top: 24px;
        }

        /* Footer */
        footer {
            min-height: 200px;
            background-color: #1e3a51;
            color: rgba(255,255,255,0.7);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 40px 100px;
            border-top: 1px solid rgba(255,255,255,0.1);
        }

        .footer-left {
            display: flex;
            align-items: center;
            gap: 24px;
        }

        .footer-icon {
            height: 80px;
            width: auto;
            opacity: 0.9;
            transition: opacity 0.3s;
        }

        .footer-icon:hover {
            opacity: 1;
        }

        .footer-contact {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-left a {
            color: rgba(255,255,255,0.7);
            transition: color 0.3s;
        }

        .footer-left a:hover {
            color: var(--orange);
        }

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

        .footer-center h4 {
            color: white;
            font-size: 18px;
            margin-bottom: 16px;
            font-weight: 600;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

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

        .footer-links a {
            color: rgba(255,255,255,0.7);
            transition: color 0.3s;
            font-size: 15px;
        }

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

        .footer-right {
            text-align: right;
            font-size: 14px;
            color: rgba(255,255,255,0.5);
        }

        /* ✅ ADDED: Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--orange);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: none;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            z-index: 999;
        }

        .back-to-top:hover {
            background: #e55a2b;
            transform: translateY(-3px);
        }

        .back-to-top.visible {
            display: flex;
        }

        /* ✅ ADDED: Responsive Design - Media Queries */
        @media (max-width: 1400px) {
            .container {
                max-width: 1200px;
            }
            
            header {
                padding: 0 60px;
            }
            
            footer {
                padding: 40px 60px;
            }
        }

        @media (max-width: 1200px) {
            .container {
                max-width: 960px;
            }
            
            .h1-large {
                font-size: 52px;
            }
            
            .h2-title {
                font-size: 40px;
            }
        }

        @media (max-width: 992px) {
            .container {
                max-width: 720px;
            }
            
            header {
                padding: 0 30px;
            }
            
            .nav-links {
                gap: 24px;
            }
            
            .grid-2, .grid-3 {
                grid-template-columns: 1fr;
                gap: 24px;
            }
            
            .h1-large {
                font-size: 42px;
            }
            
            .hero-tagline {
                font-size: 22px;
            }
            
            .trust-badges {
                gap: 30px;
            }
            
            .section {
                padding: 60px 0;
            }
            
            footer {
                flex-direction: column;
                gap: 30px;
                padding: 40px 30px;
                text-align: center;
            }
            
            .footer-left {
                flex-direction: column;
                text-align: center;
            }

            .footer-icon {
                height: 60px;
            }
            
            .footer-center {
                text-align: center;
            }

            .footer-right {
                text-align: center;
            }
        }

        @media (max-width: 768px) {
            .container {
                max-width: 540px;
                padding: 0 16px;
            }
            
            header {
                height: 70px;
                padding: 0 20px;
            }
            
            .logo img {
                height: 40px;
            }
            
            /* Mobile Menu Toggle - Show on mobile */
            .mobile-menu-toggle {
                display: flex;
            }
            
            /* Mobile Navigation */
            .nav-links {
                display: none;
                position: fixed;
                top: 70px;
                left: 0;
                right: 0;
                background: white;
                flex-direction: column;
                padding: 20px;
                box-shadow: 0 4px 20px rgba(0,0,0,0.1);
                z-index: 999;
                gap: 0;
            }

            .nav-links.active {
                display: flex;
            }

            .nav-links a {
                padding: 15px 20px;
                border-bottom: 1px solid #f0f0f0;
                font-size: 18px;
            }

            .nav-links a:last-child {
                border-bottom: none;
            }
            
            /* Mobile menu would go here */
            
            .h1-large {
                font-size: 36px;
            }
            
            .h2-title {
                font-size: 32px;
            }
            
            .h3-title {
                font-size: 24px;
            }
            
            .hero-section {
                min-height: 600px;
            }
            
            .hero-content {
                padding-top: 70px;
            }
            
            .hero-tagline {
                font-size: 18px;
                margin-bottom: 32px;
            }
            
            .trust-badges {
                flex-direction: column;
                gap: 16px;
            }
            
            .hero-ctas {
                flex-direction: column;
                align-items: center;
            }
            
            .hero-ctas .btn {
                width: 100%;
                max-width: 300px;
            }
            
            .pathway-card, .value-card, .trust-card {
                padding: 32px 24px;
            }
            
            .contact-form-wrapper {
                padding: 40px 24px;
            }
            
            .section {
                padding: 40px 0;
            }
            
            .text-body {
                font-size: 16px;
            }
            
            .process-img {
                border-radius: 12px;
                margin-top: 20px;
            }
            
            .category-img {
                height: 400px;
                border-radius: 12px;
            }
            
            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 45px;
                height: 45px;
            }
        }

        @media (max-width: 480px) {
            .h1-large {
                font-size: 28px;
            }
            
            .h2-title {
                font-size: 26px;
            }
            
            .btn {
                padding: 14px 24px;
                font-size: 14px;
            }
            
            .process-img {
                border-radius: 8px;
            }
            
            .category-img {
                height: 300px;
                border-radius: 8px;
            }
            
            .contact-form-wrapper {
                padding: 24px 16px;
            }
        }
