/* =============================================
   KIRAV FOOD TECH — Modern Redesign
   CSS Variables & Global Reset
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --terracotta: #D4714A;
  --terracotta-light: #E8967A;
  --terracotta-dark: #B55C38;
  --forest: #3A6B5C;
  --forest-light: #4E8C7A;
  --forest-pale: #EBF4F1;
  --cream: #FDF8F2;
  --warm-white: #FFFEF9;
  --sand: #F3D9B1;
  --dark: #1E2C2C;
  --mid: #4A5C5C;
  --light-text: #7A9090;
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px;
  --radius-xl: 60px;
  --shadow-sm: 0 4px 16px rgba(30,44,44,0.07);
  --shadow-md: 0 12px 40px rgba(30,44,44,0.12);
  --shadow-lg: 0 24px 64px rgba(30,44,44,0.16);
  --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1300px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Clip horizontal overflow at html level — safe for fixed children */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.display-font { font-family: 'Playfair Display', serif; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253,248,242,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,113,74,0.12);
  transition: var(--transition);
  /* Prevent any child from bleeding outside */
  overflow: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
  /* Stop children from pushing width beyond viewport */
  min-width: 0;
}

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

.logo-badge {
  background: var(--dark);
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}

.logo-badge img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.logo-text small {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--mid);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand));
  border-radius: 2px;
  transition: width 0.3s ease;
}

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

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

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

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

.nav-cta:hover {
  background: var(--terracotta-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,113,74,0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  background: none;
  border: none;
  /* Always on top */
  z-index: 10001;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  height: clamp(520px, 88vh, 900px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(30,44,44,0.78) 0%,
    rgba(30,44,44,0.45) 55%,
    rgba(30,44,44,0.15) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  max-width: 720px;
}

.slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(243,217,177,0.2);
  border: 1px solid rgba(243,217,177,0.4);
  color: var(--sand);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 1.2rem;
  backdrop-filter: blur(6px);
  width: fit-content;
}

.slide-eyebrow i { font-size: 0.7rem; color: var(--sand); }

.slide-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.2rem;
}

.slide-content h1 em {
  font-style: italic;
  color: var(--sand);
}

.slide-content p {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 480px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--terracotta);
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  width: fit-content;
  border: 2px solid var(--terracotta);
}

.btn-primary:hover {
  background: transparent;
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,113,74,0.4);
}

.btn-primary i { font-size: 0.85rem; transition: transform 0.2s; }
.btn-primary:hover i { transform: translateX(4px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--terracotta);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--terracotta);
  transition: var(--transition);
  width: fit-content;
}

.btn-secondary:hover {
  background: var(--terracotta);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Slider controls */
.slider-nav {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  padding: 0;
}

.slider-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--sand);
}

.slider-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.slider-arrow {
  pointer-events: all;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-arrow:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: scale(1.1);
}

/* =============================================
   STATS STRIP
   ============================================= */
.stats-strip {
  background: var(--dark);
  padding: 28px 0;
}

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

.stat-item {
  padding: 0.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--sand);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* =============================================
   SECTION COMMONS
   ============================================= */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest-pale);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--forest);
  border-radius: 50%;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-heading span { color: var(--terracotta); font-style: italic; }

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

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--warm-white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  height: clamp(360px, 50vw, 520px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-accent-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--terracotta);
  color: white;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  min-width: 180px;
}

.about-accent-card .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.about-accent-card p {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 4px;
}

.about-text { padding-left: 1rem; }

.about-text p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.vision-box {
  background: linear-gradient(135deg, var(--forest-pale), rgba(74,140,122,0.1));
  border-left: 4px solid var(--forest);
  padding: 24px 28px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 1.5rem;
}

.vision-box h4 {
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.vision-box p {
  color: var(--mid);
  font-size: 0.95rem;
  margin: 0;
}

/* =============================================
   VALUES SECTION
   ============================================= */
.values-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--cream);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.value-card {
  background: white;
  border: 1px solid rgba(212,113,74,0.1);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,113,74,0.25);
}

.value-card:hover::before { transform: scaleX(1); }

.value-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--forest-pale), rgba(74,140,122,0.15));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.6rem;
  color: var(--forest);
  transition: var(--transition);
}

.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  color: white;
}

.value-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.88rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* =============================================
   PRODUCTS PAGE
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--forest) 60%, #2A5A4A 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212,113,74,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243,217,177,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

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

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1rem;
}

.page-hero h1 em { color: var(--sand); font-style: italic; }

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto;
}

/* Products section */
.products-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.products-category {
  margin-bottom: 5rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(212,113,74,0.4), transparent);
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--dark);
  white-space: nowrap;
}

.category-title span { color: var(--terracotta); }

.products-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.product-tile {
  background: white;
  border: 1px solid rgba(212,113,74,0.1);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,113,74,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-tile:hover {
  transform: translateY(-6px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
}

.product-tile:hover::after { opacity: 1; }

.product-tile-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.product-tile h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 4px;
}

.product-tile p {
  font-size: 0.83rem;
  color: var(--light-text);
}

.product-tile .product-tag {
  display: inline-block;
  background: var(--forest-pale);
  color: var(--forest);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 8px;
}

/* Specialty ingredients — wider cards */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.specialty-card {
  background: linear-gradient(135deg, white, var(--cream));
  border: 1px solid rgba(212,113,74,0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sand), var(--forest));
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.specialty-card .icon-big {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.specialty-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.specialty-card p {
  font-size: 0.9rem;
  color: var(--mid);
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--dark) 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,113,74,0.2) 0%, transparent 70%);
}

.contact-hero .container { position: relative; z-index: 2; }

.contact-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1rem;
}

.contact-hero h1 em { color: var(--sand); font-style: italic; }

.contact-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
}

.contact-section {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--warm-white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: white;
  border: 1px solid rgba(212,113,74,0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-card:hover {
  border-color: var(--terracotta);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  flex-shrink: 0;
}

.contact-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

.contact-card a {
  color: var(--terracotta);
  font-weight: 500;
  transition: color 0.2s;
}

.contact-card a:hover { color: var(--terracotta-dark); }

/* Map panel */
.map-panel {
  background: white;
  border: 1px solid rgba(212,113,74,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-header {
  padding: 1.5rem 1.8rem;
  background: linear-gradient(90deg, var(--forest), var(--forest-light));
  color: white;
}

.map-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.map-header p { font-size: 0.85rem; opacity: 0.8; }

.map-panel iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding: clamp(3rem, 6vw, 5rem) 0 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-badge {
  margin-bottom: 1.2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.2rem;
}

.footer-gstin {
  display: inline-block;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--sand);
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-col ul li a i { font-size: 0.65rem; color: var(--terracotta); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.9rem;
}

.footer-contact-item i {
  color: var(--terracotta);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: var(--sand);
  font-weight: 500;
  font-size: 0.82rem;
  border-bottom: 1px dotted rgba(243,217,177,0.3);
  transition: color 0.2s;
}

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

/* =============================================
   FLOATING BUTTONS
   ============================================= */
.float-group {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  /* Prevent overflow beyond viewport */
  max-width: calc(100vw - 40px);
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
  /* Ensure it never goes off screen */
  box-sizing: border-box;
}

.float-btn::before {
  content: attr(data-tip);
  position: absolute;
  right: calc(100% + 10px);
  background: var(--dark);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

/* Only show tooltip on non-touch devices */
@media (hover: hover) {
  .float-btn:hover::before { opacity: 1; }
  .float-btn:hover { transform: scale(1.1); }
}

.float-wa { background: linear-gradient(135deg, #25D366, #1aad53); }
.float-call { background: linear-gradient(135deg, var(--forest), var(--forest-light)); }

/* =============================================
   RESPONSIVE — MOBILE FIRST BREAKPOINTS
   ============================================= */

/* =============================================
   TABLET: <= 1100px
   ============================================= */
@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child,
  .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* =============================================
   MOBILE: <= 768px
   ============================================= */
@media (max-width: 768px) {

  /* ---- HAMBURGER BUTTON ---- */
  .nav-toggle {
    display: flex !important;
    z-index: 10000;
    position: relative;
  }

  /* ---- MOBILE NAV MENU ---- */
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #FDF8F2 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    /* Hidden by default */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-12px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease !important;
    z-index: 9000 !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 80px 2rem 3rem !important;
  }

  /* Visible when open class is added by JS */
  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .nav-links li {
    width: 100% !important;
    text-align: center !important;
  }

  .nav-links a {
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--dark) !important;
    padding: 0.8rem 2rem !important;
    border-radius: var(--radius-sm) !important;
    width: 100% !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--terracotta) !important;
    background: rgba(212,113,74,0.08) !important;
  }

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

  .nav-links .nav-cta {
    display: inline-block !important;
    background: var(--terracotta) !important;
    color: white !important;
    font-size: 1.1rem !important;
    padding: 14px 36px !important;
    border-radius: var(--radius-lg) !important;
    margin-top: 1rem !important;
    width: auto !important;
  }

  /* ---- FLOATING BUTTONS ---- */
  .float-group {
    position: fixed !important;
    right: 16px !important;
    bottom: 24px !important;
    z-index: 8000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
    pointer-events: all !important;
  }

  .float-btn {
    width: 52px !important;
    height: 52px !important;
    font-size: 1.3rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
    pointer-events: all !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .float-wa {
    background: linear-gradient(135deg, #25D366, #1aad53) !important;
    color: white !important;
  }

  .float-call {
    background: linear-gradient(135deg, #3A6B5C, #4E8C7A) !important;
    color: white !important;
  }

  /* Hide tooltip on touch */
  .float-btn::before { display: none !important; }

  /* ---- HERO ---- */
  .slide-content h1 { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  .slider-arrows { display: none; }

  /* ---- ABOUT ---- */
  .about-grid { grid-template-columns: 1fr; }
  .about-accent-card { right: 0; bottom: -20px; }
  .about-text { padding-left: 0; }

  /* ---- STATS ---- */
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }

  /* ---- VALUES ---- */
  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* ---- PRODUCTS ---- */
  .products-mosaic { grid-template-columns: repeat(2, 1fr); }
  .specialty-grid { grid-template-columns: 1fr; }
  .category-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .category-line { display: none; }

  /* ---- CONTACT ---- */
  .contact-layout { grid-template-columns: 1fr; }

  /* ---- FOOTER ---- */
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   SMALL MOBILE: <= 480px
   ============================================= */
@media (max-width: 480px) {
  .products-mosaic { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .stats-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .slide-content h1 { font-size: 1.8rem; }
  .hero-slider { height: clamp(480px, 90vh, 640px); }
  .logo-text { display: none; }

  .float-btn { width: 46px !important; height: 46px !important; font-size: 1.1rem !important; }
  .float-group { right: 12px !important; bottom: 16px !important; gap: 8px !important; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }
