/* ============================================
   RPAM INDUSTRIES - PREMIUM DESIGN SYSTEM
   Interior Designers & Manufacturers
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Color Palette - Kerala Inspired */
  --color-primary: #8B4513;
  /* Saddle Brown - Teak */
  --color-secondary: #D2691E;
  /* Chocolate - Walnut */
  --color-accent: #CD853F;
  /* Peru - Light Wood */
  --color-dark: #2C1810;
  /* Dark Brown */
  --color-light: #F5DEB3;
  /* Wheat - Light Cream */
  --color-cream: #FFF8DC;
  /* Cornsilk */
  --color-white: #FFFFFF;
  --color-black: #000000;

  /* Gradients */
  --gradient-wood: linear-gradient(135deg, rgba(139, 69, 19, 0.9), rgba(210, 105, 30, 0.8));
  --gradient-overlay: linear-gradient(to bottom, rgba(44, 24, 16, 0.7), rgba(44, 24, 16, 0.3));

  /* Typography */
  --font-primary: 'Times New Roman', Times, serif;
  --font-secondary: 'Times New Roman', Times, serif;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-large: 18px;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2rem;
  --font-size-h4: 1.5rem;
  --line-height-base: 1.6;
  --line-height-heading: 1.2;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-xxl: 6rem;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-tooltip: 1050;
}

/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-secondary);
  line-height: var(--line-height-base);
  color: var(--color-dark);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  line-height: var(--line-height-heading);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
  opacity: 0.9;
}

.text-center {
  text-align: center;
}

.text-light {
  color: var(--color-light);
}

.text-white {
  color: var(--color-white);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-wood);
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-sm) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.navbar.scrolled {
  padding: var(--spacing-xs) 0;
  background: rgba(44, 24, 16, 0.98);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand span {
  color: var(--color-accent);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.navbar-menu a {
  color: var(--color-light);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  position: relative;
}

.navbar-menu a:hover {
  color: var(--color-accent);
  background: rgba(205, 133, 63, 0.1);
}

.navbar-menu a.active {
  color: var(--color-accent);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  color: var(--color-light);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.dropdown-toggle:hover {
  color: var(--color-accent);
  background: rgba(205, 133, 63, 0.1);
}

.dropdown-toggle::after {
  content: '▼';
  font-size: 0.7rem;
  transition: var(--transition-fast);
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(44, 24, 16, 0.98);
  backdrop-filter: blur(10px);
  min-width: 220px;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition-base);
  z-index: var(--z-dropdown);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-xs) var(--spacing-sm);
  color: var(--color-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.dropdown-menu a:hover {
  background: rgba(205, 133, 63, 0.2);
  color: var(--color-accent);
  transform: translateX(5px);
}

/* Logo Styles */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.navbar-logo {
  height: 70px;
  width: auto;
  transition: var(--transition-base);
  object-fit: contain;
}

.navbar.scrolled .navbar-logo {
  height: 55px;
}

.footer-logo {
  height: 120px;
  width: auto;
  margin-bottom: var(--spacing-sm);
  filter: brightness(1.1);
  object-fit: contain;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-light);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

/* ============================================
   INNER PAGE HERO SECTION (for service pages, etc.)
   ============================================ */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/hero/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin-top: 76px;
  /* Account for fixed navbar */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(44, 24, 16, 0.85) 0%,
      rgba(44, 24, 16, 0.7) 40%,
      rgba(139, 69, 19, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  max-width: 900px;
}

.hero .hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   PREMIUM HERO SLIDER SECTION
   ============================================ */
.hero-slider {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Individual Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Ken Burns Zoom Effect Background */
.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0s;
}

/* Zoom In Animation */
.hero-slide.active .hero-slide-bg {
  animation: kenBurnsZoomIn 8s ease-out forwards;
}

/* Zoom Out Animation (alternating slides) */
.hero-slide.active.zoom-out .hero-slide-bg {
  animation: kenBurnsZoomOut 8s ease-out forwards;
}

@keyframes kenBurnsZoomIn {
  0% {
    transform: scale(1) translateX(0);
  }

  100% {
    transform: scale(1.15) translateX(-2%);
  }
}

@keyframes kenBurnsZoomOut {
  0% {
    transform: scale(1.15) translateX(2%);
  }

  100% {
    transform: scale(1) translateX(0);
  }
}

/* Premium Overlay with Gradient */
.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(44, 24, 16, 0.85) 0%,
      rgba(44, 24, 16, 0.6) 40%,
      rgba(139, 69, 19, 0.4) 100%);
  z-index: 1;
}

/* Slide Content */
.hero-slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  width: 90%;
  max-width: 1000px;
  padding: var(--spacing-md);
}

/* Hero Subtitle */
.hero-subtitle {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  padding: 10px 24px;
  background: rgba(205, 133, 63, 0.15);
  border: 1px solid rgba(205, 133, 63, 0.3);
  border-radius: 30px;
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: slideUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: 2px;
  text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: slideUp 0.8s ease 0.5s forwards;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  line-height: 1.8;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: slideUp 0.8s ease 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease 0.9s forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Premium Button Glow Effect */
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(139, 69, 19, 0.4);
  transition: all 0.4s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  box-shadow: 0 0 50px rgba(139, 69, 19, 0.6);
  transform: translateY(-5px) scale(1.02);
}

/* Shimmer Effect for Outline Button */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.btn-shimmer:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-5px);
  border-color: transparent;
}

/* Slider Navigation Dots */
.hero-slider-nav {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 10;
}

.slider-nav-btn {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.slider-nav-btn .nav-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.slider-nav-btn.active .nav-progress {
  animation: progressFill 7s linear forwards;
}

@keyframes progressFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

/* Slider Arrow Controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow:hover svg {
  color: var(--color-accent);
}

.hero-arrow-prev {
  left: 40px;
}

.hero-arrow-next {
  right: 40px;
}

/* Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

.hero-scroll-indicator span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-8px);
  }

  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  cursor: pointer;
  text-align: center;
  font-size: var(--font-size-base);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-wood);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: var(--spacing-md);
}

.card-title {
  font-size: var(--font-size-h4);
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.card-text {
  color: var(--color-dark);
  opacity: 0.8;
  margin-bottom: var(--spacing-sm);
}

/* Premium Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: var(--transition-base);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 24, 16, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text {
  color: var(--color-white);
  font-size: var(--font-size-large);
  font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--spacing-md);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius-lg);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.lightbox-close:hover {
  color: var(--color-accent);
  transform: rotate(90deg);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 15px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(139, 69, 19, 0.25);
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-white);
  transition: all 0.3s ease;
  line-height: 1.5;
}

.form-control::placeholder {
  color: rgba(44, 24, 16, 0.4);
  font-weight: 400;
}

.form-control:hover {
  border-color: rgba(139, 69, 19, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.08);
  background: #FFFEF9;
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  font-family: 'Inter', sans-serif;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238B4513' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 45px;
}

select.form-control::-ms-expand {
  display: none;
}

/* Form validation states */
.form-control:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
  border-color: #28a745;
}

/* Responsive form styles */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-control {
    padding: 12px 16px;
    font-size: 16px;
    /* Prevents zoom on iOS */
  }

  textarea.form-control {
    min-height: 120px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: var(--color-light);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: var(--color-light);
  opacity: 0.9;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(245, 222, 179, 0.2);
  color: var(--color-light);
  opacity: 0.8;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-fixed);
  transition: var(--transition-base);
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 0.6s ease;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Hero specific text that should always be visible */
.hero-title,
.hero-tagline {
  opacity: 1 !important;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-tagline {
  animation-delay: 0.4s;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: rgba(44, 24, 16, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1099;
    display: flex;
    overflow-y: auto;
  }

  .navbar-menu.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  /* Hero Slider Responsive */
  .hero-arrow {
    width: 50px;
    height: 50px;
  }

  .hero-arrow-prev {
    left: 20px;
  }

  .hero-arrow-next {
    right: 20px;
  }

  .hero-slider-nav {
    bottom: 80px;
  }

  .slider-nav-btn {
    width: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --spacing-xxl: 4rem;
  }

  /* Inner Page Hero Responsive */
  .hero {
    margin-top: 70px;
    min-height: 40vh;
    background-attachment: scroll;
    /* Better performance on mobile */
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  /* Hero Slider Mobile */
  .hero-arrow {
    width: 45px;
    height: 45px;
  }

  .hero-arrow svg {
    width: 20px;
    height: 20px;
  }

  .hero-arrow-prev {
    left: 15px;
  }

  .hero-arrow-next {
    right: 15px;
  }

  .hero-slider-nav {
    bottom: 70px;
    gap: 12px;
  }

  .slider-nav-btn {
    width: 35px;
    height: 3px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.8rem;
    padding: 8px 16px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Hero Slider Mobile Small */
  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow-prev {
    left: 10px;
  }

  .hero-arrow-next {
    right: 10px;
  }

  .hero-slide-content {
    width: 95%;
    padding: var(--spacing-sm);
  }

  .hero-slider-nav {
    bottom: 60px;
  }

  .slider-nav-btn {
    width: 30px;
  }

  /* Footer Responsive - Mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .footer-section {
    text-align: center;
  }
}

/* ============================================
   SECTION OVERLAP FIXES
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  background-color: var(--color-cream);
}

.section:nth-child(odd) {
  z-index: 2;
}

/* Ensure proper stacking */
.navbar {
  z-index: 1100;
}

.hero-slider {
  z-index: 1;
}

/* Mobile Menu Additional Styles */
@media (max-width: 992px) {
  .navbar-menu a {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid rgba(245, 222, 179, 0.1);
    width: 100%;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(245, 222, 179, 0.1);
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 20px;
    min-width: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .dropdown-menu a {
    padding: 10px 0;
    font-size: 1rem;
    border-bottom: none;
  }

  .menu-toggle {
    z-index: 1100;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Footer Responsive - Tablet */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1098;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 222, 179, 0.2));
  position: relative;
  overflow: hidden;
}

.clients-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/textures/wood-texture.jpg') repeat;
  opacity: 0.02;
  pointer-events: none;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.client-logo-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(139, 69, 19, 0.08);
}

.client-logo-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(205, 133, 63, 0.08), transparent);
  transition: left 0.7s ease;
}

.client-logo-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(245, 222, 179, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.client-logo-wrapper:hover::before {
  left: 100%;
}

.client-logo-wrapper:hover::after {
  opacity: 1;
}

.client-logo-wrapper:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 12px 40px rgba(139, 69, 19, 0.15);
  border-color: var(--color-accent);
  background: linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
}

.client-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(1) contrast(1.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.client-logo-wrapper:hover .client-logo {
  filter: brightness(1.05) contrast(1.1);
  transform: scale(1.08);
}

/* Staggered Animation on Scroll */
.clients-grid.scroll-reveal .client-logo-wrapper {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(1) {
  animation-delay: 0.1s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(2) {
  animation-delay: 0.15s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(3) {
  animation-delay: 0.2s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(4) {
  animation-delay: 0.25s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(5) {
  animation-delay: 0.3s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(6) {
  animation-delay: 0.35s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(7) {
  animation-delay: 0.4s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(8) {
  animation-delay: 0.45s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(9) {
  animation-delay: 0.5s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(10) {
  animation-delay: 0.55s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(11) {
  animation-delay: 0.6s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(12) {
  animation-delay: 0.65s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(13) {
  animation-delay: 0.7s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(14) {
  animation-delay: 0.75s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(15) {
  animation-delay: 0.8s;
}

.clients-grid.scroll-reveal .client-logo-wrapper:nth-child(16) {
  animation-delay: 0.85s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Clients Section */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .client-logo-wrapper {
    padding: 2rem;
    min-height: 120px;
  }

  .client-logo {
    max-height: 80px;
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .client-logo-wrapper {
    padding: 1.5rem;
    min-height: 100px;
  }

  .client-logo {
    max-height: 70px;
  }
}