/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Color Palette - Dream Door Brand Colors */
    --primary-color: #154A8B;
    /* Deep Blue logo color */
    --primary-light: #2A64AC;
    --secondary-color: #F4B400;
    /* Golden Yellow logo color */
    --secondary-dark: #D49C00;
    --accent-color: #0d8eff;
    /* Modern bright blue for tech/modern feel and highlights */

    /* Backgrounds */
    --bg-main: #FAFCFE;
    /* Very slight blue tint off-white */
    --bg-card: #FFFFFF;
    --bg-section-alt: #F0F4F8;

    /* Text Colors */
    --text-main: #2D3748;
    --text-muted: #718096;
    --text-light: #F7FAFC;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilities */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(10, 37, 64, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.12);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

@media (min-width: 992px) {
    .section-padding {
        padding: 8rem 0;
    }
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.subtitle {
    color: var(--secondary-color);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subtitle::before,
.subtitle::after {
    content: '';
    height: 2px;
    width: 20px;
    background-color: var(--secondary-color);
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(242, 169, 0, 0.1);
    color: var(--secondary-dark);
    font-weight: 600;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(242, 169, 0, 0.3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 0.5rem;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(242, 169, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 169, 0, 0.4);
    color: var(--primary-color);
}

.highlight-btn {
    box-shadow: 0 0 15px rgba(242, 169, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: pulse-glow 2s infinite;
    border: 2px solid var(--secondary-color);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(242, 169, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(242, 169, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 5px rgba(242, 169, 0, 0.5);
    }
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 252, 254, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 37, 64, 0.05);
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Dropdown System */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Invisible bridge to prevent dropdown from closing when hovering between the link and the menu */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

.dropdown-content {
    visibility: hidden;
    position: absolute;
    background-color: #fff;
    min-width: 250px;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    border-radius: var(--radius-sm);
    top: calc(100% + 15px);
    left: 0;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-normal);
    pointer-events: none;
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: rgba(10, 37, 64, 0.2);
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(10, 37, 64, 0.4);
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: var(--text-main) !important;
    padding: 10px 20px !important;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(10, 37, 64, 0.05);
    font-weight: 500 !important;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--bg-section-alt);
    color: var(--primary-color) !important;
    padding-left: 25px !important;
    /* Premium hover indent */
}

@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: var(--transition-normal);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        gap: 0.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* On mobile, the dropdown stays inside the flow */
    .dropdown {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        max-height: 0;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: max-height 0.35s ease;
        background-color: var(--bg-section-alt);
        border-radius: var(--radius-sm);
        width: 90%;
        padding: 0;
    }

    .dropdown.open .dropdown-content {
        max-height: 50vh;
    }

    .dropdown-content a {
        padding: 10px 18px !important;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 100px;
    min-height: 100vh;
    display: grid;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(242, 169, 0, 0.05), transparent 40%);
    position: relative;
    overflow: hidden;
    /* grid-rows: slides stack in same cell, slider-dots below */
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
}

/* Slides share the same grid cell so they overlap */
.hero-slide {
    grid-row: 1;
    grid-column: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: center;
    width: 100%;
    padding-bottom: 3rem;
    /* space above dots */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
    position: relative;
}

.slider-dots {
    grid-row: 2;
    grid-column: 1;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 20;
    padding: 1.5rem 0 2rem;
    position: relative;
}

/* Keep inactive slides from taking up layout space */
.hero-slide:not(.active) {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    pointer-events: none;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(10, 37, 64, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active,
.dot:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(242, 169, 0, 0.5);
    transform: scale(1.2);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10, 37, 64, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.hero-image img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card .text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
}

.floating-card .text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ---- Tablet (≤991px) ---- */
@media (max-width: 991px) {
    .hero {
        padding-top: 80px;
        min-height: unset;
    }

    .hero-slide {
        padding-bottom: 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        height: 340px;
    }

    /* Move floating card inside bounds */
    .floating-card {
        bottom: 10px;
        left: 10px;
        right: auto;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .floating-card .text strong {
        font-size: 1rem;
    }
}

/* ---- Mobile (≤576px) ---- */
@media (max-width: 576px) {
    .hero {
        padding-top: 70px;
    }

    .hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .hero-container {
        gap: 1.75rem;
    }

    .hero-image img {
        height: 240px;
    }

    /* Hide floating cards on small phones to avoid overflow */
    .floating-card {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .slider-dots {
        padding: 1rem 0 1.5rem;
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--bg-card);
}

.section-header {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-main);
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 37, 64, 0.05);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image {
    transform: scale(1.04);
}

.service-card-body {
    padding: 1.75rem 2rem 2rem;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--secondary-color);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: white;
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 37, 64, 0.05);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 1.5rem 2rem 1rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    padding: 0 2rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0 2rem 1.75rem;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
    color: var(--secondary-color);
}

/* ==========================================================================
   Target Audience Section (About)
   ========================================================================== */
.target-audience {
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.target-audience::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(242, 169, 0, 0.1), transparent 70%);
    pointer-events: none;
}

.audience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.target-audience h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.5rem);
}

.target-audience .subtitle {
    justify-content: flex-start;
}

.target-audience .subtitle::before {
    display: none;
}

.target-audience p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.benefit-list {
    display: grid;
    gap: 1rem;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: white;
}

.benefit-list li i {
    color: var(--secondary-color);
    background: rgba(242, 169, 0, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
    font-size: 0.875rem;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    position: relative;
}

.image-grid img {
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.image-grid .img-1 {
    height: 400px;
    margin-top: 2rem;
}

.image-grid .img-2 {
    height: 350px;
}

@media (max-width: 991px) {
    .audience-content {
        grid-template-columns: 1fr;
    }

    .image-grid {
        order: 2;
        margin-top: 2rem;
    }

    .text-content {
        order: 1;
    }

    .target-audience .subtitle {
        justify-content: center;
    }

    .target-audience .subtitle::before {
        display: inline-block;
    }

    .target-audience {
        text-align: center;
    }

    .benefit-list li {
        justify-content: center;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--bg-section-alt);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: var(--primary-color);
    color: white;
    position: relative;
}

.contact-info h2 {
    color: white;
    font-size: 2rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.detail-item strong {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}

.detail-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-form-container {
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(10, 37, 64, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info,
    .contact-form-container {
        padding: 2rem;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: white;
    margin-bottom: 1.5rem;
}

.brand-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-0 {
    margin-top: 0 !important;
}

/* ==========================================================================
   Contact Page — Inner Responsive Grid
   ========================================================================== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==========================================================================
   Inner Pages — Detail Hero responsive patches
   ========================================================================== */
.detail-hero {
    display: flex !important;
    align-items: flex-start !important;
}

@media (max-width: 768px) {
    .detail-hero {
        padding-top: 110px !important;
        padding-bottom: 30px !important;
    }

    .detail-hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    }
}

@media (max-width: 576px) {
    .detail-hero {
        padding-top: 90px !important;
    }

    .detail-hero h1 {
        font-size: clamp(1.5rem, 7vw, 2rem) !important;
    }

    .detail-hero p {
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   Content Cards on Inner Pages — responsive padding
   ========================================================================== */
@media (max-width: 768px) {
    .content-card {
        padding: 2rem !important;
        margin-top: -60px !important;
    }
}

@media (max-width: 576px) {
    .content-card {
        padding: 1.5rem !important;
        margin-top: -40px !important;
        border-radius: var(--radius-md) !important;
    }
}

/* ==========================================================================
   Services Grid — extra small screens
   ========================================================================== */
@media (max-width: 400px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Form — Mobile Touch Targets
   ========================================================================== */
@media (max-width: 768px) {

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        /* Prevents iOS zoom on focus */
        min-height: 48px;
        padding: 0.875rem 1rem;
    }

    .form-group textarea {
        min-height: unset;
    }

    .btn {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
    }
}

/* ==========================================================================
   Image Grid (About / Target Audience) — mobile
   ========================================================================== */
@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-grid .img-1,
    .image-grid .img-2 {
        height: 220px;
        margin-top: 0;
    }
}

/* ==========================================================================
   Contact Section — mobile padding
   ========================================================================== */
@media (max-width: 576px) {

    .contact-info,
    .contact-form-container {
        padding: 1.5rem !important;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Footer — extra small screens
   ========================================================================== */
@media (max-width: 400px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding-top: 3rem;
    }
}

/* ==========================================================================
   WhatsApp Floating CTA Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: wa-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float a:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.7);
    color: white;
}

.whatsapp-float .wa-tooltip {
    display: inline-block;
    background: white;
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes wa-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.85);
    }
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Netlify Form Success / Error States
   ========================================================================== */
.form-feedback {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-align: center;
}

.form-feedback.success {
    display: block;
    background: rgba(39, 174, 96, 0.1);
    color: #1a8c52;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-feedback.error {
    display: block;
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ==========================================================================
   Dropdown Group Labels (new 2-category nav)
   ========================================================================== */
.dropdown-group-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 20px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--secondary-dark);
    background: rgba(242, 169, 0, 0.06);
    border-top: 1px solid rgba(10, 37, 64, 0.06);
    margin-top: 4px;
    pointer-events: none;
    font-family: var(--font-heading);
}

.dropdown-group-label:first-child {
    border-top: none;
    margin-top: 0;
}

.dropdown-content a.active-link {
    color: var(--secondary-dark) !important;
    font-weight: 700 !important;
    background-color: rgba(242, 169, 0, 0.07);
}

/* ==========================================================================
   Services Hub — Wide Service Cards (2-column layout on homepage)
   ========================================================================== */
.services-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card-wide {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.07);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card-wide:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.service-card-wide-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.service-card-wide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card-wide:hover .service-card-wide-img img {
    transform: scale(1.04);
}

.service-card-wide-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(242, 169, 0, 0.9);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.service-card-wide-body {
    padding: 2rem 2rem 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-wide-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-card-wide-body p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.service-sublist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-sublist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.975rem;
    color: var(--text-main);
}

.service-sublist li i {
    color: var(--secondary-color);
    font-size: 1rem;
    flex-shrink: 0;
}

.service-sublist li a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

.service-sublist li a:hover {
    color: var(--secondary-dark);
}

@media (max-width: 768px) {
    .services-grid-2 {
        grid-template-columns: 1fr;
    }

    .service-card-wide-img {
        height: 200px;
    }
}

/* ==========================================================================
   Visa Options Grid (used on detail hub pages)
   ========================================================================== */
.visa-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.visa-options-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.visa-option-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 37, 64, 0.07);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.visa-option-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.visa-option-header {
    padding: 2rem 1.75rem;
    color: white;
    text-align: center;
}

.visa-option-header h3 {
    color: white;
    font-size: 1.25rem;
    margin: 0.75rem 0 0.5rem;
}

.visa-option-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.visa-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.visa-option-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.visa-option-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.detail-list li {
    padding-left: 1.25rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

@media (max-width: 991px) {
    .visa-options-grid {
        grid-template-columns: 1fr;
    }

    .visa-options-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 600px) and (max-width: 991px) {
    .visa-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Detail Page Layout (sidebar + main content)
   ========================================================================== */
.detail-page-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}

.detail-page-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-content-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.detail-content-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.detail-content-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.detail-content-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.detail-page-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 37, 64, 0.07);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(10, 37, 64, 0.05);
    transition: var(--transition-fast);
}

.sidebar-links li a:hover {
    color: var(--secondary-dark);
    padding-left: 4px;
}

.sidebar-card.info-highlight {
    background: var(--primary-color);
    border-color: transparent;
}

.sidebar-card.info-highlight h3,
.sidebar-card.info-highlight p,
.sidebar-card.info-highlight li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.sidebar-card.info-highlight h3 {
    color: white !important;
}

@media (max-width: 991px) {
    .detail-page-grid {
        grid-template-columns: 1fr;
    }

    .detail-page-sidebar {
        position: static;
    }
}

/* ==========================================================================
   Process Steps Grid (Education hub page)
   ========================================================================== */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #1a4a80);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 991px) {
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Activity Type Grid (407 / 482 visa types)
   ========================================================================== */
.activity-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
}

.activity-type-card {
    background: var(--bg-section-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(10, 37, 64, 0.06);
}

.activity-type-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.activity-type-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.activity-type-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .activity-type-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Process Timeline (step-by-step)
   ========================================================================== */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 1.25rem;
    position: relative;
    padding-bottom: 1.75rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: rgba(10, 37, 64, 0.1);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content {
    padding-top: 0.5rem;
    flex: 1;
}

.timeline-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.timeline-content p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   Info Box
   ========================================================================== */
.info-box {
    background: rgba(242, 169, 0, 0.07);
    border: 1px solid rgba(242, 169, 0, 0.3);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-box i {
    color: var(--secondary-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box p {
    font-size: 0.93rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    color: var(--text-main) !important;
}

/* ==========================================================================
   Why Us Grid
   ========================================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.why-us-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-us-card i {
    font-size: 2.25rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
}

.why-us-card h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.why-us-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.why-us-card.why-us-card-light {
    background: var(--bg-section-alt);
    border-color: rgba(10, 37, 64, 0.07);
}

.why-us-card.why-us-card-light h4 {
    color: var(--primary-color);
}

.why-us-card.why-us-card-light p {
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Quick Info Bar
   ========================================================================== */
.quick-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-around;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.quick-info-item i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.quick-info-item strong {
    color: white;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(10, 37, 64, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-section-alt);
}

.faq-question i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin: 0;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    font-size: 0.97rem;
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.25rem;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table th:first-child {
    text-align: left;
}

.comparison-table td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    text-align: center;
    color: var(--text-main);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    background: rgba(10, 37, 64, 0.02);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(242, 169, 0, 0.04);
}