/* Kaara Saaram — design concept by Beans Digital.
   Palette derived from the restaurant's identity: "Kaara Saaram" is Tamil for
   fiery/spicy flavour — chilli red for heat, curry-leaf green for the South
   Indian kitchen, turmeric gold for accents, banana-leaf cream for backgrounds. */

:root {
  --chilli: #b3271e;
  --chilli-dark: #8c1d16;
  --curry-leaf: #2e5a34;
  --turmeric: #e0a52e;
  --cream: #faf5e9;
  --cream-deep: #f3ead6;
  --ink: #2b241c;
  --ink-soft: #6b6153;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 36, 28, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .nav, .btn, .badge, .hours-table, .concept-banner {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}

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

a { color: var(--chilli); }

.container { width: min(1060px, 100% - 32px); margin-inline: auto; }

/* ---- Concept banner ---- */
.concept-banner {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}
.concept-banner strong { color: var(--turmeric); }

/* ---- Header ---- */
.site-header {
  background: var(--curry-leaf);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--turmeric); color: var(--curry-leaf);
  display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 0.7rem; opacity: 0.85; letter-spacing: 0.06em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid rgba(255,255,255,0.6); border-radius: 8px;
  color: var(--white); font-size: 1.3rem; line-height: 1;
  padding: 6px 10px; cursor: pointer;
}

.nav ul { display: flex; gap: 4px; list-style: none; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 8px;
  color: var(--white); text-decoration: none; font-size: 0.95rem;
}
.nav a:hover { background: rgba(255,255,255,0.14); }
.nav a.active, .nav a[aria-current="page"] {
  background: var(--turmeric); color: var(--ink); font-weight: 700;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--curry-leaf) 0%, #1f4024 70%);
  color: var(--cream);
  padding: 56px 0 64px;
  text-align: center;
}
.hero .badge {
  display: inline-block; background: var(--chilli); color: var(--white);
  border-radius: 999px; padding: 6px 16px; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.15; margin-bottom: 14px; }
.hero h1 span { color: var(--turmeric); }
.hero p.lede { max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; opacity: 0.92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.rating-line { margin-top: 26px; font-size: 0.9rem; color: var(--turmeric); }
.rating-line .stars { letter-spacing: 2px; }
.rating-line small { color: var(--cream); opacity: 0.8; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 12px 24px; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--chilli); color: var(--white); }
.btn-primary:hover { background: var(--chilli-dark); }
.btn-outline { border: 2px solid var(--turmeric); color: var(--turmeric); }
.btn-outline:hover { background: var(--turmeric); color: var(--ink); }
.btn-dark { background: var(--curry-leaf); color: var(--white); }

/* ---- Sections ---- */
.section { padding: 52px 0; }
.section-alt { background: var(--cream-deep); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-head .eyebrow {
  color: var(--chilli); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 6px 0 10px; color: var(--curry-leaf); }
.section-head p { color: var(--ink-soft); }

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--turmeric);
}
.card h3 { color: var(--curry-leaf); margin-bottom: 8px; font-size: 1.1rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card .dish-tag {
  display: inline-block; background: var(--cream-deep); color: var(--chilli-dark);
  border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; margin: 2px 2px 0 0;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

/* ---- Photo placeholders (no real photos available — owner to supply) ---- */
.photo-slot {
  border: 2px dashed var(--curry-leaf);
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 12px, var(--cream-deep) 12px, var(--cream-deep) 24px);
  display: grid; place-items: center;
  min-height: 180px; text-align: center;
  color: var(--curry-leaf); font-size: 0.85rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  padding: 16px;
}
.photo-slot.tall { min-height: 260px; }

/* ---- Menu page ---- */
.menu-section { margin-bottom: 36px; }
.menu-section h3 {
  color: var(--chilli); border-bottom: 2px solid var(--turmeric);
  padding-bottom: 6px; margin-bottom: 16px; font-size: 1.2rem;
}
.menu-list { list-style: none; }
.menu-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px dotted rgba(43,36,28,0.25);
}
.menu-list .dish b { display: block; font-size: 1rem; }
.menu-list .dish span { color: var(--ink-soft); font-size: 0.88rem; }
.menu-list .ask {
  white-space: nowrap; color: var(--curry-leaf); font-size: 0.8rem;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.menu-note {
  background: var(--cream-deep); border-left: 4px solid var(--turmeric);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem; color: var(--ink-soft); margin-top: 20px;
}

/* ---- Hours table ---- */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours-table th, .hours-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(43,36,28,0.15); }
.hours-table th { color: var(--curry-leaf); width: 50%; }
.hours-table tr.today-hint td { color: var(--chilli); font-weight: 700; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }
.map-frame {
  width: 100%; height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h3 { color: var(--curry-leaf); margin-bottom: 10px; }
.contact-card p { margin-bottom: 10px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--chilli); color: var(--white);
  text-align: center; padding: 44px 0;
}
.cta-band h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 10px; }
.cta-band p { opacity: 0.92; margin-bottom: 20px; }
.cta-band .btn-outline { border-color: var(--white); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--chilli); }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 36px 0 24px; font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 24px; }
.site-footer h4 { color: var(--turmeric); margin-bottom: 10px; font-family: "Trebuchet MS", Verdana, sans-serif; }
.site-footer a { color: var(--cream); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.footer-legal {
  border-top: 1px solid rgba(250,245,233,0.2); padding-top: 16px;
  text-align: center; font-size: 0.8rem; opacity: 0.8;
}

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--white); }

/* ---- Reveal animation (JS adds .js to <html>; content fully visible without it) ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-float { transition: none; }
}

/* ---- Mobile ---- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--curry-leaf); display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 10px 16px 16px; }
  .nav a { padding: 12px 14px; }
  /* Without JS the toggle does nothing, so keep nav reachable: show it when targeted */
  .nav:target { display: block; }
  .hero { padding: 40px 0 48px; }
  .map-frame { height: 260px; }
}
