/* Helsinki Yacht Charter – shared stylesheet
   Palette: deep navy, white, sand and brass. No external dependencies apart from
   one Google Font (Cormorant Garamond, display=swap) for headings. */

:root {
  --navy-900: #061427;
  --navy-800: #0a1f3c;
  --navy-700: #12305a;
  --sea-600: #1d4f73;
  --sand-50: #fbf8f2;
  --sand-100: #f4eee2;
  --sand-200: #e9dfcc;
  --brass-300: #dcc08c;  /* on navy backgrounds */
  --brass-500: #b08d57;  /* decorative only */
  --brass-700: #7d5f2c;  /* text on light backgrounds (AA) */
  --ink: #142033;
  --ink-soft: #3e4a5c;
  --white: #ffffff;
  --line: #d9d0bf;
  --focus: #f2b632;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(6, 20, 39, .10);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand-50);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea-600); text-underline-offset: .18em; }
a:hover { color: var(--navy-800); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--navy-800); letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin: 0 0 .6em; }
h3 { font-size: 1.45rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 28px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy-800); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-900); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(220, 192, 140, .25); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand:hover { color: var(--brass-300); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-900); border-bottom: 1px solid rgba(220,192,140,.25); padding: 8px 16px 20px; }
.no-js .site-nav { display: block; position: static; padding: 0 0 12px; }
.no-js .nav-toggle { display: none; }
.no-js .header-inner { flex-wrap: wrap; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; color: var(--white); text-decoration: none; padding: 10px 4px; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--brass-300); }
.nav-extra { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.lang-switch { display: inline-flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch a { display: inline-block; color: var(--white); text-decoration: none; font-size: .85rem; font-weight: 600; letter-spacing: .08em; padding: 6px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; }
.lang-switch a[aria-current="true"] { background: var(--brass-300); color: var(--navy-900); border-color: var(--brass-300); }
.lang-switch a:hover { border-color: var(--brass-300); }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open, .no-js .site-nav { display: flex; align-items: center; gap: 18px; position: static; background: none; border: 0; padding: 0; margin-left: auto; }
  .nav-list { display: flex; gap: 2px; }
  .nav-list a { border: 0; padding: 8px 9px; font-size: .95rem; }
  .nav-extra { margin: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--brass-300); color: var(--navy-900); }
.btn-primary:hover { background: #e8d0a4; color: var(--navy-900); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--brass-300); color: var(--brass-300); }
.btn-dark { background: var(--navy-800); color: var(--white); }
.btn-dark:hover { background: var(--navy-700); color: var(--white); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white); overflow: hidden;
  background-color: var(--navy-800);
  /* To use a photo later: add style="--photo:url('/images/<file>.webp')" on the section */
  background-image:
    linear-gradient(180deg, rgba(6,20,39,.55) 0%, rgba(6,20,39,.80) 100%),
    var(--photo, linear-gradient(160deg, #0a1f3c 0%, #12305a 45%, #1d4f73 75%, #b08d57 140%));
  background-size: cover; background-position: center;
  padding: 56px 0 72px;
}
.hero::after {
  /* decorative horizon + waves */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background:
    radial-gradient(120% 60px at 50% 100%, rgba(220,192,140,.18), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 10px, rgba(255,255,255,.035) 10px 11px);
}
/* Hero with a real photo: <img class="hero-bg"> sits behind a dark overlay */
.hero.has-photo { background-image: none; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,20,39,.45) 0%, rgba(6,20,39,.62) 55%, rgba(6,20,39,.85) 100%);
}
@media (min-width: 900px) {
  /* keep the text side dark, let the photo show on the right */
  .hero.has-photo { background-color: #061427; }
  .hero-bg { left: 30%; width: 70%; }
  .hero.has-photo::before {
    background:
      linear-gradient(90deg, #061427 0%, #061427 30%, rgba(6,20,39,.72) 42%, rgba(6,20,39,.18) 70%, rgba(6,20,39,.05) 100%),
      linear-gradient(180deg, rgba(6,20,39,0) 65%, rgba(6,20,39,.5) 100%);
  }
}
.hero.has-photo::after { z-index: 1; }
.hero.has-photo > .container { position: relative; z-index: 2; }
.hero.has-photo .lead { text-shadow: 0 1px 12px rgba(6,20,39,.45); }
.hero-home { padding: 80px 0 104px; }
@media (min-width: 900px) { .hero { padding: 84px 0 96px; } .hero-home { padding: 120px 0 140px; } }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero-home h1 { max-width: 20ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--brass-300); margin: 0 0 14px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 62ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .sun {
  position: absolute; right: -60px; top: 40px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,192,140,.35), rgba(220,192,140,0) 65%); pointer-events: none;
}
@media (min-width: 900px) { .hero .sun { right: 6%; top: 50px; width: 380px; height: 380px; } }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; }
.breadcrumb li { color: rgba(255,255,255,.8); }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--brass-300); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: var(--brass-300); }

/* ---------- Facts block ---------- */
.facts-wrap { margin-top: -44px; position: relative; z-index: 2; }
.facts {
  display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden;
}
.facts > div { padding: 16px 20px; border-bottom: 1px solid var(--sand-200); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-700); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 600; color: var(--navy-800); line-height: 1.4; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } .facts > div { border-right: 1px solid var(--sand-200); } }
@media (min-width: 1000px) {
  .facts { grid-template-columns: repeat(5, 1fr); }
  .facts > div { border-bottom: 0; }
  .facts > div:last-child { border-right: 0; }
}
.price-note { font-size: .88rem; color: var(--ink-soft); margin: 10px 4px 0; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand-100); }
.section-dark { background: var(--navy-800); color: rgba(255,255,255,.92); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--brass-300); }
.section-intro { max-width: 68ch; color: var(--ink-soft); }
.prose { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* Decorative photo placeholder (CSS only, never a broken image).
   To show a real photo: set style="--photo:url('/images/<file>.webp')" on .media */
.media {
  position: relative; border-radius: var(--radius); min-height: 260px; overflow: hidden;
  background-color: var(--navy-700);
  background-image: var(--photo, linear-gradient(170deg, #12305a 0%, #1d4f73 55%, #dcc08c 140%));
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}
.media::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 2px, transparent 2px 12px);
}
.media::after {
  content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; right: 14%; top: 18%;
  background: radial-gradient(circle, rgba(244,238,226,.55), rgba(244,238,226,0) 70%);
}
@media (min-width: 900px) { .media { min-height: 380px; } }
/* Real photo in a .media slot */
img.media { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; min-height: 0; object-fit: cover; }
@media (min-width: 900px) { img.media { aspect-ratio: 4 / 3; } }
img.media[width="1066"] { aspect-ratio: 4 / 5; } /* portrait photos */

/* ---------- Photo gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure { margin: 0; }
.gallery-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }


/* ---------- Cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px;
  display: flex; flex-direction: column; box-shadow: 0 2px 0 rgba(6,20,39,.03); position: relative;
}
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 3px; background: linear-gradient(90deg, var(--brass-500), transparent); border-radius: 0 0 3px 3px; }
.card h3 { font-size: 1.5rem; }
.card h3 a { color: var(--navy-800); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card:hover { border-color: var(--brass-500); }
.card-meta { font-size: .9rem; color: var(--ink-soft); margin-bottom: 8px; }
.card-price { font-weight: 700; color: var(--brass-700); margin-top: auto; padding-top: 8px; }
.card p { font-size: .98rem; }

/* tiers (dinner) */
.tiers { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.tier .price { font-family: var(--font-display); font-size: 2rem; color: var(--navy-800); font-weight: 600; margin: 4px 0 8px; }
.tier ul { padding-left: 1.1em; margin: 0; }

/* spec table */
.spec { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--sand-200); vertical-align: top; }
.spec th { width: 42%; font-weight: 600; color: var(--ink-soft); background: var(--sand-100); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: rgba(255,255,255,.06); border: 1px solid rgba(220,192,140,.3); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brass-300); color: var(--navy-900); font-weight: 700; margin-bottom: 10px; }
.steps h3 { font-size: 1.3rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-top: 20px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--navy-800); position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--brass-700); font-weight: 400; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary h3 { display: inline; font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; color: inherit; }
.faq-answer { padding: 0 20px 16px; color: var(--ink-soft); }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 40px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-800), var(--sea-600)); color: var(--white); padding: 56px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; }
.cta-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.4fr auto; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Form ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .form-card { padding: 34px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy-800); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #9aa3b0; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline: 3px solid var(--focus); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #e7f4ea; color: #1d4d2b; border: 1px solid #a9d3b4; }
.form-status.info { background: var(--sand-100); color: var(--ink); border: 1px solid var(--line); }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-700); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.82); padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--brass-300); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-title { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul + .footer-title { margin-top: 24px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: rgba(255,255,255,.7); }

/* 404 */
.notfound { min-height: 50vh; }

/* Small phones: keep header on one line */
@media (max-width: 420px) {
  .brand { font-size: 1.12rem; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .nav-toggle { padding: 8px 10px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
