/* ============================================================
   TOUM — MAIN STYLESHEET
   Modern Lebanese Flavors · Orlando, FL · Est. 2026
   Brand tokens live in :root — change them to retheme entire site.
   ============================================================ */

/* ---------- Web Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'TOUM Display';
  src: url('../fonts/TOUMDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TOUM Display';
  src: url('../fonts/TOUMDisplay-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'TOUM Display';
  src: url('../fonts/TOUMDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TOUM Display';
  src: url('../fonts/TOUMDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TOUM Display';
  src: url('../fonts/TOUMDisplay-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Custom Cursor ----------
   Default: garlic CLOVE with hotspot at the pointy tip (top-left), mimics
   the conventional arrow cursor's behavior.
   Hover/interactive: garlic BULB with hotspot at the stem tip (top-center),
   mimics the conventional pointing-finger cursor.
   Browsers pick the largest supported size from the list, falling back to
   32px then to the system default. */
html {
  cursor: url('../images/garlic-clove-48.png') 3 4,
          url('../images/garlic-clove-32.png') 2 3,
          auto;
}
/* Keep the I-beam on text inputs so the Beehiiv signup form is usable. */
input, textarea, [contenteditable="true"] {
  cursor: text;
}
/* Bulb cursor on anything clickable. Note: any later `cursor: pointer`
   declarations on .btn / .navbar__burger have been removed so this rule
   cascades cleanly. */
a, button, .btn, [role="button"], summary, label[for] {
  cursor: url('../images/garlic-bulb-48.png') 22 2,
          url('../images/garlic-bulb-32.png') 14 2,
          pointer;
}

/* ---------- Brand Tokens ---------- */
:root {
  /* TOUM brand palette (from official brand guide) */
  --color-green:        #365E18;   /* Primary — deep olive green */
  --color-green-dark:   #2c4d12;   /* Hover / pressed states */
  --color-green-deep:   #2c4d12;   /* Deepest green for shadows */
  --color-orange:       #cc5500;   /* Secondary accent — burnt orange */
  --color-orange-dark:  #a84600;   /* Hover state */
  --color-cream:        #EBE8C0;   /* Warm pale background */
  --color-cream-soft:   #F5F2D6;   /* Slightly lighter cream */
  --color-black:        #111111;   /* Text + dark surfaces */
  --color-charcoal:     #1f1f1f;   /* Slightly raised dark surface */
  --color-white:        #ffffff;
  --color-text:         #1a1a1a;
  --color-text-muted:   #4a4a4a;
  --color-text-on-dark: #f5f2d6;

  /* Aliases used by component styles (kept stable so retheming is just :root) */
  --color-primary:       var(--color-green);
  --color-primary-dark:  var(--color-green-dark);
  --color-secondary:     var(--color-orange);
  --color-dark:          var(--color-black);
  --color-dark-card:     var(--color-charcoal);
  --color-body-bg:       var(--color-white);
  --color-section-alt:   var(--color-cream);

  /* Typography — TOUM Display is the brand display face (self-hosted, woff2) */
  --font-display: 'TOUM Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'TOUM Display', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --navbar-height: 72px;
  --container-max: 1200px;
  --border-radius: 10px;
  --transition: 0.28s ease;

  /* Subtle graph-paper background pattern, inspired by the brand guide artboards.
     Used as a default body texture; comment out the body rule below to disable. */
  --grid-pattern:
    linear-gradient(to right, rgba(54,94,24,0.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(to bottom, rgba(54,94,24,0.07) 1px, transparent 1px) 0 0 / 36px 36px;

  /* Tells browsers this is a light theme. Prevents Brave/Edge "force dark"
     features from auto-inverting our cream and white sections. */
  color-scheme: light;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-body-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
::selection { background: var(--color-green); color: var(--color-cream); }

/* ---------- Layout: Container ---------- */
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

/* ---------- Wordmark (text-based logo placeholder) ----------
   Renders "TOUM" in the brand spirit. Swap with an SVG/PNG of the
   real wordmark (with the garlic icon for the "O") when available. */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark--lg { font-size: clamp(3.5rem, 11vw, 8rem); letter-spacing: 0.22em; }
.wordmark--xl { font-size: clamp(5rem, 18vw, 14rem); letter-spacing: 0.18em; }

/* ---------- Image placeholders ---------- */
.img-placeholder {
  background: repeating-linear-gradient(45deg, #efece0, #efece0 14px, #e6e2c8 14px, #e6e2c8 28px);
  border: 2px dashed rgba(54,94,24,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(54,94,24,0.6);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 220px;
  width: 100%;
  border-radius: var(--border-radius);
}
.img-placeholder--wide { min-height: 70px; max-width: 240px; margin: 0 auto; }

.map-placeholder {
  background: repeating-linear-gradient(0deg, rgba(54,94,24,0.06), rgba(54,94,24,0.06) 28px, transparent 28px, transparent 29px),
              repeating-linear-gradient(90deg, rgba(54,94,24,0.06), rgba(54,94,24,0.06) 28px, transparent 28px, transparent 29px),
              var(--color-cream-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  min-height: 240px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.78rem 2rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.btn--outline:hover { background: var(--color-cream); color: var(--color-green); }

.btn--solid {
  background: var(--color-green);
  color: var(--color-cream);
  border-color: var(--color-green);
}
.btn--solid:hover { background: var(--color-green-dark); border-color: var(--color-green-dark); }

.btn--orange {
  background: var(--color-orange);
  color: var(--color-cream);
  border-color: var(--color-orange);
}
.btn--orange:hover { background: var(--color-orange-dark); border-color: var(--color-orange-dark); }

.btn--dark {
  background: var(--color-black);
  color: var(--color-cream);
  border-color: var(--color-black);
}
.btn--dark:hover { background: var(--color-green); border-color: var(--color-green); }

/* ---------- Section primitives ---------- */
.section { padding: 5.5rem 0; }
.section--cream { background: var(--color-cream); }
.section--green { background: var(--color-green); color: var(--color-cream); }
.section--white { background: var(--color-white); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--color-orange);
  margin: 0.7rem auto 2.2rem;
  border-radius: 2px;
}

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.navbar__logo .wordmark { color: var(--color-cream); }

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.navbar__links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  transition: color var(--transition);
}
.navbar__links a:hover { color: var(--color-orange); }

.navbar__cta {
  font-size: 0.78rem;
  padding: 0.55rem 1.25rem;
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.navbar__burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  background: rgba(17,17,17,0.97);
  padding: 1rem 1.5rem 1.5rem;
}
.navbar__mobile a {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-cream);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(235,232,192,0.1);
}
.navbar__mobile a:last-child { border-bottom: none; }
.navbar__mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-green);
  overflow: hidden;
}

/* Subtle grid texture inside the hero — echoes the brand guide */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(235,232,192,0.07) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(to bottom, rgba(235,232,192,0.07) 1px, transparent 1px) 0 0 / 40px 40px;
  pointer-events: none;
}

/* ---------- Falling garlic rain (decorative ambient animation) ----------
   The .hero__rain layer fills the hero behind the content. JS spawns
   .hero__rain__garlic <img> elements with random size, position, duration,
   rotation, and opacity, which then fall via the garlic-fall keyframes.
   Each garlic uses mix-blend-mode: multiply so the JPG's white background
   blends into the dark green hero, leaving just the garlic shape visible. */
.hero__rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero__rain__garlic {
  position: absolute;
  top: -160px;
  display: block;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  animation-name: garlic-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes garlic-fall {
  0%   { transform: translate3d(0, 0, 0) rotate(var(--start-rot, 0deg)); opacity: 0; }
  10%  { opacity: var(--max-opacity, 0.18); }
  85%  { opacity: var(--max-opacity, 0.18); }
  100% {
    transform: translate3d(var(--drift, 0px), calc(100vh + 200px), 0) rotate(var(--end-rot, 360deg));
    opacity: 0;
  }
}

/* Accessibility: users who prefer reduced motion get a static hero. */
@media (prefers-reduced-motion: reduce) {
  .hero__rain { display: none; }
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-cream);
  padding: 7rem 1rem 4rem;
  max-width: 880px;
}

.hero__pretitle {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 1.6rem;
  color: var(--color-cream);
  opacity: 0.85;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 11rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.18em;
  margin-bottom: 1.4rem;
  color: var(--color-cream);
}

/* Branded wordmark image on cream background, displayed as a sticker.
   Crops the JPG's surrounding whitespace by using aspect-ratio + object-fit. */
.hero__brandmark {
  display: block;
  margin: 0 auto 1.6rem;
  width: min(88vw, 720px);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-cream);
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}
.hero__brandmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  /* The JPG is 1024x768 with the wordmark in the middle. Scaling up to crop
     vertical whitespace makes the wordmark feel substantial. */
  transform: scale(1.55);
  transform-origin: center 52%;
}

/* Loud uppercase headline tagline that sits directly under the brandmark.
   Slight text-indent compensates for the trailing letter-spacing so it
   stays optically centered. */
.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-cream);
  margin: 0 0 1rem;
  line-height: 1.2;
  text-indent: 0.4em;
}

.hero__location {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-orange);
  margin: 0 0 1.4rem;
  text-indent: 0.3em;
}

.hero__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  font-weight: 400;
  color: rgba(235,232,192,0.9);
  margin: 0 0 2.5rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.hero__cta { font-size: 0.95rem; padding: 0.9rem 2.6rem; }

/* ============================================================
   WHAT'S NEW (formerly "Latest Updates")
   ============================================================ */
.updates { padding: 5.5rem 0; background: var(--color-white); }

.updates__subtitle {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-orange);
  text-align: center;
  margin-bottom: 2.8rem;
  letter-spacing: 0.05em;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-cream-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(17,17,17,0.12); }

.card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 4 / 3;
}
.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__img-wrap .img-placeholder { min-height: 100%; height: 100%; border-radius: var(--border-radius); }

.card__badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--color-orange);
  color: var(--color-cream);
  border-radius: 50%;
  width: 92px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  border: 2px solid var(--color-cream);
}
.card__badge-name {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}
.card__badge-price {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 3px;
}

/* ============================================================
   OUR MENU
   ============================================================ */
.menu-section { padding: 5.5rem 0; background: var(--color-cream); }
.menu-section .section-title { color: var(--color-green); }
.menu-section .section-divider { background: var(--color-green); }

.menu-section__desc {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  font-size: 1.02rem;
  color: var(--color-text);
  line-height: 1.75;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.menu-grid__item {
  min-height: 260px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 3px solid var(--color-green);
}
.menu-grid__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================
   ABOUT US
   ============================================================ */
.about { padding: 5.5rem 0; background: var(--color-white); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 1rem;
}

.about__text-card {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 2.8rem;
  border-radius: var(--border-radius);
  font-size: 1rem;
  line-height: 1.85;
  text-align: left;
  border: 4px solid var(--color-green);
}
.about__text-card .pull-quote {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.about__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__badge {
  width: clamp(220px, 30vw, 320px);
  height: clamp(220px, 30vw, 320px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(17,17,17,0.18);
}
.about__badge img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FIND US
   ============================================================ */
.branches { padding: 5.5rem 0; background: var(--color-cream); }
.branches .section-title { color: var(--color-green); }
.branches .section-divider { background: var(--color-green); }

/* Inline Beehiiv signup form container. The form itself is styled in the
   Beehiiv dashboard; this just centers it and gives it a max width so it
   doesn't stretch to the section's full edge. */
.signup-inline {
  margin: 3rem auto 0;
  max-width: 540px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.signup-inline iframe { max-width: 100%; }

.branches__subtitle {
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}
.branches__subtitle strong { color: var(--color-orange); font-weight: 800; letter-spacing: 0.04em; }

.branches__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.branch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.branch-card__map {
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 4px solid var(--color-green);
}
.branch-card__map iframe { width: 100%; height: 100%; border: none; }

.branch-card__label {
  font-size: 0.85rem;
  padding: 0.55rem 1.6rem;
  letter-spacing: 0.14em;
}

/* ============================================================
   CAREERS
   ============================================================ */
.careers { padding: 5rem 0; background: var(--color-green); color: var(--color-cream); }
.careers .section-title { color: var(--color-cream); }
.careers .section-divider { background: var(--color-orange); }
.careers__copy {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-black);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer__wordmark .wordmark { color: var(--color-cream); font-size: 2rem; }
.footer__tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(235,232,192,0.7);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.6rem;
}
.footer__nav a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(235,232,192,0.75);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--color-orange); }

.footer__social {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.footer__social-icon {
  color: rgba(235,232,192,0.75);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}
.footer__social-icon:hover { color: var(--color-orange); transform: translateY(-2px); }

.footer__copy {
  font-size: 0.78rem;
  color: rgba(235,232,192,0.4);
  margin-top: 0.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .navbar__links, .navbar__cta { display: none; }
  .navbar__burger { display: flex; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; }
  .about__logo-wrap { order: -1; }
}

@media (max-width: 580px) {
  .cards-grid { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .hero__title { letter-spacing: 0.12em; }
  .hero__pretitle { letter-spacing: 0.28em; }
  .footer__nav { gap: 0.3rem 1rem; }
  .about__text-card { padding: 1.8rem; }
}
