/* ZikkZakk Sailing — stylesheet */

:root {
  --navy: #0e3357;
  --navy-deep: #0a2440;
  --cream: #faf7f1;
  --cream-alt: #f1ece1;
  --ink: #1c2530;
  --ink-soft: #566072;
  --line: #e2ddd0;
  --wood: #a9764d;
  --max-w: 1180px;
  --radius: 2px;
  --radius-img: 8px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* Anchor targets clear the sticky header */
main [id] { scroll-margin-top: 88px; }

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.human-check:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero a:focus-visible { outline-color: #fff; }

/* Scroll-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

/* Fraunces' optical-size axis auto-scales with font-size — at the large end
   it draws considerably more flamboyant swashes (most visible on capital J).
   h1/h2 are big enough to hit that extreme, so pin a calmer, mid-range
   optical size for them instead of letting it run all the way up. */
h1, h2 {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 40;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 500; line-height: 1.06; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }

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

a { color: inherit; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--wood);
  margin: 0 0 0.9em;
}

.btn {
  display: inline-block;
  padding: 0.85em 1.7em;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--navy);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-small { padding: 0.55em 1.2em; font-size: 0.85rem; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-deep);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-name em {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }

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

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  animation: heroPan 26s ease-in-out infinite alternate;
}
@keyframes heroPan {
  from { transform: scale(1.05); }
  to   { transform: scale(1.13); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(6,10,18,0.72) 0%, rgba(6,10,18,0.42) 32%, rgba(6,10,18,0.08) 62%, rgba(6,10,18,0) 78%),
    linear-gradient(180deg, rgba(10,20,35,0.1) 0%, rgba(8,16,28,0.28) 55%, rgba(6,12,22,0.75) 100%);
}
.hero-content {
  position: relative;
  color: #fff;
  padding-top: 96px;
  padding-bottom: 96px;
  max-width: 720px;
}
.hero-content .eyebrow {
  color: #e2d3b4;
  text-shadow: 0 1px 12px rgba(6,10,18,0.5);
}
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 30px rgba(6,10,18,0.45);
}
.hero-lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 46ch;
  text-shadow: 0 1px 18px rgba(6,10,18,0.5);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 1.6em;
  flex-wrap: wrap;
}

/* Stats */
.stats {
  background: var(--navy);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 28px;
}
.stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.stat-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.7rem;
  color: #fff;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.stats-note {
  text-align: center;
  padding: 4px 28px 36px;
}
.stats-note p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-lede { font-size: 1.18rem; line-height: 1.6; }

.boat-layout-block {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}
.boat-layout-img {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius-img);
}
.spec-list {
  margin: 0;
  display: grid;
  gap: 12px;
}
.spec-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.spec-list dt { color: var(--ink-soft); font-size: 0.92rem; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; color: var(--navy-deep); }

.boat-copy { max-width: 78ch; font-size: 1.02rem; margin-bottom: 40px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-img);
}
.interior-grid img { height: 260px; }

/* Main gallery — masonry, natural aspect ratios, click to enlarge */
#gallery .gallery-grid {
  display: block;
  column-count: 3;
  column-gap: 16px;
}
#gallery .gallery-grid img {
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  break-inside: avoid;
  cursor: zoom-in;
}

.grounds-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.grounds-img img {
  border-radius: var(--radius-img);
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 620px;
}
.grounds-copy h3 { margin-top: 1.3em; }
.grounds-copy h3:first-child { margin-top: 0; }

.contact-section { text-align: center; }
.contact-block { max-width: 560px; }
.contact-block .section-lede { margin-left: auto; margin-right: auto; }

/* Closing CTA on secondary pages (e.g. the-boat.html) */
.page-close { max-width: 560px; text-align: center; }
.page-close .section-lede { max-width: 56ch; margin: 0 auto 1.3em; }
.page-close .contact-note { margin-top: 1.4em; }
.contact-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0.5em auto 0;
}
.contact-actions { margin: 1.6em 0 0; }

/* Leave-a-review form */
.review-form-block {
  max-width: 640px;
  margin: 56px auto 0;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.review-form-block h3 { margin-bottom: 0.3em; }
.review-form-block > p { max-width: 60ch; }

/* Trial: form boxed as a card, intro centred, fields stay left-aligned */
.review-form-card {
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  padding: 36px 34px 30px;
  text-align: center;
}
.review-form-card .eyebrow { margin-bottom: 0.5em; }
.review-form-card h3 { margin-bottom: 0.3em; }
.review-form-card > p { max-width: 46ch; margin-left: auto; margin-right: auto; }
.review-form-card .review-form { text-align: left; }

.review-form { margin-top: 22px; }
.review-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.review-form label .opt {
  font-weight: 400;
  color: var(--ink-soft);
}
.review-form input[type="text"],
.review-form input[type="email"],
.review-form textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  resize: vertical;
}
.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(14,51,87,0.12);
}
.review-form textarea { margin-bottom: 18px; }
.review-form .hidden { position: absolute; left: -9999px; }
.review-form button[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.ok { color: var(--green, #2f6d3e); }
.form-status.err { color: #a3402c; }

/* Equipment */
.equipment-block {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.equipment-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wood);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 28px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.equipment-col h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin: 0 0 0.7em;
}
.equipment-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.equipment-col ul { gap: 11px; }
.equipment-col li {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Reviews carousel */
.reviews-carousel {
  max-width: 760px;
  margin: 0 auto;
}
.rc-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rc-viewport {
  flex: 1;
  overflow: hidden;
}
.rc-track {
  display: flex;
  transition: transform 0.5s ease;
}
.rc-slide {
  flex: 0 0 100%;
  width: 100%;
}
.rc-arrow {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.rc-arrow:hover { border-color: var(--navy); }
.rc-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.rc-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.rc-dot.active { background: var(--wood); }

.review-card {
  margin: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 34px 28px;
  position: relative;
}
.review-card::before {
  content: "\201C";
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--wood);
  opacity: 0.55;
  margin-bottom: 4px;
}
.review-card p {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0 0 1.2em;
}
.review-card footer {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood);
  font-weight: 600;
}

/* Good to know strip */
.good-to-know {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.good-to-know-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: center;
}
.gtk-item {
  font-size: 0.85rem;
  color: var(--ink-soft);
  position: relative;
  padding-left: 16px;
}
.gtk-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wood);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 44px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  color: #fff;
}
.footer-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-self: end;
}
.footer-nav a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.86rem;
}
.footer-nav a:hover { color: #fff; }
.footer-meta {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  counter-reset: step;
}
.step-num {
  counter-increment: step;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.step-num::before {
  content: counter(step);
  width: 36px;
  height: 36px;
  border: 1px solid var(--wood);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  color: var(--wood);
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.35em; }
.step p { font-size: 0.96rem; margin-bottom: 0.8em; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,14,24,0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vw;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: var(--radius-img);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  line-height: 1;
}
.lightbox button:hover { color: #fff; }
.lb-close { top: 18px; right: 24px; font-size: 2.2rem; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.6rem;
  padding: 10px 18px;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* Responsive */
@media (max-width: 860px) {
  .boat-layout-block, .grounds-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .equipment-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 28px; }
  .rc-arrow { width: 34px; height: 34px; font-size: 1.25rem; }
  .rc-row { gap: 10px; }
  .good-to-know-inner { justify-content: flex-start; text-align: left; }
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  #gallery .gallery-grid { column-count: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 28px 24px;
    gap: 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a.btn { margin-top: 6px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 180px; }
  #gallery .gallery-grid { column-count: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
  .stats-note { padding-bottom: 28px; }
  .hero-content { padding-top: 96px; padding-bottom: 64px; }
  .equipment-grid { grid-template-columns: 1fr; gap: 28px; }
  .boat-layout-img { padding: 16px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .wrap { padding: 0 20px; }
}
