/* ============================================================
   HERITAGE FOOD COMPANY — Global Stylesheet
   heritagefoodcompany.in
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --gold:        #C9A24A;
  --gold-light:  #E2C47A;
  --gold-dark:   #A07830;
  --dark:        #1C1208;
  --dark-2:      #2C1A0E;
  --dark-3:      #3E2A14;
  --ivory:       #FAF6EE;
  --ivory-2:     #F2EBE0;
  --beige:       #E8DCC8;
  --brown:       #4A2C17;
  --taupe:       #9C8B7A;
  --text-dark:   #1C1208;
  --text-mid:    #4A3728;
  --text-light:  #7A6A5A;
  --white:       #FFFFFF;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-py: 100px;
  --section-px: clamp(20px, 5vw, 80px);
  --container:  1200px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-arch: 200px 200px 0 0;

  /* Transitions */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(28, 18, 8, 0.08);
  --shadow-md: 0 8px 32px rgba(28, 18, 8, 0.12);
  --shadow-lg: 0 20px 60px rgba(28, 18, 8, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  line-height: 1.2;
  font-weight: 600;
  color: var(--dark-2);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--dark-2);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.8;
}

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Gold Divider ── */
.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark-2);
  color: var(--gold);
}

.btn-dark:hover {
  background: var(--dark-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(42, 44, 43, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 74, 0.15);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(42, 44, 43, 0.99);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 105px;
  padding: 0 var(--section-px);
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text span:first-child {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-logo-text span:last-child {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--beige);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: var(--white) !important;
}

.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}

.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 */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(42, 44, 43, 0.99);
  border-top: 1px solid rgba(201, 162, 74, 0.15);
  padding: 20px var(--section-px);
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige);
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 162, 74, 0.08);
  transition: color var(--transition);
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--gold);
}

/* ── Page Hero (Inner Pages) ── */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,162,74,0.08) 0%, transparent 70%);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  color: var(--ivory);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 14px;
}

.page-hero h1 span { color: var(--gold); }

.page-hero p {
  color: var(--beige);
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: var(--taupe); }

/* ── Footer ── */
footer {
  background: #2A2C2B;
  color: var(--beige);
  padding: 70px 0 0;
  border-top: 1px solid rgba(201, 162, 74, 0.2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(201, 162, 74, 0.12);
}

.footer-brand .footer-logo {
  height: 70px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--taupe);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  display: block;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--taupe);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item .icon {
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-contact-item a,
.footer-contact-item span {
  font-size: 0.88rem;
  color: var(--taupe);
  line-height: 1.6;
}

.footer-contact-item a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

.footer-bottom a {
  color: var(--gold);
}

/* ── WhatsApp Floating Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: pulse-wa 3s ease infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37, 211, 102, 0.65); }
}

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ── Gold Border Box ── */
.gold-border {
  border: 1px solid rgba(201, 162, 74, 0.25);
  border-radius: var(--radius-md);
}

/* ── Arch Image ── */
.arch-img {
  border-radius: 200px 200px 0 0;
  overflow: hidden;
}

/* ── Section Spacing ── */
.section {
  padding: var(--section-py) 0;
}

.section-dark {
  background: var(--dark-2);
}

.section-beige {
  background: var(--ivory-2);
}

.section-dark-alt {
  background: var(--dark);
}

/* ── Scroll Reveal ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="left"] {
  transform: translateX(-30px);
}

[data-reveal="right"] {
  transform: translateX(30px);
}

[data-reveal="left"].revealed,
[data-reveal="right"].revealed {
  transform: translateX(0);
}

/* ── Highlight Stats Strip ── */
.stats-strip {
  background: var(--dark-2);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 162, 74, 0.15);
  border-bottom: 1px solid rgba(201, 162, 74, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-item .stat-label {
  font-size: 0.82rem;
  color: var(--beige);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-2) 0%, var(--dark-3) 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, rgba(201,162,74,0.07) 0%, transparent 65%);
}

.cta-banner .container { position: relative; z-index: 1; }

.cta-banner h2 {
  color: var(--ivory);
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--beige);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Form Styles ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--beige);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.tab-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--beige);
  border-radius: 50px;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ── Accordion ── */
.accordion-item {
  border: 1px solid var(--beige);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 8px;
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: background var(--transition);
}

.accordion-btn:hover,
.accordion-btn.active {
  background: var(--ivory-2);
}

.accordion-btn .icon {
  color: var(--gold);
  font-size: 1rem;
  transition: transform var(--transition);
}

.accordion-btn.active .icon { transform: rotate(180deg); }

.accordion-body {
  display: none;
  padding: 20px;
  background: var(--ivory);
  border-top: 1px solid var(--beige);
}

.accordion-body.open { display: block; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --section-py: 70px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-item .stat-number { font-size: 2rem; }
}

/* ── Swiper Overrides ── */
.swiper-pagination-bullet {
  background: var(--taupe);
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  background: var(--gold);
  opacity: 1;
}
