/* ==========================================================================
   Two Brothers — Margaret River Organic Wine
   Static rebuild — retuned to match the live Horizon store.
   Warm neutral palette, elegant serif type, solid light header.
   ========================================================================== */

:root {
  --paper:     #f6f3ed;   /* warm off-white — page + header */
  --card:      #ffffff;   /* product cards */
  --ink:       #2c2a26;   /* charcoal text / active nav */
  --ink-2:     #57534c;   /* secondary text */
  --nav-muted: #928c81;   /* inactive nav links */
  --line:      #e5dfd3;   /* hairlines */
  --cream:     #f7f4ee;   /* text over hero */
  --footer-bg: #23211d;

  --hero-scrim: rgba(26,30,33,0.40);
  --btn-hero-bg: rgba(38,40,42,0.48);
  --btn-hero-border: rgba(247,244,238,0.45);

  --maxw: 1500px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "EB Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.005em;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nav-muted);
  margin: 0 0 0.8rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.65rem 2.4rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn--hero {
  color: var(--cream);
  background: var(--btn-hero-bg);
  border: 1px solid var(--btn-hero-border);
  backdrop-filter: blur(2px);
}
.btn--hero:hover, .btn--hero:focus-visible { background: rgba(38,40,42,0.7); }
.btn--dark {
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}
.btn--dark:hover, .btn--dark:focus-visible { background: transparent; color: var(--ink); }

/* ==========================================================================
   Header / Nav — solid warm bar, nav left, serif, title case
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: 1.15rem;
}
.nav { display: flex; gap: clamp(1.4rem, 3vw, 3rem); }
.nav a {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--nav-muted);
  transition: color 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }

/* ==========================================================================
   Hero — full-width band below the header
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__inner {
  position: relative;
  padding: 4rem var(--gutter);
  max-width: 900px;
  animation: rise 1.1s var(--ease) both;
}
.hero__logo { width: min(340px, 58vw); margin: 0 auto 2.2rem; }
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 2.4rem;
  text-wrap: balance;
}
.hero__tagline span { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Sections / cellar grid
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section__head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.cellar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.wine {
  background: var(--card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 2.6rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.wine__frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  padding: 2.4rem 2.4rem 1rem;
  overflow: hidden;
}
.wine__frame img { max-height: 100%; width: auto; object-fit: contain; transition: transform 0.6s var(--ease); }
.wine:hover { box-shadow: 0 24px 50px -30px rgba(44,42,38,0.45); }
.wine:hover .wine__frame img { transform: scale(1.04); }

.wine__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0.4rem 0 0.3rem;
  max-width: 24ch;
  padding-inline: 1rem;
}
.wine__meta { color: var(--ink-2); font-size: 1rem; }
.wine__price { font-family: var(--font-display); font-size: 1.4rem; margin: 0.5rem 0 1.1rem; }
.wine__cta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.3s var(--ease);
}
.wine__cta:hover { opacity: 0.55; }

/* ==========================================================================
   Editorial / prose pages
   ========================================================================== */
.page-top { padding-top: clamp(3rem, 6vw, 5rem); }
.prose { max-width: 66ch; margin-inline: auto; font-size: 1.15rem; }
.prose p { margin: 0 0 1.4rem; }
.prose .lede {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.3;
  font-weight: 500;
  margin-bottom: 2rem;
}
.prose h2 { font-size: 1.9rem; margin: 2.6rem 0 1rem; }
.divider { width: 64px; height: 1px; background: var(--ink); opacity: 0.35; margin: 2.6rem auto; }

/* ==========================================================================
   Newsletter band
   ========================================================================== */
.signup { background: var(--footer-bg); color: var(--cream); text-align: center; }
.signup h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1.8rem; }
.signup form { display: flex; gap: 0.75rem; max-width: 500px; margin-inline: auto; flex-wrap: wrap; justify-content: center; }
.signup input[type="email"] {
  flex: 1 1 240px;
  background: transparent;
  border: 1px solid rgba(247,244,238,0.4);
  color: var(--cream);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 2px;
}
.signup input::placeholder { color: rgba(247,244,238,0.55); }
.signup input:focus-visible { outline-color: var(--cream); border-color: var(--cream); }
.signup .btn--hero { border-color: rgba(247,244,238,0.5); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); color: rgba(247,244,238,0.72); padding-block: clamp(3rem, 7vw, 5rem); font-size: 1rem; }
.site-footer__logo { width: 150px; margin-bottom: 2rem; opacity: 0.92; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.licence { max-width: 62ch; }
.licence strong { color: var(--cream); letter-spacing: 0.02em; }
.warning { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.6; color: rgba(247,244,238,0.55); }
.footer-links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { text-decoration: none; color: rgba(247,244,238,0.72); transition: color 0.3s var(--ease); width: fit-content; }
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(247,244,238,0.15);
  font-size: 0.85rem; color: rgba(247,244,238,0.5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .cellar-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav { gap: 1.2rem; }
  .nav a { font-size: 1.15rem; }
  body { font-size: 18px; }
}

/* gold brand glyph used as an editorial divider */
.divider-glyph { width: 190px; height: auto; margin: 2.6rem auto; opacity: 0.95; }

/* policy-page subheadings */
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin: 2rem 0 0.6rem; }
