@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-DemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kefir';
  src: url('../fonts/Kefir-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Palette */
  --color-brand-amber: #e49340;
  --color-brand-brown: #563115;
  --color-brand-tan: #bc8f71;

  /* Theme: Warm Natural Light */
  --bg-primary: #fdf8f3;
  --bg-secondary: #f5ece2;
  --bg-surface: rgba(253, 248, 243, 0.92);
  --text-primary: #563115;
  --text-secondary: #3a2008;
  --text-muted: #7a5c45;
  --accent-primary: var(--color-brand-brown);
  --accent-secondary: var(--color-brand-amber);
  --accent-deep: #3f230f;
  --border-color: rgba(86, 49, 21, 0.12);
  --border-strong: rgba(86, 49, 21, 0.22);
  --shadow-soft: 0 24px 60px rgba(86, 49, 21, 0.15);
  --shadow-card: 0 14px 28px rgba(86, 49, 21, 0.1);

  /* Shared Properties */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --container: 1200px;
  --font-display: 'Kefir', serif;
  --font-body: 'Montserrat', sans-serif;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 100;
}

[data-theme="dark"] body::before {
  opacity: 0.05;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-secondary);
  letter-spacing: -0.02em;
  font-weight: 500;
}

main {
  overflow: clip;
}

.container {
  width: min(var(--container), calc(100% - 3rem));
  margin: 0 auto;
}

.section {
  padding: var(--section-padding) 0;
}

.section-tight {
  padding: calc(var(--section-padding) / 2) 0;
}

.section-title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 0.95;
  max-width: 15ch;
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

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

.lead {
  max-width: 60ch;
  font-size: 1.15rem;
  line-height: 1.6;
}

.muted-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.surface {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.card {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 2rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  color: #fff;
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background-color: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: var(--color-brand-brown);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(228, 147, 64, 0.25);
}

.btn-secondary {
  color: var(--text-secondary);
  background: transparent;
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.5rem 0;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-tray {
  position: fixed;
  inset: 0 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100dvh;
  overflow-y: auto;
  padding: 1.5rem;
  background: rgba(253, 248, 243, 0.99);
  border-left: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1100;
  pointer-events: none;
}

.mobile-tray.open {
  transform: translateX(0);
  pointer-events: auto;
}

.tray-close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-links {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mobile-links a {
  font-size: 1rem;
  color: var(--text-secondary);
}

.brand {
  display: inline-flex;
  flex-direction: column;
}

.brand-logo {
  display: block;
  width: min(290px, 72vw);
  height: auto;
}

.brand-logo-footer {
  width: min(260px, 72vw);
}

.brand-name {
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.9;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a[aria-current='page']::after {
  width: 100%;
}

.hero {
  position: relative;
  padding: 4rem 0;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(86, 49, 21, 0.3), rgba(86, 49, 21, 0.75));
}

.hero-bg img,
.map-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 42rem;
  min-height: inherit;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.85;
  margin-bottom: 2rem;
}

.hero-title span {
  color: var(--accent-primary);
  display: block;
}

.hero-visual {
  height: 700px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sub-hero {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.sub-hero::before,
.sub-hero::after {
  content: none;
}

.sub-hero::before {
  display: none;
}

.sub-hero::after {
  display: none;
}

.sub-hero .container {
  position: relative;
  z-index: 1;
}

.sub-hero-card {
  max-width: 54rem;
  padding: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid rgba(86, 49, 21, 0.08);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: none;
  background: var(--bg-primary);
}

.sub-hero-title {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
  line-height: 0.9;
}

.sub-hero-title span {
  color: var(--accent-secondary);
}

.sub-hero-card .lead {
  margin-top: 1.25rem;
  max-width: 54ch;
}

.sub-hero-note {
  margin-top: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.grid-editorial {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.feature-block {
  grid-column: span 6;
  padding: 2rem;
}

.feature-block:nth-child(even) {
  margin-top: 4rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}

.tile-grid > * {
  min-width: 0;
}

.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 7;
}

.span-6,
.feature-block {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.tile {
  aspect-ratio: 0.8;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: #fff;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  z-index: 1;
}

.tile-content {
  position: relative;
  z-index: 2;
  max-width: 20rem;
}

.tile-content .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
}

.tile-content h2,
.tile-content h3 {
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: #f4c389;
}

.tile-content p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Wide hero tile — allow content to breathe across full width */
.tile.span-12 .tile-content {
  max-width: 38rem;
}

.expertise-grid .tile {
  aspect-ratio: 1.45;
  min-height: 360px;
}

.expertise-grid .tile-content h3 {
  font-size: 1.85rem;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.shop-search-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.shop-search {
  position: relative;
  width: min(300px, 100%);
}

.shop-search input {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card,
.review-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-image {
  aspect-ratio: 0.9;
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
}

.product-price {
  color: var(--accent-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.review-card {
  padding: 2rem;
}

.service-cat {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border-color);
}

.service-cat:first-child {
  padding-top: 0;
  border-top: none;
}

.service-list {
  display: grid;
  gap: 0.75rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-color);
}

.service-meta {
  max-width: 60ch;
}

.service-name {
  color: var(--text-secondary);
  font-weight: 600;
}

.service-desc {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.service-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.service-price {
  color: var(--accent-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-ghost {
  padding: 0;
  min-height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
}

.contact-info {
  min-width: 0;
}

.form-shell input,
.form-shell select,
.form-shell textarea {
  outline: none;
}

.booking-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.booking-panel {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 0.75rem;
}

.slot-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.75rem 0.6rem;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.slot-btn:hover,
.slot-btn.active {
  border-color: var(--accent-secondary);
  background: rgba(228, 147, 64, 0.14);
  color: var(--text-secondary);
}

.footer-brand p {
  max-width: 24ch;
}

.footer-map {
  height: 220px;
  min-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.footer-map .map-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: end center;
  padding: 1rem;
}

.footer-map .map-placeholder::after {
  content: 'Find Us • 8842 Melrose St., LA';
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(86, 49, 21, 0.16);
  border-radius: 999px;
  background: rgba(253, 248, 243, 0.9);
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-placeholder {
  background:
    linear-gradient(135deg, rgba(228, 147, 64, 0.18), rgba(86, 49, 21, 0.75)),
    radial-gradient(circle at 20% 30%, rgba(248, 223, 195, 0.3), transparent 30%),
    linear-gradient(90deg, rgba(253, 249, 244, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(253, 249, 244, 0.08) 1px, transparent 1px),
    var(--bg-secondary);
  background-size: auto, auto, 36px 36px, 36px 36px, auto;
  background-position: center, center, center, center, center;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(253, 248, 243, 0.95);
  color: var(--text-secondary);
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.text-center {
  text-align: center;
}

.page-about .hero-content {
  max-width: 50rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.quote-strip {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 4rem 0;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--text-secondary);
  max-width: 20ch;
  margin: 0 auto;
}

.site-footer {
  padding: 6rem 0 3rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    height: 500px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .shop-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .hero-title {
    font-size: 4rem;
  }
  .hero {
    min-height: 420px;
  }
  .hero .btn-row {
    width: 100%;
    flex-direction: column;
  }
  .hero .btn-row .btn {
    width: 100%;
  }
  .sub-hero {
    padding-top: 1rem;
  }
  .sub-hero-card {
    padding: 1.5rem 1.25rem;
  }
  .sub-hero-title {
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }
  .tile-grid,
  .footer-grid,
  .gallery-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .span-12,
  .span-7,
  .span-6,
  .span-5,
  .feature-block {
    grid-column: auto;
  }
  .tile-grid {
    gap: 1.25rem;
  }
  .service-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .service-cta {
    align-items: flex-start;
  }
  .contact-info {
    padding-left: 0 !important;
  }
  .booking-shell {
    grid-template-columns: 1fr;
  }
  .shop-header {
    gap: 1.25rem;
  }
  .shop-search-controls {
    width: 100%;
  }
  .shop-search {
    width: 100%;
  }
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
