/* ============================================
   WORLDWIDE VISAS & PASSPORT SERVICES LTD
   Custom Stylesheet — v2 (Phase 5 Polish)
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --navy:       #0d1b3e;
    --navy-light: #1a2d5a;
    --navy-dark:  #080f22;
    --gold:       #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark:  #a8893a;
    --white:      #ffffff;
    --gray-soft:  #f4f6fb;
    --shadow-sm:  0 2px 8px rgba(13,27,62,0.07);
    --shadow-md:  0 6px 24px rgba(13,27,62,0.11);
    --shadow-lg:  0 16px 40px rgba(13,27,62,0.14);
    --radius:     8px;
    --radius-xl:  12px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    color: #1f2937;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Accessibility: visible focus ring */
:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ---- Typography ---- */
.font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.section-title-light {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

/* ---- Buttons ---- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.8rem 1.65rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    border: 2px solid var(--gold);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.45);
}

.btn-navy {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.8rem 1.65rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    border: 2px solid var(--navy);
    white-space: nowrap;
}
.btn-navy:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: transparent;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.8rem 1.65rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    border: 2px solid rgba(255,255,255,0.65);
    white-space: nowrap;
}
.btn-outline-white:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background-color: #25d366;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}
.btn-whatsapp:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
}

/* ---- Navigation ---- */
.nav-link {
    color: rgba(255,255,255,0.88);
    font-weight: 500;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.35rem 0;
    position: relative;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Dropdown — JS-controlled (no CSS hover trigger) */
.dropdown-menu {
    /* Visibility-based toggle (supports smooth transitions + display:none equivalent) */
    position: absolute;
    top: 100%;          /* Flush with button bottom — padding-top fills visual gap */
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 240px;
    background-color: var(--navy-light);
    border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    z-index: 100;
    padding: 0.35rem 0 0.6rem;
    padding-top: 14px; /* ← hover bridge: fills gap between button and menu content */
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.dropdown-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}
.dropdown-menu a {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.12s ease;
}
.dropdown-menu a:hover {
    background-color: rgba(201,168,76,0.15);
    color: var(--gold);
    padding-left: 1.45rem;
}
.dropdown-parent { position: relative; }

/* Mobile nav */
#mobile-nav {
    display: none;
    background-color: var(--navy-light);
    border-top: 1px solid rgba(255,255,255,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#mobile-nav.open {
    display: block;
    max-height: 600px;
}
.mobile-nav-link {
    display: block;
    padding: 0.8rem 1.5rem;
    color: rgba(255,255,255,0.88);
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
}
.mobile-nav-link:hover {
    background-color: rgba(201,168,76,0.1);
    color: var(--gold);
}
.mobile-nav-link.sub {
    padding-left: 2.5rem;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.68);
    background-color: rgba(0,0,0,0.12);
}

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--navy-dark);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(8,15,34,0.90) 0%,
        rgba(13,27,62,0.78) 55%,
        rgba(13,27,62,0.55) 100%
    );
}

/* ---- Service cards (homepage) ---- */
.service-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border: 1px solid #e8ecf4;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}
.service-card .icon-wrap {
    width: 56px;
    height: 56px;
    background: rgba(201,168,76,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}
.service-card:hover .icon-wrap {
    background: rgba(201,168,76,0.22);
}
.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}
.service-card p {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
    flex-grow: 1;
    line-height: 1.65;
}
.service-card .card-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-dark);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.15s ease;
}
.service-card:hover .card-link {
    gap: 0.55rem;
}

/* ---- Homepage featured country cards ---- */
.country-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: var(--navy);
    height: 240px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.country-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transition: opacity 0.35s ease, transform 0.4s ease;
}
.country-card:hover img {
    opacity: 0.38;
    transform: scale(1.06);
}
.country-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,15,34,0.88) 0%, rgba(8,15,34,0.1) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}
.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.38);
}

/* ---- Stats ---- */
.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

/* ---- Process steps ---- */
.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--gold);
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}

/* ---- Gold divider line ---- */
.gold-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(to right, var(--gold), var(--gold-light));
    border-radius: 2px;
}

/* ---- CTA banner ---- */
.cta-banner {
    position: relative;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8,15,34,0.93) 0%, rgba(13,27,62,0.85) 60%, rgba(13,27,62,0.75) 100%);
}

/* ---- Countries grid cards ---- */
.country-card-item {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.country-card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Coming-soon badge */
.coming-soon-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.4);
    color: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
}

/* ---- Footer ---- */
.footer-main {
    background-color: var(--navy-dark);
    color: rgba(255,255,255,0.8);
}
.footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.22rem 0;
    transition: color 0.15s ease;
}
.footer-link:hover {
    color: var(--gold);
    text-decoration: none;
}
.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
}

/* ---- Utility bar ---- */
.utility-bar {
    background-color: var(--navy-dark);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ---- Page banner (inner pages) ---- */
.page-banner {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, var(--navy-light) 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ---- Form inputs ---- */
.form-input {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* ---- FAQ accordion ---- */
.faq-body {
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .hero-section { min-height: 80vh; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 100svh; }

    .section-title,
    .section-title-light {
        font-size: 1.8rem;
    }

    .stat-number { font-size: 2.25rem; }

    /* Better card padding on mobile */
    .service-card { padding: 1.5rem 1.35rem; }

    /* Utility bar: single line on mobile */
    .utility-bar .text-xs { font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .section-title,
    .section-title-light { font-size: 1.6rem; }

    .btn-gold,
    .btn-navy,
    .btn-outline-white {
        padding: 0.75rem 1.25rem;
        font-size: 0.82rem;
    }

    /* Full-width buttons on tiny screens */
    .hero-section .flex.flex-wrap .btn-gold,
    .hero-section .flex.flex-wrap .btn-outline-white {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* ---- Print ---- */
@media print {
    .utility-bar, nav, .floating-whatsapp, footer { display: none; }
    .hero-section { min-height: auto; padding: 2rem 0; }
    .hero-overlay { background: none; }
    body { color: #000; }
}

/* ============================================================
   PHASE 6 ADDITIONS — Branding Refinement & Production Polish
   ============================================================ */

/* ---- Trust indicators ---- */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.trust-badge svg { color: var(--gold); flex-shrink: 0; }

.trust-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--gray-soft);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.trust-badge-dark svg { color: var(--gold); flex-shrink: 0; }

/* ---- Conversion strip (inline CTA bar) ---- */
.conversion-strip {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-bottom: 3px solid var(--gold);
    padding: 1rem 0;
}
.conversion-strip p { color: rgba(255,255,255,0.75); }

/* ---- Response time badge ---- */
.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 4px;
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---- Popular-for badges ---- */
.popular-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

/* ---- Info summary box ---- */
.info-summary-box {
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.info-summary-box .info-row {
    display: flex;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
    gap: 0.75rem;
}
.info-summary-box .info-row:last-child { border-bottom: none; }
.info-summary-box .info-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    min-width: 130px;
    flex-shrink: 0;
}
.info-summary-box .info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
}

/* ---- Assessment CTA card ---- */
.assessment-card {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(201,168,76,0.2);
    position: relative;
    overflow: hidden;
}
.assessment-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}

/* ---- Logo system ---- */
.site-logo-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo-img {
    height: 40px;
    width: auto;
    display: block;
}
.site-logo-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    letter-spacing: 0.03em;
    line-height: 1.2;
}
.site-logo-sub {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 1px;
}

/* ---- Hero improvements ---- */
.hero-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}
.hero-badge::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* ---- Section separator ---- */
.section-sep {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.3), transparent);
    border: none;
    margin: 0;
}

/* ---- Timeline (process) improvements ---- */
.process-line {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, rgba(201,168,76,0.35) 0, rgba(201,168,76,0.35) 6px, transparent 6px, transparent 14px);
}

/* ---- Improved hover states for cards ---- */
.card-hover-lift {
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ---- Country badge list ---- */
.country-type-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(201,168,76,0.18);
    color: var(--gold-dark);
    border: 1px solid rgba(201,168,76,0.3);
}

/* ---- Responsive breakpoint improvements ---- */
@media (max-width: 1280px) {
    /* Slightly reduce stat number on smaller desktop */
    .stat-number { font-size: 2.5rem; }
}

@media (max-width: 1024px) {
    .hero-section { min-height: 75vh; }
    .hero-headline { font-size: clamp(2rem, 5vw, 3rem); }
}

@media (max-width: 768px) {
    /* Better hero on tablet */
    .hero-section { min-height: 100svh; background-position: 65% center; }
    .hero-headline { font-size: clamp(1.85rem, 6vw, 2.5rem); }

    /* Utility bar: show only phone numbers, hide description */
    .utility-bar .hidden-mobile { display: none; }

    /* Page banner tighter on mobile */
    .page-banner { padding: 3.5rem 0 3rem; }

    /* Stats tighter */
    .stat-number { font-size: 2rem; }

    /* Better card padding */
    .service-card { padding: 1.4rem 1.25rem; }

    /* Trust badges wrap tightly */
    .trust-badge { font-size: 0.68rem; padding: 0.25rem 0.65rem; }
}

@media (max-width: 480px) {
    .hero-section { background-position: 70% center; }
    .hero-headline { font-size: 1.75rem; line-height: 1.2; }
    .page-banner { padding: 3rem 0 2.5rem; }
    .section-title { font-size: 1.5rem; }

    /* Stack hero CTAs vertically */
    .hero-cta-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-cta-group .btn-gold,
    .hero-cta-group .btn-outline-white {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }

    /* Country cards: single column tight */
    .info-summary-box .info-label { min-width: 100px; }
    .assessment-card { padding: 1.5rem; }
}

@media (max-width: 360px) {
    .hero-headline { font-size: 1.55rem; }
    .stat-number { font-size: 1.75rem; }
    nav .site-logo-text { font-size: 0.95rem; }
}

