/* A Barossa Fine Wine Tour - shared stylesheet.
   Mobile-first. One file for every page. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1; licences in ../fonts/) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FAF7F2;
  --paper-deep: #F1EBE1;
  --card: #FFFFFF;
  --ink: #22201D;
  --ink-soft: #55504A;
  --shiraz: #6E1A2B;
  --shiraz-dark: #561321;
  --vine: #3F4F3A;
  --gold: #B08D57;
  --line: #E4DCCF;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 70rem;
  --gutter: 1.25rem;
  --radius: 4px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* Editable text (admin portal): an item the owner has emptied takes up no space. */
[data-edit]:empty { display: none; }

a { color: var(--shiraz); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--shiraz-dark); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--shiraz);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--shiraz);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: #fff; outline-color: var(--gold); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--shiraz);
  border-radius: var(--radius);
  background: var(--shiraz);
  color: #fff;
  font: 500 1rem/1.3 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--shiraz-dark); border-color: var(--shiraz-dark); color: #fff; }

.text-link { font-weight: 500; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.7rem;
}
.logo { display: block; line-height: 0; text-decoration: none; }
.logo svg { display: block; width: 11rem; height: auto; }
.logo-small { font: 500 11.5px var(--sans); letter-spacing: 0.3em; fill: var(--ink); }
.logo-large { font: italic 500 31px var(--serif); fill: var(--shiraz); }
.logo-rule { stroke: var(--gold); stroke-width: 1; }

.nav-toggle {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font: 500 0.95rem/1.3 var(--sans);
  cursor: pointer;
}
.nav-toggle[hidden] { display: none; }

.site-nav { flex-basis: 100%; }
.site-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover { color: var(--shiraz); }
.site-nav a[aria-current="page"] { color: var(--shiraz); }

/* Phones: the nav collapses behind the Menu button only once scripts/site.js has set the
   button up (it adds .nav-ready). If the script fails to load, the links stay visible. */
.nav-ready .site-nav { display: none; }
.nav-ready .site-nav.is-open { display: block; }

@media (min-width: 52em) {
  .nav-toggle, .nav-ready .nav-toggle { display: none; }
  .site-nav, .nav-ready .site-nav { display: block; flex-basis: auto; }
  .site-nav ul { flex-direction: row; gap: 1.75rem; padding: 0; }
  .site-nav a {
    padding: 0.4rem 0;
    border-top: 0;
    border-bottom: 1px solid transparent;
    font-size: 0.95rem;
  }
  .site-nav a:hover { border-bottom-color: var(--line); }
  /* Shiraz, not gold: this line marks the current page, so it needs 3:1 contrast. */
  .site-nav a[aria-current="page"] { border-bottom-color: var(--shiraz); }
  .logo svg { width: 12.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section-tint { background: var(--paper-deep); }

.page-head { padding-block: clamp(2.25rem, 6vw, 4rem) 0; }
.page-head h1::after,
.rule-after::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  margin-top: 0.45em;
  background: var(--gold);
}
.lede { max-width: 42rem; color: var(--ink-soft); }
.page-head + .section { padding-top: clamp(1.75rem, 4vw, 2.75rem); }

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.prose { max-width: 40rem; }
/* A bare email address cannot wrap by itself; let it break on narrow phones. */
.prose a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Owner photos are small: frame them and never scale them above natural size. */
.framed {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.framed img { border-radius: 2px; }
.framed figcaption {
  padding: 0.5rem 0.25rem 0.1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(76vh, 40rem);
  background: #2c3526;
  color: #fff;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 20, 16, 0.25) 0%, rgba(24, 20, 16, 0.42) 45%, rgba(24, 20, 16, 0.7) 100%);
}
.hero-content { padding-block: 5rem 3rem; }
.hero h1 {
  max-width: 14em;
  margin-bottom: 0.6em;
  font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 4.5rem);
  line-height: 1.04;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before {
  content: "";
  display: none;
  width: 2rem;
  height: 1px;
  margin-right: 0.8rem;
  vertical-align: middle;
  background: var(--gold);
}
.hero .button:focus-visible { outline-color: #fff; }

/* ---------- Home: intro ---------- */
.intro { display: grid; gap: 2rem; }
.intro .prose p:first-child {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
}
@media (min-width: 52em) {
  .intro { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: start; }
}

/* ---------- Home: highlights ---------- */
.highlights {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.highlights li { padding-top: 1.1rem; border-top: 1px solid var(--gold); }
.highlights h3 { margin-bottom: 0.3em; }
.highlights p { color: var(--ink-soft); font-size: 1rem; }
@media (min-width: 44em) {
  .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- Home: prices teaser ---------- */
.teaser { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.teaser-img { width: 100%; height: 100%; min-height: 13rem; max-height: 22rem; object-fit: cover; }
.teaser-body { padding: clamp(1.5rem, 5vw, 3rem); align-self: center; }
.teaser-list { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.teaser-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.teaser-list .price { font-weight: 600; }
@media (min-width: 52em) {
  .teaser { grid-template-columns: 1fr 1fr; }
  .teaser-img { max-height: none; position: absolute; inset: 0; }
  .teaser-media { position: relative; min-height: 22rem; }
}

/* ---------- Home: closing ---------- */
.closing { text-align: center; }
.closing .prose { margin-inline: auto; }
.closing .rule-after::after { margin-inline: auto; }
.closing .button { margin-top: 0.5rem; }

/* ---------- Tours / Prices ---------- */
.tour-cards { display: grid; gap: 1.5rem; }
@media (min-width: 48em) {
  .tour-cards { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.tour-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--shiraz);
  border-radius: var(--radius);
}
.tour-card h2 { margin-bottom: 0.15em; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.tour-kind { color: var(--ink-soft); font: 400 1rem/1.3 var(--sans); white-space: nowrap; }
.tour-price {
  margin: 1.25rem 0;
  padding-block: 1rem;
  border-block: 1px solid var(--line);
  color: var(--ink-soft);
}
.tour-price .price {
  margin-inline: 0.15em;
  color: var(--shiraz);
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
}
.tour-details { margin: 0 0 1.75rem; padding: 0; list-style: none; }
.tour-details li { position: relative; padding: 0.3rem 0 0.3rem 1.4rem; }
.tour-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}
.tour-card .button { margin-top: auto; align-self: flex-start; }

.tour-notes { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52em) {
  .tour-notes { grid-template-columns: auto minmax(0, 1fr); gap: 3.5rem; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 36em) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; } }
@media (min-width: 60em) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: var(--radius);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}
.gallery-grid a:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(24, 20, 16, 0.94);
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}
/* No width/height set: the photo shows at its natural size or smaller, never enlarged. */
.lightbox-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lightbox-caption {
  grid-row: 3;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  text-align: center;
  font-size: 1rem;
}
.lightbox-count { display: block; color: #d9d2c6; font-size: 0.85rem; }
.lightbox button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox button:focus-visible { outline-color: #fff; }
.lightbox button svg { width: 1.1rem; height: 1.1rem; }
.lightbox-close { grid-column: 3; grid-row: 1; }
/* Phones: arrows sit beside the caption so the photo gets the full width. */
.lightbox-figure { grid-column: 1 / -1; }
.lightbox-caption { grid-column: 2; }
.lightbox-prev { grid-column: 1; grid-row: 3; }
.lightbox-next { grid-column: 3; grid-row: 3; }
@media (min-width: 48em) {
  .lightbox-figure { grid-column: 2; }
  .lightbox-caption { grid-column: 1 / -1; }
  .lightbox-prev { grid-column: 1; grid-row: 2; }
  .lightbox-next { grid-column: 3; grid-row: 2; }
}
.lightbox-open { overflow: hidden; }

/* ---------- Testimonials ---------- */
.review-links { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; margin: 0; padding: 0; list-style: none; }

.reviews { display: grid; gap: 1.5rem; justify-content: center; }
.review {
  margin: 0;
  width: fit-content;
  max-width: 100%;
  padding: clamp(0.4rem, 2vw, 1rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 54em) {
  .reviews { display: block; columns: 2; column-gap: 1.5rem; width: fit-content; margin-inline: auto; }
  .review { margin-bottom: 1.5rem; break-inside: avoid; }
  /* The 2026 snips are wide single-column cards; their text would be too small in two columns. */
  .reviews-latest { columns: 1; }
}
.reviews-latest { margin-bottom: 1.5rem; }
.reviews-latest .review img { display: block; }

.review-links-second { margin-top: 1.5rem; }

/* Live Google reviews, added by scripts/site.js when reviews.php has some (docs/REVIEWS.md). */
.live-reviews-summary { color: var(--ink-soft); }
.review-cards { display: grid; gap: 1.25rem; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 54em) {
  .review-cards { grid-template-columns: 1fr 1fr; align-items: start; }
}
.review-card {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--shiraz);
  border-radius: var(--radius);
}
.review-card-head { display: flex; align-items: center; gap: 0.8rem; }
.review-card-photo { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--paper-deep); object-fit: cover; }
.review-card-author { margin: 0; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.review-card-when { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.review-card-stars { margin: 0.9rem 0 0.5rem; color: var(--shiraz); font-size: 1.15rem; letter-spacing: 0.12em; line-height: 1; }
/* Empty stars: at least 3:1 on white, so 3 or 4 stars cannot be mistaken for 5. */
.review-card-stars .star-off { color: #8C857B; }
.review-card-text { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review-card-translated { margin: 0.6rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.review-card-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin: 1rem 0 0; font-size: 0.95rem; }
.review-card-links .quiet-link { color: var(--ink-soft); }
.live-reviews-note { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
/* Google's attribution rules: the words "Google Maps" in Roboto or the site's sans-serif, regular weight, near-black. */
.google-maps-mark { color: #1F1F1F; font-family: Roboto, var(--sans); font-size: 1rem; font-style: normal; font-weight: 400; letter-spacing: normal; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 2.5rem; }
@media (min-width: 52em) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; align-items: start; }
}

.form { display: grid; gap: 1.1rem; max-width: 36rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.95rem; font-weight: 500; }
.field .hint { color: var(--ink-soft); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #8C857B;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; border-color: var(--shiraz); }
.form .button { justify-self: start; }
.form-note { color: var(--ink-soft); font-size: 0.9rem; }

/* Honeypot: off-screen for people, present for bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-card { display: grid; gap: 1.25rem; }
.contact-details { margin: 0; }
.contact-details dt {
  margin-top: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0; overflow-wrap: anywhere; }
.contact-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.2; }

.sign-off {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ---------- Message pages (thank you, form error) ---------- */
.message { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52em) {
  .message { grid-template-columns: minmax(0, 1fr) auto; gap: 4rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--vine);
  color: var(--paper);
  font-size: 1rem;
}
.footer-inner { display: grid; gap: 2rem; padding-block: 2.75rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-name { margin: 0 0 0.35rem; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; line-height: 1.2; }
.footer-heading {
  margin: 0 0 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gold);
  font: 500 0.78rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { padding: 0.15rem 0; overflow-wrap: anywhere; }
@media (min-width: 44em) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; }
}

/* ---------- Wider screens ---------- */
@media (min-width: 48em) {
  .hero .eyebrow::before { display: inline-block; }
  :root { --gutter: 2rem; }
  body { font-size: 1.125rem; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .gallery-grid a:hover img { transform: none; }
}
