/* ═══════════════════════════════════════════════
   style.css  —  Connect Abroad
   Mobile-first: base styles = mobile,
   then @media (min-width:768px) for desktop.
═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

:root {
    --navy:     #0a1628;
    --navy-md:  #1a3a5c;
    --navy-dk:  #060e1a;
    --gold:     #f5c518;
    --blue:     #3b82f6;
    --green:    #16a34a;
    --amber:    #d97706;
    --white:    #ffffff;
    --text:     #1a1a2e;
    --text-sec: #555e7a;
    --bg:       #f5f7fb;
    --bg-alt:   #eef1f8;
    --border:   #dde3f0;
    --radius:   12px;
    --shadow:   0 4px 24px rgba(10,22,40,0.10);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ── NAVBAR ── */
#navbar {
    background: var(--navy);
    padding: 0 5%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.ca-logo {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--white);
    letter-spacing: -0.5px;
}
.ca-logo span { color: var(--gold); }

/* Hamburger (mobile) */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.ca-nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    list-style: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-dk);
    padding: 16px 0 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 999;
}
.ca-nav-links.open { display: flex; }

.ca-nav-links li a {
    display: block;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s, background 0.2s;
}
.ca-nav-links li a:hover { color: var(--gold); background: rgba(255,255,255,0.04); }

.nav-cta {
    color: var(--gold) !important;
    font-weight: 600 !important;
}

/* Desktop nav */
@media (min-width: 768px) {
    .hamburger { display: none; }

    .ca-nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        box-shadow: none;
        gap: 28px;
    }
    .ca-nav-links li a {
        display: inline;
        font-size: 14px;
        font-weight: 400;
        padding: 0;
        border: none;
    }
}

/* ── TRUST BAR ── */
.ca-trust-bar {
    background: var(--gold);
    padding: 9px 5%;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.ca-trust-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

/* ── HERO ── */
.ca-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 60%, #0f2744 100%);
    padding: 56px 5% 64px;
    position: relative;
    overflow: hidden;
}
.ca-hero-orb1 {
    position: absolute; right: -80px; top: -80px;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(245,197,24,0.05); pointer-events: none;
}
.ca-hero-orb2 {
    position: absolute; left: -80px; bottom: -100px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(59,130,246,0.06); pointer-events: none;
}
.ca-hero-label {
    display: inline-block;
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(245,197,24,0.25);
}
.ca-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.18;
    color: var(--white);
    margin-bottom: 16px;
    font-weight: 900;
}
.ca-hero h1 em { font-style: normal; color: var(--gold); }

.ca-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 28px;
    font-weight: 300;
    max-width: 480px;
}
.ca-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.ca-btn-primary {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 8px;
    display: inline-block;
    transition: opacity 0.2s;
}
.ca-btn-primary:hover { opacity: 0.9; }

.ca-btn-secondary {
    background: transparent;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-block;
    transition: border-color 0.2s;
}
.ca-btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.ca-hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.ca-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--gold);
    font-weight: 700;
}
.ca-stat-lbl {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

@media (min-width: 768px) {
    .ca-hero { padding: 80px 5% 90px; }
    .ca-hero h1 { font-size: 46px; }
    .ca-hero p { font-size: 16px; }
    .ca-hero-stats { gap: 32px; }
    .ca-stat-num { font-size: 28px; }
}

/* ── DIVIDER ── */
.ca-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 50%, var(--navy) 100%);
}

/* ── SECTIONS ── */
.ca-section {
    padding: 48px 5%;
    background: var(--bg);
}
.ca-section-alt { background: var(--bg-alt); }

.ca-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}
.ca-section-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.ca-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.ca-see-all {
    font-size: 13px;
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
    align-self: flex-end;
    transition: color 0.2s;
}
.ca-see-all:hover { color: var(--navy); }

@media (min-width: 768px) {
    .ca-section { padding: 64px 5%; }
    .ca-section-head { align-items: flex-end; margin-bottom: 32px; }
    .ca-section-title { font-size: 28px; }
}

/* ── CARDS ── */
.ca-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 480px) {
    .ca-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 768px) {
    .ca-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .ca-cards { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
    .ca-cards { grid-template-columns: repeat(5, 1fr); }
}

.ca-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 0.5px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
}
.ca-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(10,22,40,0.14);
}

.ca-card-img {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .ca-card-img { height: 120px; font-size: 34px; }
}

.ca-card-body {
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ca-card-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.ca-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 6px;
    flex: 1;
}
.ca-card-desc {
    font-size: 11px;
    color: var(--text-sec);
    line-height: 1.5;
    margin-bottom: 12px;
}
.ca-card-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    background: var(--navy);
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}
.ca-card-link:hover { background: var(--navy-md); }

@media (min-width: 768px) {
    .ca-card-body { padding: 14px 16px 18px; }
    .ca-card-title { font-size: 14px; }
    .ca-card-desc  { font-size: 12px; }
    .ca-card-tag   { font-size: 10px; }
    .ca-card-link  { font-size: 12px; }
}

/* ── FORM SECTION ── */
.ca-form-section {
    padding: 56px 5%;
    background: var(--navy);
}
.ca-form-inner {
    max-width: 600px;
    margin: 0 auto;
}
.ca-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--white);
    margin-bottom: 8px;
    font-weight: 700;
}
.ca-form-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    margin-bottom: 28px;
    font-weight: 300;
}

@media (min-width: 768px) {
    .ca-form-title { font-size: 30px; }
    .ca-form-subtitle { font-size: 15px; margin-bottom: 32px; }
}

/* Single column on mobile, two on desktop */
.ca-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (min-width: 600px) {
    .ca-form-grid { grid-template-columns: 1fr 1fr; }
    .ca-field-full { grid-column: span 2; }
}

.ca-field label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}
.ca-field input,
.ca-field select,
.ca-field textarea {
    width: 100%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 13px 14px;
    font-size: 15px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.ca-field input:focus,
.ca-field select:focus,
.ca-field textarea:focus { border-color: var(--gold); }

.ca-field input::placeholder,
.ca-field textarea::placeholder { color: rgba(255,255,255,0.3); }

.ca-field select option { background: var(--navy); }
.ca-field textarea { resize: vertical; min-height: 90px; }

.ca-submit {
    width: 100%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: 15px;
    padding: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    margin-top: 6px;
    transition: opacity 0.2s;
}
.ca-submit:hover { opacity: 0.9; }

.ca-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}
.ca-alert-success {
    background: rgba(22,163,74,0.15);
    border: 1px solid rgba(22,163,74,0.4);
    color: #86efac;
}
.ca-alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.4);
    color: #fca5a5;
}

/* ── FOOTER ── */
footer {
    background: var(--navy-dk);
    padding: 40px 5% 0;
}
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
@media (min-width: 768px) {
    .footer-top { flex-direction: row; justify-content: space-between; }
}

.ca-footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--white);
    margin-bottom: 10px;
}
.ca-footer-logo span { color: var(--gold); }

.footer-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    max-width: 260px;
    line-height: 1.6;
}
.footer-links-group {
    display: flex;
    gap: 40px;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.footer-col a {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: rgba(255,255,255,0.25);
    font-size: 12px;
}

/* ── CONTACT PAGE ── */
.contact-page {
    padding: 56px 5%;
    max-width: 680px;
    margin: 0 auto;
}
.contact-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--text);
    margin-bottom: 8px;
}
.contact-page p.subtitle {
    color: var(--text-sec);
    font-size: 15px;
    margin-bottom: 36px;
}

/* ── UTILITY ── */
.text-gold { color: var(--gold); }
.mt-8 { margin-top: 8px; }

/* ── CARD FADE-IN ANIMATION ── */
.fade-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.fade-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── ACTIVE NAV LINK ── */
.ca-nav-links a.active {
    color: var(--gold) !important;
}

/* ── POLICY PAGES (Privacy, Disclaimer, Terms) ── */
.policy-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-md) 100%);
    padding: 56px 5% 48px;
}
.policy-hero-inner { max-width: 740px; margin: 0 auto; }

.policy-label {
    display: inline-block;
    background: rgba(245,197,24,0.12);
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(245,197,24,0.25);
}
.policy-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--white);
    font-weight: 900;
    margin-bottom: 8px;
}
.policy-hero p {
    color: rgba(255,255,255,0.45);
    font-size: 13px;
}

.policy-wrap {
    padding: 48px 5% 64px;
    background: var(--bg);
}
.policy-body {
    max-width: 740px;
    margin: 0 auto;
}
.policy-block {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}
.policy-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.policy-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 12px;
}
.policy-block p {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.75;
    margin-bottom: 10px;
}
.policy-block p:last-child { margin-bottom: 0; }

.policy-block ul {
    margin: 10px 0 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.policy-block ul li {
    font-size: 15px;
    color: var(--text-sec);
    line-height: 1.6;
}
.policy-block a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .policy-hero { padding: 72px 5% 60px; }
    .policy-hero h1 { font-size: 44px; }
}
