/* ============================================================
   ELT Yachts — design tokens
   ============================================================ */
:root {
  --navy: #13293D;
  --navy-ink: #17222C;
  --mist: #F6F4EF;
  --stone: #EAE3D6;
  --slate: #7C93A0;
  --brass: #A6835B;
  --white: #FFFFFF;
  --line: rgba(19, 41, 61, 0.14);
  --line-on-navy: rgba(246, 244, 239, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --radius-s: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-ink);
  background: var(--mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 460; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--font-body); }

p { margin: 0 0 1em; max-width: 62ch; }

.lede {
  font-size: 1.1rem;
  color: #3E4C57;
  max-width: 48ch;
}

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

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.bg-navy { background: var(--navy); color: var(--mist); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(246, 244, 239, 0.82); }
.bg-stone { background: var(--stone); }
.bg-white { background: var(--white); }

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 0.9em;
  display: block;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
}

.brand-mark {
  height: 26px;
  width: auto;
  flex: none;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.4rem);
  font-size: 0.94rem;
}

.nav-links a {
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--brass);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--navy);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--mist);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 2.2rem var(--gutter);
    font-size: 1.15rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-top: 1px solid var(--line);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

.hero-copy .eyebrow { color: var(--slate); }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-s);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: #0D1E2D; }

.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.bg-navy .btn-ghost {
  border-color: var(--line-on-navy);
  color: var(--white);
}
.bg-navy .btn-ghost:hover { background: var(--white); color: var(--navy); }

.btn-brass {
  background: var(--brass);
  color: var(--navy);
  border-color: var(--brass);
}
.btn-brass:hover { background: #8F7048; border-color: #8F7048; color: var(--white); }

.btn { transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* ============================================================
   Placeholder image blocks
   ============================================================ */
.ph-image {
  position: relative;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 3);
  background:
    repeating-linear-gradient(135deg, rgba(19,41,61,0.06) 0 2px, transparent 2px 14px),
    var(--stone);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s ease;
}

.split-media:hover .ph-image,
.hero-media:hover .ph-image,
.hero-media:hover .hero-photo {
  transform: scale(1.02);
}

.hero-media { position: relative; }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.5s ease;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-image .ph-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--mist);
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.6rem 0.8rem;
  max-width: 100%;
}

.hero-media .ph-label {
  bottom: auto;
  top: 0;
}

.ph-image .ph-label strong {
  display: block;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* ============================================================
   Credentials strip
   ============================================================ */
/* ============================================================
   Service pillars
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 2.5rem;
}

.service-row {
  padding: 2.4rem 0 2.4rem 2.2rem;
  border-left: 1px solid var(--line);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.2rem;
  transition: background 0.2s ease;
}

.service-row:first-child { border-left: none; padding-left: 0; }

.service-row:hover { background: rgba(166, 131, 91, 0.07); }
.service-row:hover .service-index { color: var(--brass); transform: translateX(2px); }

.service-index {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--slate);
  font-size: 2.6rem;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.service-row h3 { margin-bottom: 0.5rem; }
.service-row p { margin-bottom: 0.8rem; font-size: 0.96rem; }
.service-row a { font-size: 0.88rem; color: var(--navy); border-bottom: 1px solid var(--brass); }

@media (max-width: 760px) {
  .services-grid { grid-template-columns: 1fr; border-bottom: none; }
  .service-row {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
  .service-row:first-child { border-top: none; padding-top: 0; }
}

/* ============================================================
   Two-column content block
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.05fr 0.95fr; }
.split.reverse .split-media { order: 2; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ============================================================
   Testimonial
   ============================================================ */
.testimonial {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2.2rem, 5vw, 3.2rem);
  text-align: left;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -0.4rem;
  left: -0.15rem;
  font-family: var(--font-display);
  font-size: 6.5rem;
  line-height: 1;
  color: var(--brass);
  opacity: 0.55;
}
.testimonial blockquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 460;
  color: var(--navy);
  margin: 0 0 1.2rem;
  max-width: 58ch;
  font-style: italic;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--slate);
}
.testimonial .flag {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-s);
}
.bg-navy .testimonial { border-color: var(--line-on-navy); }
.bg-navy .testimonial blockquote { color: var(--white); }
.bg-navy .testimonial cite { color: #A9BAC4; }

/* ============================================================
   Team / credentials cards (About)
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-top: 2.5rem;
}
.person-card .ph-image { --ar: 1 / 1; margin-bottom: 1rem; }
.person-card h3 { margin-bottom: 0.15rem; }
.person-card .role { color: var(--slate); font-size: 0.88rem; margin-bottom: 0.6rem; }

@media (max-width: 860px) {
  .people-grid { grid-template-columns: 1fr; }
}

.cert-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.cert-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.cert-list li span:first-child { color: var(--navy); font-weight: 600; }
.cert-list li span:last-child { color: var(--slate); text-align: right; }

/* ============================================================
   FAQ (About / Services support content)
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
}
.faq-item h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.faq-item p { font-size: 0.95rem; margin-bottom: 0; color: #3E4C57; }

/* ============================================================
   Contact
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.3rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  color: var(--navy-ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}

.contact-meta { margin-top: 2rem; }
.contact-meta dt {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 1.2rem;
}
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd { margin: 0.2rem 0 0; font-size: 1rem; }

.flag-note {
  display: block;
  font-size: 0.78rem;
  color: var(--brass);
  margin-top: 0.3rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(246,244,239,0.78);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.4rem;
  padding-bottom: 2.2rem;
}
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.footer-logo {
  height: 22px;
  width: auto;
  margin-bottom: 0.9rem;
}
.footer-grid p, .footer-grid a { font-size: 0.9rem; }
.footer-grid a { display: block; margin-bottom: 0.4rem; color: rgba(246,244,239,0.78); }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line-on-navy);
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: rgba(246,244,239,0.55);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Utility
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   Floating stat card — overlaps hero/split imagery for a
   deliberate, considered focal point rather than a flat stat strip
   ============================================================ */
.stat-card {
  position: absolute;
  left: -1.2rem;
  bottom: -1.4rem;
  background: var(--navy);
  color: var(--white);
  display: flex;
  gap: 1.6rem;
  padding: 1.3rem 1.6rem;
  box-shadow: 0 18px 40px rgba(19, 41, 61, 0.24);
  max-width: calc(100% - 1rem);
}
.stat-card .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 460;
  color: var(--white);
}
.stat-card .stat span {
  font-size: 0.7rem;
  color: rgba(246, 244, 239, 0.72);
}

@media (max-width: 640px) {
  .stat-card {
    position: static;
    margin-top: 1rem;
    box-shadow: none;
    flex-wrap: wrap;
  }
}

/* ============================================================
   Big typographic statement — one deliberate large-type moment
   per page, not decoration repeated everywhere
   ============================================================ */
.statement {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.18;
  color: var(--navy);
  max-width: 22ch;
}
.bg-navy .statement { color: var(--white); }

/* ============================================================
   Sticky header — subtle shadow once the page has scrolled
   ============================================================ */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(19, 41, 61, 0.08); }

/* ============================================================
   Motion — one orchestrated hero entrance + scroll reveals.
   Scroll reveals are toggled by IntersectionObserver in main.js;
   both are fully disabled under prefers-reduced-motion below.
   ============================================================ */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-copy .eyebrow  { animation: heroIn 0.6s ease both; }
.hero-copy h1         { animation: heroIn 0.6s ease 0.08s both; }
.hero-copy .lede       { animation: heroIn 0.6s ease 0.16s both; }
.hero-actions          { animation: heroIn 0.6s ease 0.24s both; }
.hero-media            { animation: heroIn 0.7s ease 0.2s both; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy .lede,
  .hero-actions, .hero-media {
    animation: none !important;
  }
  .split-media:hover .ph-image, .hero-media:hover .ph-image, .hero-media:hover .hero-photo { transform: none; }
}
