:root {
  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* New Premium Brand Palette */
  --color-primary: #7FAA94;
  /* Soft Natural Green - Brand Core */
  --color-secondary: #1F5E4A;
  /* Deep Forest Green - Accents/Text */
  --color-bg: #FFFFFF;
  /* Pure White - Fresh & Hygienic */
  --color-bg-alt: #F4F6F5;
  /* Soft Neutral Gray - Panels/Cards */

  /* Mapping to functional roles */
  --color-text: #1F5E4A;
  /* Deep Forest for readable text */
  --color-text-light: #7FAA94;
  /* Brand Green for lighter text */
  --color-text-muted: #64748B;
  /* Slate for subtitles */
  --color-accent: #7FAA94;
  /* Primary Green as Accent */
  --color-accent-dark: #1F5E4A;
  /* Darker Green for Hover */
  --color-highlight: #FCD34D;
  /* Subtle Sunny Pop (kept for warmth) */

  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 16px;
  --space-md: 40px;
  --space-lg: 80px;
  --space-xl: 160px;

  /* Shadows - Tinted with Green */
  --shadow-sm: 0 1px 3px rgba(31, 94, 74, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(31, 94, 74, 0.1), 0 2px 4px -1px rgba(31, 94, 74, 0.06);
  --shadow-lg: 0 25px 50px -12px rgba(31, 94, 74, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(127, 170, 148, 0.2);
  --glass-blur: blur(20px);

  /* Transitions */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.3s var(--ease-smooth);
  --transition-bounce: 0.5s var(--ease-spring);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpDosa {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-5deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-5deg);
  }
}

@keyframes fadeUpRagi {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(8deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(8deg);
  }
}

@keyframes fadeUpAppam {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-8deg);
  }
}

@keyframes fadeUpIce {
  from {
    opacity: 0;
    transform: translateY(30px) rotate(12deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(12deg);
  }
}

/* Floating Animation (Generic) */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translate(50px, -50%);
    /* keep vertical center (-50%) */
  }

  to {
    opacity: 1;
    transform: translate(0, -50%);
  }
}


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

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

body {
  font-family: var(--font-body);
  /* Pure White - Minimal & Clean */
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
block-quote {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

p {
  color: var(--color-text-muted);
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}

.header::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0;
  width: 270px;
  height: calc(100% - 20px);
  background: #FFFFFF;
  z-index: -1;
  transition: all 0.4s ease;
  border-radius: 0 40px 40px 0;
}

.header.scrolled {
  padding: 0px var(--space-lg);
  background: transparent;
}

.header.scrolled::before {
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* Standard Clean Logo */
.logo {
  display: flex;
  align-items: center;
  height: auto;
  width: auto;
  margin-right: 2rem;
}

.logo-img {
  position: relative;
  /* Reset */
  top: auto;
  left: -40px;
  height: 125px;
  /* Large but contained */
  width: auto;
  object-fit: contain;
  z-index: 10;
  filter: none;
  transform: scale(2.0);
  /* simple */
}

.nav {
  display: flex;
  gap: var(--space-md);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  /* Lighter weight for elegance */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-light);
  /* Brand Green */
  transition: width var(--transition-fast);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* Split layout alignment */
  justify-content: space-between;
  padding: 0 var(--space-lg);
  padding-top: 100px;
  /* Offset for header */
  /* Vertically center content */
  align-items: center;
  position: relative;
  text-align: left;
  /* Left align for editorial look */
  overflow: hidden;
  /* Matched from Idly/Dosa Batter product card */
  background: #CFE8D6;
  position: relative;
}



.hero-content {
  max-width: 50%;
  /* More breathing room */
  z-index: 10;
  position: relative;
  padding-left: var(--space-md);
  /* Entrance Animation */
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-title {
  font-size: clamp(4rem, 10vw, 7.5rem);
  /* Even bigger */
  margin-bottom: var(--space-md);
  letter-spacing: -0.04em;
  color: var(--color-text);
  line-height: 1;
}

.hero-title span {
  display: block;
  background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  /* Soft Green to Forest */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 90%;
  /* Allow wider text block */
  margin: 0;
  /* Align left */
  color: var(--color-text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* Fresh Abstract Background - Livelier */
.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.abstract-shape {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  /* Deep Pine Green Blur */
  background: radial-gradient(circle at center, rgba(127, 170, 148, 0.35) 0%, rgba(255, 255, 255, 0) 65%);
  filter: blur(80px);
  opacity: 1;
  animation: pulseFresh 8s infinite ease-in-out alternate;
  display: none;
}

.abstract-shape::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 30%;
  width: 80%;
  height: 80%;
  /* Pop of sunny yellow/orange mixed with freshness */
  background: radial-gradient(circle at 60% 60%, rgba(252, 211, 77, 0.2) 0%, rgba(255, 255, 255, 0) 55%);
  border-radius: 50%;
  animation: drift 20s infinite linear;
}

@keyframes pulseFresh {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

@keyframes drift {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Hero Image - Magazine Style Placement */
/* Hero Image Wrapper (Handles Position & Entrance) */
/* Hero Composition - Multi-Product Layout */
.hero-composition {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 55%;
  /* Restrict to right side */
  height: 85vh;
  z-index: 10;
  pointer-events: none;
}

.hero-product-wrapper {
  position: absolute;
  /* Float animation applies to the wrapper */
  opacity: 0;
  pointer-events: auto;
}

.hero-product-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(-10px 15px 20px rgba(6, 78, 59, 0.2));
  /* Rotation applies here */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop */

  /* Rendering optimizations */
  backface-visibility: hidden;
  transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
}

/* Specific Placements & Rotations */

/* Dosa */
.wrapper-dosa {
  width: 50%;
  top: 20%;
  right: 20%;
  z-index: 5;
  animation: fadeUp 1s ease-out 0.2s forwards, float 3s ease-in-out 1.2s infinite;
}

.wrapper-dosa .hero-product-img {
  transform: rotate(-5deg);
}

.wrapper-dosa:hover .hero-product-img {
  transform: rotate(-5deg) scale(1.1);
}

/* Ragi */
.wrapper-ragi {
  width: 38%;
  top: 5%;
  right: 55%;
  z-index: 4;
  animation: fadeUp 1s ease-out 0.2s forwards, float 3.5s ease-in-out 1.2s infinite;
}

.wrapper-ragi .hero-product-img {
  transform: rotate(8deg);
}

.wrapper-ragi:hover .hero-product-img {
  transform: rotate(8deg) scale(1.1);
}

/* Appam */
.wrapper-appam {
  width: 45%;
  bottom: 0%;
  right: 60%;
  z-index: 3;
  animation: fadeUp 1s ease-out 0.2s forwards, float 4s ease-in-out 1.2s infinite;
}

.wrapper-appam .hero-product-img {
  transform: rotate(-8deg);
}

.wrapper-appam:hover .hero-product-img {
  transform: rotate(-8deg) scale(1.1);
}

/* Ice */
.wrapper-ice {
  width: 40%;
  bottom: 25%;
  right: 0%;
  z-index: 6;
  animation: fadeUp 1s ease-out 0.2s forwards, float 2.5s ease-in-out 1.2s infinite;
}

.wrapper-ice .hero-product-img {
  transform: rotate(12deg);
}

.wrapper-ice:hover .hero-product-img {
  transform: rotate(12deg) scale(1.1);
}

/* Mobile Stacking */
@media (max-width: 768px) {
  .hero-composition {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    height: 65vh;
    /* Increased height for spacing */
    margin-top: 0rem;
    margin-bottom: 2rem;
  }

  .wrapper-dosa {
    width: 75%;
    top: -5%;
    right: -5%;
  }

  .wrapper-ragi {
    width: 60%;
    top: 15%;
    left: -5%;
    right: auto;
  }

  .wrapper-ice {
    width: 65%;
    top: auto;
    bottom: 0%;
    left: -5%;
    right: auto;
  }

  .wrapper-appam {
    width: 75%;
    top: auto;
    bottom: 10%;
    left: auto;
    right: -10%;
  }
}



/* Our Story Section */
.our-story {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  background: url('assets/idlibg.png') center/cover no-repeat;
  text-align: left;
}

.our-story-container {
  max-width: 600px;
  margin: 0;
  position: relative;
  z-index: 2;
}

.our-story h2 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  color: var(--color-text);
  font-family: var(--font-display);
}

.our-story .story-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
}

.our-story .story-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .our-story {
    background-position: 70% center;
    text-align: center;
  }

  .our-story::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
  }

  .our-story-container {
    margin: 0 auto;
    max-width: 100%;
  }

  .our-story h2 {
    font-size: 2.5rem;
  }

  .our-story .story-content p {
    font-size: 1.05rem;
  }
}

/* Portfolio Section */
.portfolio {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1600px;
  margin: 0 auto;
  /* Blend from Hero -> White for clarity */
  background: transparent;
  border-radius: 0;
  /* Soft connection */
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
}

.section-header h2 {
  font-size: 3.5rem;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.categories {
  display: flex;
  gap: var(--space-sm);
  background: var(--color-bg-alt);
  /* Soft Grey */
  padding: 8px;
  border-radius: 50px;
  border: 1px solid transparent;
}

.category-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-btn:hover {
  color: var(--color-accent);
}

.category-btn.active {
  background-color: var(--color-white);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.carousel-nav-btn:hover {
  background: var(--color-text);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.carousel-nav-btn.prev {
  left: -24px;
}

.carousel-nav-btn.next {
  right: -24px;
}

.carousel-dots {
  display: none;
}

.product-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 15vw;
  padding: 20px calc(50% - 170px);
  /* Centers a 340px card perfectly */
  scrollbar-width: none;
  width: 100%;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 340px;
  min-width: 0;
  scroll-snap-align: center;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0.4 !important;
  /* Peeking slides are softly faded */
  transform: scale(0.85) !important;
  /* Make peeking products smaller */
  transition: opacity 0.5s ease, transform var(--transition-bounce), box-shadow var(--transition-bounce) !important;
  border: 1px solid var(--color-border);
}

.product-card.focused {
  opacity: 1 !important;
  /* The single fully visible center slide */
  transform: scale(1) !important;
  /* Center slide holds full dominance */
}

.product-card.focused:hover {
  transform: scale(1) translateY(-8px) !important;
  /* Smooth hover for centered slide */
}

.product-grid article:nth-child(3) .product-image {
  background-size: 130% !important;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1;
  /* Square for modern clean look */
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-alt);
  /* Inner depth */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.product-image {
  width: 100%;
  height: 100%;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1), filter 1.2s cubic-bezier(0.2, 1, 0.3, 1);
  background-size: cover;
  background-position: center;
  /* Stronger persistent shadow */
  filter: drop-shadow(0 20px 25px rgba(0, 30, 20, 0.25));
}

.product-card:hover .product-image {
  transform: scale(1.1) translateY(-10px);
  /* Even deeper on hover */
  filter: drop-shadow(0 40px 40px rgba(0, 30, 20, 0.35));
}

.product-overlay {
  position: absolute;
  inset: 0;
  /* Deep Forest Gradient */
  background: linear-gradient(to top, rgba(31, 94, 74, 0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-overlay p {
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.1rem;
  transform: translateY(20px);
  transition: transform var(--transition-bounce);
}

.product-card:hover .product-overlay p {
  transform: translateY(0);
}

.product-info {
  padding: var(--space-md);
}

.product-info h3 {
  font-size: 1.75rem;
  margin-bottom: 6px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.product-info .category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  /* Emerald */
  font-weight: 700;
  background: var(--color-accent-light);
  /* Mint Foam */
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 10px;
}

/* Quality & Trust - Fresh Cards */
.quality-trust {
  padding: var(--space-xl) var(--space-lg);
  background: #C8E6D7;
  /* Light Natural Green - softer for card visibility */
  position: relative;
  overflow: hidden;
}

/* Add a subtle pattern to trust section - Updated color */
.quality-trust::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(127, 170, 148, 0.1) 0%, transparent 70%);
  /* Very Faint Green Glow */
  pointer-events: none;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


.quality-trust-section {
  padding: var(--space-lg);
  background: var(--color-text);
  color: var(--color-bg);
  position: relative;
}

.quality-trust-section .section-header h2 {
  color: var(--color-bg);
}

.quality-trust-container {
  max-width: 1400px;
  margin: 0 auto;
}

.philosophy-intro {
  max-width: 1000px;
  margin: 0 auto var(--space-md) auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.trust-card {
  padding: var(--space-sm);
  background: transparent;
  border: none;
  text-align: center;
  transition: all var(--transition-fast);
}

.trust-card:hover {
  transform: translateY(-5px);
}

.trust-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-bg);
  background: rgba(255, 255, 255, 0.1);
  width: 65px;
  height: 65px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  margin: 0 auto 16px auto;
  transition: transform var(--transition-bounce), background 0.3s;
}

.trust-card:hover .icon {
  transform: rotate(10deg) scale(1.1);
  background: var(--color-accent);
  color: var(--color-text);
}

.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-bg);
  letter-spacing: 0.5px;
}

.trust-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Contact & Feedback Section */
.contact-section {
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.section-header.center-header {
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: none;
  margin-bottom: var(--space-sm);
  padding-bottom: 0;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  text-align: left;
}

.form-row {
  display: flex;
  gap: var(--space-md);
}

.form-row .form-group {
  flex: 1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg-alt);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(127, 170, 148, 0.1);
}

.submit-btn {
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  padding: 16px 40px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  align-self: center;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-sm);
}

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

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

.footer {
  position: relative;
  padding: 15px var(--space-lg) 10px var(--space-lg);
  background: var(--color-text);
  color: var(--color-bg);
  backdrop-filter: none;
  border-top: none;
}

.footer-logo-header-clone {
  position: relative;
  margin-top: -20px;
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
  margin-bottom: 5px;
  padding: 40px 80px;
  /* Match header padding for exact identical proportions */
  display: flex;
}

.footer-logo-shape {
  position: absolute;
  top: 45px;
  left: 0;
  width: 270px;
  height: calc(100% - 90px);
  background: #FFFFFF;
  z-index: 0;
  border-radius: 0 40px 40px 0;
}

.footer-logo-header-clone .logo {
  position: relative;
  z-index: 1;
}

.footer-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--color-bg);
}

.footer-address {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-address p {
  color: var(--color-bg);
  line-height: 1.5;
  margin: 0;
}

.footer-nav {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-empty-right {
  flex: 1;
}

.footer-nav-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-bg);
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(252, 250, 248, 0.4);
  display: inline-block;
}

.footer-nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.footer-nav-links a {
  color: var(--color-bg);
  font-weight: 500;
  transition: all var(--transition-fast);
  display: inline-block;
  text-decoration: none;
}

.footer-nav-links a:hover {
  color: var(--color-bg);
  text-decoration: underline;
  text-decoration-color: var(--color-bg);
  text-underline-offset: 4px;
  transform: translateY(-2px);
}

.footer-copyright {
  width: 100%;
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--color-bg);
  opacity: 0.6;
}


.footer-address p {
  line-height: 1.5;
  margin: 0;
}

.footer-address p a {
  color: var(--color-bg);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(252, 250, 248, 0.4);
  text-underline-offset: 4px;
  transition: all var(--transition-fast);
}

.footer-address p a:hover {
  color: var(--color-bg);
  text-decoration-color: var(--color-bg);
}

.footer-social {
  margin-top: 5px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(252, 250, 248, 0.1);
  border: 1px solid rgba(252, 250, 248, 0.3);
  color: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-bg);
  color: var(--color-text);
  border-color: var(--color-bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.footer-cert span {
  display: inline-block;
  margin: 0 5px;
}

/* Mobile */
/* Mobile & Responsive */
@media (max-width: 768px) {
  :root {
    /* Reduce spacing on mobile */
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
  }

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

  /* Footer reordering for mobile */
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-address {
    text-align: center;
    align-items: center;
  }

  .footer-nav {
    text-align: center;
    align-items: center;
  }

  .footer-nav-title {
    margin-top: 10px;
  }

  .footer-empty-right {
    display: none;
  }

  /* Header - Keep Row Layout */
  .header {
    padding: 5px 30px;
    flex-direction: row;
    position: fixed;
    /* Must be fixed for sticky hide/show */
    /* Context for absolute nav */
    justify-content: space-between;
    align-items: center;
    gap: 0;
    transition: all 0.4s ease;
  }

  .header::before {
    top: 15px;
    width: 150px;
    height: calc(100% - 30px);
    border-radius: 0 25px 25px 0;
  }

  .footer-logo-shape {
    top: 55px;
    height: calc(100% - 110px);
  }

  /* Ensure solid background when menu is open */
  .header.nav-active {
    background-color: transparent;
  }

  .header.nav-active::before {
    top: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .header.scrolled {
    padding: 0px 25px;
  }

  .header.scrolled::before {
    width: 100%;
  }

  .logo {
    margin-right: 0;
    width: auto;
    justify-content: flex-start;
    flex-shrink: 0;
    /* Prevent logo crushing */
  }

  .logo-img {
    height: 95px;
    transform: scale(2.9);
    transform-origin: left center;
    margin-left: -60px;
  }

  /* New Menu Toggle Button */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    /* Above everything */
  }

  .menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  /* Active Menu State (X Shape) */
  .header.nav-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .header.nav-active .bar:nth-child(2) {
    opacity: 0;
  }

  .header.nav-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Nav Drawer */
  .nav {
    position: absolute;
    top: 100%;
    /* Below header */
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0;
    opacity: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }

  .header.nav-active .nav {
    height: 350px;
    /* Expand height */
    padding: 40px 0;
    opacity: 1;
  }

  .nav a {
    font-size: 1.1rem;
    /* Slightly larger than desktop for mobile touch targets */
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }


  /* Hero - Revert to Stacked */
  .hero {
    min-height: auto;
    /* Allow content to dictate height */
    padding-top: 180px;
    /* Account for taller stacked header */
    padding-bottom: var(--space-lg);
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
  }



  .hero-content {
    max-width: 100%;
    padding-left: 0;
    margin-bottom: var(--space-md);
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
    margin: 0 auto;
    max-width: 100%;
  }

  /* Reset visual container to flow naturally below text */
  .hero-visual {
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
  }

  /* Wrapper Reset for Mobile */
  .hero-image-wrapper {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 40vh;
    margin: var(--space-md) auto 0;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-image {
    width: 100%;
    height: auto;
  }

  /* Products */
  .carousel-wrapper {
    flex-wrap: wrap;
  }

  .carousel-nav-btn {
    display: none !important;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 20px 0 5px;
  }

  .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .carousel-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
  }

  .product-grid {
    padding: 20px 10vw;
    /* Centers an 80vw card within the mobile view */
    gap: 15vw;
  }

  .product-card {
    flex: 0 0 80vw;
    min-width: 0;
  }

  .product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--color-border);
  }

  .product-card:hover .product-image {
    transform: none;
    filter: drop-shadow(0 20px 25px rgba(0, 30, 20, 0.25));
  }

  .product-card:hover .product-overlay {
    opacity: 0;
  }

  .product-card:hover .product-overlay p {
    transform: translateY(20px);
  }

  .product-card.focused:hover {
    transform: scale(1) !important;
  }

  /* Trust Section */
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .categories {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 10px;
    /* space for scrollbar if needed */
    justify-content: flex-start;
  }

  /* Footer */
  .footer {
    text-align: center;
  }

  .footer-logo-header-clone {
    padding: 45px 30px;
    /* Force to exactly match header mobile padding */
  }

  .footer-logo-shape {
    width: 130px;
    border-radius: 0 25px 25px 0;
  }

  .footer-logo-header-clone .logo-img {
    height: 85px;
    transform: scale(2.4);
    margin-left: -42px;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
  }

  .footer-brand,
  .footer-cert {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .logo-img {
    height: 100px;
    transform: scale(1.9);
    left: -65px;
  }

  .footer-logo-header-clone .logo-img {
    height: 90px;
    transform: scale(1.7);
    left: -62px;
  }
}