/* 
  MODERN DESIGN SYSTEM OVERRIDE
  Aesthetic: Smooth, soft, minimal.
*/

:root {
  --bg-dark: #1a1a1a;
  --bg-surface: #2a2a2a;
  --bg-elevated: #3a3a3a;
  --bg-light-alt: #f0f0f0;
  
  --text-primary: #e8e8e8;
  --text-muted: #a0a0a0;
  
  --accent: #8B6347;
  --accent-hover: #A0785A;
  --accent-deep: #6B4C35;
  
  --border: rgba(255, 255, 255, 0.06);
  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-soft: 12px;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Inter', 'DM Sans', sans-serif;
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}

p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 24px;
}

@media (max-width: 480px) {
  .hero-cta-container {
    min-width: 90%;
    padding: 30px 20px;
  }
  #hero-title {
    font-size: 20px !important;
  }
  #hero-title span {
    font-size: 28px !important;
  }
  section {
    padding: 48px 16px;
  }
}

/* Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 2000;
  padding: 40px 24px;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-elevated);
}

.drawer.open {
  right: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.drawer-links a {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 1999;
}

.drawer-overlay.open {
  display: block;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

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

.btn-secondary {
  background: rgba(139, 99, 71, 0.12);
  color: var(--accent-hover) !important;
  border: 1px solid rgba(139, 99, 71, 0.35);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(139, 99, 71, 0.25);
  transform: translateY(-2px);
}

/* Cards */
.card, .product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* Product Cards Grid */
.products-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: center;
  padding: 60px 48px;
  height: 100%; /* Ensure card fills height if in a row */
}

.product-card p {
  flex-grow: 1; /* Pushes button to bottom */
}

.product-card .btn-primary {
  margin-top: auto; /* Aligns button to bottom */
}

.product-image {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

@media (max-width: 640px) {
  .products-preview {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 30px 20px;
  }
}

/* Footer Redesign */
footer {
  background: linear-gradient(to bottom, #111111, #0a0a0a);
  padding: 100px 24px 60px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 0; /* Gap handled by padding and separators */
  margin-bottom: 80px;
}

.footer-column {
  padding: 0 40px;
  border-right: 1px solid rgba(139, 99, 71, 0.15); /* Subtle brown separator */
}

.footer-column:last-child {
  border-right: none;
}

.footer-column:first-child {
  padding-left: 0;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.footer-brand .logo:hover {
  transform: translateX(5px);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 320px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(8px);
}

.footer-contact p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer-social {
  font-size: 30px;
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 99, 71, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px) rotate(8deg);
  border-color: var(--accent);
  box-shadow: 0 10px 20px rgba(139, 99, 71, 0.3);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .footer-column {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  footer {
    padding: 60px 24px 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .footer-column {
    border-right: none;
    border-bottom: 1px solid rgba(139, 99, 71, 0.15);
    padding: 0 0 48px 0;
  }
  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .footer-nav a:hover {
    transform: translateY(-3px);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* Information Page Specifics */
.info-grid-intro {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 60px;
}

.modern-quote {
  border-left: 4px solid var(--accent);
  padding: 10px 0 10px 24px;
  font-style: italic;
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Enhanced Intro Layout */
.info-grid-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 60px;
}

.info-side-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .info-side-pair {
    grid-template-columns: 1fr;
  }
}

/* Enhanced Intro Paragraphs */
.info-main {
  padding: 40px;
  background: rgba(42, 42, 42, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.info-main p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d0d0d0;
  margin-bottom: 0;
  text-align: justify;
}

.info-side {
  padding: 30px;
  background: rgba(30, 30, 30, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: transform 0.2s ease, background 0.2s ease;
}

.info-side:hover {
  background: rgba(42, 42, 42, 0.6);
  transform: translateY(-5px);
}

.info-side p {
  font-size: 1rem;
  color: #b0b0b0;
  line-height: 1.7;
  margin-bottom: 0;
  text-align: justify;
}


.features-grid-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.feature-item {
  text-align: center;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(139, 99, 71, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.feature-item h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0;
}

.feature-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
  text-align: left;
}

.info-card {
  padding: 60px 40px;
  background: radial-gradient(circle at top right, rgba(139, 99, 71, 0.08), transparent 70%), var(--bg-surface);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .info-card {
    padding: 40px 20px;
  }
}

.info-card p {
  font-size: 1.15rem;
  color: #e0e0e0;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.info-card h2 {
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  font-size: 1.8rem;
}

.info-card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.info-card:hover h2 {
  color: #fff;
}

.info-card:hover h2::after {
  width: 120px;
}

@media (max-width: 1024px) {
  .info-grid-intro {
    grid-template-columns: 1fr 1fr;
  }
  .info-main {
    grid-column: span 2;
  }
  .features-grid-modern {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .info-grid-intro {
    grid-template-columns: 1fr;
  }
  .info-main {
    grid-column: span 1;
  }
  .features-grid-modern {
    grid-template-columns: 1fr;
  }
  .info-long-text {
    padding: 32px 20px;
  }
}

/* Hero CTA Container (index.html) */
.hero-cta-container {
  background: rgba(42, 42, 42, 0.6); /* Decreased alpha from 0.7 to 0.4 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 60px 80px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  min-width: 450px;
}

.hero-cta-container h2 {
  color: #fff;
  font-size: 3.5rem; /* Increased font size */
  margin-bottom: 32px;
}

.hero-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-bg-layer.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 60px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-content h1, .hero-content p {
  transition: opacity 0.5s ease;
}

/* Slider Hero */
.hero-slider-container {
  position: relative;
  height: 600px;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-top: 0;
  border-bottom: 1px solid var(--border);
}

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Right-aligned default */
  padding: 0 60px;
}

.hero-slider-content.center {
  justify-content: center; /* Centered for index.html */
}

.info-box {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  max-width: 380px;
  transition: opacity 0.5s ease;
}

.info-box h3 {
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-box p {
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-slider-container {
    height: 300px;
  }
  .hero-slider-content {
    padding: 0 24px;
    justify-content: center;
  }
  .info-box {
    text-align: center;
    max-width: 100%;
    padding: 24px;
  }
}

/* Product Showcase Slider (products.html) */
.product-showcase-slider {
    width: fit-content;
    max-width: 100%;
    margin: 60px auto;
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border);
    display: block;
    padding: 0 100px; /* Added horizontal padding to make container wider */
}

.slider-main {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0; /* Added vertical padding for breathing room */
}

.slider-main img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: opacity 0.5s ease;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer; /* Indicates the photo is clickable */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev { left: 25px; }
.slider-btn.next { right: 25px; }

@media (max-width: 768px) {
    .product-showcase-slider {
        margin: 40px auto;
        padding: 0 60px;
        border-radius: var(--radius-soft);
    }
    .slider-main {
        padding: 20px 0;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
}

/* Animations */

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

