/* ============================================================
   Wagging Tail Barkuterie — styles
   Palette derived from the supplied logo: cream, dark teal,
   coral/terracotta, wood brown.
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1.4rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Color — brand palette from the logo */
  --color-bg: #faf4e6;
  --color-surface: #fffdf6;
  --color-surface-offset: #f1e8d2;
  --color-divider: #e5dbc3;
  --color-border: oklch(from #2c2620 l c h / 0.14);
  --color-text: #2c2620;
  --color-text-muted: #776b58;
  --color-text-inverse: #faf4e6;
  --color-primary: #0e5a57;
  --color-primary-hover: #0a4341;
  --color-primary-deep: #0a3d3a;
  --color-accent: #d96a4a;
  --color-accent-deep: #b84f31;
  --color-wood: #8a5a33;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  /* Motion */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — warm-toned */
  --shadow-sm: 0 1px 2px oklch(0.25 0.03 75 / 0.07);
  --shadow-md: 0 4px 12px oklch(0.25 0.03 75 / 0.09);
  --shadow-lg: 0 12px 32px oklch(0.25 0.03 75 / 0.14);

  /* Fonts */
  --font-display: 'Boska', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Content widths */
  --content-default: 960px;
  --content-wide: 1200px;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role='list'],
ol[role='list'] {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 500;
}

p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(from var(--color-primary) l c h / 0.25);
  color: var(--color-text);
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
}

a,
button,
[role='button'],
[role='link'] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.skip-link:focus {
  top: var(--space-3);
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.1;
}
.brand__name em {
  font-style: normal;
  color: var(--color-primary);
  padding-left: 0.18em;
}

.nav ul {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a:focus-visible {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  color: var(--color-text);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav.nav--open {
    display: block;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) var(--space-6) var(--space-4);
  }
  .nav a {
    display: block;
    padding: var(--space-3) 0;
    font-size: var(--text-base);
    border-bottom: none;
  }
  .nav li + li {
    border-top: 1px solid var(--color-divider);
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24)) var(--space-8);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-16);
  }
}

.kicker {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-deep);
  margin-bottom: var(--space-4);
}

.hero__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-primary-deep);
  margin-bottom: var(--space-6);
}

.hero__sub {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 34ch;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  line-height: 1.4;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--ghost {
  color: var(--color-primary-deep);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.4);
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-surface);
}

.hero__media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero__strip {
  margin-top: var(--space-12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-20));
}

.section-head {
  max-width: 56ch;
  margin-bottom: var(--space-12);
}
.section-head h2 {
  font-size: var(--text-xl);
  color: var(--color-primary-deep);
  margin-bottom: var(--space-4);
}
.section-head__sub {
  color: var(--color-text-muted);
}

/* ---------- Menu ---------- */
.menu {
  background: var(--color-surface);
}

.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 760px) {
  .menu__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

.menu-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.menu-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.menu-card__media {
  position: relative;
}
.menu-card__media img {
  width: 100%;
  height: auto;
}

.menu-card__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.menu-card__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent-deep);
}

.menu-card__body {
  padding: var(--space-6) var(--space-8) var(--space-8);
}

.menu-card__tag {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.menu-card__num {
  color: var(--color-accent-deep);
}

.menu-card__desc {
  color: var(--color-text-muted);
  margin-block: var(--space-2) var(--space-6);
}

.menu-card__listtitle {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.menu-card__body ul {
  display: grid;
  gap: var(--space-2);
}
.menu-card__body li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: var(--space-4);
  position: relative;
}
.menu-card__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
}

.menu__note {
  margin-top: var(--space-10);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* ---------- Wineries (full-bleed) ---------- */
.wineries {
  position: relative;
  isolation: isolate;
  color: var(--color-text-inverse);
  padding-block: clamp(var(--space-16), 9vw, var(--space-24));
}

.wineries__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.wineries__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wineries__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(in oklab, oklch(0.22 0.03 200 / 0.78), oklch(0.22 0.03 200 / 0.45));
}

.wineries__caption {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-6);
  font-size: var(--text-xs);
  color: oklch(0.96 0.02 90 / 0.65);
  z-index: 1;
}

.wineries__content {
  max-width: 62ch;
}
.wineries__content h2 {
  font-size: var(--text-xl);
  color: #fdf9ee;
  margin-bottom: var(--space-5);
}
.wineries__content p {
  color: oklch(0.96 0.02 90 / 0.92);
  max-width: 56ch;
  margin-bottom: var(--space-4);
}

.kicker--light {
  color: #f2b49b;
}

.wineries__cta {
  margin-top: var(--space-6);
  margin-bottom: 0;
}
.wineries__cta a {
  color: #ffd9c4;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #f2b49b;
  text-underline-offset: 3px;
}
.wineries__cta a:hover {
  color: #ffffff;
}

/* ---------- Story ---------- */
.story__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .story__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.story__media img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.story__caption {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.story__copy h2 {
  font-size: var(--text-xl);
  color: var(--color-primary-deep);
  margin-bottom: var(--space-5);
}
.story__copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ---------- Delivery (coming soon) ---------- */
.delivery {
  background: var(--color-surface-offset);
  text-align: center;
}
.delivery__inner {
  max-width: 60ch;
  margin-inline: auto;
}
.delivery h2 {
  font-size: var(--text-xl);
  color: var(--color-primary-deep);
  margin-bottom: var(--space-5);
}
.delivery p {
  color: var(--color-text-muted);
  margin-inline: auto;
}
.delivery__note {
  margin-top: var(--space-4);
  font-style: italic;
  color: var(--color-wood);
}

/* ---------- Contact ---------- */
.contact__inner {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.contact h2 {
  font-size: var(--text-xl);
  color: var(--color-primary-deep);
  margin-bottom: var(--space-5);
}
.contact p {
  color: var(--color-text-muted);
  margin-inline: auto;
}

/* ---------- Footer ---------- */
.contact__phone {
  margin-top: var(--space-6);
}
.contact__email {
  margin-top: var(--space-4);
  overflow-wrap: anywhere;
}
.footer__email {
  flex-basis: 100%;
  overflow-wrap: anywhere;
}
.footer__email a {
  display: inline-block;
  max-width: 100%;
  padding-block: var(--space-3);
  color: var(--color-text-inverse);
  text-underline-offset: 3px;
}
.contact__inner p > a:not(.btn) {
  color: var(--color-primary);
  font-weight: 600;
  text-underline-offset: 3px;
}
.footer__brand {
  flex-wrap: wrap;
}
.footer__phone {
  flex-basis: 100%;
}
.footer__phone a {
  display: inline-block;
  padding-block: var(--space-3);
  color: var(--color-text-inverse);
  text-underline-offset: 3px;
}

.footer {
  background: var(--color-primary-deep);
  color: var(--color-text-inverse);
  padding-block: var(--space-16) var(--space-8);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid oklch(from #faf4e6 l c h / 0.18);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.footer__logo-badge {
  display: inline-flex;
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
}
.footer__brand img {
  width: 130px;
  height: auto;
}
.footer__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.footer__tag {
  font-size: var(--text-sm);
  color: oklch(0.96 0.02 90 / 0.75);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.footer__nav a {
  color: oklch(0.96 0.02 90 / 0.85);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer__nav a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: oklch(0.96 0.02 90 / 0.6);
}
.footer__legal p {
  max-width: none;
}

.contact__logo {
  width: min(240px, 60vw);
  height: auto;
  margin: 0 auto var(--space-8);
}

@media (max-width: 600px) {
  .footer__brand {
    flex-wrap: wrap;
  }
  .footer__brand > div,
  .footer__tag {
    flex-basis: 100%;
  }
}

.hero__media {
  display: flex;
  justify-content: center;
}
.hero__media img.hero__logo {
  width: min(100%, 460px);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 18px oklch(0.25 0.03 75 / 0.14));
}
