/* =============================================================
   AllyAnne's Kolache Kitchen — styles.css
   Shared stylesheet for index.html and catering.html
   Page-specific styles live in each HTML file's <style> block
   ============================================================= */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --sienna:       #B84C30;
  --sienna-dark:  #8F3520;
  --sienna-mid:   #C85A3A;
  --sienna-light: #EDD5C8;
  --sienna-faint: #FAF2EF;
  --tan:          #E8D9BC;
  --tan-light:    #F2E8D5;
  --tan-deep:     #D4C09A;
  --cream:        #F7F1E6;
  --warm-white:   #FEFBF5;
  --text:         #231508;
  --text-soft:    #3E2112;
  --muted:        #6B4A36;
  --gold:         #C8922A;
  --gold-light:   #F5E4C0;
  /* Container max-width — scales with viewport */
  --max: 600px;
}
@media (min-width: 768px)  { :root { --max: 720px;  } }
@media (min-width: 1024px) { :root { --max: 960px;  } }
@media (min-width: 1280px) { :root { --max: 1100px; } }
@media (min-width: 1440px) { :root { --max: 1200px; } }

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Accessibility: visible focus ──
   Baseline :focus rule fires on every browser, including ones that don't
   recognize :focus-visible at all. The second rule then removes the outline
   for mouse/touch focus on browsers that DO support :focus-visible, leaving
   it visible only for keyboard/switch navigation. If :focus-visible isn't
   supported, that second rule is simply ignored and every focus keeps an
   outline — degraded but never invisible. */
:is(a, button, input, select, textarea):focus {
  outline: 3px solid var(--sienna);
  outline-offset: 2px;
}
:is(a, button, input, select, textarea):focus:not(:focus-visible) {
  outline: none;
}

/* ── Section base ── */
section { padding: 80px 24px; }
@media (min-width: 1024px) { section { padding: 104px 24px; } }

/* ── Shared section inner container ── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

/* ── Brand checker strip ── */
.checker-strip {
  height: 8px;
  min-height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--sienna) 0px,  var(--sienna) 8px,
    var(--tan)    8px,  var(--tan)    16px
  );
}

/* ── Shared section typography ── */
.section-eyebrow {
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sienna-dark);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 3.2rem); line-height: 1.08;
  color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-sub {
  font-size: 0.97rem; color: var(--muted); line-height: 1.72;
  max-width: 540px; margin: 0 auto 40px;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: -1px; z-index: 100;
  background: var(--sienna);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.18);
}
.header-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: opacity 0.18s;
}
.header-logo-wrap:hover { opacity: 0.88; }
.header-logo-img {
  height: 40px; width: 40px;
  object-fit: contain;
  background: var(--tan);
  border-radius: 8px;
  padding: 3px;
}
.header-logo-text-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700; font-size: 1.15rem;
  color: #fff; line-height: 1.1; display: block;
  letter-spacing: 0.01em;
}
.header-logo-text-sub {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.85);
  margin-top: 1px; display: block;
}
.header-btns { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }

/* Header ghost nav link (Home / Catering) */
.btn-nav-link {
  display: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 16px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
}
.btn-nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.65);
}
@media (min-width: 600px) {
  .btn-nav-link { display: inline-flex; align-items: center; }
}

/* Header CTA buttons */
.btn-call-header { /* icon: black, text: white */

  display: flex; align-items: center; gap: 4px;
  padding: 15px 16px; border-radius: 100px;
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  background: rgba(255,255,255,0.13); color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.2s, border-color 0.2s;
}
.btn-call-header:hover  { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }
.btn-call-header:active { background: rgba(255,255,255,0.28); }

.btn-order-header {
  display: flex; align-items: center; gap: 4px;
  padding: 15px 16px; border-radius: 100px;
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
  background: var(--tan); color: var(--sienna-dark);
  transition: background 0.2s;
}
.btn-order-header:hover  { background: #f0deb3; }
.btn-order-header:active { background: var(--tan-deep); }

/* ===================== SHARED BUTTONS ===================== */

/* Primary — sienna fill (used on both pages) */
.btn-primary {
  display: block; background: var(--sienna); color: #fff;
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.025em;
  padding: 17px 24px; border-radius: 14px;
  text-decoration: none; text-align: center;
  box-shadow: 0 2px 0 var(--sienna-dark), 0 6px 22px rgba(184,76,48,0.28);
  transition: background 0.18s, box-shadow 0.22s, transform 0.18s;
  position: relative; top: 0;
}
.btn-primary:hover  {
  background: var(--sienna-mid);
  box-shadow: 0 2px 0 var(--sienna-dark), 0 14px 36px rgba(184,76,48,0.42);
  transform: translateY(-3px);
}
.btn-primary:active { background: var(--sienna-dark); box-shadow: none; top: 2px; transform: scale(0.99); }

/* Secondary — tan fill */
.btn-secondary {
  display: block; background: var(--tan-light); color: var(--text-soft);
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.02em;
  padding: 15px 24px; border-radius: 14px;
  text-decoration: none; text-align: center;
  border: 1.5px solid var(--tan-deep);
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover  { background: var(--tan); border-color: var(--muted); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(35,21,8,0.10); }
.btn-secondary:active { background: var(--tan); transform: none; }

/* Sienna (alias of primary — used in final CTA, location) */
.btn-sienna {
  display: block; background: var(--sienna); color: #fff;
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.025em;
  padding: 17px 24px; border-radius: 14px;
  text-decoration: none; text-align: center;
  box-shadow: 0 2px 0 var(--sienna-dark), 0 6px 22px rgba(184,76,48,0.25);
  transition: background 0.18s, transform 0.18s, box-shadow 0.22s;
}
.btn-sienna:hover { background: var(--sienna-mid); transform: translateY(-3px); box-shadow: 0 2px 0 var(--sienna-dark), 0 14px 36px rgba(184,76,48,0.38); }

/* Outline sienna */
.btn-outline-sienna {
  display: block; background: transparent; color: var(--sienna-dark);
  font-weight: 600; font-size: 0.97rem; letter-spacing: 0.02em;
  padding: 15px 24px; border-radius: 14px;
  text-decoration: none; text-align: center;
  border: 1.5px solid var(--tan-deep);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.btn-outline-sienna:hover { background: var(--tan-light); border-color: var(--sienna-light); transform: translateY(-2px); }

/* ===================== REVIEWS (shared markup, different containers) ===================== */
.reviews-section { background: var(--sienna); padding: 80px 24px; }
.reviews-section .section-eyebrow { color: rgba(255,255,255,0.7); letter-spacing: 0.2em; }
.reviews-section .section-title   { color: #fff; }
.reviews-section .section-sub     { color: rgba(255,255,255,0.65); }

.review-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-left: 3px solid rgba(255,255,255,0.35);
  border-radius: 18px; padding: 28px 26px 24px;
  text-align: left; position: relative; overflow: hidden;
}
.review-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 8rem; line-height: 0.8;
  color: rgba(255,255,255,0.1);
  position: absolute; top: 6px; left: 14px;
  pointer-events: none; user-select: none;
}
.review-stars  { color: var(--gold-light); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 12px; }
.review-text   {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 1.01rem; color: rgba(255,255,255,0.9); line-height: 1.78;
  margin-bottom: 16px; position: relative;
}
.review-author {
  font-size: 0.72rem; font-weight: 700; color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.11em;
}

.rating-block {
  margin-top: 24px; background: rgba(0,0,0,0.14);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.rating-block-score { font-family: 'Cormorant Garamond', serif; font-size: 4.8rem; font-weight: 700; color: #fff; line-height: 1; }
.rating-block-stars { color: var(--gold-light); font-size: 1.1rem; letter-spacing: 2px; }
.rating-block-label { font-size: 0.78rem; color: rgba(255,255,255,0.72); letter-spacing: 0.05em; text-transform: uppercase; }
.rating-block-link  {
  margin-top: -7px; display: inline-block;
  padding: 15px 0;
  font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.82);
  text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.03em;
  transition: color 0.15s;
}
.rating-block-link:hover { color: #fff; }

@media (min-width: 1024px) { .reviews-section { padding: 80px 24px; } }

/* ===================== LOCATION (shared structure) ===================== */
.location-section { background: var(--cream); padding: 64px 24px; }
.location-card {
  background: var(--warm-white);
  border: 1px solid var(--tan-deep);
  border-radius: 20px;
  margin-top: 24px;
}
.menu-item { font-size: 0.875rem; color: var(--text-soft); padding: 5px 0; border-bottom: 1px solid var(--tan-light); line-height: 1.35; }
.menu-item:last-child { border-bottom: none; }
.menu-col-head {
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.05rem;
  color: var(--sienna); margin-bottom: 14px;
  border-bottom: 1px solid var(--tan-deep); padding-bottom: 10px;
}
@media (min-width: 1024px) { .location-section { padding: 80px 24px; } }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--sienna-dark); padding: 40px 24px; text-align: center; }
.footer-logo {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: 1.35rem; color: #fff; margin-bottom: 5px;
}
.footer-tagline {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 0.8rem; color: rgba(255,255,255,0.72); margin-bottom: 20px;
}
.footer-social {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 18px;
}
.footer-social-link { color: rgba(255,255,255,0.72); transition: color 0.18s; display: flex; align-items: center; justify-content: center; padding: 12px; margin: -12px; }
.footer-social-link:hover { color: rgba(255,255,255,0.95); }
.footer-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-bottom: 14px; font-size: 0.75rem;
}
.footer-nav a { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.15s; }
.footer-nav a:hover { color: rgba(255,255,255,0.95); }
.footer-nav span { color: rgba(255,255,255,0.25); }
.footer-info { font-size: 0.875rem; color: rgba(255,255,255,0.72); line-height: 1.9; }
.footer-info a { color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.15s; }
.footer-info a:hover { color: rgba(255,255,255,0.9); }
.footer-copyright {
  font-size: 0.68rem; color: rgba(255,255,255,0.38);
  margin-top: 20px; letter-spacing: 0.03em;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===================== PAPER TEXTURE ===================== */
/* Subtle warm grain overlay — adds editorial depth without affecting usability */
body::after {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9998;
}

/* ===================== MOBILE NAV (hamburger) ===================== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--warm-white); border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed; inset: 0;
  background: var(--sienna-dark);
  z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }

.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none;
  color: var(--warm-white); font-size: 1.6rem;
  cursor: pointer; padding: 12px; line-height: 1;
  transition: opacity 0.15s;
}
.mobile-nav-close:hover { opacity: 0.75; }

.mobile-nav-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  width: 100%; padding: 0 32px;
}
.mobile-nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem; color: var(--warm-white);
  text-decoration: none; padding: 14px 0;
  text-align: center; width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: opacity 0.15s;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { opacity: 0.8; }
.mobile-nav-cta {
  background: var(--warm-white); color: var(--sienna-dark);
  border-radius: 12px; padding: 16px 28px;
  margin-top: 10px; border-bottom: none;
  font-size: 1.1rem; font-family: 'DM Sans', sans-serif;
  font-weight: 700; letter-spacing: 0.01em;
}
.mobile-nav-cta:hover { opacity: 0.92; }
.mobile-nav-call {
  color: var(--gold-light); border-bottom: none;
  font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .hamburger                         { display: flex; }
  .header-btns .btn-nav-link         { display: none; }
  .header-logo-text-name,
  .header-logo-text-sub              { display: none; }
}
@media (min-width: 768px) {
  .hamburger           { display: none !important; }
  .mobile-nav-overlay  { display: none !important; }
}

/* ===================== FIX 3: Phone SVG icon ===================== */
.call-icon-svg {
  display: inline-block; vertical-align: middle;
  margin-right: 4px; margin-top: -1px;
  flex-shrink: 0;
}

/* ===================== FIX 4: Opaque sticky header on iOS ===================== */
.site-header { isolation: isolate; }
