/* ==========================================================================
   Shree Radhe International - Core Design System & Stylesheet
   ========================================================================== */

/* --- Fonts (Fontshare General Sans & Google Inter) --- */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@300,400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Custom Variables (Design Tokens) --- */
:root {
  /* Colors */
  --color-bg-primary: #F7F6F2;     /* Warm Clay White */
  --color-bg-secondary: #FFFFFF;   /* Pure White */
  --color-surface-dark: #1E1E1E;   /* Matte Dark Charcoal */
  --color-text-primary: #232323;   /* Rich Dark Gray */
  --color-text-secondary: #666666; /* Muted Slate Gray */
  --color-accent-clay: #B9895C;    /* Clay Accent */
  --color-accent-sand: #DCC7A6;    /* Sand Accent */
  --color-success: #4A7C59;        /* Success Green */
  --color-border: #E6E6E6;         /* Soft Gray Border */

  /* Typography */
  --font-header: 'General Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Fluid Typography (Mobile -> Desktop scaling) */
  --font-size-h1: clamp(2.625rem, 4vw + 1rem, 4.5rem); /* 42px -> 72px */
  --font-size-h2: clamp(2rem, 3.5vw + 1rem, 3rem);     /* 32px -> 48px */
  --font-size-h3: clamp(1.25rem, 1.5vw + 0.8rem, 1.5rem); /* 20px -> 24px */
  --font-size-p: clamp(1rem, 1vw + 0.5rem, 1.125rem);  /* 16px -> 18px */

  /* Spacing & Layout */
  --max-width: 1280px;
  --header-height: 92px;
  
  /* Fluid Spacing */
  --spacing-section: clamp(4.375rem, 8vw + 2rem, 8.75rem) 0; /* 70px -> 140px */
  --spacing-container-px: clamp(16px, 4vw, 32px);

  /* Border Radii */
  --radius-card: 20px;
  --radius-button: 999px;
  --radius-image: 24px;
  --radius-form: 16px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
}

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-container-px);
}

.section-padding {
  padding: var(--spacing-section);
}

.text-center {
  text-align: center;
}

/* --- Buttons & Interactive Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 clamp(20px, 3vw, 28px);
  font-family: var(--font-header);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-surface-dark);
  color: var(--color-bg-secondary);
  border: 1px solid var(--color-surface-dark);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-surface-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-accent-clay);
}

.btn-outline:hover {
  background-color: var(--color-accent-clay);
  color: var(--color-bg-secondary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 20px rgba(185, 137, 92, 0.15);
}

/* --- Minimal Animations & Entrances --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(247, 246, 242, 0.95);
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid var(--color-border);
}

/* Sticky scrolled state */
header.scrolled {
  height: 80px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  height: 96px;
  width: auto;
  padding: 0;
  box-sizing: border-box;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  transition: var(--transition-smooth);
}

header.scrolled .logo {
  height: 76px;
  padding: 0;
}

.desktop-nav {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.mobile-menu-info {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
  padding: 8px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-clay);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
  width: 100%;
}

/* --- Mega Menu --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 780px;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-card);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  pointer-events: none;
  border: 1px solid var(--color-border);
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu h3 {
  font-size: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 10px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 6px 0;
  transition: var(--transition-fast);
}

.mega-menu-link::before {
  content: '»';
  color: var(--color-accent-clay);
  font-weight: bold;
  margin-right: 8px;
  font-size: 15px;
  transition: var(--transition-fast);
}

.mega-menu-link:hover {
  color: var(--color-accent-clay);
  transform: translateX(3px);
}

.mega-menu-visual {
  background-image: linear-gradient(rgba(30, 24, 15, 0.4), rgba(30, 24, 15, 0.4)), url('assets/images/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mega-menu-circle {
  display: none;
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(30, 30, 30, 0.45), rgba(30, 30, 30, 0.75)), url('assets/images/new_hero_provided.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  color: #FFFFFF;
  font-size: var(--font-size-h1);
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero p {
  font-size: var(--font-size-p);
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero .btn-outline {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-outline:hover {
  background-color: #FFFFFF;
  color: var(--color-surface-dark);
  border-color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary {
  background-color: var(--color-accent-clay);
  color: #FFFFFF;
  border-color: var(--color-accent-clay);
}

.hero .btn-primary:hover {
  background-color: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* --- CTA Banner --- */
.cta-banner h2 {
  color: #FFFFFF !important;
  margin-bottom: 16px;
}
.cta-banner p {
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
}

/* --- Product Section --- */
.section-title-tag {
  font-family: var(--font-header);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-accent-clay);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: var(--font-size-h2);
  margin-bottom: 40px;
  position: relative;
}

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

@media (min-width: 576px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent-clay);
}

.product-image-wrap {
  width: 100%;
  height: 200px;
  background-color: var(--color-bg-primary);
  overflow: hidden;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.product-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-clay);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

.product-link::after {
  content: '→';
  transition: var(--transition-fast);
}

.product-card:hover .product-link::after {
  transform: translateX(4px);
}

/* --- Why Choose Us Section --- */
.why-us {
  background-color: var(--color-bg-secondary);
}

.why-us-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.why-us-image {
  border-radius: var(--radius-image);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.why-us-image img {
  width: 100%;
  display: block;
}

.why-us-content h2 {
  font-size: 48px;
  margin-bottom: 24px;
}

.why-us-content p {
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item h4::before {
  content: '✓';
  color: var(--color-accent-clay);
  font-weight: bold;
}

.feature-item p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- Contact / Sample Section --- */
.contact-sample-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.contact-text-side h2 {
  font-size: 48px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.contact-text-side h2 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--color-text-primary);
}

.contact-text-side p {
  margin-top: 16px;
  color: var(--color-text-secondary);
}

.sample-form-box {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.03);
  border-radius: var(--radius-card);
  padding: 40px;
}

.sample-form-box h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-form);
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent-clay);
  box-shadow: 0 0 0 3px rgba(185, 137, 92, 0.15);
}

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

.form-btn {
  width: 100%;
  margin-top: 8px;
}

/* --- Footer --- */
footer {
  background-color: var(--color-surface-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 80px 0;
  font-size: 14px;
}

#contact {
  padding-bottom: 120px; /* Ensure clean spacing between the form and the footer */
}

@media (max-width: 768px) {
  #contact {
    padding-bottom: 80px; /* Responsive spacing for mobile views */
  }
  footer {
    padding: 50px 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-col h3 {
  color: #FFFFFF;
  font-size: 18px;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-accent-clay);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
}

.footer-contact-list strong {
  color: #FFFFFF;
}

.footer-disclaimer {
  margin-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
}

.footer-links-list a::before {
  content: '›';
  margin-right: 8px;
  color: var(--color-accent-clay);
  font-size: 16px;
  transition: var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--color-accent-clay);
  transform: translateX(3px);
}

.footer-social-list a::before {
  display: none !important;
}

.footer-social-list a:hover {
  transform: translateY(-3px) !important;
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .nav-links {
    display: none; /* Will toggle via JS class */
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 38px;
  }
  
  .why-us-layout,
  .contact-sample-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-us-image {
    order: 2;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* JS-driven classes for mobile navigation overlay */
.nav-active {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-secondary);
  padding: 40px 24px;
  gap: 24px;
  z-index: 999;
  overflow-y: auto; /* Fixes Mobile clipping issue identified in review */
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

/* --- Industries We Serve Section --- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
}

.industry-card {
  background-color: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.industry-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent-clay);
  box-shadow: 0 15px 30px rgba(185, 137, 92, 0.05);
}

.industry-image-wrap {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

.industry-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-smooth);
}

.industry-card:hover .industry-image-wrap img {
  transform: scale(1.05);
}

.industry-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.industry-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Timeline Component --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--color-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

@media (max-width: 768px) {
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--color-bg-secondary);
  border: 3px solid var(--color-accent-clay);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline-item::after {
    left: 23px;
    right: auto;
  }
}

.left-item {
  left: 0;
}

.right-item {
  left: 50%;
}

.right-item::after {
  left: -8px;
}

@media (max-width: 768px) {
  .right-item {
    left: 0%;
  }
  .right-item::after {
    left: 23px;
  }
}

.timeline-content {
  padding: 30px;
  background-color: var(--color-bg-secondary);
  position: relative;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 25px rgba(0,0,0,0.01);
}

.timeline-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--color-accent-clay);
}

.timeline-content h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-family: var(--font-header);
}

.timeline-content p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-clay);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-accent-clay);
  margin-bottom: 10px;
  font-family: var(--font-header);
}

.stat-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-family: var(--font-body);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), 
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
  will-change: transform, opacity;
}

/* Prevent horizontal scroll from reveals on mobile */
@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }
}

.reveal.reveal-visible,
.reveal-left.reveal-visible,
.reveal-right.reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Delay modifiers for sequential item revealing */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Micro-animation for logo on hover (gentle pulse/shimmer) */
.logo:hover img {
  opacity: 0.9;
  filter: drop-shadow(0 2px 5px rgba(30, 30, 30, 0.1));
}

/* ==========================================================================
   Lenis Smooth Scroll Recommendations
   ========================================================================== */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* ==========================================================================
   Mobile & Tablet Responsiveness
   ========================================================================== */
@media (max-width: 992px) {
  /* Header & Navigation */
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(247, 246, 242, 0.98); /* Translucent Warm Clay White */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 50px 30px;
    gap: 0;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-links.nav-active {
    left: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
  }

  .nav-links .nav-link {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--color-text-primary);
    padding: 8px 0;
    display: inline-block;
    position: relative;
    width: auto;
    text-align: center;
  }

  /* Active line indicator on mobile */
  .nav-links li.active .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background-color: var(--color-accent-clay);
  }

  /* Contact Button inside Mobile Menu */
  .nav-links li:last-child {
    margin-top: 15px;
    margin-bottom: 35px;
  }
  
  .nav-links .btn {
    width: 100%;
    max-width: 220px;
    justify-content: center;
    padding: 12px 24px !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    margin: 0 auto;
    display: inline-flex;
  }

  /* Dynamic Mobile Menu Contact Info Block */
  .mobile-menu-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    padding-top: 25px;
    text-align: center;
  }
  
  .mobile-info-divider {
    width: 50px;
    height: 1px;
    background-color: var(--color-border);
    margin-bottom: 20px;
  }
  
  .mobile-info-tag {
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent-clay);
    margin-bottom: 12px;
  }
  
  .mobile-info-link {
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    margin-bottom: 6px;
    transition: var(--transition-fast);
  }
  
  .mobile-info-link:hover {
    color: var(--color-text-primary);
  }
  
  .mobile-info-loc {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-top: 8px;
  }

  header.scrolled .nav-links {
    top: 80px;
    height: calc(100vh - 80px);
  }

  /* Hamburger Animation */
  .hamburger.hamburger-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.hamburger-open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.hamburger-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Mega Menu adjustment */
  .mega-menu {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 10px 0 10px 15px;
    display: none; /* Hide by default on mobile, can be toggled if needed */
  }

  .nav-item:hover .mega-menu,
  .mega-menu.mega-menu-open {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 10px;
    border-left: 2px solid var(--color-border);
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0 0 0 15px;
  }
  
  .mega-menu-visual {
    display: none;
  }

  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .mega-menu-link {
    font-size: 14px;
    padding: 8px 0;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
  }

  .mega-menu h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--color-accent-clay);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: left;
  }
}

@media (max-width: 768px) {
  /* Hero Adjustments */
  .hero {
    background-position: 70% center; /* Adjust image focus */
  }
  
  .hero p {
    margin-bottom: 25px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero .btn {
    width: 100%;
  }

  .section-title {
    margin-bottom: 30px;
  }
  
  /* Footer Adjustments if applicable */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   Accessibility & Performance
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
