/* Waiheke Custom Wine Tours - "Island Light" design in greenstone (the mockup Fi chose).
   Fonts are self-hosted (no Google Fonts link). Mobile-first; wide-screen rules at the bottom. */

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dm-serif-display-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/dm-serif-display-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #1f5e4a;
  --deep: #14392f;
  --sand: #f1efe7;
  --mint: #e2ece6;
  --ink: #1f2a2c;
  --muted: #56625f;
  --line: #e4ded2;
  --white: #fff;
  --radius: 24px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--deep); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 999px;
  background: var(--green); color: var(--white); text-decoration: none;
  font-weight: 500; font-size: 16px; line-height: 1.2; white-space: nowrap;
  border: 1.5px solid var(--green); transition: background-color .15s, border-color .15s;
}
.pill:hover { background: var(--deep); border-color: var(--deep); }
.pill--alt { background: transparent; color: var(--ink); border-color: #cfc8ba; }
.pill--alt:hover { background: var(--sand); border-color: #b9b19f; }
.pill--light { background: var(--white); color: var(--deep); border-color: var(--white); }
.pill--light:hover { background: var(--mint); border-color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 99px;
  background: var(--mint); color: var(--green); font-weight: 500; font-size: 14px;
}

/* Header */
.site-header { position: relative; z-index: 10; background: var(--white); }
.site-header__inner { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.brand {
  display: flex; align-items: center; gap: 12px; margin-right: auto;
  text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.05;
}
.brand__mark { flex: none; width: 42px; height: 42px; }
.site-nav { display: none; }
.site-header__book { display: none; }

/* Phone menu: a <details> element, works without JavaScript */
.menu { position: relative; }
.menu__button {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px; border: 1.5px solid var(--line);
}
.menu__button::-webkit-details-marker { display: none; }
.menu__bars, .menu__bars::before, .menu__bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative;
}
.menu__bars::before { position: absolute; top: -6px; }
.menu__bars::after { position: absolute; top: 6px; }
.menu[open] .menu__bars { background: transparent; }
.menu[open] .menu__bars::before { top: 0; transform: rotate(45deg); }
.menu[open] .menu__bars::after { top: 0; transform: rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 20px 40px rgba(31, 42, 44, .15); padding: 10px;
}
.menu__panel ul { list-style: none; }
.menu__panel a:not(.pill) {
  display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-weight: 500;
}
.menu__panel a:not(.pill):hover { background: var(--sand); }
.menu__panel .pill { width: 100%; margin-top: 8px; }

/* Hero */
.hero__inner { display: grid; gap: 40px; padding: 24px 0 64px; }
.hero h1 { font-size: clamp(40px, 9vw, 68px); margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--green); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.chips li::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  border-radius: 50%; background: var(--green); vertical-align: 1px;
}
.lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }

.collage { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; width: 100%; margin-inline: auto; }
.collage picture { display: contents; }
.collage img { position: absolute; object-fit: cover; border-radius: 22px; box-shadow: 0 20px 50px rgba(31, 42, 44, .18); }
.collage__a { top: 0; left: 0; width: 82%; height: 86%; }
.collage__b { right: 0; bottom: 0; width: 48%; height: 44%; border: 8px solid var(--white); }
.collage__badge {
  position: absolute; left: 8px; bottom: 32px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; background: var(--white); color: var(--muted);
  box-shadow: 0 12px 30px rgba(31, 42, 44, .15); font-size: 14px; line-height: 1.3; text-decoration: none;
}
.collage__badge b { display: block; color: var(--ink); font-size: 15px; }
/* Five green dots, drawn in CSS (no outside logo) */
.stars { flex: none; width: 70px; height: 12px; background: radial-gradient(circle, #00aa6c 5px, transparent 5.5px) 0 0 / 14px 12px repeat-x; }

/* Tours */
.tours { background: var(--sand); padding: 72px 0; border-radius: 36px 36px 0 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(34px, 6vw, 52px); }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 17px; }
.cards { display: grid; gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); padding: 12px; }
.card__photo { position: relative; }
.card__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.card__tag {
  position: absolute; top: 12px; left: 12px; padding: 6px 11px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); color: var(--deep);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 12px 10px; }
.card h3 { font-size: 28px; margin-bottom: 14px; }
.ticks { list-style: none; margin-bottom: 18px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.ticks li { position: relative; padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 14px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.fine { font-size: 14px; color: var(--muted); font-style: italic; margin: -4px 0 18px; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.price { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1; }
.price__from { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.price small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.card__links { display: flex; align-items: center; gap: 16px; }
.card__links a:not(.pill) { font-weight: 500; text-underline-offset: 4px; }

/* How it works */
.steps { padding: 80px 0; }
.steps h2 { font-size: clamp(32px, 5vw, 46px); text-align: center; margin-bottom: 40px; }
.steps ol { list-style: none; display: grid; gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 28px; border: 1.5px solid var(--line); border-radius: 22px; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--mint); color: var(--green); font-weight: 700;
}
.steps b { display: block; font-size: 19px; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Wineries mosaic */
.mosaic { padding-bottom: 80px; }
.mosaic__grid { display: grid; gap: 16px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; height: 260px; }
.mosaic figure picture, .mosaic figure img { width: 100%; height: 100%; }
.mosaic figure img { object-fit: cover; }
.mosaic figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 13px; border-radius: 99px;
  background: rgba(255, 255, 255, .94); font-size: 14px; font-weight: 500;
}
.mosaic__intro {
  display: flex; flex-direction: column; justify-content: center; padding: 34px;
  border-radius: var(--radius); background: var(--deep); color: var(--white);
}
.mosaic__intro h2 { font-size: 36px; margin-bottom: 12px; }
.mosaic__intro p { opacity: .9; margin-bottom: 22px; }
.mosaic__intro .pill { align-self: flex-start; }

/* Hosts */
.hosts { padding: 0 0 80px; }
.hosts__inner { display: grid; gap: 32px; align-items: center; }
.hosts__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hosts h2 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.hosts__text p:not(.eyebrow) { color: var(--muted); }

/* Contact */
.contact { padding-bottom: 80px; }
.contact__box {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
  padding: 34px; border-radius: 30px; background: var(--sand);
}
.contact h2 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.contact p { margin: 0; color: var(--muted); }
.contact a:not(.pill) { color: var(--ink); overflow-wrap: anywhere; }

/* Footer */
.site-footer { color: var(--muted); font-size: 15px; line-height: 1.8; }
.site-footer__cols { display: grid; gap: 28px; padding: 50px 0 30px; border-top: 1px solid var(--line); }
.site-footer__name, .site-footer__head { margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.site-footer__name { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.site-footer__mark { flex: none; width: 36px; height: 36px; }
.site-footer ul { list-style: none; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-bottom: 30px; font-size: 14px; }
.site-footer__small p { margin: 0; }

/* Simple pages (404) */
.section { padding: 60px 0 80px; }
.wrap--narrow { max-width: 720px; }

/* Wider screens */
@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .steps ol { grid-template-columns: repeat(3, 1fr); }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) {
  .site-header__inner { gap: 28px; padding: 22px 0; }
  .brand { font-size: 21px; margin-right: 0; }
  .brand__mark { width: 50px; height: 50px; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { list-style: none; display: flex; gap: 28px; }
  .site-nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 16px; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
  .site-header__book { display: inline-flex; }
  .menu { display: none; }

  .hero__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0 96px; }
  .collage__badge { left: -18px; bottom: 40px; }
  .tours { padding: 100px 0; }
  .steps { padding: 100px 0; }
  .mosaic__grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: 260px 260px; gap: 18px; }
  .mosaic figure { height: auto; }
  .mosaic__big { grid-row: 1 / 3; }
  .mosaic__intro { grid-column: 2; grid-row: 1; padding: 38px; }
  .hosts__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .contact__box { padding: 56px; }
  .site-footer__cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
}
