/* =====================================================
   Karl at the Farm — Stylesheet
   Rustic-modern: warm cream, forest green, terracotta.
   Edit the variables below to retheme the entire site.
   ===================================================== */

:root {
  /* Brand colours */
  --c-cream:       #FBF7F0;
  --c-cream-warm:  #F2EADB;
  --c-paper:       #FFFFFF;
  --c-ink:         #2A2723;
  --c-ink-soft:    #5B544B;
  --c-muted:       #8A8275;
  --c-green:       #2F4A2C;   /* primary */
  --c-green-dark:  #213520;
  --c-green-soft:  #4A6748;
  --c-terracotta:  #C2654A;   /* accent */
  --c-terracotta-d:#A95239;
  --c-honey:       #D9A441;
  --c-line:        #E6DFCF;

  /* Typography */
  --font-display:  'Playfair Display', 'Georgia', serif;
  --font-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --maxw:          1180px;
  --gutter:        clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 2px 6px rgba(35, 30, 25, 0.06);
  --shadow:        0 10px 30px rgba(35, 30, 25, 0.10);
  --shadow-lg:     0 25px 60px rgba(35, 30, 25, 0.18);

  --header-h:      72px;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-green);
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: var(--c-terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.18;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink-soft); }

p { margin: 0 0 1em; }

.muted { color: var(--c-muted); }
.small { font-size: .9rem; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-terracotta);
  margin: 0 0 .9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font: 600 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg   { padding: 1rem 1.8rem; font-size: 1rem; }

.btn-primary {
  background: var(--c-green);
  color: var(--c-cream);
  border-color: var(--c-green);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-green-dark); color: var(--c-cream); border-color: var(--c-green-dark); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: var(--c-cream); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--c-green);
}
.brand:hover { color: var(--c-green-dark); }

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--c-green);
}
.brand-mark svg { width: 28px; height: 28px; }

.brand-text { line-height: 1; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--c-ink);
}
.brand-sub {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.6rem;
}
.primary-nav a {
  color: var(--c-ink);
  font-weight: 500;
  font-size: .96rem;
  position: relative;
  padding: .25rem 0;
}
.primary-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1.5px;
  background: var(--c-terracotta);
  transition: right .25s ease;
}
.primary-nav a:not(.btn):hover::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-110%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
  }
  .primary-nav li a {
    display: block;
    padding: .9rem 0;
    font-size: 1.05rem;
  }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--c-cream);
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,28,18,0.55) 0%, rgba(20,28,18,0.70) 100%),
    radial-gradient(120% 80% at 20% 20%, #5d7a4a 0%, transparent 60%),
    radial-gradient(120% 80% at 80% 80%, #2d3e22 0%, transparent 60%),
    linear-gradient(135deg, #3d5731 0%, #1c2916 100%);
}
.hero-bg::after {
  /* subtle grain */
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: var(--c-honey); }
.hero-title {
  color: var(--c-cream);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 1.2rem;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(251, 247, 240, 0.92);
  max-width: 60ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero .btn-ghost { color: var(--c-cream); border-color: var(--c-cream); }
.hero .btn-ghost:hover { background: var(--c-cream); color: var(--c-ink); }

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.section-about    { background: var(--c-cream); }
.section-menu     { background: var(--c-cream-warm); }
.section-book     { background: var(--c-cream); }
.section-hours    { background: var(--c-green); color: var(--c-cream); }
.section-find     { background: var(--c-cream-warm); }
.section-contact  { background: var(--c-cream); }

.section-head { max-width: 720px; margin: 0 0 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lede { font-size: 1.1rem; color: var(--c-ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-widget { order: 1; }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col.reverse .col-text,
  .two-col.reverse .col-widget { order: initial; }
}

.col-image {
  border-radius: var(--radius-lg);
  min-height: 420px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.col-image-1 {
  background-image: url('resto-image.jpeg');
  background-size: cover;
  background-position: center;
}
.col-image::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: .7rem;
}
.value-list li {
  position: relative;
  padding-left: 1.5rem;
}
.value-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .65rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-terracotta);
}

/* ---------- Menu ---------- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--c-line);
}
.menu-tab {
  background: transparent;
  border: 0;
  padding: .85rem 1.1rem;
  font: 600 .95rem var(--font-body);
  color: var(--c-ink-soft);
  cursor: pointer;
  position: relative;
  border-radius: 8px 8px 0 0;
  transition: color .15s ease, background .15s ease;
}
.menu-tab:hover { color: var(--c-ink); background: rgba(0,0,0,0.03); }
.menu-tab.is-active {
  color: var(--c-green);
  background: var(--c-cream);
}
.menu-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--c-terracotta);
  border-radius: 3px 3px 0 0;
}

.menu-note {
  font-style: italic;
  color: var(--c-ink-soft);
  margin: 0 0 1.2rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 2.4rem;
}
@media (max-width: 720px) {
  .menu-grid { grid-template-columns: 1fr; }
}

.menu-item {
  padding: 1.1rem 0;
  border-bottom: 1px dashed var(--c-line);
}
.menu-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}
.menu-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}
.menu-item .price {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-terracotta);
  white-space: nowrap;
}
.menu-item p {
  margin: 0;
  color: var(--c-ink-soft);
  font-size: .96rem;
}

.menu-footnote {
  margin-top: 2rem;
  font-size: .9rem;
  color: var(--c-ink-soft);
  text-align: center;
  font-style: italic;
}

/* ---------- Booking ---------- */

.booking-placeholder {
  background: var(--c-paper);
  border: 1.5px dashed var(--c-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.booking-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  color: var(--c-green);
  background: var(--c-cream-warm);
  border-radius: 50%;
}
.booking-placeholder .placeholder-icon svg { width: 28px; height: 28px; }
.booking-placeholder h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: .3rem;
}
.booking-placeholder p {
  color: var(--c-ink-soft);
  margin-bottom: 1.4rem;
}
.booking-placeholder code {
  background: var(--c-cream-warm);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .88em;
}

/* ---------- Hours ---------- */

.section-hours h2,
.section-hours .eyebrow { color: var(--c-cream); }
.section-hours .eyebrow { color: var(--c-honey); }

.hours-card {
  max-width: 620px;
  margin: 0 auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem 1.8rem;
  backdrop-filter: blur(2px);
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--c-cream);
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: .85rem .3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 1.02rem;
}
.hours-table th { font-weight: 500; font-family: var(--font-body); }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td { text-align: right; color: rgba(251,247,240,0.92); }
.hours-table td.closed { color: var(--c-honey); font-style: italic; }
.hours-table .tag {
  display: inline-block;
  margin-left: .6rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(217,164,65,0.18);
  color: var(--c-honey);
  font-size: .75rem;
  letter-spacing: .04em;
  vertical-align: middle;
}
.hours-note {
  margin: 1rem 0 0;
  color: rgba(251,247,240,0.72);
  font-size: .88rem;
  text-align: center;
}

/* ---------- Find Us ---------- */

.address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--c-paper);
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-terracotta);
  display: inline-block;
  margin-bottom: 1.5rem;
}
.find-sub {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  margin: 1.8rem 0 .6rem;
}
.find-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.col-map { width: 100%; }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-line);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact ---------- */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--c-line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-label {
  color: var(--c-ink-soft);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form {
  background: var(--c-paper);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.contact-form label {
  display: grid;
  gap: .35rem;
}
.contact-form label span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  letter-spacing: .04em;
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 1rem;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-line);
  background: var(--c-cream);
  color: var(--c-ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(47, 74, 44, 0.15);
}
.form-status {
  color: var(--c-green);
  font-weight: 600;
  margin: 0;
}
.form-note { margin: 0; font-size: .82rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-ink);
  color: rgba(251,247,240,0.85);
  padding: 3.5rem 0 1.5rem;
}
.site-footer a { color: var(--c-cream); }
.site-footer a:hover { color: var(--c-honey); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 { color: var(--c-cream); margin-bottom: .6rem; }
.site-footer .muted { color: rgba(251,247,240,0.55); }

.brand-footer { color: var(--c-cream); }
.brand-footer .brand-name { color: var(--c-cream); }
.brand-footer .brand-sub { color: rgba(251,247,240,0.6); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Walks ---------- */
.section-walks { background: var(--c-cream-warm); }

.walks-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}
.walks-list li {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
}
.walks-swatch {
  display: inline-block;
  width: 28px;
  height: 6px;
  border-radius: 3px;
  align-self: center;
}
.walks-swatch-green { background: #5CB85C; }
.walks-swatch-pink  { background: #E84A7E; }
.walks-swatch-blue  { background: #3B6FD6; }
.walks-time {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-green);
  white-space: nowrap;
}
.walks-desc {
  color: var(--c-ink-soft);
  font-size: 0.95rem;
}

.walks-map {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--c-paper);
  transition: transform 0.25s ease;
}
.walks-map:hover { transform: translateY(-2px); }
.walks-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
