/* ============================================
   YACHT RELOCATION — Caribbean Cinematic
   ============================================ */
:root {
    --teal: #0D9488;
    --teal-deep: #0F766E;
    --teal-dark: #115E59;
    --aqua: #2DD4BF;
    --coral: #F97316;
    --coral-soft: #FB923C;
    --sand: #FFF7ED;
    --cream: #FFFBEB;
    --white: #FFFFFF;
    --ink: #134E4A;
    --muted: #5B7A76;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--ink); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

#loader { position: fixed; inset: 0; background: var(--teal-dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s var(--ease), visibility 0.8s; }
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-content { text-align: center; }
.loader-line { width: 120px; height: 2px; background: var(--aqua); margin: 0 auto 1.5rem; animation: loaderPulse 1.6s ease-in-out infinite; }
@keyframes loaderPulse { 0%, 100% { transform: scaleX(0.3); opacity: 0.4; } 50% { transform: scaleX(1); opacity: 1; } }
.loader-content p { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); }

#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.25rem 0; transition: background 0.4s, padding 0.4s, box-shadow 0.4s; }
#navbar.scrolled { background: rgba(255,251,235,0.95); backdrop-filter: blur(12px); padding: 0.85rem 0; box-shadow: 0 1px 20px rgba(13,148,136,0.12); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; line-height: 0; }
.logo-img { height: 52px; width: auto; display: block; transition: filter 0.3s, height 0.3s; }
#navbar.scrolled .logo-img { height: 44px; filter: invert(1) brightness(0.25); }
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; display: block; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.9); transition: color 0.3s; }
#navbar.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--coral) !important; }
.nav-cta { background: var(--coral) !important; color: var(--white) !important; padding: 0.55rem 1.3rem; border-radius: 50px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--coral-soft) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--white); position: absolute; left: 0; }
#navbar.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { bottom: 4px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.section-eyebrow.light { color: var(--aqua); }
h2 { font-family: var(--font-serif); font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 600; line-height: 1.15; margin-bottom: 1.5rem; color: var(--ink); }
.lead { font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 540px; }
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 1rem 2.25rem; border: none; border-radius: 50px; cursor: pointer; transition: all 0.35s var(--ease); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-soft); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.35); }
.btn-large { padding: 1.15rem 2.75rem; font-size: 0.95rem; }
.text-link { display: inline-block; margin-top: 1.5rem; font-size: 0.95rem; font-weight: 500; color: var(--teal); border-bottom: 2px solid transparent; transition: border-color 0.3s; }
.text-link:hover { border-color: var(--teal); }
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

.scene-hero { position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-image { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,118,110,0.55) 0%, rgba(13,148,136,0.35) 45%, rgba(15,118,110,0.7) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 1.5rem; max-width: 900px; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--aqua); margin-bottom: 1.5rem; opacity: 0; animation: fadeUp 1s 0.4s var(--ease-out) forwards; }
.hero-title { font-family: var(--font-serif); font-size: clamp(3.2rem, 9vw, 6.2rem); font-weight: 600; line-height: 1.05; margin-bottom: 1.5rem; color: var(--white); opacity: 0; animation: fadeUp 1.1s 0.6s var(--ease-out) forwards; }
.hero-title span { color: var(--aqua); font-style: italic; }
.hero-subtitle { font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.7; color: rgba(255,255,255,0.92); margin-bottom: 2.5rem; opacity: 0; animation: fadeUp 1s 0.9s var(--ease-out) forwards; }
.hero-content .btn { opacity: 0; animation: fadeUp 1s 1.15s var(--ease-out) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.scroll-indicator { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); text-align: center; z-index: 2; opacity: 0; animation: fadeUp 1s 1.6s var(--ease-out) forwards; }
.scroll-indicator span { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 0.75rem; }
.scroll-line { width: 2px; height: 48px; background: linear-gradient(to bottom, var(--aqua), transparent); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

.scene-captain { padding: 7rem 0; background: var(--cream); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-image { position: relative; overflow: hidden; border-radius: 16px; max-width: 420px; box-shadow: 0 20px 50px rgba(13,148,136,0.15); }
.split-image img { width: 100%; height: 380px; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-image:hover img { transform: scale(1.04); }
.split-content h2 { margin-bottom: 1.1rem; }
.split-content .lead { margin-bottom: 1.25rem; color: var(--teal-deep); }
.split-content p { color: var(--muted); margin-bottom: 1.25rem; }
.feature-list { margin: 1.5rem 0; }
.feature-list li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; color: var(--ink); font-size: 0.95rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }

.scene-owners { padding: 7rem 0; background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.centered-content { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.centered-content .lead { margin: 0 auto; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.card { background: var(--white); border: 1px solid rgba(13,148,136,0.12); padding: 0; border-radius: 16px; transition: all 0.35s var(--ease); box-shadow: 0 4px 20px rgba(13,148,136,0.06); overflow: hidden; }
.card:hover { border-color: var(--teal); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(13,148,136,0.14); }
.card-number { font-family: var(--font-serif); font-size: 2.4rem; color: var(--teal); opacity: 0.85; margin-bottom: 1rem; }
.card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 0.85rem; color: var(--ink); }
.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }

.scene-journey { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.journey-bg { position: absolute; inset: 0; }
.journey-bg img { width: 100%; height: 100%; object-fit: cover; }
.journey-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(15,118,110,0.88) 0%, rgba(13,148,136,0.55) 55%, rgba(13,148,136,0.25) 100%); }
.journey-content { position: relative; z-index: 2; max-width: 560px; padding: 0 2rem 0 8%; }
.journey-content h2 { color: var(--white); }
.journey-content p { color: rgba(255,255,255,0.9); margin-bottom: 2.25rem; line-height: 1.75; }
.stats { display: flex; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-serif); font-size: 1.55rem; color: var(--aqua); margin-bottom: 0.2rem; }
.stat-label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); }

.scene-training { padding: 7rem 0; background: var(--cream); }
.scene-night { position: relative; min-height: 65vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.night-bg { position: absolute; inset: 0; }
.night-bg img { width: 100%; height: 100%; object-fit: cover; }
.night-overlay { position: absolute; inset: 0; background: rgba(15,118,110,0.7); }
.night-content { position: relative; z-index: 2; text-align: center; max-width: 700px; padding: 0 2rem; }
.night-content blockquote { font-family: var(--font-serif); font-size: clamp(1.55rem, 3.5vw, 2.3rem); font-weight: 500; font-style: italic; line-height: 1.4; color: var(--white); margin-bottom: 1.4rem; }
.night-content cite { font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); font-style: normal; }

.scene-quote { padding: 6rem 0 5rem; background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.quote-intro { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.quote-intro .lead { margin: 0 auto; }
.quote-form { background: var(--white); border: 1px solid rgba(13,148,136,0.15); border-radius: 20px; padding: 2.75rem; max-width: 960px; margin: 0 auto; box-shadow: 0 12px 40px rgba(13,148,136,0.08); }
.form-section { margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(13,148,136,0.1); }
.form-section:last-of-type { border-bottom: none; }
.form-section h3, .form-section legend { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--teal-deep); margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--aqua); display: block; width: 100%; }
.form-section .req { color: var(--coral); }
.form-section small { font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.4rem; }
.field { margin-bottom: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.field input, .field select, .field textarea { width: 100%; background: var(--sand); border: 1.5px solid rgba(13,148,136,0.2); border-radius: 10px; padding: 0.75rem 1rem; font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(13,148,136,0.15); }
.radio-row, .checkbox-grid { display: flex; flex-wrap: wrap; gap: 0.75rem 1.4rem; margin-top: 0.3rem; }
.radio-label, .check-label { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
.radio-label input, .check-label input { width: auto; accent-color: var(--teal); }
.equip-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--teal-deep); margin: 1.5rem 0 1rem; }
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.9rem; }
.section-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.1rem; }
.form-actions { text-align: center; padding-top: 1.25rem; }
.form-footnote { font-size: 0.8rem; color: var(--muted); margin-top: 1.25rem; }
.form-success { text-align: center; max-width: 520px; margin: 0 auto; padding: 3.5rem 2rem; background: var(--white); border: 1px solid rgba(13,148,136,0.2); border-radius: 16px; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.9rem; color: var(--teal-deep); margin-bottom: 1rem; }
.form-success p { color: var(--muted); line-height: 1.7; }
.form-success a { color: var(--coral); font-weight: 500; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.site-footer { background: var(--teal-dark); padding: 4.5rem 0 2rem; color: rgba(255,255,255,0.85); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); margin-bottom: 0.7rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 1rem; }
.footer-brand .phone { font-size: 1.05rem; color: var(--aqua); font-weight: 500; }
.footer-links h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aqua); margin-bottom: 1.1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-links a:hover { color: var(--aqua); }
.footer-links li { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--aqua); }

@media (max-width: 980px) {
    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 2.75rem; direction: ltr; }
    .split-image img { height: 300px; }
    .cards-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .journey-content { padding: 0 2rem; max-width: 100%; }
    .journey-overlay { background: rgba(15,118,110,0.82); }
    .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; padding: 1.5rem 2rem 2rem; gap: 1.1rem; box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
    .nav-links.open { display: flex; }
    .nav-links a { color: var(--ink) !important; }
    .nav-toggle { display: block; }
    .quote-form { padding: 1.75rem 1.25rem; }
    .stats { flex-direction: column; gap: 1.25rem; }
    .footer-bottom { flex-direction: column; gap: 0.65rem; text-align: center; }
    .scene-captain, .scene-owners, .scene-training, .scene-quote { padding: 4.5rem 0; }
}
@media (max-width: 480px) {
    .hero-title { font-size: 2.7rem; }
    .container { padding: 0 1.25rem; }
}

.card-image { width: 100%; height: 180px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.card:hover .card-image img { transform: scale(1.06); }
.card-body { padding: 1.5rem 1.75rem 2rem; }


/* Mobile form fixes */
.quote-form {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .quote-form {
        padding: 1.25rem 1rem !important;
        border-radius: 12px;
        margin: 0 auto;
    }
    .scene-quote {
        padding: 3rem 0 4rem !important;
        overflow: visible !important;
    }
    .scene-quote .container {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow: visible;
    }
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .equip-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .field input, .field select, .field textarea {
        font-size: 16px; /* prevents iOS zoom */
    }
}
@media (max-width: 480px) {
    .equip-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    line-height: 0;
}
.logo-img {
    height: 52px;
    width: auto;
    display: block;
    transition: filter 0.3s, height 0.3s;
}
#navbar.scrolled .logo-img {
    height: 44px;
    filter: invert(1) brightness(0.25); /* dark on cream background */
}
.footer-logo {
    height: 64px;
    width: auto;
    margin-bottom: 1rem;
    display: block;
}
@media (max-width: 768px) {
    .logo-img { height: 42px; }
    #navbar.scrolled .logo-img { height: 36px; }
}
