/* ============================================
   WOODIX — Premium Plywood & Timber Website
   Light Wooden Theme | Earthy & Warm Palette
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Wood-inspired colors */
  --primary: #8B5A2B; /* Rich Wood Brown */
  --primary-light: #C19A6B; /* Warm Oak / Caramel */
  --primary-glow: rgba(139, 90, 43, 0.25);
  --accent: #4A7C59; /* Leafy Green / Forest */
  --accent-light: #6BA37A;
  
  /* Light Theme Backgrounds */
  --bg-light: #FDFBF7; /* Cream / Warm Off-white */
  --bg-dark: #2C1E16; /* Espresso Brown (used sparingly for contrast like footer) */
  --bg-card: #FFFFFF; /* Pure white for cards */
  --bg-surface: #F5EFEB; /* Very light wood tone for alternating sections */
  
  /* Text Colors */
  --text-white: #FFFFFF;
  --text-light: #FDFBF7;
  --text-muted: #795548; /* Medium Brownish Gray */
  --text-dark: #3E2723; /* Very Dark Brown / Charcoal */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8B5A2B 0%, #A0522D 50%, #C19A6B 100%);
  --gradient-dark: linear-gradient(180deg, #3E2723 0%, #2C1E16 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 1) 0%, rgba(245, 239, 235, 0.6) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(139, 90, 43, 0.05);
  --shadow-md: 0 8px 24px rgba(139, 90, 43, 0.08);
  --shadow-lg: 0 16px 48px rgba(62, 39, 35, 0.12);
  --shadow-glow: 0 0 30px rgba(193, 154, 107, 0.3);
  
  /* Border radius (slightly sharper for a modern crafted feel, or rounded for smooth) */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 120px;
  --container-width: 1280px;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
  /* Subtle wood grain or paper texture could go here, for now keeping it clean warm white */
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.section-header {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin-top: 20px;
  font-size: 1.1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 60px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-white) !important;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 90, 43, 0.4);
}

.btn-primary::after {
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark) !important;
  border: 1.5px solid var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: rgba(139, 90, 43, 0.05);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

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

.btn-arrow {
  display: inline-flex;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.nav.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(139, 90, 43, 0.1);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Initially, on top of hero, nav links should be white if hero is dark. 
   But since we want a light theme, we will make the hero light too. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.nav-cta {
  padding: 10px 28px !important;
  font-size: 0.9rem !important;
  color: var(--text-white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

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

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-light);
}

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

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Gradient that is solid on the left for text readability and fades out to reveal the image */
  background: linear-gradient(90deg, rgba(253, 251, 247, 0.95) 0%, rgba(253, 251, 247, 0.85) 45%, rgba(253, 251, 247, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 100px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 60px;
  background: rgba(139, 90, 43, 0.1);
  border: 1px solid rgba(139, 90, 43, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--text-dark);
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 600px;
  font-weight: 400;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid rgba(139, 90, 43, 0.15);
}

.hero-stat h3 {
  color: var(--text-dark);
  font-size: 2.6rem;
  font-family: 'Outfit', sans-serif;
}

.hero-stat h3 span {
  color: var(--primary);
}

.hero-stat p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Hero floating shapes (Changed to warm, earthy blobs) */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(193, 154, 107, 0.3); /* Warm oak glow */
  top: -100px;
  right: -100px;
  animation: float-shape 8s ease-in-out infinite;
}

.hero-shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(74, 124, 89, 0.15); /* Leafy green glow */
  bottom: 0px;
  left: 5%;
  animation: float-shape 10s ease-in-out infinite reverse;
}

@keyframes float-shape {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* --- Marquee / Partners --- */
.marquee-section {
  padding: 50px 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(139, 90, 43, 0.1);
  border-bottom: 1px solid rgba(139, 90, 43, 0.1);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 32px;
}

.marquee-track {
  display: flex;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 48px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(62, 39, 35, 0.3); /* Muted dark brown */
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
  user-select: none;
}

.marquee-item:hover {
  color: var(--primary);
}

.marquee-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 90, 43, 0.4);
  flex-shrink: 0;
}

/* --- Services Section --- */
.services {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  border: 1px solid rgba(139, 90, 43, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139, 90, 43, 0.2);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(193, 154, 107, 0.15); /* Light wood bg */
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 2rem;
}

.service-card h3 {
  color: var(--text-dark);
  margin-bottom: 16px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.service-link svg {
  transition: transform 0.3s;
}

.service-card:hover .service-link svg {
  transform: translateX(4px);
}

/* --- About Section --- */
.about {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

.about-image-badge {
  position: absolute;
  bottom: 32px;
  right: 32px;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 90, 43, 0.15);
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
  text-align: center;
}

.about-image-badge h4 {
  font-size: 2.2rem;
  color: var(--primary);
}

.about-image-badge p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 600;
}

.about-content h2 {
  color: var(--text-dark);
  margin-bottom: 24px;
}

.about-content > p {
  color: var(--text-muted);
  margin-bottom: 40px;
}

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

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid rgba(139, 90, 43, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.about-feature:hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(139, 90, 43, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.about-feature h4 {
  color: var(--text-dark);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.about-feature p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.6;
}

/* --- Projects Section --- */
.projects {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.project-card.large {
  grid-column: span 2;
  height: 540px;
}

.project-card:not(.large) {
  height: 420px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 30, 22, 0) 30%, rgba(44, 30, 22, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: linear-gradient(180deg, rgba(139, 90, 43, 0.2) 0%, rgba(44, 30, 22, 0.95) 100%);
}

.project-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.2);
  color: #FDFBF7;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-overlay h3 {
  color: var(--text-white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.project-overlay p {
  color: rgba(253, 251, 247, 0.8);
  font-size: 1rem;
  margin: 0;
}

.project-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.project-card:hover .project-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* --- Stats Section --- */
.stats {
  padding: 100px 0;
  background: var(--bg-dark); /* Using dark espresso here for a strong contrast break */
  position: relative;
  overflow: hidden;
}

/* Adding a subtle wood grain or line pattern overlay could go here. We'll use a warm gradient instead */
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 90, 43, 0.2) 0%, rgba(44, 30, 22, 0.9) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 24px;
}

.stat-item h3 {
  font-size: 3.5rem;
  color: var(--primary-light);
  margin-bottom: 12px;
  font-weight: 800;
}

.stat-item p {
  color: var(--text-white);
  font-size: 1.05rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonials {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
}

.testimonials h2 {
  color: var(--text-dark);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(139, 90, 43, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  color: var(--primary-light);
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  color: var(--text-dark);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  color: var(--text-dark);
  font-size: 1.05rem;
}

.testimonial-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}

/* --- CTA Section --- */
.cta {
  padding: var(--section-padding) 0;
  background: var(--bg-light);
}

.cta-box {
  background: var(--primary);
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  filter: blur(80px);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(60px);
  bottom: -100px;
  left: -50px;
  pointer-events: none;
}

.cta-box .section-label {
  color: rgba(255, 255, 255, 0.9);
}

.cta-box .section-label::before {
  background: rgba(255, 255, 255, 0.9);
}

.cta-box h2 {
  color: var(--text-white);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.cta-buttons .btn-primary {
  background: var(--text-white);
  color: var(--primary) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cta-buttons .btn-primary:hover {
  background: #f8f8f8;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.cta-buttons .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--text-white) !important;
}

.cta-buttons .btn-outline:hover {
  border-color: var(--text-white);
  background: rgba(255,255,255,0.1);
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark); /* Dark rich espresso footer */
  padding: 100px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-brand .nav-logo {
  color: var(--text-white);
}

.footer-brand .nav-logo span {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: var(--primary-light);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-top: 24px;
  max-width: 320px;
  line-height: 1.8;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.footer-col h4 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: 16px;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--primary-light);
  padding-left: 6px;
}

.footer-bottom {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 32px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

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

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  :root {
    --section-padding: 100px;
  }
}

@media (max-width: 991px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-light);
    border-left: 1px solid rgba(139, 90, 43, 0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
  
  .nav-links a.nav-cta {
    color: var(--text-white) !important;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  
  .about-image img {
    height: 400px;
  }

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

  .project-card.large {
    grid-column: span 1;
    height: 400px;
  }

  .project-card:not(.large) {
    height: 360px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
  }

  .cta-box {
    padding: 80px 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .hero-stats {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 72px;
  }

  html {
    font-size: 15px;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 32px;
  }

  .hero-content {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .project-card.large,
  .project-card:not(.large) {
    height: 320px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .stat-item h3 {
    font-size: 2.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cta-box {
    padding: 64px 24px;
  }

  .marquee-item {
    font-size: 1.25rem;
    padding: 0 32px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-badge {
    font-size: 0.75rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }
}
