/* Global reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #1a1a1a;
    overflow-x: hidden;
    font-size: clamp(14px, 1.5vw, 16px); /* Better readability on all screens */
}

/* Header styles */
.header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 3vw, 3rem);
            min-height: 70px;
        }

        .logo-container {
            height: clamp(55px, 10vw, 130px);
            width: clamp(180px, 35vw, 400px);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .logo-image {
            max-height: 100%;
            max-width: 100%;
            height: auto;
            width: auto;
            object-fit: contain;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: clamp(0.8rem, 2.5vw, 2.5rem);
            align-items: center;
            flex-wrap: wrap;
        }

        .nav-menu a {
            text-decoration: none;
            color: #1a1a1a;
            font-weight: 600;
            font-size: clamp(1rem, 1.8vw, 1.5rem);
            position: relative;
            transition: color 0.3s ease;
            padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 1rem);
            border-radius: 8px;
            white-space: nowrap;
        }

        .nav-menu a:hover,
        .nav-menu a:focus {
            color: #0f3159;
            background: rgba(15, 49, 89, 0.1);
            outline: 3px solid #0f3159;
        }

        .nav-menu a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 3px;
            bottom: -8px;
            left: 50%; /* Center the underline */
            transform: translateX(-50%); /* Center fix */
            background: #D2691E;
            transition: width 0.3s ease;
        }

        .nav-menu a:hover::after,
        .nav-menu a:focus::after {
            width: 100%;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            font-size: clamp(1.5rem, 3vw, 1.8rem);
            cursor: pointer;
            color: #0f3159;
            padding: 0.5rem;
        }

/* Hero section styles */
.hero {
            background: linear-gradient(135deg, #0f3159 0%, #1a5490 50%, #2563eb 100%);
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            overflow: hidden;
            padding-top: clamp(70px, 10vh, 120px);
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23a)"/><circle cx="800" cy="600" r="400" fill="url(%23a)"/><circle cx="400" cy="800" r="200" fill="url(%23a)"/></svg>') no-repeat center center;
            background-size: cover;
        }

        .hero > h1 {
        position: absolute;
        top: clamp(80px, 10vh, 130px);   
        left: 50%;
        transform: translateX(-50%);

        width: 100%;
        max-width: 1100px;
        padding: 0 1rem;

        text-align: center;
        color: white;

        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 700;
        line-height: 1.2;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);

        z-index: 3;
    }

        .hero-content {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            padding: 0 clamp(1rem, 3vw, 3rem);
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
            gap: clamp(2rem, 5vw, 4rem);
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-text {
            color: white;
        }


        .hero-text .subtitle {
            font-size: clamp(1rem, 2.5vw, 1.3rem);
            margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
            opacity: 1;
            font-weight: 500;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .hero-text p {
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            margin-bottom: clamp(2rem, 4vw, 3rem);
            opacity: 1;
            line-height: 1.8;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
        }

        .hero-buttons {
            display: flex;
            gap: clamp(1rem, 2vw, 1.5rem);
            flex-wrap: wrap;
            justify-content: flex-start;
        }

        .btn-primary {
            background: #D2691E;
            color: white;
            padding: clamp(1rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
            border: 3px solid #D2691E;
            border-radius: 12px;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(210, 105, 30, 0.4);
            min-height: 50px;
            min-width: 150px;
        }

        .btn-primary:hover,
        .btn-primary:focus {
            background: #B8860B;
            border-color: #B8860B;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(210, 105, 30, 0.5);
            outline: 4px solid #0f3159;
        }

        .btn-secondary {
            background: white;
            color: #0f3159;
            padding: clamp(1rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
            border: 3px solid white;
            border-radius: 12px;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
            min-width: 150px;
        }

        .btn-secondary:hover,
        .btn-secondary:focus {
            background: #f8f9fa;
            color: #0f3159;
            transform: translateY(-3px);
            outline: 4px solid #2E8B57;
            box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
        }

        .hero-visual {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .hero-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px); /* Safari support */
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            padding: clamp(2rem, 4vw, 3rem);
            text-align: center;
            color: white;
            transform: rotate(-5deg);
            transition: transform 0.3s ease;
            max-width: 400px;
            width: 100%;
        }

        .hero-card:hover {
            transform: rotate(0deg);
        }

        .hero-card .icon {
            font-size: clamp(2.5rem, 6vw, 4rem);
            margin-bottom: 1rem;
        }

        .hero-card h3 {
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
            margin-bottom: 1rem;
        }

/* Carousel section styles */
.carousel-section {
            padding: clamp(2rem, 5vw, 3rem) 0; /* Reduced top/bottom spacing */
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
            overflow: hidden;
        }

        .carousel-container {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            padding: 0 clamp(1rem, 3vw, 3rem);
        }

        .carousel-header {
            text-align: center;
            margin-bottom: clamp(3rem, 6vw, 4rem);
        }

        .carousel-header h2 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: #0f3159;
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
        }

        .carousel-header p {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            color: #4a5568;
            max-width: min(700px, 95vw);
            margin: 0 auto;
        }

        .carousel-wrapper {
            position: relative;
            overflow: hidden;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            height: 450px; 
            max-height: 60vh; 
            background: #f8fafc; 
            }

        .carousel {
            display: flex;
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            will-change: transform;
            height: 100%;
        }

        .carousel-slide {
            flex: 0 0 100%;
            min-width: 100%;
            height: 80vh;
            max-height: 700px;
            min-height: 400px; 
            position: relative;
            display: flex;
            align-items: center;
            justify-content: flex-start; /* Text aligned to left */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            }
        
        .carousel-slide::before {
            content: "";
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,0.35);
            z-index: 1;
            }

        .slide-content {
            position: relative;
            z-index: 2;
            color: white;
            text-align: left;
            max-width: 45%;
            margin-left: 5%;
            text-shadow: 0 2px 10px rgba(0,0,0,0.6);
            }

        .slide-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(210, 105, 30, 0.9);
            border-radius: 50px;
            padding: 0.5rem 1rem;
            margin-bottom: 1rem;
            font-size: 0.9rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-icon {
            font-size: 1.2rem;
        }

        .slide-content h3 {
            font-size: clamp(1.5rem, 4vw, 2.5rem);
            font-weight: 800;
            margin-bottom: 0.8rem;
            line-height: 1.2;
            margin-bottom: 1rem;
            }

        .slide-content p {
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            line-height: 1.6;
            margin-top: 1rem;
            max-width: 600px;
            }

        .slide-content h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #D2691E, #0f3159);
            border-radius: 2px;
        }

        .slide-features {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 1rem;
        }

        .feature-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: rgba(15, 49, 89, 0.05);
            border: 1px solid rgba(15, 49, 89, 0.1);
            border-radius: 25px;
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            font-weight: 500;
            color: #0f3159;
            transition: all 0.3s ease;
        }

        .feature-item:hover {
            background: rgba(210, 105, 30, 0.1);
            border-color: rgba(210, 105, 30, 0.3);
            transform: translateY(-2px);
        }

        .feature-icon {
            color: #D2691E;
            font-weight: bold;
            font-size: 1rem;
        }

        /* Navigation */
        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0f3159;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 3;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .carousel-nav:hover {
            background: rgba(210, 105, 30, 0.9);
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-prev {
            left: 20px;
        }

        .carousel-next {
            right: 20px;
        }

        .carousel-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: clamp(2rem, 4vw, 3rem);
        }

        .carousel-dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #cbd5e0;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0.5;
            border: 2px solid transparent;
        }

        .carousel-dot.active {
            background: #D2691E;
            opacity: 1;
            border-color: #0f3159;
            transform: scale(1.2);
        }

        .carousel-dot:hover {
            opacity: 0.8;
            transform: scale(1.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .carousel-wrapper {
                height: auto;
                min-height: 300px;
            }

            .carousel-slide {
                flex-direction: column;
                text-align: center;
                padding: clamp(1.5rem, 4vw, 2rem);
                gap: clamp(1.5rem, 4vw, 2rem);
            }

            .slide-image-container,
            .slide-content {
                max-width: 100%;
                flex: none;
            }

            .slide-image {
                max-height: 250px;
                
            }
            
            .slide-features {
                flex-direction: column;
                gap: 0.5rem;
                align-items: center;
            }
            
            .feature-item {
                width: fit-content;
            }
            
            .carousel-nav {
                width: 40px;
                height: 40px;
            }
            
            .carousel-prev {
                left: 10px;
            }
            
            .carousel-next {
                right: 10px;
            }
        }

/* About section styles */
.about-section-home {
            padding: clamp(4rem, 8vw, 6rem) 0;
            background: #f7fafc;
        }

        .about-page-container {
            max-width: min(1200px, 95vw);
            margin: 0 auto;
            padding: 0 clamp(1rem, 3vw, 2rem);
        }

        .about-header {
            text-align: center;
            margin-bottom: clamp(2rem, 5vw, 4rem);
        }

        .about-header h2 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: #0f3159;
            text-align: center;
            margin-top: clamp(50px, 10vh, 100px);
            font-weight: 700;
        }

        .about-header p {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            color: #4a5568;
            opacity: 0.8;
        }

        .about-content-home {
            max-width: min(1000px, 95vw);
            margin: 0 auto;
        }

        .about-text {
            text-align: center;
        }

        .about-text > p {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            line-height: 1.7;
            color: #4a5568;
            margin-bottom: clamp(2rem, 4vw, 3rem);
        }

        .values-preview {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: clamp(1rem, 3vw, 2rem);
            margin-bottom: clamp(2rem, 4vw, 3rem);
        }

        .value-preview {
            background: white;
            padding: clamp(1.5rem, 3vw, 2rem);
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .value-preview:hover {
            transform: translateY(-5px);
        }

        .value-preview .value-icon {
            font-size: clamp(2rem, 4vw, 2.5rem);
            margin-bottom: 1rem;
            display: block;
        }

        .value-preview h4 {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 0.5rem;
        }

        .value-preview p {
            color: #4a5568;
            line-height: 1.6;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
        }

        .about-page {
            min-height: 100vh;
            padding-top: clamp(70px, 10vh, 80px);
        }

        .about-intro {
            max-width: min(800px, 95vw);
            margin: 0 auto;
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            line-height: 1.6;
            opacity: 0.9;
        }

        .about-content {
            margin-top: clamp(2rem, 5vw, 4rem);
        }

        .about-section {
            margin-bottom: clamp(2rem, 5vw, 4rem);
        }

        .about-section h2 {
            color: #2d3748;
            font-size: clamp(1.5rem, 3.5vw, 2rem);
            font-weight: 600;
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            text-align: center;
        }

        .about-section p {
            color: #4a5568;
            line-height: 1.7;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            text-align: center;
            max-width: min(800px, 95vw);
            margin: 0 auto;
        }

        /* Values Grid */
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
            gap: clamp(1rem, 3vw, 2rem);
            margin-top: clamp(1rem, 3vw, 2rem);
        }

        .value-item {
            text-align: center;
            padding: clamp(1.5rem, 3vw, 2rem);
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .value-icon {
            font-size: clamp(2.5rem, 5vw, 3rem);
            margin-bottom: 1rem;
            display: block;
        }

        .value-item h3 {
            color: #2d3748;
            font-size: clamp(1.1rem, 2.3vw, 1.3rem);
            font-weight: 600;
            margin-bottom: 1rem;
        }

        .value-item p {
            color: #4a5568;
            line-height: 1.6;
            text-align: center;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
        }

/* Services section styles */
.services-section {
            padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        }

        .services-container {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
        }

        .services-header {
            text-align: center;
            margin-bottom: clamp(3rem, 6vw, 5rem);
        }

        .services-header h2 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            color: #0f3159;
            margin-bottom: clamp(1rem, 3vw, 2rem);
            font-weight: 700;
            line-height: 1.3;
        }

        .services-header p {
            font-size: clamp(1rem, 2.5vw, 1.4rem);
            color: #1a1a1a;
            max-width: min(700px, 95vw);
            margin: 0 auto;
            line-height: 1.8;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: clamp(1.5rem, 3vw, 2.5rem);
        }

        .service-card {
            background: white;
            padding: clamp(2rem, 4vw, 3.5rem);
            border-radius: 15px;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            border: 3px solid #e2e8f0;
            display: flex;
            flex-direction: column;
            text-align: left;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: linear-gradient(90deg, #D2691E, #B8860B);
        }

        .service-card:hover,
        .service-card:focus-within {
            transform: translateY(-8px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
            border-color: #D2691E;
        }

        .service-icon {
            font-size: clamp(3rem, 6vw, 4.5rem);
            margin-bottom: clamp(1rem, 3vw, 2rem);
            display: block;
            text-align: center;
        }

        .service-card h3 {
            color: #0f3159;
            font-size: clamp(1.3rem, 2.8vw, 1.8rem);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
            line-height: 1.3;
            text-align: center;
            min-height: clamp(2.6rem, 5.6vw, 3.6rem);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .service-card p {
            color: #1a1a1a;
            line-height: 1.8;
            font-size: clamp(0.9rem, 2vw, 1.2rem);
            margin: 0;
            text-align: center;
        }

/* Call-to-action section styles */
.cta-section {
            padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
            background: linear-gradient(135deg, #0f3159 0%, #1a5490 100%);
            position: relative;
            overflow: hidden;
        }

        .cta-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
        }

        .cta-container {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .cta-header {
            text-align: center;
            color: white;
            margin-bottom: clamp(2rem, 5vw, 4rem);
        }

        .cta-header h2 {
            font-size: clamp(2rem, 5vw, 3rem);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
        }

        .cta-header p {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            opacity: 0.9;
        }

        .cta-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
            gap: clamp(2rem, 4vw, 3rem);
        }

        .cta-card {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: clamp(2rem, 4vw, 3rem);
            border-radius: 25px;
            text-align: center;
            color: white;
            transition: transform 0.3s ease;
        }

        .cta-card:hover {
            transform: translateY(-5px);
        }

        .cta-card h3 {
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 600;
        }

        .cta-card p {
            margin-bottom: clamp(1.5rem, 3vw, 2rem);
            opacity: 0.9;
            line-height: 1.6;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
        }

/* Contact form styles */
.contact-section {
            padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem);
            background: white;
            padding-top: clamp(100px, 12vh, 140px);
        }
        .contact-container {
            max-width: min(1000px, 95vw);
            margin: 0 auto;
            padding-top: 0;
        }
        .contact-header {
            text-align: center;
            margin-bottom: clamp(2rem, 5vw, 4rem);
        }
        .contact-header h2 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: #0f3159;
            margin-top: clamp(50px, 10vh, 100px);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
        }
        .contact-form {
            background: #f8fafc;
            padding: clamp(2rem, 5vw, 4rem);
            border-radius: 25px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
        }
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .form-group {
            margin-bottom: 1.5rem;
        }

        /* Remove extra margin from form-groups inside form-grid */
        .form-grid .form-group {
            margin-bottom: 0;
        }
        .form-group label {
            display: block;
            margin-bottom: 0.75rem;
            color: #0f3159;
            font-weight: 700;
            font-size: clamp(1.1rem, 2.5vw, 1.4rem);
            line-height: 1.5;
        }
        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: clamp(1rem, 2vw, 1.5rem);
            border: 3px solid #cbd5e0;
            border-radius: 10px;
            font-size: clamp(1rem, 2.2vw, 1.3rem);
            transition: all 0.3s ease;
            background: white;
            min-height: 60px;
        }
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: 4px solid #D2691E;
            box-shadow: 0 0 0 2px rgba(210, 105, 30, 0.2);
            background: #fefefe;
        }
        .form-group textarea {
            height: clamp(120px, 20vh, 150px);
            resize: vertical;
        }
        .privacy-notice {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            margin: clamp(1rem, 3vw, 2rem) 0;
            font-size: clamp(0.85rem, 1.8vw, 0.95rem);
            color: #64748b;
        }
        .privacy-notice input[type="checkbox"] {
            width: auto;
            margin: 0;
            min-width: 20px;
            min-height: 20px;
        }
        .submit-btn {
            background: #D2691E;
            color: white;
            padding: clamp(1.2rem, 2.5vw, 1.5rem) clamp(2rem, 4vw, 3rem);
            border: 3px solid #D2691E;
            border-radius: 12px;
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
            min-height: 60px;
        }
        .submit-btn:hover,
        .submit-btn:focus {
            background: #B8860B;
            border-color: #B8860B;
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(210, 105, 30, 0.5);
            outline: 4px solid #0f3159;
        }
        .form-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-top: clamp(1.5rem, 3vw, 2rem);
        }

        .btn {
            padding: clamp(0.8rem, 1.5vw, 1rem) clamp(1.5rem, 3vw, 2rem);
            border: none;
            border-radius: 8px;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
        }
        .btn-primary {
            background: #D2691E;
            color: white;
        }

        .btn-primary:hover {
            background: #B8591A;
            transform: translateY(-2px);
        }

        .highlight-box {
            background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
            border: 2px solid #D2691E;
            border-radius: 12px;
            padding: clamp(1.5rem, 3vw, 2rem);
            margin: clamp(1.5rem, 3vw, 2rem) 0;
        }
        .highlight-box p {
            color: #0f3159;
            font-weight: 600;
            margin: 0;
        }

/* Footer styles */
.footer {
            background: #0f3159;
            color: white;
            padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 2rem);
        }

        .footer-container {
            max-width: min(1400px, 95vw);
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
            gap: clamp(2rem, 4vw, 3rem);
        }

        .footer-section h3 {
            color: #F57C00;
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-size: clamp(1.1rem, 2.3vw, 1.3rem);
            font-weight: 600;
        }

        .footer-section a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            display: block;
            margin-bottom: 0.8rem;
            transition: color 0.3s ease;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
        }

        .footer-section a:hover {
            color: #F57C00;
        }

        .footer-section p {
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 0.8rem;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
        }

        .social-icons {
            display: flex;
            gap: 1rem;
            margin-top: clamp(1rem, 2vw, 1.5rem);
            flex-wrap: wrap;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: clamp(40px, 8vw, 50px);
            height: clamp(40px, 8vw, 50px);
            background: rgba(245, 124, 0, 0.2);
            border-radius: 50%;
            transition: all 0.3s ease;
            font-size: clamp(1.2rem, 2.5vw, 1.5rem);
        }

        .social-icons a:hover {
            background: #F57C00;
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            margin-top: clamp(2rem, 4vw, 3rem);
            padding-top: clamp(1rem, 3vw, 2rem);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: clamp(0.8rem, 1.6vw, 0.9rem);
        }

/* Services page styles */
.services-page {
            padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem) clamp(2rem, 5vw, 4rem);
            background: white;
            min-height: 100vh;
            padding-top: clamp(100px, 12vh, 140px);
        }

        .services-page-container {
            max-width: min(1200px, 95vw);
            margin: 0 auto;
        }

        .services-page h1 {
            font-size: clamp(2rem, 5vw, 3rem);
            color: #0f3159;
            text-align: center;
            margin-top: clamp(50px, 10vh, 100px);
            margin-bottom: clamp(1rem, 3vw, 2rem);
            font-weight: 700;
        }

        .services-intro {
            text-align: center;
            font-size: clamp(1rem, 2.3vw, 1.3rem);
            color: #64748b;
            max-width: min(800px, 95vw);
            margin: 0 auto clamp(2rem, 5vw, 4rem);
            line-height: 1.7;
        }

        .service-detail {
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
            margin-bottom: clamp(2rem, 4vw, 3rem);
            padding: clamp(2rem, 4vw, 3rem);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            border-left: 5px solid #F57C00;
            transition: transform 0.3s ease;
        }

        .service-detail:hover {
            transform: translateX(10px);
        }

        .service-detail h3 {
            color: #0f3159;
            font-size: clamp(1.3rem, 2.8vw, 1.6rem);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 600;
        }

        .service-detail p {
            color: #64748b;
            line-height: 1.7;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
        }

/* Page navigation styles */
.page {
            display: none;
            padding-top: clamp(100px, 12vh, 140px);
        }

        .page.active {
            display: block;
        }


/* Unified input and textarea styling */
input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    padding: 10px;
    border: 1px solid #ccd6dd;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
}

/* Unified placeholder styling */
input::placeholder,
textarea::placeholder,
select::placeholder {
    font-family: inherit;
    font-size: 1.3rem;
    color: #999;
}

/* Legal pages styling */
.legal-page {
            padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 3vw, 3rem) clamp(2rem, 5vw, 4rem);
            background: white;
            min-height: 100vh;
            padding-top: clamp(100px, 12vh, 140px);
        }

        .legal-container {
            max-width: min(1000px, 95vw);
            margin: 0 auto;
            line-height: 1.7;
        }

        .legal-header {
            text-align: center;
            margin-bottom: clamp(3rem, 6vw, 4rem);
            padding-bottom: clamp(2rem, 4vw, 3rem);
            border-bottom: 3px solid #e2e8f0;
        }

        .legal-header h1 {
            font-size: clamp(2rem, 5vw, 2.8rem);
            color: #0f3159;
            margin-top: clamp(50px, 10vh, 100px);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
        }

        .legal-subtitle {
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            color: #64748b;
            margin-bottom: clamp(1.5rem, 3vw, 2rem);
            font-weight: 500;
        }

        .company-info {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            padding: clamp(1.5rem, 3vw, 2rem);
            border-radius: 12px;
            border-left: 4px solid #D2691E;
            margin-top: clamp(1.5rem, 3vw, 2rem);
        }

        .company-info p {
            color: #0f3159;
            font-size: clamp(0.9rem, 1.8vw, 1rem);
            margin: 0;
            font-weight: 500;
        }

        .legal-content {
            margin-bottom: clamp(3rem, 6vw, 4rem);
        }

        .legal-section {
            margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
            padding: clamp(2rem, 4vw, 2.5rem);
            background: #fafbfc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .legal-section:hover {
            border-color: #D2691E;
            box-shadow: 0 4px 15px rgba(210, 105, 30, 0.1);
        }

        .legal-section h2 {
            color: #0f3159;
            font-size: clamp(1.3rem, 2.8vw, 1.6rem);
            margin-bottom: clamp(1rem, 2vw, 1.5rem);
            font-weight: 700;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #D2691E;
            display: inline-block;
        }

        .legal-section p {
            color: #2d3748;
            font-size: clamp(0.9rem, 1.9vw, 1.05rem);
            line-height: 1.8;
            margin: 0;
            text-align: justify;
        }

        .legal-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .legal-list li {
            color: #2d3748;
            font-size: clamp(0.9rem, 1.9vw, 1.05rem);
            line-height: 1.8;
            margin-bottom: clamp(1rem, 2vw, 1.2rem);
            padding-left: clamp(1.5rem, 3vw, 2rem);
            position: relative;
            text-align: justify;
        }

        .legal-list li:before {
            content: "•";
            color: #D2691E;
            font-weight: bold;
            font-size: 1.2em;
            position: absolute;
            left: 0;
            top: 0;
        }

        .legal-list li:last-child {
            margin-bottom: 0;
        }

        .legal-section a {
            color: #D2691E;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .legal-section a:hover,
        .legal-section a:focus {
            color: #D2691E;
            text-decoration: underline;
        }

        .btn-secondary-legal{
            background: rgba(128, 128, 123, 0.126);
            color: #0f3159;
            padding: clamp(1rem, 2vw, 1.2rem) clamp(1.5rem, 3vw, 2.5rem);
            border: 3px solid white;
            border-radius: 12px;
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 50px;
            min-width: 150px;
        }

/* Enhanced responsive design */
        @media (max-width: 1200px) {
            .nav-container {
                padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 2.5vw, 2rem);
            }
            
            .hero-content {
                padding: 0 clamp(1rem, 2.5vw, 2rem);
            }
        }

/* Tablet (non-iPad) specific styles */
        @media (min-width: 768px) and (max-width: 1023px) and (not (min-device-width: 768px)) {
            .services-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 767px) {
            .nav-menu {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
                background: none;
                border: none;
                cursor: pointer;
                padding: 0.5rem;
                color: #0f3159;
                font-size: 1.8rem;
            }

            .nav-menu.active {
                display: flex;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                flex-direction: column;
                padding: 1rem;
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
                z-index: 1000;
            }
                        .hero > h1 {
                position:absolute;
                top: 2px;
                font-size: clamp(1.5rem, 4vw, 2.2rem);
                padding: 10px;
                text-align: center;
                text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);    
            }
            .hero-content {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }

            .hero-buttons {
                justify-content: center;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .nav-container {
                padding: 0.8rem 1rem;
            }

            .logo-container {
                height: 55px;
                width: 180px;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn-primary,
            .btn-secondary {
                width: 100%;
                max-width: 300px;
            }

            .carousel-slide {
                height: auto;
                min-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .hero-card {
                padding: 1.5rem;
            }

            .service-card {
                padding: 1.5rem;
            }

            .contact-form {
                padding: 1.5rem;
            }

            .logo-container {
                height: 50px;
                width: 180px;
            }
        }

/* Print media optimization */
        @media print {
            .hero,
            .carousel-section,
            .footer {
                display: none;
            }
        }

/* Widerruf (withdrawal) form styles */
        .widerruf-form {
            max-width: min(1000px, 95vw);
            margin: 0 auto;
            background: #f8fafc;
            padding: clamp(2rem, 4vw, 3rem);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .widerruf-form .form-group {
            margin-bottom: clamp(1.5rem, 3vw, 2rem);
        }

        .widerruf-form input[type="date"],
        .widerruf-form input[type="text"],
        .widerruf-form input[type="email"] {
            width: 100%;
            padding: clamp(1rem, 2vw, 1.5rem);
            border: 3px solid #cbd5e0;
            border-radius: 10px;
            font-size: clamp(1rem, 2.2vw, 1.3rem);
            min-height: 60px;
            background: white;
        }

        .widerruf-form label {
            display: block;
            margin-bottom: 0.8rem;
            color: #0f3159;
            font-weight: 600;
            font-size: clamp(1rem, 2.2vw, 1.2rem);
        }

        .widerruf-form .btn-submit {
            width: 100%;
            background: #D2691E;
            color: white;
            padding: clamp(1rem, 2vw, 1.2rem);
            border: none;
            border-radius: 10px;
            font-size: clamp(1rem, 2.2vw, 1.2rem);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 1rem;
        }

        .widerruf-form .btn-submit:hover {
            background: #B8860B;
            transform: translateY(-2px);
        }

        @media (max-width: 768px) {
            .widerruf-form {
                padding: 1.5rem;
            }
            
            .widerruf-form input[type="date"],
            .widerruf-form input[type="text"],
            .widerruf-form input[type="email"] {
                font-size: 16px; /* Prevents zoom on iOS */
            }
        }

        /* Enhanced select dropdown styling */
.form-group select {
    width: 100%;
    padding: 1rem 2.5rem 1rem 1rem;
    border: 3px solid #cbd5e0;
    border-radius: 10px;
    font-size: 16px;
    min-height: 60px;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}


/* iPad specific fixes */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .form-group select {
        font-size: 16px !important;
        padding: 0.8rem 2.5rem 0.8rem 1rem !important;
        background-size: 1.2em !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-color: white !important;
    }

    /* Better touch target on iPad */
    .form-group select:focus {
        outline: none;
        border-color: #D2691E;
        box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
    }

    /* Fix navigation on iPad */
    .nav-menu {
        display: flex !important;
        gap: clamp(0.6rem, 2vw, 1.5rem);
    }

    .mobile-menu-btn {
        display: none !important;
    }

    /* Fix carousel on iPad */
    .carousel-wrapper {
        height: 450px !important;
    }

    .carousel-slide {
        height: 450px !important;
    }

    /* Fix hero section on iPad */
    .hero-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem;
        align-items: center;
    }
}

/* Footer phone fix */
.footer-section p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

/* Logo size adjustments */
@media (max-width: 767px) {
    .logo-container {
        height: 60px;
        width: 200px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        height: 65px;
        width: 220px;
    }
}

/* Widerruf form date input fix */
.widerruf-form input[type="date"] {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 3px solid #cbd5e0;
    border-radius: 10px;
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    min-height: 60px;
    background: white;
}

/* iPad specific fixes for date inputs and forms */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait),
only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .widerruf-form input[type="date"] {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        font-size: 16px !important;
        padding: 0.8rem 1rem !important;
        display: block !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: white !important;
    }

    .widerruf-form input[type="text"],
    .widerruf-form input[type="email"] {
        font-size: 16px !important;
        padding: 0.8rem 1rem !important;
    }

    .form-container {
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .form-group {
        width: 100% !important;
    }

    /* Services grid fix for iPad */
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: clamp(1.5rem, 2.5vw, 2rem);
    }

    /* Form inputs general fix */
    .form-group input,
    .form-group textarea {
        font-size: 16px !important;
        padding: 1rem !important;
        min-height: 60px !important;
    }
}


/* Mobile specific fixes */
@media (max-width: 767px) {
    .form-group input[type="date"] {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        padding: 0.8rem;
        box-sizing: border-box;
        border: 2px solid #e0e0e0;
        border-radius: 10px;
        -webkit-appearance: none;
        appearance: none;
    }

    /* iOS Safari specific fixes */
    .widerruf-form .form-group input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0.8rem !important;
        font-size: 16px !important;
        border: 2px solid #e0e0e0 !important;
        border-radius: 10px !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        background-color: white !important;
        overflow: hidden !important;
    }

    /* iOS container fixes */
    .widerruf-form .form-group {
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .form-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
}

    .form-container {
        width: 100%;
        padding: 0 1rem;
    }
    
    .legal-container {
        padding: 0;
    }


/* Comprehensive iPad fixes - highest priority */
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 1) {

    /* Navigation fixes for iPad */
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    /* Grid layout fixes */
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Form input fixes */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px !important;
        appearance: none !important;
        border-radius: 10px !important;
    }

    /* Carousel fixes */
    .carousel-wrapper {
        height: 450px !important;
    }
}

/* Navigation menu fixes for specific screen resolutions */
@media screen and (min-width: 754px) and (max-width: 1024px) {
    .nav-menu {
        gap: clamp(0.4rem, 1.5vw, 1rem);
    }

    .nav-menu a {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        padding: clamp(0.2rem, 0.8vw, 0.4rem) clamp(0.4rem, 1.2vw, 0.8rem);
    }
}
    

    .carousel-slide {
        height: 450px !important;
    }

    /* Date input specific fixes */
    input[type="date"] {
        -webkit-appearance: none !important;
        appearance: none !important;
        font-size: 16px !important;
    }


/* Values preview layout: 2 arriba, 1 centrada abajo en pantallas medianas */
@media (max-width: 900px) and (min-width: 590px) {
    .values-preview {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }

    .value-preview:nth-child(1),
    .value-preview:nth-child(2) {
        grid-column: span 1 !important;
    }

    .value-preview:nth-child(3) {
        grid-column: 1 / 3 !important;
        width: calc(50% - 1rem) !important;
        justify-self: center !important;
    }
}

/* Single column layout for small screens (590px and below) */
@media (max-width: 589px) {
    .values-preview {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .value-preview {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Anrede (salutation) field - smaller width */
.form-group select#anrede {
    max-width: 250px;
    width: auto;
    min-width: 200px;
}

@media (max-width: 767px) {
    .form-group select#anrede {
        max-width: 200px;
        min-width: 180px;
    }
}

/* Phone number links - simple approach for mobile devices */
.footer-section a[href^="tel:"] {
    color: #F57C00;
    text-decoration: none;
}

.footer-section a[href^="tel:"]:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Disable phone links only on large screens (desktops) */
@media (min-width: 1025px) {
    .footer-section a[href^="tel:"] {
        color: rgba(255, 255, 255, 0.8);
        pointer-events: none;
        cursor: default;
    }
}

@media (max-width: 480px) {
    .form-group select#anrede {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
}

/* Form spacing consistency */
.contact-form .submit-btn {
    margin-top: 1.5rem;
}

.privacy-notice {
    margin-bottom: 1.5rem;
}
