/**
 * Harischandraa Caterers — editorial palette
 * Gold · warm gray · restrained purple · red for primary action only · no gradients
 */
:root {
  --bg-page: #f5f4f1;
  --bg-surface: #ffffff;
  --bg-muted: #eeedea;
  --text: #1c1917;
  --text-muted: #78716e;
  --border: #e7e5e4;
  --gold: #a16207;
  --gold-bright: #ca8a04;
  --gold-soft: #fefce8;
  --purple: #4c1d95;
  --purple-soft: #ede9fe;
  /* Light violet for headings on charcoal / hero / footer */
  --heading-on-dark: #e9d5ff;
  --red: #b91c1c;
  --red-hover: #991b1b;
  --charcoal: #292524;
  --stone-600: #57534e;
}

body.site-body {
  background-color: var(--bg-page);
  color: var(--text);
}

/* —— Header —— */
.site-header {
  box-shadow: 0 1px 0 rgba(41, 37, 36, 0.06);
}

.header-topbar {
  background: var(--purple);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  border-bottom: 2px solid var(--gold-bright);
}

.header-topbar a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.15s;
}

.header-topbar a:hover {
  color: #fde68a;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scrolling policy strip (home header top bar) */
.policy-ticker {
  overflow: hidden;
  width: 100%;
  padding: 0.4rem 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 0.75rem,
    #000 calc(100% - 0.75rem),
    transparent
  );
}

.policy-ticker__viewport {
  overflow: hidden;
  width: 100%;
}

.policy-ticker__track {
  display: flex;
  width: max-content;
  animation: policy-ticker-marquee 70s linear infinite;
}

.policy-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes policy-ticker-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.policy-ticker__segment {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0;
  padding-right: 2.5rem;
}

.policy-ticker__item {
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.policy-ticker__sep {
  display: inline-flex;
  align-items: center;
  color: var(--gold-bright);
  font-weight: 700;
  padding: 0 0.85rem;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .policy-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    row-gap: 0.25rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .policy-ticker__segment {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
    white-space: normal;
  }

  .policy-ticker__item {
    white-space: normal;
    text-align: center;
  }

  .policy-ticker__segment[aria-hidden="true"] {
    display: none;
  }
}

.header-main {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.brand-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.brand-logo-img {
  height: 2.875rem;
  width: auto;
  max-width: min(78vw, 440px);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 480px) {
  .brand-logo-img { height: 3.25rem; }
}
@media (min-width: 768px) {
  .brand-logo-img { height: 3.75rem; max-width: 480px; }
}
@media (min-width: 1024px) {
  .brand-logo-img { height: 4.25rem; max-width: 520px; }
}
@media (min-width: 1280px) {
  .brand-logo-img { height: 4.75rem; max-width: 580px; }
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.search-input {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 2.75rem 0.5rem 1rem;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg-muted);
  width: 100%;
}

.search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(76, 29, 149, 0.12);
  outline: none;
  background: var(--bg-surface);
}

.search-button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  color: #fff;
  cursor: pointer;
  background: var(--stone-600);
  transition: background-color 0.15s;
}

.search-button:hover {
  background: var(--charcoal);
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--stone-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

@media (min-width: 1280px) {
  .site-nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }
}

.site-nav-link:hover {
  color: var(--purple);
  background: var(--bg-muted);
}

.site-nav-link.active {
  color: var(--purple);
  background: var(--purple-soft);
  border-bottom-color: var(--purple);
}

.site-nav-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 6.75rem;
  padding: 0.5625rem 1.125rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  background: var(--red);
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.25);
  transition: background-color 0.15s, box-shadow 0.15s;
}

@media (min-width: 768px) {
  .btn-header-call {
    min-width: 10.75rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.btn-header-call:hover {
  background: var(--red-hover);
  box-shadow: 0 2px 8px rgba(153, 27, 27, 0.3);
}

.btn-header-call:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

#mobile-menu {
  background: var(--bg-muted) !important;
}

.nav-link-enhanced {
  padding: 8px 16px;
  border-radius: 12px;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav-link-enhanced:hover {
  background: var(--charcoal);
  color: #fff;
}

.nav-link-enhanced.active {
  background: var(--charcoal);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold-bright);
}

.call-button-enhanced {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 12rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--red);
  box-shadow: 0 1px 4px rgba(185, 28, 28, 0.25);
  transition: background-color 0.15s;
}

.call-button-enhanced:hover {
  background: var(--red-hover);
}

/* —— Floating call + WhatsApp (phone above) —— */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s, transform 0.15s;
}

.floating-contact-btn:hover {
  filter: brightness(0.94);
  transform: scale(1.04);
}

.floating-contact-call {
  background: var(--red);
  color: #fff;
}

.floating-contact-wa {
  background-color: #25d366;
  color: #fff;
}

/* —— Footer —— */
footer .footer-link {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.15s;
}

footer .footer-link:hover {
  color: var(--gold-bright);
}

footer .footer-meta-icon {
  color: #78716e;
  transition: color 0.15s;
}

footer li:hover .footer-meta-icon {
  color: var(--gold);
}

.tagline-gold {
  color: var(--gold);
}

/* —— Section typography (home & shared) —— */
.section-title {
  color: var(--purple);
  font-weight: 700;
}

/* Headings: brand purple (overrides Tailwind text-gray / text-stone on titles) */
body.site-body h1,
body.site-body h2,
body.site-body h3,
body.site-body h4,
body.site-body h5,
body.site-body h6 {
  color: var(--purple);
}

/* Non-heading elements styled as section titles (e.g. rating line) */
body.site-body p.section-title {
  color: var(--purple);
}

/* Home hero: crisp white headings on photo (override global purple h*) */
body.site-body .hero-section h1,
body.site-body .hero-section h2,
body.site-body .hero-section h3,
body.site-body .hero-section h4,
body.site-body .hero-section h5,
body.site-body .hero-section h6 {
  color: #fff;
}

/* Headings on dark backgrounds — white (override global purple body.site-body h*) */
body.site-body .page-hero-edition h1,
body.site-body .page-hero-edition h2,
body.site-body .page-hero-edition h3,
body.site-body .page-hero-edition h4,
body.site-body .page-hero-edition h5,
body.site-body .page-hero-edition h6,
body.site-body .gallery-hero h1,
body.site-body .gallery-hero h2,
body.site-body .gallery-hero h3,
body.site-body .gallery-hero h4,
body.site-body .gallery-hero h5,
body.site-body .gallery-hero h6,
body.site-body .section-cta-dark h1,
body.site-body .section-cta-dark h2,
body.site-body .section-cta-dark h3,
body.site-body .section-cta-dark h4,
body.site-body .section-cta-dark h5,
body.site-body .section-cta-dark h6,
body.site-body .menu-column-head h1,
body.site-body .menu-column-head h2,
body.site-body .menu-column-head h3,
body.site-body .menu-column-head h4,
body.site-body .menu-column-head h5,
body.site-body .menu-column-head h6,
body.site-body footer h1,
body.site-body footer h2,
body.site-body footer h3,
body.site-body footer h4,
body.site-body footer h5,
body.site-body footer h6,
body.site-body .modal h1,
body.site-body .modal h2,
body.site-body .modal h3,
body.site-body .modal h4,
body.site-body .modal h5,
body.site-body .modal h6 {
  color: #fff;
}

body.site-body .page-hero-edition > .container > p,
body.site-body .gallery-hero > .container > p,
body.site-body .section-cta-dark > .container > p {
  color: rgba(255, 255, 255, 0.92);
}

.section-title-rule {
  width: 3rem;
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  background-color: var(--gold-bright);
}

.section-lead {
  color: var(--text-muted);
}

/* —— Buttons (solid, no gradients) —— */
.btn-primary-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  background: var(--red);
  border: none;
  transition: background-color 0.15s;
}

.btn-primary-red:hover {
  background: var(--red-hover);
}

.btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--purple);
  text-decoration: none;
  background: #fff;
  border: 2px solid var(--border);
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.btn-secondary-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold);
  background: var(--gold-soft);
}

.btn-brand-purple {
  color: #fff;
  text-decoration: none;
  background: var(--purple);
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.btn-brand-purple:hover {
  background: #3b0f6f;
}

.btn-whatsapp-green {
  color: #fff;
  text-decoration: none;
  background: #25d366;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.btn-whatsapp-green:hover {
  background: #1ebe5d;
  color: #fff;
}

/* —— Home: hero chips —— */
.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(28, 25, 23, 0.72);
  border: 1px solid rgba(253, 230, 138, 0.25);
}

/* Hero: lead line + pills + CTAs stay readable on photo (all viewports) */
body.site-body .hero-section > .container > p {
  color: rgba(255, 255, 255, 0.92);
}

/* Hero CTAs: stacked full-width on narrow screens; auto width from md */
body.site-body .hero-section .hero-cta-row {
  width: 100%;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  body.site-body .hero-section .hero-cta-row {
    max-width: none;
    width: auto;
  }
}

body.site-body .hero-section .hero-cta-btn {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.site-body .hero-section .hero-cta-btn {
    width: auto;
    min-width: 11rem;
  }
}

body.site-body .hero-section .hero-cta-btn.btn-primary-red {
  color: #fff;
  background: var(--red);
}

body.site-body .hero-section .hero-cta-btn.btn-primary-red:hover {
  background: var(--red-hover);
  color: #fff;
}

body.site-body .hero-section .hero-cta-btn.btn-brand-purple {
  color: #fff;
  background: var(--purple);
}

body.site-body .hero-section .hero-cta-btn.btn-brand-purple:hover {
  background: #3b0f6f;
  color: #fff;
}

body.site-body .hero-section .hero-cta-btn.btn-whatsapp-green {
  color: #fff;
  background: #25d366;
}

body.site-body .hero-section .hero-cta-btn.btn-whatsapp-green:hover {
  background: #1ebe5d;
  color: #fff;
}

/* —— Home: band & cards —— */
.section-band-subtle {
  background: var(--bg-muted);
}

/* Catering Specialties block — red accents on icons only; headings use site purple */
.section-specialties h2.section-title {
  color: var(--purple);
}

body.site-body .section-specialties h3 {
  color: var(--purple);
}

.section-specialties .specialty-card-icon {
  background: rgba(185, 28, 28, 0.09);
  border: 1px solid rgba(185, 28, 28, 0.22);
}

.section-specialties .specialty-card-icon i {
  color: var(--red);
}

.menu-column-head {
  background: var(--charcoal);
  color: #fff;
  border-bottom: 3px solid var(--gold-bright);
}

.callout-soft {
  background: var(--gold-soft);
  border: 1px solid rgba(202, 138, 4, 0.35);
}

.callout-soft .callout-title {
  color: var(--purple);
}

.section-cta-dark {
  background: var(--charcoal);
  color: #fff;
  border-top: 3px solid var(--gold-bright);
}

.section-cta-dark .btn-secondary-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.section-cta-dark .btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fde68a;
  color: #fde68a;
}

/* Simple header nav (inner pages): gold underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--gold-bright);
  bottom: -2px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Inner page hero: charcoal + gold accent, no gradient */
.page-hero-edition {
  background: var(--charcoal);
  color: #fff;
  border-bottom: 3px solid var(--gold-bright);
}

.btn-inner-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--red);
  transition: background-color 0.15s;
}

.btn-inner-call:hover {
  background: var(--red-hover);
}

.menu-toggle-icon {
  color: var(--purple);
}

.icon-accent-gold {
  color: var(--gold);
}

.icon-circle-brand {
  padding: 1rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 1rem;
  background: var(--purple-soft);
  border: 1px solid rgba(76, 29, 149, 0.12);
}

.icon-circle-brand i {
  color: var(--purple);
}

.btn-hero-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  background: #fff;
  color: var(--charcoal);
  text-decoration: none;
  border: 2px solid rgba(253, 230, 138, 0.45);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-hero-light:hover {
  background: var(--gold-soft);
  border-color: var(--gold-bright);
  color: var(--gold);
}

.cta-quote-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.cta-quote-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fde68a;
  color: #fde68a;
}

/* Gallery hero: photo + flat inset darken (no gradient) */
.gallery-hero {
  background-image: url("assets/gallery/IZAK Logo (1).jpg");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.66);
}

.contact-form-field:focus {
  outline: none;
  border-color: var(--gold-bright) !important;
  box-shadow: 0 0 0 2px rgba(202, 138, 4, 0.22);
}

/* Contact page: embedded map (stable height, no fake “loading” box) */
.contact-map-wrap {
  position: relative;
  width: 100%;
  min-height: 16rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e7e5e4;
}

.contact-map-frame {
  display: block;
  width: 100%;
  height: 16rem;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
