/* =========================================================================
   Base Variables & Resets
   ========================================================================= */
:root {
  /* Richwood Color Palette */
  --clr-primary: #d35400; /* Warm Amber / Wood tone */
  --clr-primary-dark: #a04000;
  --clr-primary-light: #e67e22;
  --clr-secondary: #2c3e50; /* Deep Charcoal / Industrial Blue-Grey */
  --clr-secondary-dark: #1a252f;
  
  --clr-bg-light: #f8f9fa;
  --clr-bg-white: #ffffff;
  --clr-text-main: #333333;
  --clr-text-muted: #6c757d;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Layout */
  --container-width: 1200px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 40px rgba(0,0,0,0.12);
  --radius-md: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky nav */
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--clr-secondary);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* =========================================================================
   Layout & Utility Classes
   ========================================================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.bg-light { background-color: var(--clr-bg-light); }
.bg-dark { 
  background-color: var(--clr-secondary-dark); 
  color: var(--clr-bg-white);
}
.bg-dark h2, .bg-dark h3 { color: var(--clr-bg-white); }
.bg-dark p { color: #cccccc; }

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section-title span {
  color: var(--clr-primary);
}

.title-underline {
  height: 4px;
  width: 60px;
  background-color: var(--clr-primary);
  margin-bottom: 2rem;
  border-radius: 2px;
}
.title-underline.center {
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--clr-primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--clr-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--clr-secondary);
  color: white;
}
.btn-secondary:hover {
  background-color: var(--clr-bg-white);
  color: var(--clr-secondary);
  border-color: var(--clr-secondary);
}

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

.btn-full {
  width: 100%;
}

/* Animation Utilities */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: padding var(--transition-fast);
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--clr-secondary);
}

.logo img {
  height: 70px; /* Increased from 50px */
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--clr-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--clr-primary);
  transition: width var(--transition-fast);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active, .nav-links a:hover {
  color: var(--clr-primary);
}

.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--clr-secondary);
  transition: all 0.3s ease-in-out;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* Make sure you grab the accurate asset name, assuming relative path here */
  background-image: url('assets/images/hero_wood_pallets_1775278134798.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(26, 37, 47, 0.9) 0%, rgba(26, 37, 47, 0.6) 50%, rgba(26, 37, 47, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 700px;
}

.hero .badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: rgba(255,255,255,0.1);
  border-left: 3px solid var(--clr-primary);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

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

/* =========================================================================
   About Section
   ========================================================================= */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-secondary);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--clr-text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background-color: var(--clr-bg-light);
  padding: 1.5rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border-bottom: 3px solid var(--clr-primary);
}

.stat-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}

.stat-box span {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.about-image {
  height: 500px;
  background-image: url('assets/images/rubber_wood_pallet_1775278152229.png');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  bottom: 20px;
  left: 20px;
  border: 2px dashed var(--clr-primary);
  border-radius: var(--radius-md);
  z-index: -1;
}

/* =========================================================================
   Products Section
   ========================================================================= */
.section-header {
  margin-bottom: 4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  height: 300px;
  background-color: #f1f3f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--clr-primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.product-badge.secondary {
  background: var(--clr-secondary);
}

.product-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.wood-type {
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-text-muted);
}

.product-info > p {
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.feature-tag {
  background: rgba(211, 84, 0, 0.1);
  color: var(--clr-primary-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.use-cases h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.use-cases ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--clr-text-muted);
}

.pricing-info {
  background: var(--clr-bg-light);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* =========================================================================
   Testimonials
   ========================================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #f39c12;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--clr-text-main);
}

.author {
  font-weight: 700;
  color: var(--clr-primary);
  font-size: 0.9rem;
}

/* =========================================================================
   Contact Section
   ========================================================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-details .icon {
  font-size: 1.5rem;
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--clr-primary);
}

.contact-details strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.contact-details a, .contact-details address {
  color: #cccccc;
  font-style: normal;
  transition: color var(--transition-fast);
}
.contact-details a:hover {
  color: var(--clr-primary);
}

.map-container {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-md);
  color: var(--clr-text-main);
  box-shadow: var(--shadow-hover);
}

.contact-form h3 {
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--clr-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(211,84,0,0.1);
}

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
  background-color: #111820;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 70px; /* Increased from 50px */
  border-radius: 6px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
}

.footer-brand p {
  font-style: italic;
}

.footer-links h4 {
  color: white;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: #aaa;
}
.footer-links a:hover {
  color: var(--clr-primary);
}

.footer-legal {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #777;
  font-size: 0.9rem;
}

/* =========================================================================
   Media Queries for Responsiveness
   ========================================================================= */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .about-container { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { height: 400px; order: -1; margin-bottom: 2rem; }
  .about-image::before { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 0; }
  .hamburger { display: block; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-sm);
    padding: 2rem 0;
  }
  .nav-links.active { left: 0; }
  .nav-links li { margin: 1.5rem 0; }
  
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.1rem; }
  .hero-cta { flex-direction: column; }
  
  .stats-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin: 0 auto 1rem; }
}
