/* ============================================
   TABELAWALA — DAIRY FARM WEBSITE STYLESHEET
   style.css
   ============================================ */

/* === GLOBAL === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #fff7ee !important;
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #cf8146;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b86f36;
}

/* === HERO SLIDER === */
.slider-wrapper {
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: fadeSlide 0.8s ease-in-out;
}

.slide.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(1.02);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === MARQUEE === */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 4rem;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  padding: 0.25rem 0;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* === SERVICE ACCORDION === */
.service-accordion-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-accordion-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(212, 121, 26, 0.15);
}

.service-accordion-item.active {
  background-color: #cf8146 !important;
}

.service-accordion-item.active h4 {
  color: white !important;
}

.service-accordion-item.active p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.service-accordion-item.active .icon-bg {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

.service-accordion-item.active .action-icon {
  color: white !important;
}

.service-accordion-item.active i.item-icon {
  color: white !important;
}

/* === SLIDER DOTS === */
.slider-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
  background-color: white;
  border-radius: 9999px;
  height: 0.75rem;
}

.slider-dot:hover {
  opacity: 1 !important;
}

/* === TIMELINE === */
.timeline-line {
  position: relative;
}

.timeline-line::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

/* === PRODUCT CARDS === */
.product-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* === GALLERY === */
.gallery-img {
  transition: transform 0.4s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* === FILTER TABS === */
.filter-btn {
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.filter-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === HERO BADGES === */
.hero-badge {
  letter-spacing: 0.2em;
  font-size: 0.6rem;
  opacity: 0.85;
  backdrop-filter: blur(4px);
}

/* === STEP CARDS === */
.step-card {
  position: relative;
}

.step-card::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -16px;
  width: 32px;
  height: 2px;
  background: #e5e7eb;
}

.step-card:last-child::after {
  display: none;
}

@media (max-width: 1023px) {
  .step-card::after {
    display: none;
  }
}

/* === FORM INPUTS === */
input:focus,
textarea:focus {
  outline: none;
  border-color: #cf8146 !important;
  box-shadow: 0 0 0 3px rgba(212, 121, 26, 0.1);
}

input,
textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* === SECTION LABELS === */
.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  text-transform: uppercase;
  color: #cf8146;
  display: block;
}

/* === BLOG CARDS === */
.blog-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === TESTIMONIAL === */
.testimonial-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-track {
  transition: transform 0.5s ease;
}

/* === HEADER NAV (Bricolage Grotesque) === */
.header-nav,
.header-nav a,
.header-nav button {
  font-family: "Bricolage Grotesque", sans-serif;
}

.header-cta img {
  display: block;
}

/* === MOBILE DRAWER NAV === */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(28, 28, 28, 0.45);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 70;
  width: min(300px, 88vw);
  max-width: 100%;
  background: #fff;
  padding: 1.25rem 1.5rem 2rem;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.mobile-menu-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mobile-menu-backdrop,
  .mobile-menu-drawer {
    display: none !important;
    pointer-events: none !important;
  }
}

/* Drawer/backdrop live outside header so they stack above page content */
.site-header {
  position: relative;
  z-index: 50;
}

/* === PAGE HERO (inner pages — not home slider) === */
.page-hero-wrap {
  padding-top: 5.75rem;
  padding-left: .5rem;
  padding-right: .5rem;
}

@media (min-width: 640px) {
  .page-hero-wrap {
    padding-left: .5rem;
    padding-right: .5rem;
  }
}

.page-hero {
  position: relative;
  width: 100%;
  /* max-width: 80rem; */
  margin-left: auto;
  margin-right: auto;
  height: 50vh;
  min-height: 280px;
  border-radius: 1rem;
  overflow: hidden;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.25));
}

.page-hero__overlay--soft {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
}

.page-hero__overlay--light {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35), transparent);
}

.page-hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1.5rem 2rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .page-hero__content {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 768px) {
  .page-hero__content {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    height: 42vh;
    min-height: 200px;
  }

  .page-hero-wrap {
    padding-top: 5.5rem;
  }
}

#contact {
  scroll-margin-top: 110px;
}

/* === HEADER SCROLL === */
header {
  transition: box-shadow 0.3s ease;
}

/* === TEAM CARD HOVER === */
.team-card {
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-4px);
}

/* === FRANCHISE CARD HIGHLIGHT === */
.franchise-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.franchise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* === STAT ITEM === */
.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1023px) {
  .stat-item::after {
    display: none;
  }
}

/* === NAV LINK UNDERLINE EFFECT === */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #cf8146;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* === ICON BOXES === */
.icon-box {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 121, 26, 0.25);
}

/* === BUTTON FOCUS STATES === */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #cf8146;
  outline-offset: 2px;
  border-radius: 4px;
}

/* === SELECTION COLOR === */
::selection {
  background-color: #cf8146;
  color: white;
}

/* === RESPONSIVE HERO === */
@media (max-width: 768px) {
  .slide h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-badge {
    font-size: 0.5rem;
  }
}

/* === FOOTER LINK HOVER === */
footer a {
  position: relative;
  transition: color 0.2s ease;
}

/* === ANIMATE ON SCROLL (base classes, triggered by JS) === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === LOADING PLACEHOLDER === */
img {
  /* background-color: #f5edd8; */
}

/* === ORANGE GLOW EFFECT FOR CTA BUTTONS === */
.btn-primary-glow {
  box-shadow: 0 4px 20px rgba(212, 121, 26, 0.4);
}

.btn-primary-glow:hover {
  box-shadow: 0 6px 28px rgba(212, 121, 26, 0.55);
}

/* === TIMELINE DOT PULSE === */
@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 121, 26, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(212, 121, 26, 0);
  }
}

/* === GALLERY OVERLAY EFFECT === */
.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
}

.gallery-img-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212, 121, 26, 0);
  transition: background 0.4s ease;
}

.gallery-img-wrapper:hover::after {
  background: rgba(212, 121, 26, 0.15);
}

/* === SECTION DIVIDER === */
.section-divider {
  width: 40px;
  height: 3px;
  background-color: #cf8146;
  border-radius: 2px;
  margin: 12px 0 20px 0;
}

/* === QUOTE BANNER === */
.quote-banner {
  /* background: ; */
}

/* === STATS SECTION — textured orange bg === */
.stats-section {
  background-color: #cf8146;
  /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E"); */
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* === GLASSMORPHISM STAT CARDS === */
.stat-glass-card {
  border: 1px solid rgba(255, 255, 255, 0.35);
  /* background: rgba(255, 255, 255, 0.06); */
  backdrop-filter: blur(6px);
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.stat-glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

/* === CARD SHADOW VARIANTS === */
.shadow-cream {
  box-shadow: 0 4px 20px rgba(212, 121, 26, 0.08);
}

/* === RESPONSIVE GRID FIXES === */
@media (max-width: 640px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marquee-track {
    gap: 2rem;
  }
}

/* === ACCORDION EXPAND ANIMATION === */
@keyframes accordionExpand {
  from {
    max-height: 0;
    opacity: 0;
  }

  to {
    max-height: 500px;
    opacity: 1;
  }
}

/* === PRINT STYLES === */
@media print {
  header,
  .marquee-container,
  footer {
    display: none;
  }
}

/* === FOOTER DARK TEXTURED === */
.footer-dark {
  background-color: #1f1a17;
  background-image: url("/images/footer-bg.png");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* Override body bg for black sections */
.bg-black {
  background-color: #0a0a0a !important;
}
