/* ==========================================
   BRAND COLORS
   ========================================== */
:root {
    --primary: #e0843d;
    --secondary: #2f4858;
    --accent: #ee8b60;
    --white: #ffffff;
    --text-dark: #333333;
}

/* --- RESET & GLOBAL --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* Prevents side-scrolling */
}

.wrapper {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

/* --- HEADER --- */
header {
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo-img { height: 50px; width: auto; }

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: var(--secondary);
    font-weight: 700;
}

.menu { display: flex; list-style: none; gap: 20px; }

.menu a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
}

.cta-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 50px;
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
    text-align: center; /* Centers text and inline-block items */
    background: #f9f9f9;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}
h2{
     margin-bottom: 20px;
}

.accent-text { color: var(--primary); }

.hero p {
    max-width: 600px;
    margin: 0 auto 30px; /* margin: 0 auto centers the block */
    font-size: 1.1rem;
}

/* THE BUTTON FIX */
.btn.primary {
    display: inline-block; /* Essential for centering with text-align */
    background-color: var(--primary);
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
}

/* --- ABOUT SECTION --- */
.about {
    background-color: #3d5f76;
    color: #ffffff;
    padding: 70px 0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

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

.about-intro p {
    max-width: 680px;
    margin: 0 auto 20px;
    font-size: 1.05rem;
    opacity: 0.9;
}

.features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin-top: 10px;
    justify-content: center;
}

.features li {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

/* --- CLB SECTION --- */
.clb-section {
    background: rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 35px 40px;
}

.clb-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.clb-section > p {
    margin-bottom: 20px;
    opacity: 0.85;
}

.clb-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.clb-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.clb-badge {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.clb-note {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    opacity: 0.85;
    font-style: italic;
    font-size: 0.95rem;
}

/* --- IMMIGRATION POINTS --- */
.immigration-points {
    background: rgba(224, 132, 61, 0.15);
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 35px 40px;
}

.immigration-points h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.points-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.immigration-points > p {
    opacity: 0.85;
    font-size: 0.97rem;
}
/* --- VIDEO --- */
.video-section { padding: 60px 0; text-align: center; background-color: #3d5f76; color: #ffffff; }

.video-container {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
}

video { width: 100%; display: block; }

/* --- DOWNLOAD SECTION (FIX FOR OVERFLOW) --- */
.download { padding: 80px 0; text-align: center; }

.download-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
    flex-direction: column;
}

.qr-code img { width: 130px; border: 1px solid #eee; padding: 10px; border-radius: 10px; }

/* Curved orange arrow from title to header QR code */
.hero-qr-hint {
    position: absolute;
    top: 0px;
    /* aligns arrowhead with center of header QR code at any screen width */
    right: calc((100% - min(90%, 1100px)) / 2 + 18px);
    pointer-events: none;
    animation: bounce-up 1.2s ease-in-out infinite;
}

@keyframes bounce-up {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero { position: relative; }

.store-links {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

.store-btn img {
    width: 180px; /* Fixed width to prevent overflow on small screens */
    height: auto;
    display: none;
}


/* --- HEADER QR CODE --- */
.header-qr img {
    width: 55px;
    height: 55px;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 8px;
    display: block;
}

/* --- COMING SOON SECTION --- */
.coming-soon {
    padding: 70px 0;
    background: #f9f9f9;
    text-align: center;
}

.coming-soon h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    font-size: 2rem;
    margin-bottom: 15px;
}

.coming-intro {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    opacity: 0.85;
}

.coming-list {
    list-style: none;
    display: inline-flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
    margin-bottom: 30px;
}

.coming-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    line-height: 1.5;
}

.coming-list li::before {
    content: "→";
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.coming-cta {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

/* --- FOOTER --- */
footer {
    background: #3d5f76;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.8rem;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    padding-bottom: 1px;
}

.footer-links a:hover {
    opacity: 1;
}

/* --- LEGAL PAGES (Privacy Policy, etc.) --- */
.legal {
    padding: 60px 0 80px;
    background: #f9f9f9;
}

.legal .wrapper {
    max-width: 820px;
    background: #fff;
    padding: 50px 55px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.legal h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.legal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    color: var(--secondary);
    margin-top: 35px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary);
}

.legal h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--primary);
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal p {
    margin-bottom: 12px;
    font-size: 0.97rem;
    color: var(--text-dark);
}

.legal ul {
    margin: 0 0 14px 22px;
    padding: 0;
}

.legal ul li {
    margin-bottom: 6px;
    font-size: 0.97rem;
    line-height: 1.55;
}

.legal a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal a:hover {
    text-decoration: underline;
}

.legal-meta {
    color: var(--secondary);
    opacity: 0.75;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.legal-callout {
    background: rgba(224, 132, 61, 0.1);
    border-left: 4px solid var(--primary);
    padding: 14px 18px;
    border-radius: 6px;
    margin: 16px 0 20px;
    font-size: 0.97rem;
}

@media (max-width: 768px) {
    .legal .wrapper {
        padding: 30px 22px;
    }
    .legal h1 { font-size: 1.7rem; }
    .legal h2 { font-size: 1.15rem; }
}

/* ==========================================
   MOBILE VIEW FIX (MAX-WIDTH: 768px)
   ========================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .header-qr { display: none; }
    .hero-qr-hint { display: none; }

    .menu {
        padding: 0;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .clb-section,
    .immigration-points {
        padding: 25px 20px;
    }

    .features {
        justify-content: center;
    }

    .coming-list {
        text-align: left;
        width: 100%;
        padding: 0 10px;
    }

    /* FIX: Center and scale the Download grid */
    .download-grid {
        flex-direction: column;
        width: 100%;
        gap: 0px;
    }

    .store-btn img {
        width: 180px;
        height: auto;
        display: flex;
    }

    .qr-code img {
        display: none;
    }

    .store-links {
        flex-direction: row;
        width: 100%;
        gap: 5px;
    }
}