/* ==========================================================================
   Flowmart Industrial Solutions - Custom Styles
   Design: Industrial-Chic 2026
   Author: Farbod Akvan
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primary Palette */
  --color-primary: #4B2E2A;
  --color-primary-light: #5D3A36;
  --color-primary-dark: #3A231F;
  
  /* Accent */
  --color-accent: #A0522D;
  --color-accent-light: #B5633D;
  --color-accent-dark: #8B4726;
  
  /* Backgrounds */
  --color-bg: #F5F0E8;
  --color-bg-warm: #EDE6DB;
  --color-bg-cream: #FAF7F2;
  
  /* Secondary */
  --color-secondary: #8A7F6B;
  --color-secondary-light: #9D9282;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-text-muted: #777777;
  
  /* Utility */
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  --color-border: rgba(75, 46, 42, 0.12);
  --color-border-dark: rgba(75, 46, 42, 0.25);
  
  /* Typography Scale */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  
  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
  --container-max: 1400px;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(75, 46, 42, 0.06);
  --shadow-md: 0 4px 20px rgba(75, 46, 42, 0.08);
  --shadow-lg: 0 8px 40px rgba(75, 46, 42, 0.12);
  --shadow-xl: 0 16px 60px rgba(75, 46, 42, 0.16);
}

/* --------------------------------------------------------------------------
   Base & Reset Enhancements
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling via Lenis/GSAP - disable native for JS control */
html.lenis,
html.lenis body {
  height: auto;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(3rem, 8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.display-lg {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
}

.display-md {
  font-size: clamp(2rem, 4vw, 3rem);
}

.text-balance {
  text-wrap: balance;
}

.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-primary);
}

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

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container-custom {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-padding {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
  transition: all 0.4s var(--ease-smooth);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 232, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.4s var(--ease-smooth);
  z-index: -1;
}

.header.scrolled {
  padding: 0.75rem 0;
}

.header.scrolled::before {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  display: block;
  height: 60px;
  width: auto;
}

/* Main Navigation */
.nav-main {
  display: none;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s var(--ease-smooth);
  border-radius: 8px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: #dfd0c0;
}

.nav-link .lucide {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.nav-item:hover .nav-link .lucide {
  transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content;
  min-width: 280px;
  padding: 1.5rem;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 100;
}

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

.mega-menu-grid {
  display: grid;
  gap: 0.5rem;
}

.mega-menu-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s var(--ease-smooth);
}

.mega-menu-link:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.mega-menu-link .lucide {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.mega-menu-link span {
  font-weight: 500;
}

/* Header CTA */
.header-cta {
  display: block;
  width: 0px;
}

@media (max-width: 767px) {
  .header-cta {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-cta {
    display: none;
  }
}

@media (min-width: 1024px) and (max-width: 1365px) {
  .header-cta {
    display: none;
  }
}

@media (min-width: 1366px) {
  .header-cta {
    display: none;
  }
}
/* Mobile Menu Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease-out-expo);
  z-index: 999;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s var(--ease-smooth);
}

.mobile-nav-link:hover {
  color: var(--color-accent);
}

.mobile-nav-cta {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
  white-space: nowrap;
}

.btn .lucide {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease-smooth);
}

.btn:hover .lucide {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(160, 82, 45, 0.25);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(160, 82, 45, 0.35);
}

.btn-secondary {
  background: var(--color-primary);
  color: var(--color-white);
}

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

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  padding: 0.625rem 0;
}

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

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(75, 46, 42, 0.85) 0%,
    rgba(75, 46, 42, 0.6) 50%,
    rgba(75, 46, 42, 0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-badge .lucide {
  width: 16px;
  height: 16px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
}

.hero-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* Page Hero (Inner pages) */
.page-hero {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(75, 46, 42, 0.9) 0%,
    rgba(75, 46, 42, 0.7) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.page-hero-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.breadcrumbs a:hover {
  color: var(--color-white);
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs .current {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-warm);
  border-radius: 50px;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.section-badge .lucide {
  width: 14px;
  height: 14px;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
}

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

.section-dark .section-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent-light);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

.section-cream {
  background: var(--color-bg-cream);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

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

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.card:hover .card-image img {
  transform: scale(1.08);
}

.card-content {
  padding: 1.75rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-bg);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: all 0.4s var(--ease-out-expo);
}

.card-icon .lucide {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.card:hover .card-icon {
  background: var(--color-accent);
}

.card:hover .card-icon .lucide {
  color: var(--color-white);
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: gap 0.3s var(--ease-smooth);
}

.card-link:hover {
  gap: 0.75rem;
}

.card-link .lucide {
  width: 18px;
  height: 18px;
}

/* Product Card */
.product-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.875rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
}

.product-card-content {
  padding: 1.5rem;
}

.product-card-category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.product-card-category .lucide {
  width: 14px;
  height: 14px;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Bento Grid
   -------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .bento-grid .bento-wide {
    grid-column: span 2;
  }
  
  .bento-grid .bento-tall {
    grid-row: span 2;
  }
}

.bento-item {
  position: relative;
  background: var(--color-white);
  border-radius: 24px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s var(--ease-out-expo);
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bento-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.bento-item:hover .bento-bg img {
  transform: scale(1.05);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(75, 46, 42, 0.9) 0%,
    rgba(75, 46, 42, 0.4) 50%,
    transparent 100%
  );
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  margin-top: auto;
  color: var(--color-white);
}

.bento-content .lucide {
  width: 32px;
  height: 32px;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
}

.bento-content h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bento-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Stats Section
   -------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-light);
}

.section-dark .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial-card {
  background: var(--color-white);
  padding: 2.5rem;
  border-radius: 24px;
  height: 100%;
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Features List
   -------------------------------------------------------------------------- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 12px;
  flex-shrink: 0;
}

.feature-icon .lucide {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
}

.feature-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-content p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(75, 46, 42, 0.95) 0%,
    rgba(75, 46, 42, 0.85) 100%
  );
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer-brand .logo {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--color-white);
  transition: all 0.3s var(--ease-smooth);
}

.footer-social a:hover {
  background: var(--color-accent);
}

.footer-social .lucide {
  width: 20px;
  height: 20px;
}

.footer-column h4 {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.3s var(--ease-smooth);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.footer-contact-item .lucide {
  width: 20px;
  height: 20px;
  color: var(--color-accent-light);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

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

.footer-credit {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  margin-top: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s var(--ease-smooth);
}

.footer-legal a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  transition: all 0.3s var(--ease-smooth);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(160, 82, 45, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

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

.form-row {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

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

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-content {
  padding: 1.75rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.blog-card-category {
  color: var(--color-accent);
  font-weight: 600;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s var(--ease-smooth);
}

.blog-card:hover h3 {
  color: var(--color-accent);
}

.blog-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Case Study Cards
   -------------------------------------------------------------------------- */
.case-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.case-card-bg {
  position: absolute;
  inset: 0;
}

.case-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.case-card:hover .case-card-bg img {
  transform: scale(1.08);
}

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(75, 46, 42, 0.95) 0%,
    rgba(75, 46, 42, 0.3) 60%,
    transparent 100%
  );
  transition: background 0.4s var(--ease-smooth);
}

.case-card:hover .case-card-overlay {
  background: linear-gradient(
    to top,
    rgba(75, 46, 42, 0.98) 0%,
    rgba(75, 46, 42, 0.6) 100%
  );
}

.case-card-content {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
}

.case-card-tag {
  display: inline-flex;
  padding: 0.375rem 0.875rem;
  background: var(--color-accent);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.case-card h3 {
  color: var(--color-white);
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.case-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9375rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s var(--ease-out-expo);
}

.case-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Team Section
   -------------------------------------------------------------------------- */
.team-card {
  text-align: center;
}

.team-card-image {
  position: relative;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

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

.team-card h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.team-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Contact Info
   -------------------------------------------------------------------------- */
.contact-info-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  gap: 1.25rem;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-bg);
  border-radius: 14px;
  flex-shrink: 0;
}

.contact-info-icon .lucide {
  width: 26px;
  height: 26px;
  color: var(--color-accent);
}

.contact-info-content h4 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-info-content p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.contact-info-content a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.contact-info-content a:hover {
  color: var(--color-accent-dark);
}

/* --------------------------------------------------------------------------
   Map Container
   -------------------------------------------------------------------------- */
.map-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-bg-warm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Animations (GSAP will enhance these)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}

/* Gauge animation for icons */
@keyframes gaugeNeedle {
  0% { transform: rotate(-45deg); }
  50% { transform: rotate(45deg); }
  100% { transform: rotate(-45deg); }
}

.gauge-animate:hover .lucide {
  animation: gaugeNeedle 1.5s ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

.mb-0 { margin-bottom: 0 !important; }
.mt-auto { margin-top: auto; }

.bg-white { background: var(--color-white); }
.bg-cream { background: var(--color-bg-cream); }
.bg-warm { background: var(--color-bg-warm); }

/* --------------------------------------------------------------------------
   Responsive Utilities
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .hide-desktop {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Page Loader
   -------------------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s var(--ease-smooth), visibility 0.5s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Form Validation & Error Styles
   -------------------------------------------------------------------------- */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #DC2626;
  background-color: #FEF2F2;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  display: block;
  color: #DC2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.form-error.visible {
  opacity: 1;
  max-height: 100px;
}

/* Form button loading state */
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Success message styling */
#formSuccess {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* ==========================================================================
   Language Switcher - i18n
   ========================================================================== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1rem;
  padding: 0.25rem;
  background: rgba(75, 46, 42, 0.05);
  border-radius: 0.5rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.lang-btn:hover {
  background: rgba(75, 46, 42, 0.08);
  color: var(--color-primary);
}

.lang-btn.active {
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  display: inline-block;
}

/* Mobile Language Switcher */
.mobile-lang-switcher {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  margin: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.mobile-lang-switcher .lang-btn {
  flex: 1;
  justify-content: center;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.mobile-lang-switcher .lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* i18n Loading State */
.i18n-loading {
  pointer-events: none;
}

.i18n-loading * {
  transition: none !important;
}

/* ==========================================================================
   Cookie Consent Banner - GDPR/CCPA Compliant
   ========================================================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
}

.cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-consent-content {
  flex: 1;
  min-width: 280px;
}

.cookie-consent-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.cookie-consent-content p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
}

.cookie-consent-actions .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.cookie-link {
  font-size: 0.875rem;
  color: var(--color-accent);
  text-decoration: none;
  white-space: nowrap;
}

.cookie-link:hover {
  text-decoration: underline;
}

/* Mobile Cookie Consent */
@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem 1rem;
  }
  
  .cookie-consent-actions {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-consent-actions .btn {
    flex: 1;
    min-width: 120px;
  }
}

/* ==========================================================================
   Responsive Images - CLS Prevention
   ========================================================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent layout shift by reserving space */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Lazy loaded images fade in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* Picture element styling */
picture {
  display: block;
}

picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Skip to Content - Accessibility
   ========================================================================== */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
  .header,
  .footer,
  .mobile-nav,
  .cookie-consent,
  .lang-switcher,
  .page-loader,
  .hero-scroll,
  .btn {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }
}

/* ==========================================================================
   Reduced Motion Preferences
   ========================================================================== */
@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;
  }
  
  .page-loader {
    display: none !important;
  }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #2c1a18;
    --color-accent: #8b4000;
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-border: #000000;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  /* Uncomment when dark mode is implemented
  :root {
    --color-bg: #1a1a1a;
    --color-bg-warm: #242424;
    --color-bg-cream: #2a2a2a;
    --color-text: #f0f0f0;
    --color-text-light: #cccccc;
    --color-text-muted: #999999;
    --color-white: #1a1a1a;
    --color-black: #ffffff;
  }
  */
}

/* ==========================================================================
   Language Switcher in Header - Responsive Adjustments
   ========================================================================== */
@media (max-width: 1024px) {
  .lang-switcher {
    margin-right: 0.5rem;
  }
  
  .lang-code {
    display: none;
  }
  
  .lang-btn {
    padding: 0.375rem;
  }
}

@media (max-width: 768px) {
  .lang-switcher {
    display: none;
  }
  
  .mobile-lang-switcher {
    display: flex;
  }
}

/* ==========================================================================
   Performance Optimizations
   ========================================================================== */
/* GPU-accelerated animations */
.hero-bg img,
.page-loader,
.mobile-nav,
.mega-menu,
.cookie-consent {
  will-change: transform, opacity;
}

/* Optimize paint for fixed elements */
.header,
.cookie-consent {
  contain: layout style;
}

/* Content visibility for off-screen sections */
section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}
