/* Rafeekaa's Curry Leaves — style.css (mobile-first) */
:root {
  --green: #14532d;
  --green-deep: #0d3b20;
  --lime: #a3d65c;
  --lime-dark: #8cc043;
  --slate: #0b0b0b;
  --cream: #f6f3ea;
  --offwhite: #faf8f2;
  --card: #fffdf8;
  --ink: #1c1f1a;
  --muted: #4b5147;
  --line: rgba(20, 83, 45, .14);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 16px;
  --pill: 999px;
  --shadow: 0 6px 24px rgba(13, 59, 32, .08);
  --shadow-lg: 0 16px 44px rgba(13, 59, 32, .14);
  --ease: cubic-bezier(.4, 0, .2, 1);

  --header-h: 72px;
  --bar-h: 60px;
  --pad: 4.5rem;          /* standard vertical section padding */
  --leaf-w: 90px;          /* leaf width */
  --leaf-clear: 170px;     /* leaf height + 100px clearance */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--cream); padding-bottom: var(--bar-h); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 1rem; color: var(--green); }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--slate); }

.container { position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Sections ---------- */
.section { position: relative; overflow: hidden; padding: var(--pad) 0; }
.section--cream { background: var(--cream); }
.section--offwhite { background: var(--offwhite); }
.section--green { background: var(--green); color: #fff; }
.section--green h2 { color: #fff; }
.has-leaf-tl, .has-leaf-tr { padding-top: var(--leaf-clear); }
.has-leaf-br { padding-bottom: var(--leaf-clear); }

.leaf { position: absolute; z-index: 0; width: var(--leaf-w); height: auto; pointer-events: none; opacity: .9; user-select: none; }
.leaf--tl { top: 0; left: 0; }
.leaf--tr { top: 0; right: 0; }
.leaf--br { bottom: 0; right: 0; transform: scaleY(-1); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: var(--pill); border: 1.5px solid transparent;
  font: 700 .95rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { padding: .6rem 1.05rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--green { background: var(--lime); color: var(--slate); }
.btn--green:hover { background: var(--lime-dark); box-shadow: 0 10px 24px rgba(163, 214, 92, .3); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { background: #fff; color: var(--green); border-color: #fff; }
.btn--dark { background: var(--green); color: #fff; }
.btn--dark:hover { background: var(--green-deep); box-shadow: var(--shadow-lg); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); background: var(--slate); color: #fff; }
.site-header::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; background: url('assets/slate-texture.jpg') repeat; background-size: 300px auto; opacity: .18; pointer-events: none;
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { margin-right: auto; display: inline-flex; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--slate); display: flex; flex-direction: column;
  padding: .5rem 1.25rem 1.25rem; border-top: 1px solid rgba(255, 255, 255, .08);
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.main-nav a { padding: .9rem 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.main-nav a:hover { color: var(--lime); }
.header-actions { display: none; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--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); }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--slate) url('assets/hero-banner.jpg') center / cover no-repeat; color: #fff;
  min-height: 420px; display: flex; align-items: center; text-align: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hero-inner { padding-top: 4rem; padding-bottom: 4rem; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 7vw, 4rem); max-width: 14ch; margin-bottom: 1rem; }
.hero-sub { font-size: 1.02rem; color: rgba(255, 255, 255, .88); max-width: 34rem; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-direction: column; gap: .75rem; width: 100%; max-width: 320px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-copy > p { color: var(--muted); font-size: 1.02rem; }
.tiles { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .75rem; }
.tile { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; font-weight: 700; color: var(--green); }
.tile-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: var(--lime); display: grid; place-items: center; flex-shrink: 0; }
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* ---------- Popular items ---------- */
.note { color: var(--muted); margin-bottom: 1.5rem; }
.tabs { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.25rem; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; border: 1.5px solid var(--green); background: transparent; color: var(--green); cursor: pointer;
  padding: .6rem 1.15rem; border-radius: var(--pill); font: 700 .92rem var(--font-body);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tab:hover { background: rgba(20, 83, 45, .08); }
.tab.is-active { background: var(--green); color: #fff; }
.menu-card { padding: .5rem 1.25rem; }
.panel[hidden] { display: none; }
.panel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 3rem; }
.menu-list li { display: flex; align-items: baseline; gap: .6rem; padding: .95rem 0; border-bottom: 1px dashed var(--line); }
.menu-list li:last-child { border-bottom: 0; }
.menu-list .name { font-weight: 600; }
.menu-list .name i { font-style: normal; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-left: .3rem; }
.menu-list .leader { flex: 1; min-width: 1rem; border-bottom: 1.5px dotted rgba(20, 83, 45, .3); transform: translateY(-4px); }
.menu-list .price { font-weight: 700; color: var(--green); white-space: nowrap; }

/* ---------- Full menu QR ---------- */
.qr-grid { display: grid; gap: 2rem; align-items: center; }
.qr-card { justify-self: start; padding: 1.25rem; background: var(--cream); border-color: transparent; }
.qr { width: 200px; height: 200px; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.qr-copy p { color: rgba(255, 255, 255, .85); font-size: 1.05rem; margin-bottom: 1.5rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: .75rem; margin-top: .5rem; }
.g-item { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--green); box-shadow: var(--shadow); }
.g-item--feature { grid-column: span 2; grid-row: span 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-cap { position: absolute; left: .6rem; bottom: .6rem; background: rgba(11, 11, 11, .72); color: #fff; padding: .3rem .7rem; border-radius: var(--pill); font-size: .78rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-address { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: 1.02rem; }
.contact-address svg { color: var(--green); margin-top: .25rem; }
.phones { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .75rem; }
.phone { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; }
.phone span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 7.5rem; }
.phone a { font-weight: 700; color: var(--green); text-decoration: none; font-size: 1.05rem; }
.phone a:hover { text-decoration: underline; }
.phone .phone-wa { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--slate); display: grid; place-items: center; }
.phone .phone-wa:hover { text-decoration: none; background: var(--lime-dark); }
.contact-note { color: var(--muted); margin-bottom: 1.5rem; }
.map-wrap { overflow: hidden; height: 340px; padding: 0; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--slate); color: rgba(255, 255, 255, .78); padding: 2.5rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.footer-inner img { width: 72px; height: 72px; border-radius: 50%; }
.footer-text p { margin: 0 0 .3rem; }
.footer-copy { color: #fff; font-weight: 600; }
.site-footer a { color: var(--lime); text-decoration: none; font-weight: 700; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 11, 11, .95); display: grid; place-items: center; padding: 3.5rem .5rem; animation: lbIn .25s var(--ease); }
.lightbox[hidden] { display: none; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9rem; max-width: min(1100px, 100%); }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 9rem); object-fit: contain; border-radius: 12px; user-select: none; }
.lb-stage figcaption { color: #fff; font-weight: 600; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1.8rem; line-height: 1; transition: background-color .25s var(--ease), color .25s var(--ease); }
.lb-btn:hover { background: var(--lime); color: var(--slate); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .5rem; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }

/* ---------- Mobile fixed controls ---------- */
.wa-float {
  position: fixed; right: 14px; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: var(--slate); display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--slate);
}
.action-bar a { display: flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; font-weight: 700; }
.bar-wa { background: var(--lime); color: var(--slate); }
.bar-call { background: var(--green); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ================= Tablet ================= */
@media (min-width: 600px) {
  .hero-ctas { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { flex-direction: column; align-items: flex-start; padding: 1.1rem; }
  .qr-grid { grid-template-columns: auto 1fr; gap: 3rem; }
  .qr { width: 220px; height: 220px; }
  .gallery-grid { grid-auto-rows: 240px; }
}

/* ================= Desktop ================= */
@media (min-width: 768px) {
  :root { --header-h: 84px; --bar-h: 0px; --pad: 6rem; --leaf-w: 150px; --leaf-clear: 220px; }
  body { padding-bottom: 0; }
  .container { padding: 0 2rem; }
  .action-bar, .wa-float { display: none; }
  .nav-toggle { display: none; }
  .brand img { width: 64px; height: 64px; }
  .main-nav { position: static; flex-direction: row; gap: 1.75rem; padding: 0; background: none; border: 0; opacity: 1; transform: none; pointer-events: auto; margin-right: 1.5rem; }
  .main-nav a { border: 0; padding: .3rem 0; position: relative; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--lime); transition: right .3s var(--ease); }
  .main-nav a:hover::after { right: 0; }
  .header-actions { display: flex; gap: .6rem; }
  .hero { min-height: 560px; }
  .about-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .menu-card { padding: .75rem 2rem; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: stretch; }
  .map-wrap { height: auto; min-height: 460px; }
  .footer-inner { flex-direction: row; align-items: center; gap: 1.5rem; }
}

@media (min-width: 768px) and (max-width: 979px) {
  .main-nav { gap: 1.1rem; margin-right: .5rem; }
  .header-actions .btn svg { display: none; }
}

@media (min-width: 900px) {
  .menu-list { grid-template-columns: 1fr 1fr; }
  .menu-list li.wide { grid-column: 1 / -1; }
  .menu-list li:nth-last-child(2):not(.wide):nth-child(odd) { border-bottom: 0; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 1rem; }
}

@media (min-width: 1280px) {
  :root { --leaf-w: 220px; --leaf-clear: 270px; }
}

/* Wide screens: leaves sit fully outside the text column, so normal spacing applies */
@media (min-width: 1780px) {
  :root { --leaf-clear: var(--pad); }
}
