/* ==========================================================================
   Rao's Catering Services — style.css
   Warm heritage theme. No web fonts, no frameworks, no JavaScript.
   Edit brand colours in the :root block below.
   ========================================================================== */

:root {
  /* Brand palette */
  --leaf:        #2f5d3a;   /* banana-leaf green — primary */
  --leaf-dark:   #1f4128;
  --leaf-tint:   #eaf1e9;
  --maroon:      #7b2d26;   /* kumkum maroon — accent */
  --gold:        #b8892f;   /* turmeric gold — highlights */
  --cream:       #fbf7ef;   /* page background */
  --cream-deep:  #f3ecdf;
  --ink:         #23201b;   /* body text */
  --ink-soft:    #5b544a;
  --rule:        #e2d9c6;
  --white:       #ffffff;

  /* Type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --wrap: 1120px;
  --gap: 1.5rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(35,32,27,.06), 0 8px 24px rgba(35,32,27,.06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--leaf-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--maroon); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--leaf-dark);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--cream-deep); }
.section--leaf { background: var(--leaf-dark); color: #f2efe6; }
.section--leaf h2, .section--leaf h3 { color: var(--white); }
.section--leaf a { color: #ffe9b8; }

.section-head { max-width: 68ch; margin-bottom: 2.25rem; }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
  margin: 0 0 .7rem;
}
.section--leaf .eyebrow { color: var(--gold); }

.grid { display: grid; gap: var(--gap); }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); }
                             .grid--3 { grid-template-columns: repeat(2, 1fr); }
                             .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); }
                             .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Skip link ---------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--leaf-dark); color: #fff; padding: .7rem 1rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* --- Header / nav (CSS-only mobile toggle, zero JS) --------------------- */
.topbar {
  background: var(--leaf-dark); color: #ede8dc;
  font-size: .88rem; letter-spacing: .01em;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: #ffe9b8; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,247,239,.94);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--leaf-dark); color: #fff;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: .02em;
}
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; color: var(--leaf-dark); line-height: 1.1; }
.brand-sub  { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--maroon); font-weight: 700; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; cursor: pointer; padding: .55rem .8rem;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--white);
  font-size: .9rem; font-weight: 600; color: var(--leaf-dark);
}
.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .97rem; color: var(--ink);
}
.site-nav a:hover { background: var(--leaf-tint); color: var(--leaf-dark); }
.site-nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--maroon); border-radius: 0; }

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  .site-nav {
    order: 3; width: 100%; max-height: 0; overflow: hidden;
    transition: max-height .2s ease;
  }
  .nav-toggle:checked ~ .site-nav { max-height: 26rem; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding-block: .5rem; }
  .site-nav a { padding: .7rem .6rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-header .wrap { flex-wrap: wrap; }
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn--primary { background: var(--maroon); color: #fff; }
.btn--primary:hover { background: #63231d; color: #fff; }
.btn--ghost { border-color: var(--leaf-dark); color: var(--leaf-dark); background: transparent; }
.btn--ghost:hover { background: var(--leaf-dark); color: #fff; }
.btn--light { background: var(--white); color: var(--leaf-dark); }
.btn--light:hover { background: var(--cream-deep); color: var(--leaf-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(47,93,58,.10), transparent 60%),
    linear-gradient(180deg, var(--cream-deep), var(--cream));
  border-bottom: 1px solid var(--rule);
}
.hero .wrap { padding-block: clamp(3rem, 8vw, 5.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: .4em; }
.hero .lede { font-size: 1.2rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.badge {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--leaf-tint); color: var(--leaf-dark);
  border: 1px solid #cfe0cd; border-radius: 999px; padding: .32rem .8rem;
}

/* --- Cards -------------------------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--flat { box-shadow: none; background: transparent; border-style: dashed; }

.stat { text-align: center; padding: 1.1rem .8rem; }
.stat-num { font-family: var(--serif); font-size: 2rem; color: var(--maroon); line-height: 1; display: block; margin-bottom: .3rem; }
.stat-label { font-size: .88rem; color: var(--ink-soft); }

/* --- Lists -------------------------------------------------------------- */
.tick { list-style: none; margin: 0; padding: 0; }
.tick li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.tick li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .55rem; height: .55rem; border-radius: 2px;
  background: var(--gold); transform: rotate(45deg);
}
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; margin-bottom: 1.4rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.1rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--leaf-dark); color: #fff;
  font-family: var(--serif); font-size: 1.05rem;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .2em; }

/* --- Image placeholders (swap for real photos) -------------------------- */
.ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(47,93,58,.07) 0 14px, rgba(47,93,58,.03) 14px 28px),
    var(--leaf-tint);
  border: 1px dashed #bfd2bd;
  display: grid; place-items: center; text-align: center;
  color: var(--leaf-dark); font-size: .84rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
  padding: 1rem; min-height: 220px;
}
.ph--tall { min-height: 340px; }
.ph--wide { min-height: 180px; }

/* --- FAQ (details/summary, no JS) --------------------------------------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); padding: .2rem 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.2rem 1.05rem 0; position: relative;
  font-family: var(--serif); font-size: 1.1rem; color: var(--leaf-dark); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: .85rem;
  font-size: 1.5rem; color: var(--maroon); line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; max-width: 72ch; }

/* --- Contact bits ------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--gap); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.contact-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-line .ico {
  flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--leaf-tint); color: var(--leaf-dark);
  display: grid; place-items: center; font-size: 1.05rem;
}
.contact-line a { font-weight: 700; text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .3rem; color: var(--leaf-dark); }
form input, form select, form textarea {
  width: 100%; padding: .7rem .8rem; margin-bottom: 1rem;
  border: 1px solid var(--rule); border-radius: 8px;
  font: inherit; font-size: .97rem; background: var(--white); color: var(--ink);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf);
}
form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; }

.map-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* --- Blog --------------------------------------------------------------- */
.post-list { display: grid; gap: var(--gap); }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.25rem; }
.post-meta { font-size: .85rem; color: var(--ink-soft); margin-bottom: .6rem; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--maroon); background: #f7ecea;
  border-radius: 999px; padding: .22rem .7rem; margin-bottom: .8rem;
}
.empty-state {
  border: 1px dashed #c8bda6; border-radius: var(--radius);
  padding: 2.5rem 1.5rem; text-align: center; background: var(--white);
}

/* --- Breadcrumbs -------------------------------------------------------- */
.crumbs { font-size: .87rem; color: var(--ink-soft); padding-top: 1.2rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }
.crumbs a { text-decoration: none; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--leaf-dark); color: #f2efe6; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin-inline: auto; color: #ddd6c6; }
.cta-band .btn-row { justify-content: center; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: #1a2f20; color: #cfd6c9; padding-block: 3rem 1.5rem; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: .7rem; }
.site-footer a { color: #e8dfc9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.colophon {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 2.2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .87rem; color: #a8b3a4;
}

/* --- Prose (blog posts / long pages) ------------------------------------ */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
  margin: 1.6rem 0; padding: .3rem 0 .3rem 1.2rem;
  border-left: 3px solid var(--gold); color: var(--ink-soft); font-style: italic;
}

/* --- A11y / motion ------------------------------------------------------ */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .cta-band, .site-footer, .btn-row { display: none; }
  body { background: #fff; font-size: 12pt; }
}
