/* ==========================================================================
   Gem of Vuosaari — shared stylesheet
   Design language: harbour chart. Deep navy "night water" + warm birch
   "paper", brass accent for warmth (sauna), contour-line signature motif
   referencing nautical depth charts of the Vuosaari archipelago.
   ========================================================================== */

:root {
  /* --- Color tokens --- */
  --ink: #0F2029;         /* deep harbour navy — hero / footer bg */
  --ink-2: #17313D;       /* lighter navy — panels on ink */
  --paper: #F1ECDE;       /* warm birch/linen — body background */
  --paper-2: #E7DFC8;     /* deeper linen — cards on paper */
  --sea: #2C6E7F;         /* muted teal — links, secondary accent */
  --brass: #B9853A;       /* warm brass — primary accent, CTAs */
  --brass-dark: #8F6529;  /* brass hover/active */
  --granite: #40484D;     /* body text on paper */
  --foam: #FBF9F2;        /* near-white — text on ink, card fill */
  --line: rgba(15, 32, 41, 0.14);
  --line-dark: rgba(241, 236, 222, 0.16);

  /* --- Type --- */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 3px;
  --max-width: 1120px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--granite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sea); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--granite); max-width: 56ch; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #cf9a4b; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-dark); color: var(--foam); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--foam); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15, 32, 41, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  color: var(--foam);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand em { color: var(--brass); font-style: normal; }
.nav-links {
  display: flex; align-items: center; gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--foam); text-decoration: none; font-size: 0.92rem;
  opacity: 0.85; border-bottom: 1px solid transparent;
}
.nav-links a:hover { opacity: 1; border-color: var(--brass); }
.lang-switch { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 0.78rem; }
.lang-switch a {
  color: var(--foam); opacity: 0.6; text-decoration: none;
  padding: 3px 6px; border: 1px solid var(--line-dark); border-radius: 2px;
}
.lang-switch a[aria-current="true"] { opacity: 1; border-color: var(--brass); color: var(--brass); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-block; background: none; border: 1px solid var(--line-dark);
    color: var(--foam); padding: 6px 10px; border-radius: 3px; font-family: var(--font-mono);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: radial-gradient(120% 140% at 15% -10%, #1c3c4a 0%, var(--ink) 55%);
  color: var(--foam);
  padding: 88px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-bottom: 64px;
}
.hero h1 { color: var(--foam); }
.hero h1 em { color: var(--brass); font-style: italic; }
.hero .lede { color: rgba(251,249,242,0.75); }
.hero-coords { margin-bottom: 18px; }

.porthole {
  aspect-ratio: 1/1; border-radius: 50%;
  border: 10px solid var(--ink-2);
  outline: 2px solid rgba(185,133,58,0.5);
  outline-offset: 8px;
  background: linear-gradient(160deg, #234a59, #0d1f27);
  display: flex; align-items: center; justify-content: center;
  color: rgba(251,249,242,0.55);
  font-family: var(--font-mono); font-size: 0.8rem; text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.porthole span { max-width: 60%; }
.porthole-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.contour-divider { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Highlights
   ========================================================================== */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 40px;
}
.highlight-card {
  background: var(--paper); padding: 26px 22px;
}
.highlight-card--promo {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 18px;
}
.highlight-card--promo .icon { margin-bottom: 0; flex-shrink: 0; }
@media (max-width: 620px) {
  .highlight-card--promo { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.highlight-card .icon { color: var(--brass); margin-bottom: 14px; }
.highlight-card h3 { margin-bottom: 6px; }
.highlight-card p { margin: 0; font-size: 0.93rem; color: var(--granite); }

@media (max-width: 860px) {
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .porthole { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .highlights-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Gallery (placeholders)
   ========================================================================== */
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px;
}
.gallery-grid .g-tall { grid-row: span 2; }
.photo-slot {
  background: linear-gradient(135deg, var(--paper-2), #d9d0b4);
  border: 1px dashed rgba(15,32,41,0.28);
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  min-height: 140px; height: 100%;
  padding: 10px;
}
.photo-slot span {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--granite);
  background: rgba(241,236,222,0.85); padding: 3px 7px; border-radius: 2px;
}
.gallery-photo {
  width: 100%; height: 100%; min-height: 140px;
  object-fit: cover; border-radius: var(--radius); display: block;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-tall { grid-row: span 1; }
}

/* ==========================================================================
   Booking
   ========================================================================== */
.booking-panel {
  background: var(--ink); color: var(--foam);
  border-radius: 4px; padding: 44px; position: relative; overflow: hidden;
}
.booking-panel h2 { color: var(--foam); }
.booking-panel .lede { color: rgba(251,249,242,0.72); }
#booking-widget-mount {
  margin-top: 28px; background: var(--foam); border-radius: 3px; min-height: 60px;
  padding: 18px; color: var(--ink); font-family: var(--font-mono); font-size: 0.85rem;
}
.booking-note {
  margin-top: 16px; font-size: 0.8rem; color: rgba(251,249,242,0.55); max-width: 60ch;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); gap: 20px;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--brass); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding-bottom: 20px; margin: 0; color: var(--granite); max-width: 68ch; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 36px;
}
.contact-card {
  background: var(--paper); padding: 28px 24px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; transition: background 0.15s ease;
}
.contact-card:hover { background: var(--paper-2); }
.contact-card .eyebrow { color: var(--sea); }
.contact-card strong { font-family: var(--font-display); font-size: 1.15rem; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink); color: rgba(251,249,242,0.7);
  padding: 56px 0 28px; font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px; border-bottom: 1px solid var(--line-dark);
}
.site-footer h4 {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.75rem; color: var(--brass); margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(251,249,242,0.7); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 20px; font-size: 0.78rem; color: rgba(251,249,242,0.45);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Policy pages (privacy / house rules / terms)
   ========================================================================== */
.policy-page { background: var(--paper); }
.policy-hero {
  background: var(--ink); color: var(--foam); padding: 56px 0 40px;
}
.policy-hero h1 { color: var(--foam); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.policy-body { padding: 48px 0 80px; max-width: 74ch; margin: 0 auto; }
.policy-body h2 { margin-top: 2em; font-size: 1.3rem; }
.policy-body h3 { margin-top: 1.4em; font-size: 1.05rem; }
.policy-body ul { padding-left: 1.2em; }
.placeholder {
  background: #fff3d6; border: 1px solid #e0c07d; color: #6b4d10;
  padding: 2px 6px; border-radius: 2px; font-family: var(--font-mono); font-size: 0.85em;
}
.back-link { display: inline-block; margin-bottom: 20px; font-size: 0.9rem; }
