/* =========================================================================
   Mia Cruise — brand stylesheet
   Modern cruise travel agency. Deep ocean navy + warm gold, with a calm
   sea-glass teal. Display face: Fraunces; body: Lato.
   ========================================================================= */

:root {
    /* Brand — Mia Cruise: ocean blue + deep navy, warm orange accent */
    --navy:        #0C1A33;   /* deep navy */
    --navy-700:    #14294a;
    --navy-900:    #060e1c;
    --teal:        #468EE5;   /* Mia Cruise blue (primary) */
    --teal-700:    #2f6fbf;
    --gold:        #F1A433;   /* warm orange accent */
    --gold-700:    #D6912B;
    --coral:       #7C4ED8;   /* purple highlight (from the legacy site) */

    /* Neutrals */
    --bg:        #F2F6FB;
    --cream:     #FBF6EE;
    --paper:     #FFFFFF;
    --ink:       #0C1A33;
    --body:      #41506A;
    --muted:     #6B7793;
    --line:      #E1E8F2;

    /* Type — Lato throughout (Mia Cruise brand face) */
    --font-display: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-sans:    'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Shape */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --r-xl: 34px;

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(7, 24, 47, .06), 0 2px 6px rgba(7, 24, 47, .05);
    --shadow:    0 10px 30px rgba(7, 24, 47, .10);
    --shadow-lg: 0 28px 70px rgba(7, 24, 47, .20);

    --container: 1180px;
    --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--body);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }

a { color: var(--teal-700); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--teal); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--teal-700);
    margin: 0 0 .8rem;
}
.lead { font-size: 1.2rem; color: var(--body); }

.section { padding: clamp(56px, 8vw, 112px) 0; }
.section--cream { background: var(--cream); }
.section--bg    { background: var(--bg); }
.section--navy  { background: var(--navy-900); color: #c9d6ee; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.section-head { max-width: 740px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .lead { margin: 0; }
.text-center { text-align: center; }

/* Scroll reveal */
.reveal.in { opacity: 1 !important; transform: none !important; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--navy);
    --btn-fg: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-sans); font-weight: 700; font-size: 1rem; line-height: 1;
    padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
    background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--gold    { --btn-bg: var(--gold); --btn-fg: #3a2602; }
.btn--gold:hover { --btn-bg: var(--gold-700); }
.btn--teal    { --btn-bg: var(--teal); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--navy); border-color: rgba(11,37,69,.22); box-shadow: none; }
.btn--ghost:hover { background: rgba(11,37,69,.06); color: var(--navy); }
.btn--on-navy { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Navigation ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    height: var(--nav-h);
    background: rgba(255,255,255,.86);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-thin { font-weight: 400; color: var(--teal); }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links > a:hover { color: var(--teal-700); }
.nav-cta { display: inline-flex; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); transition: .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 600px at 80% -10%, rgba(70,142,229,.35), transparent 60%),
        linear-gradient(160deg, rgba(6,14,28,.92) 0%, rgba(12,26,51,.80) 55%, rgba(20,41,74,.74) 100%),
        url('/images/lifestyle/friends-on-deck.webp') center 30% / cover no-repeat;
    color: #eaf1fb;
    padding: clamp(72px, 11vw, 150px) 0 clamp(80px, 12vw, 160px);
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
    background: var(--bg);
    clip-path: polygon(0 100%, 100% 100%, 100% 35%, 0 80%);
}
.hero .container { position: relative; z-index: 2; max-width: 920px; text-align: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { color: #cfe0f4; max-width: 680px; margin: 0 auto 2rem; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 2.4rem; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: #aebfdb; font-size: .95rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust i { color: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm); padding: clamp(22px, 2.6vw, 32px);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card--lift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; font-size: 1.35rem; margin-bottom: 16px; }
.ico--navy { background: rgba(11,37,69,.08); color: var(--navy); }
.ico--teal { background: rgba(28,140,155,.12); color: var(--teal-700); }
.ico--gold { background: rgba(232,163,61,.16); color: var(--gold-700); }
.card h3 { margin-bottom: .35em; }
.card p { margin: 0; color: var(--body); }

/* numbered steps */
.step-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 10px; }

/* ---------- Cruise-line logos / chips ---------- */
.line-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.line-chip {
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
    padding: 12px 22px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; gap: 10px;
}
.line-chip i { color: var(--teal-700); }

/* ---------- Ship / cruise-line photo gallery ---------- */
.ship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.ship-card { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; display: block; }
.ship-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.ship-card:hover img { transform: scale(1.06); }
.ship-card .cap { position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; font-size: 1.05rem; background: linear-gradient(transparent, rgba(12,26,51,.85)); }
@media (max-width: 900px) { .ship-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ship-grid { grid-template-columns: 1fr; } }

/* ---------- Split (partnership) ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.split img { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.partner-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(26px, 3vw, 40px); text-align: center; }
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: 14px; background: #0d1b3a; color: #fff; border: 1px solid rgba(255,255,255,.14); transition: transform .12s ease, box-shadow .15s ease; }
.store-badge:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--shadow-lg); }
.store-badge i { font-size: 1.9rem; line-height: 1; }
.store-badge .sb-top { display: block; font-size: .68rem; letter-spacing: .04em; opacity: .8; text-transform: uppercase; }
.store-badge .sb-bot { display: block; font-size: 1.05rem; font-weight: 700; }

/* ---------- Testimonial ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; color: #fff; margin: 0 0 1.2rem; }
.quote .stars { color: var(--gold); margin-bottom: 1rem; font-size: 1.1rem; }
.quote cite { font-style: normal; color: #c9d6ee; }
.quote cite b { color: #fff; display: block; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal-700), var(--teal)); color: #fff; border-radius: var(--r-xl); padding: clamp(36px, 5vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6f5f7; max-width: 620px; margin: 0 auto 1.6rem; }

/* ---------- Page intro (sub pages) ---------- */
.page-intro { background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #eaf1fb; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); text-align: center; }
.page-intro h1 { color: #fff; }
.page-intro p { color: #cfe0f4; max-width: 640px; margin: 0 auto; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.form-control {
    width: 100%; padding: 13px 16px; font: inherit; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,140,155,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); }
.form-help-text { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.text-danger { color: #c0392b; font-size: .9rem; display: block; margin-top: 6px; }
.alert { padding: 14px 18px; margin-bottom: 20px; border-radius: var(--r-sm); font-weight: 600; }
.alert-success { background: #e6f4ea; color: #1d6b35; border: 1px solid #bfe3cb; }
.alert-danger { background: #fdecea; color: #9c2b22; border: 1px solid #f6c6c1; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-method { display: flex; align-items: flex-start; gap: 16px; margin-top: 18px; }
.contact-method .cm-body h4 { margin: 0 0 4px; }
.contact-method .cm-body p, .contact-method .cm-body address { margin: 0; font-style: normal; color: var(--body); }

/* legal / prose */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aebfdb; padding: clamp(48px, 6vw, 76px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #aebfdb; }
.site-footer a:hover { color: #fff; }
.footer-brand p { max-width: 360px; color: #93a6c8; }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.social { display: flex; gap: 12px; margin-top: 1rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #7d90b4; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .25s ease; }
    .nav-links.open { transform: translateY(0); }
    .nav-links > a { padding: 14px 24px; border-bottom: 1px solid var(--line); }
    .nav-cta { padding: 14px 24px; }
    .nav-toggle { display: block; }
    .form-grid { grid-template-columns: 1fr; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; }
}
