/* ===== Ivy Charters — shared styles ===== */

:root {
  --navy-deep: #071c30;
  --navy: #0c2b47;
  --navy-light: #12395c;
  --gold: #c9a24b;
  --gold-light: #e3c887;
  --cream: #f7f4ee;
  --white: #ffffff;
  --ink: #17242f;
  --ink-soft: #4a5a68;
  --line: rgba(12, 43, 71, 0.1);
  --shadow: 0 20px 50px rgba(7, 28, 48, 0.15);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-block;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 64px 0; }
.section--navy {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
}
.section--navy h2, .section--navy h3, .section--navy .eyebrow { color: var(--white); }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy p { color: rgba(255,255,255,0.75); }
.section--cream { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(201,162,75,0.45); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-navy {
  background: var(--navy-deep);
  color: var(--white);
}
.btn-navy:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(7,28,48,0.3); }

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 28, 48, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 12px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}
.brand svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a.active,
.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--gold);
}
.nav-links a.nav-cta { margin-left: 6px; padding: 15px 46px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(7,20,33,0.55) 0%, rgba(7,20,33,0.35) 40%, rgba(7,20,33,0.85) 100%),
    url('https://images.unsplash.com/photo-1640238875982-145dfdd1c96d?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.hero .wrap { padding-top: 120px; padding-bottom: 60px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--gold-light);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  max-width: 780px;
  margin-bottom: 22px;
}
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p.lead {
  max-width: 560px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

/* wave divider */
.wave-divider {
  display: block;
  width: 100%;
  height: 70px;
  line-height: 0;
  margin-top: -70px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.wave-divider svg {
  width: 200%;
  height: 70px;
  display: block;
  animation: wave-drift 22s linear infinite;
  will-change: transform;
}
@keyframes wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .wave-divider svg { animation: none; }
}

/* ===== Feature grid ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.fleet-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: 0 12px 32px rgba(7,28,48,0.06);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-light);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* About split */
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-media img { border-radius: var(--radius); }
.about-media .badge {
  position: absolute;
  bottom: -1px; right: -1px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 22px 26px;
  border-top-left-radius: var(--radius);
  text-align: center;
  font-family: 'Playfair Display', serif;
}
.about-media .badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.about-media .badge span { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; font-family: 'Jost', sans-serif;}

.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 500;
}
.checklist li svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

/* ===== Fleet preview / cards ===== */
.boat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(7,28,48,0.08);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.boat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.boat-card .boat-img { position: relative; height: 230px; overflow: hidden; }
.boat-card .boat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.boat-card:hover .boat-img img { transform: scale(1.06); }
.boat-tag {
  position: absolute; top: 16px; left: 16px;
  background: rgba(7,28,48,0.85);
  color: var(--gold-light);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.boat-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.boat-body h3 { font-size: 1.3rem; margin-bottom: 6px; }
.boat-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.boat-meta span { display: flex; align-items: center; gap: 6px; }
.boat-body p { flex: 1; font-size: 0.94rem; }
.boat-body .btn { align-self: flex-start; margin-top: 6px; }

/* Boat page gallery */
.boat-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 110px;
}
.boat-detail:last-child { margin-bottom: 0; }
.boat-detail.reverse { direction: rtl; }
.boat-detail.reverse > * { direction: ltr; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 400px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 12px; }
.gallery-thumbs img { width: 100%; height: 100px; object-fit: cover; display: block; border-radius: 10px; cursor: pointer; opacity: 0.75; transition: opacity .2s; }
.gallery-thumbs img:hover, .gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--gold); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.spec-grid .spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.spec-grid .spec strong { display: block; font-family: 'Playfair Display', serif; color: var(--navy-deep); font-size: 1.2rem; }
.spec-grid .spec span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.amenity-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.amenity-tags span {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy);
}

/* ===== Testimonials ===== */
/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--gold-light), var(--gold));
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 24px 50px rgba(201,162,75,0.3);
}
.cta-band h2, .cta-band p { color: var(--navy-deep); }
.cta-band p { margin: 0; }

/* ===== Map ===== */
.map-section { padding: 0; }
.map-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.map-info {
  background: var(--navy-deep);
  color: var(--white);
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-info h2 { color: var(--white); }
.map-info p { color: rgba(255,255,255,0.75); }
.map-info .info-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.map-info .info-row svg { color: var(--gold-light); flex-shrink: 0; margin-top: 3px; }
.map-info .info-row strong { display: block; color: var(--white); font-size: 0.95rem; }
.map-info .info-row span { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.map-embed iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ===== Forms ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(7,28,48,0.08);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,0.2);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }
.form-success {
  display: none;
  background: #eaf6ee;
  border: 1px solid #bfe6cb;
  color: #1c6b3a;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.form-success.show { display: block; }

.contact-side-card {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  margin-bottom: 24px;
}
.contact-side-card h3 { color: var(--white); font-size: 1.1rem; }
.contact-side-card .info-row { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-side-card .info-row:last-child { margin-bottom: 0; }
.contact-side-card .info-row svg { color: var(--gold-light); flex-shrink: 0; margin-top: 2px; }
.contact-side-card .info-row strong { display: block; font-size: 0.9rem; }
.contact-side-card .info-row span { font-size: 0.85rem; color: rgba(255,255,255,0.65); }

.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--gold); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin-top: 12px; font-size: 0.92rem; }

/* ===== Page hero (interior pages) ===== */
.page-hero {
  position: relative;
  padding: 180px 0 90px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7,20,33,0.75), rgba(7,20,33,0.85)),
    url('https://images.unsplash.com/photo-1507733711014-020e1b6354f7?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
}
.page-hero h1 { color: var(--white); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 40px 0 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-top p { max-width: 400px; margin: 0; text-align: right; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .fleet-grid-2 { grid-template-columns: 1fr; }
  .boat-detail, .boat-detail.reverse { grid-template-columns: 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-links a.nav-cta { margin-left: 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-top p { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 36px; text-align: center; justify-content: center; }
  .contact-card { padding: 26px; }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
}
