@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary: #5d4037;
  --primary-dark: #3e2723;
  --accent: #d4af37;
  --accent-soft: #f3df9d;
  --bg-light: #fdf5e6;
  --surface: #fffaf0;
  --white: #ffffff;
  --text-dark: #2d211e;
  --text-muted: #6f625b;
  --border: #eadcc7;
  --shadow: 0 14px 35px rgba(62, 39, 35, 0.12);
  --transition: 180ms ease;
  --container-max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
}

main {
  min-height: 70vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--text-dark);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

.container {
  margin: 0 auto;
  max-width: var(--container-max-width);
  padding: 0 1rem;
}

.section-padding {
  padding: 3.5rem 0;
}

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

.eyebrow {
  color: #3e2723; /* Darker brown for better contrast */
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

/* Honeypot field for spam protection (visually hidden, accessible to bots) */
.hidden-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 1rem;
  z-index: 10000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

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

/* Buttons */
.btn {
  align-items: center;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

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

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* Header & Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--accent-soft);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.top-info-item i {
  color: var(--accent);
}

[data-component="header"] {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(62, 39, 35, 0.05);
  left: 0;
  position: fixed;
  top: 0;
  transition: all var(--transition);
  width: 100%;
  z-index: 1000;
}

[data-component="header"].scrolled {
  box-shadow: 0 8px 28px rgba(62, 39, 35, 0.14);
}

.site-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  color: var(--primary);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.nav-links {
  background: var(--white);
  box-shadow: -16px 0 35px rgba(62, 39, 35, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - 105px);
  padding: 2rem;
  position: fixed;
  right: -82vw;
  top: 105px;
  transition: right 240ms ease;
  width: min(80vw, 320px);
}

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

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  display: block;
  padding: 0.75rem 0;
}

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

.hamburger {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.35rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  background: var(--primary);
  border-radius: 999px;
  display: block;
  height: 3px;
  transition: transform var(--transition), opacity var(--transition);
  width: 28px;
}

.hamburger.active span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- HERO SECTION --- */
.hero {
  align-items: center;
  background: var(--primary-dark);
  background-image: linear-gradient(rgba(38, 24, 21, 0.8), rgba(38, 24, 21, 0.95)), url("../images/banners/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--white);
  display: flex;
  min-height: 80vh;
  padding: 160px 0 100px;
  text-align: center;
  border-radius: 0 0 50px 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 9vw, 5.2rem);
  margin: 0 auto 3rem; /* Space below headline */
  max-width: 1000px;
  line-height: 1.25;
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

.hero-subtext {
  font-size: 1.15rem;
  margin: 0 auto 5rem; /* Massive breathing room above buttons */
  max-width: 850px;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 6rem; /* Substantial space below buttons */
}

.hero-btns .btn {
  min-width: 210px;
  backdrop-filter: blur(4px);
}

.hero-btns .btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.hero-btns .btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
}

.hero-btns .btn-light {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.micro-trust {
  font-size: 0.85rem;
  color: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
  width: 140px;
  z-index: 1;
}

.hero-decor.decor-1 { top: 10%; left: -20px; transform: rotate(-15deg); }
.hero-decor.decor-2 { bottom: 15%; right: -30px; transform: rotate(20deg); }

/* --- SECTIONS & GRIDS --- */
.section-heading {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-heading.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-heading h2,
.about-text h2,
.contact-info h2,
.contact-form h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  margin-bottom: 0.9rem;
}

.section-heading p,
.about-text p,
.contact-info p {
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card i {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

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

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

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

.category-nav-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  transition: background var(--transition), border-color var(--transition);
}

.category-nav-card:hover {
  background: var(--surface);
  border-color: var(--accent);
}

.category-nav-icon {
  align-items: center;
  background: var(--accent-soft);
  border-radius: 50%;
  color: var(--primary);
  display: flex;
  font-size: 1.5rem;
  height: 60px;
  justify-content: center;
  width: 60px;
}

.category-nav-card span {
  font-weight: 600;
}

.featured-products {
  background: var(--white);
}

.products-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  min-height: 400px; 
}

#category-products {
  min-height: 800px;
}

.category-section {
  border-bottom: 1px solid var(--border);
  padding: 0 0 3rem;
}

.category-section + .category-section {
  padding-top: 3rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.product-image {
  background: var(--surface);
  display: block;
  height: 220px;
  overflow: hidden;
}

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

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

.product-info {
  padding: 1.2rem;
}

.product-info h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

.product-info .description-preview {
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.94rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.section-action {
  margin-top: 2rem;
}

/* Page Hero (About/Products/Contact) */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  margin-top: 105px;
  padding: 5rem 0;
  text-align: center;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-hero h1 {
  font-size: clamp(2rem, 7vw, 3.7rem);
  margin-bottom: 0.75rem;
  color: var(--white); /* Force white for visibility */
}

.page-hero .eyebrow {
  color: var(--accent-soft); /* Elegant accent for sub-headers */
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto;
}

/* About Section Styles */
.about-section {
  display: grid;
  gap: 2rem;
}

.about-section + .about-section {
  margin-top: 4rem;
}

.about-text h2 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-text .btn {
  margin-top: 1rem;
}

.about-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.about-image img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* Product Detail Page */
.product-detail {
  display: grid;
  gap: 2rem;
  margin-top: 110px;
}

.detail-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-image img {
  aspect-ratio: 4 / 3;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-info {
  align-self: center;
}

.detail-info h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  margin-bottom: 0.75rem;
}

.description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.spec-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
}

.spec-item {
  align-items: center;
  border-bottom: 1px solid rgba(234, 220, 199, 0.5);
  display: flex;
  font-size: 0.95rem;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.spec-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 600;
}

.spec-value {
  color: var(--text-dark);
  font-weight: 500;
  text-align: right;
}

/* Contact Page Styles */
.contact-container {
  display: grid;
  gap: 2rem;
}

.contact-info,
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(62, 39, 35, 0.08);
  padding: 1.5rem;
}

.info-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.info-item {
  align-items: center;
  display: flex;
  gap: 0.85rem;
}

.info-item i {
  color: var(--accent);
  font-size: 1.25rem;
  width: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  border: 1px solid #d8c7b3;
  border-radius: 6px;
  color: var(--text-dark);
  font: inherit;
  padding: 0.8rem;
  width: 100%;
}

.map-iframe {
  border: 0;
  border-radius: 8px;
  width: 100%;
  height: 300px;
}

.catalog-error-msg {
  padding: 3rem 0;
}

.catalog-error-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.product-not-found-btn {
  margin-top: 1.5rem;
}

/* Certifications Grids */
.certs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.cert-item {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.05);
  transition: transform var(--transition);
  max-width: 140px;
}

.cert-item:hover {
  transform: scale(1.05);
}

/* Connect With Us Section */
.connect-with-us {
  background: url("../images/banners/footer.jpg") center/cover no-repeat;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  z-index: 2;
  border-radius: 0 0 50px 50px;
  margin-bottom: -50px;
}

.connect-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.connect-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  background: var(--accent);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
  position: relative;
  overflow: hidden;
}

.icon-circle:hover {
  transform: rotate(360deg);
}

.icon-circle::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-soft);
  transition: 0.5s;
  z-index: -1;
}

.icon-circle:hover::before {
  top: 0;
}

.connect-item p {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.connect-item a {
  color: var(--text-dark);
}

/* Professional Footer */
.footer-wrap {
  background: var(--primary-dark);
  color: var(--bg-light);
  padding: 8rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  width: 120px;
}

.decor-1 { top: 40px; left: -30px; transform: rotate(15deg); }
.decor-2 { top: 120px; right: -40px; transform: rotate(-20deg); }
.decor-3 { bottom: 20px; left: 10%; transform: rotate(45deg); }

.footer-main-grid {
  display: grid;
  gap: 3rem;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fdf5e6;
}

.footer-links a {
  padding: 0.5rem 0;
  display: inline-block;
}

.footer-links li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("../images/icons/leaf.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 1.8rem;
  color: var(--accent);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Floating Actions */
.floating-actions {
  bottom: 2rem;
  position: fixed;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.whatsapp-btn {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  color: var(--white);
  display: flex;
  font-size: 1.8rem;
  height: 60px; /* Standardized size */
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 60px;
}

.whatsapp-btn:hover {
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transform: scale(1.1) rotate(5deg);
}

/* About Page Specifics */
.why-choose-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-item {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(62, 39, 35, 0.05);
}

.why-number {
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.why-content h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.mission-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 4rem;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.mission-icon {
  margin-bottom: 1.5rem;
}

.mission-icon img {
  height: 64px;
  margin: 0 auto;
}

/* Contact Page Specifics */
.contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.rotate-logo-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-outer {
  width: 100%;
  height: 100%;
  animation: rotateLogo 20s linear infinite;
}

@keyframes rotateLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotate-inner-text {
  position: absolute;
  text-align: center;
  color: var(--primary);
  font-family: "Playfair Display", serif;
}

.rotate-inner-text span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.rotate-inner-text small {
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .floating-actions {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .whatsapp-btn {
    height: 54px;
    width: 54px;
    font-size: 1.6rem;
  }
}

/* --- MEDIA QUERIES --- */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .category-nav-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 768px) {
  .connect-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main-grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
}

@media (min-width: 860px) {
  .hamburger { display: none; }
  .nav-links {
    background: transparent;
    box-shadow: none;
    flex-direction: row;
    gap: 2rem;
    min-height: auto;
    padding: 0;
    position: static;
    width: auto;
  }

  .hero {
    min-height: 80vh;
    padding-top: 180px;
  }

  .hero h1 { font-size: 5.5rem; }

  .about-section,
  .contact-container,
  .product-detail {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .mission-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid { grid-template-columns: repeat(4, 1fr); }
}

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