/*
Theme Name: ESGO
Theme URI: https://esgo.travel
Description: High-end, premium responsive ESGO eSIM theme redesigned as requested by the mockup. Features dynamic sunset wing hero, sticky search, 5G cards, travel steps, and custom brand assets.
Version: 3.0.0
Author: Antigravity AI
Text Domain: esgo
*/

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ==========================================
   ESGO DESIGN SYSTEM
   Navy: #00205B | Orange: #FF6B00
   ========================================== */
:root {
    --primary: #00205B;
    --primary-dark: #001336;
    --primary-light: #1A3E7A;
    --secondary: #FF6B00;
    --secondary-dark: #E05E00;
    --secondary-light: #FF8C33;

    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-card: #FFFFFF;

    --text-navy: #00205B;
    --text-muted: #8E9CAE;
    --text-dark: #1A1A2E;

    --border: #E2E8F0;
    --success: #00B67A;

    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Be Vietnam Pro', sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-sm: 0 2px 8px rgba(0, 32, 91, 0.03);
    --shadow: 0 12px 30px rgba(0, 32, 91, 0.06);
    --shadow-lg: 0 24px 60px rgba(0, 32, 91, 0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-navy);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.section-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-navy);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   SITE HEADER REDESIGN
   ========================================== */
.site-header {
    background: var(--primary-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 32, 91, 0.03);
    padding: 12px 0;
}

/* Site Footer - matching header background */
.site-footer {
    background: var(--primary-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    box-shadow: 0 -2px 20px rgba(0, 32, 91, 0.03);
}


.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo-area a,
.logo-area img {
    height: 38px;
    width: auto;
    display: block;
}

/* Navigation Menu */
.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-navigation .nav-menu a {
    color: var(--text-navy);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-navigation .nav-menu a:hover,
.main-navigation .nav-menu li.current-menu-item a {
    color: var(--secondary);
    background: rgba(255, 107, 0, 0.05);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-action-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-navy);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.header-action-item:hover {
    background: rgba(0, 32, 91, 0.05);
}

.header-icon {
    stroke: var(--text-navy);
}

.chevron-icon {
    stroke: var(--text-muted);
}

.header-cta {
    background: var(--secondary);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.25);
    transition: var(--transition);
}

.header-cta:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
}

/* Hamburger mobile button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text-navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ==========================================
   HERO SECTION - PLANE SUNSET
   ========================================== */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 80px 20px 140px;
    /* high bottom padding for search overlap */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 32, 91, 0.85) 0%, rgba(0, 32, 91, 0.4) 100%);
    z-index: 1;
}

.hero-container-wrap {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content-left {
    max-width: 580px;
    color: #ffffff;
}

.hero-title {
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.highlight-orange {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-orange {
    background: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

.btn-orange:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 0, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* Trustpilot integration widget */
.hero-trustpilot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    flex-wrap: wrap;
}

.trust-stars {
    display: flex;
    gap: 2px;
}

.star-icon {
    width: 16px;
    height: 16px;
}

.trust-rating {
    font-weight: 700;
}

.trust-logo {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ==========================================
   FLOATING SEARCH & INFO CARD WIDGET
   ========================================== */
.search-widget-section {
    position: relative;
    max-width: 1200px;
    margin: -80px auto 0;
    /* floating offset overlap */
    padding: 0 20px;
    z-index: 5;
}

.search-card-container {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 30px 40px;
    border: 1px solid var(--border);
}

/* Search Form Row */
.search-form-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 20px;
    align-items: flex-end;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.search-field-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-navy);
}

.field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.field-input-wrap input,
.field-input-wrap select {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-light);
    outline: none;
    transition: var(--transition);
    appearance: none;
    /* remove native dropdown chevron for custom styling if needed */
}

.field-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238E9CAE' 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 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.field-input-wrap input:focus,
.field-input-wrap select:focus {
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.search-btn-col button {
    width: 100%;
    padding: 14px 20px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    border-radius: var(--radius-sm);
    border: none;
    color: #ffffff;
    background: var(--secondary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.search-btn-col button:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

/* Badges Row */
.search-badges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 30px;
}

.badge-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 107, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.badge-texts {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--text-navy);
}

.badge-desc {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   POPULAR DESTINATIONS GRID (ESIM_CATALOG)
   ========================================== */
.popular-destinations-section {
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.view-all-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all-link:hover {
    color: var(--secondary-dark);
}

.view-all-link .arrow {
    transition: var(--transition);
}

.view-all-link:hover .arrow {
    transform: translateX(4px);
}

/* Catalog tab navigation override */
.esim-tabs {
    border-bottom: 1px solid var(--border) !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
}

.esim-tab-btn {
    font-family: var(--font-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    padding: 12px 4px !important;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
}

.esim-tab-btn:hover {
    color: var(--secondary) !important;
}

.esim-tab-btn.active {
    color: var(--secondary) !important;
    border-bottom: 3px solid var(--secondary) !important;
}

/* Card overrides */
.esim-country-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
}

.esim-card {
    background: var(--bg-card) !important;
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition) !important;
}

.esim-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--border) !important;
}

.esim-card:hover .esim-image {
    transform: scale(1.06);
}

/* 5G tag */
.esim-5g-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--secondary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    z-index: 2;
}

/* Card arrow button */
.esim-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-navy);
    transition: var(--transition);
}

.esim-card:hover .esim-arrow-btn {
    background: var(--secondary);
    color: #ffffff;
}

/* ==========================================
   WHY CHOOSE ESGO SECTION
   ========================================== */
.why-choose-section {
    padding: 60px 20px;
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-header {
    text-align: center;
    margin-bottom: 50px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 24px 16px;
    transition: var(--transition);
}

.why-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(0, 32, 91, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon-wrap {
    background: var(--primary);
    transform: scale(1.05);
}

.why-card:hover .why-icon-wrap svg {
    stroke: #ffffff;
}

.why-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   HOW IT WORKS (TRAVELER & STEPS OVERLAY)
   ========================================== */
.how-works-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
}

.how-works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 32, 91, 0.85) 0%, rgba(0, 32, 91, 0.6) 100%);
    z-index: 1;
}

.how-works-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.how-works-container .section-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-item {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 40px 24px 30px;
    text-align: center;
    transition: var(--transition);
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.step-num-badge {
    position: absolute;
    top: -16px;
    left: 20px;
    background: var(--secondary);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.step-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 32, 91, 0.2);
}

.step-item h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 13.5px;
    opacity: 0.9;
    line-height: 1.6;
}

/* ==========================================
   MOBILE APP PROMO BANNER
   ========================================== */
.app-promo-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.app-promo-container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.app-promo-left h2 {
    color: #ffffff;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.2;
}

.app-promo-left p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 480px;
}

.store-badges {
    display: flex;
    gap: 12px;
}

.store-badge-link {
    transition: var(--transition);
}

.store-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.app-promo-right {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.flight-map-svg {
    max-width: 380px;
    height: auto;
}

/* ==========================================
   DEVICE COMPATIBILITY
   ========================================== */
.compatibility-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.esim-comp-tabs {
    justify-content: center !important;
}

/* ==========================================
   SITE FOOTER REDESIGN
   ========================================== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
}

.brand-col p {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 2px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: var(--secondary);
    transform: scale(1.15);
}

/* ==========================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================== */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* Header mobile actions */
    .main-navigation {
        display: none;
    }

    .header-actions {
        display: none;
        /* hidden on tablet/mobile layout */
    }

    .menu-toggle {
        display: flex;
    }

    /* Hero mobile spacing */
    .hero-section {
        min-height: 480px;
        padding: 60px 20px 100px;
    }

    .hero-content-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-trustpilot {
        justify-content: center;
    }

    /* Search widget stack on tablet */
    .search-widget-section {
        margin-top: -60px;
    }

    .search-card-container {
        padding: 24px 20px;
    }

    .search-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .search-badges-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Destinations & catalog spacing */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 24px;
    }

    /* Grid system */
    .steps-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .app-promo-container {
        grid-template-columns: 1fr;
        padding: 36px 30px;
        text-align: center;
    }

    .app-promo-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .store-badges {
        justify-content: center;
    }

    .app-promo-right {
        justify-content: center;
        margin-top: 20px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-badges-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .logo-area img {
        height: 32px;
    }
}