/* =========================================================
   Culinary Impressions — Rustic / Artisan Design System
   ========================================================= */

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

:root {
  /* Palette */
  --paper:        #f5efe1;
  --paper-deep:   #ebe2cf;
  --paper-light:  #faf6ec;
  --ivory:        #fdfaf3;
  --terracotta:   #b85c3a;
  --terracotta-deep: #8f4628;
  --terracotta-soft: #e8c9b3;
  --sage:         #6b7556;
  --sage-deep:    #4f5942;
  --sage-soft:    #c8cfb8;
  --ink:          #1c1813;
  --ink-soft:     #3a342c;
  --muted:        #6e6356;
  --line:         rgba(28, 24, 19, 0.14);
  --line-soft:    rgba(28, 24, 19, 0.07);

  /* Type scale */
  --display: 'Fraunces', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --container-wide: 1440px;
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Subtle paper grain */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0 0.07 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
  font-variation-settings: "SOFT" 30, "opsz" 144;
}

h1 em, h2 em, h3 em, h4 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}

a {
  color: var(--terracotta-deep);
  text-decoration: none;
  transition: color .25s var(--ease);
}

a:hover { color: var(--terracotta); }

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

/* Layout primitives */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 7rem 0;
  position: relative;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4.5rem;
}

.section-head .eyebrow { margin-bottom: 1.4rem; }

.section-title {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}

/* Script accent (handwritten-feel) */
.script {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

/* Ornament dividers */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--terracotta);
}
.ornament::before,
.ornament::after {
  content: '';
  flex: 0 1 60px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.ornament svg { width: 28px; height: 28px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all .3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--terracotta-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(143, 70, 40, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn-terracotta {
  background: var(--terracotta);
  color: var(--paper);
}
.btn-terracotta:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(143, 70, 40, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-ghost:hover {
  background: var(--terracotta);
  color: var(--paper);
}

.btn-sm { padding: 0.75rem 1.4rem; font-size: 0.75rem; }

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: '→';
  transition: transform .25s var(--ease);
}
.link-arrow:hover {
  color: var(--terracotta);
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 239, 225, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
}

.site-header.scrolled {
  padding: 0;
  box-shadow: 0 4px 24px rgba(28, 24, 19, 0.06);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-h);
}

.site-header.scrolled .header-inner {
  padding: 0.85rem 2rem;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}
.logo-main {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.logo-main em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.logo-tagline {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.main-nav {
  display: flex;
  justify-content: center;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.main-nav a {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width .3s var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--terracotta);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 24px;
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-right: 0.5rem;
  vertical-align: middle;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 0.65rem 0;
  opacity: 0;
  visibility: hidden;
  transition: all .25s var(--ease);
  list-style: none;
  box-shadow: 0 24px 48px -24px rgba(28, 24, 19, 0.18);
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { width: 100%; }
.dropdown a {
  display: block;
  padding: 0.7rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: left;
}
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--paper-deep); }

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}
.nav-phone {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1.3rem;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.nav-phone:hover {
  background: var(--terracotta);
  color: var(--paper);
  transform: translateY(-1px);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
.mobile-toggle span {
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  padding: calc(var(--header-h) + 5rem) 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--paper-light) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before,
.page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::before {
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(232, 201, 179, 0.45) 0%, transparent 70%);
}
.page-hero::after {
  bottom: -180px;
  left: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(200, 207, 184, 0.4) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 1.5rem; }
.page-hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  margin-bottom: 1.25rem;
}
.page-hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.75;
}
.crumbs {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--terracotta); }
.crumbs span { color: var(--terracotta); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 2rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta) 0%, var(--sage) 50%, var(--terracotta) 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
  align-items: start;
}
.footer-brand .logo-main {
  color: var(--paper);
  font-size: 1.85rem;
}
.footer-brand p {
  color: rgba(245, 239, 225, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 340px;
  margin-top: 0.85rem;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  font-weight: 600;
  margin-bottom: 1.4rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(245, 239, 225, 0.75);
  font-size: 0.9rem;
  line-height: 1.6;
  transition: color .25s var(--ease);
}
.footer-col a:hover { color: var(--terracotta-soft); }
.footer-col p {
  color: rgba(245, 239, 225, 0.75);
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 225, 0.12);
  font-size: 0.78rem;
  color: rgba(245, 239, 225, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(245, 239, 225, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  transition: all .3s var(--ease);
}
.footer-social a:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* =========================================================
   Cards / cells (shared across pages)
   ========================================================= */
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2.5rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(28, 24, 19, 0.2);
}

/* =========================================================
   CTA strip (used at bottom of inner pages)
   ========================================================= */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before,
.cta-strip::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-strip::before {
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(184, 92, 58, 0.22) 0%, transparent 70%);
}
.cta-strip::after {
  bottom: -160px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(107, 117, 86, 0.2) 0%, transparent 70%);
}
.cta-strip .container { position: relative; z-index: 2; }
.cta-strip .eyebrow { color: var(--terracotta-soft); margin-bottom: 1.4rem; }
.cta-strip h2 {
  color: var(--paper);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-bottom: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip h2 em { color: var(--terracotta-soft); }
.cta-strip p {
  color: rgba(245, 239, 225, 0.75);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}
.cta-strip .btn-primary {
  background: var(--terracotta);
  color: var(--paper);
}
.cta-strip .btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
}
.cta-strip .btn-secondary {
  border-color: var(--paper);
  color: var(--paper);
}
.cta-strip .btn-secondary:hover {
  background: var(--paper);
  color: var(--ink);
}
.cta-strip .actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; order: 3; }
  .header-actions .nav-phone { display: none; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  .container, .container-narrow, .container-wide { padding: 0 1.5rem; }
  .section-head { margin-bottom: 3rem; }
  .page-hero { padding: calc(var(--header-h) + 3rem) 0 3.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand { grid-column: span 1; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cta-strip { padding: 4.5rem 0; }
  .cta-strip .actions { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .container, .container-narrow, .container-wide { padding: 0 1.25rem; }
}

/* =========================================================
   Mobile nav drawer (injected by JS)
   ========================================================= */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  padding: calc(var(--header-h) + 2rem) 2rem 3rem;
  overflow-y: auto;
}
.mobile-drawer.active { transform: translateX(0); }
.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-drawer > ul > li {
  border-bottom: 1px solid var(--line);
}
.mobile-drawer > ul > li > a {
  display: block;
  padding: 1.1rem 0;
  font-family: var(--display);
  font-size: 1.65rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mobile-drawer > ul > li > a:hover { color: var(--terracotta); }
.mobile-drawer .submenu {
  padding: 0 0 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-drawer .submenu a {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mobile-drawer .submenu a:hover { color: var(--terracotta); }
.mobile-drawer .drawer-cta {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mobile-drawer .drawer-cta a {
  text-align: center;
}

/* =========================================================
   Form elements
   ========================================================= */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-field { display: flex; flex-direction: column; }
.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.95rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  width: 100%;
  transition: border .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(184, 92, 58, 0.12);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field.full { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
