/* ==========================================================================
   GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
  --forest: #16241a;
  --pine: #2f6b3a;
  --leaf: #4f8a4a;
  --sage: #e6ecdd;
  --sage-line: #d3ddc4;
  --cream: #faf8f2;
  --paper: #ffffff;
  --ink: #1c261c;
  --ink-soft: #4b5a49;
  --max-w: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, .display {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--pine); color: #fff; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, .card:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 3px;
}

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ==========================================================================
   SHARED HEADER
   ========================================================================== */
header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 248, 242, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sage-line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.wordmark {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px;
  color: var(--forest); text-decoration: none;
  margin-left: 30px;
  flex-shrink: 0;
}
/* NEW: Desktop Hamburger Hidden */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--forest);
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

/* Logo Sizing */
.header-logo {
  height: 40px;
  max-height: 100%; /* You can increase or decrease this number to make your logo bigger/smaller */
  width: auto;
  display: block;
  object-fit: contain;
}
nav.links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
nav.links a {
  text-decoration: none; color: var(--ink-soft);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
nav.links a:hover, nav.links a.active { 
  color: var(--pine); border-color: var(--pine); 
}
.nav-cta {
  font-size: 13px; font-weight: 600; background: var(--forest); color: #fff;
  padding: 10px 18px; border-radius: 100px; text-decoration: none;
  transition: background .2s ease, transform .2s ease; white-space: nowrap;
}
.nav-cta:hover { background: var(--pine); transform: translateY(-1px); }

/* Pushes the header button to the left */
header.site .nav-cta {
  margin-right: 20px; /* Adjust this number to move it more or less to the left */
}

/* ==========================================================================
   CUSTOM LANGUAGE SWITCHER & GOOGLE OVERRIDES
   ========================================================================== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Our Beautiful Custom Dropdown */
.custom-lang-selector select {
  appearance: none; /* Removes the ugly default browser arrow */
  -webkit-appearance: none;
  background-color: var(--cream);
  color: var(--forest);
  border: 1px solid var(--sage-line);
  border-radius: 100px;
  padding: 8px 32px 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  /* Custom Green Arrow SVG */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232f6b3a%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s ease;
}

.custom-lang-selector select:hover {
  border-color: var(--pine);
}

.custom-lang-selector select:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

/* 
   RUTHLESSLY HIDE ALL GOOGLE TRANSLATE JUNK 
*/
#google_translate_element { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* ==========================================================================
   SHARED HERO SECTION
   ========================================================================== */
.hero {
  padding: 96px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pine); display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--pine); display: inline-block; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; max-width: 15ch; color: var(--forest);
}
.hero h1 em { font-style: italic; color: var(--leaf); }
.hero-sub {
  margin-top: 26px; max-width: 46ch; font-size: 17px; line-height: 1.65; color: var(--ink-soft);
}

/* Hero Video Styling */
.hero-art {
  position: absolute; 
  right: 2%; /* Gives breathing room from the right edge */
  top: 50%; 
  transform: translateY(-50%); /* Perfectly centers it vertically */
  width: 45%; /* Takes up the available blank space */
  max-width: 600px;
  z-index: 1;
  pointer-events: none; /* Prevents the video from blocking clicks on nearby links */
}
.hero-video {
  width: 100%;
  height: auto;
  border-radius: 12px; /* Smooth, modern rounded corners */
  box-shadow: 0 20px 40px rgba(47, 107, 58, 0.15); /* A subtle green-tinted shadow */
  object-fit: cover;
}
/* Hero Statistics (Products Page) */
.hero-meta {
  margin-top: 44px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-meta div {
  border-left: 1px solid var(--sage-line);
  padding-left: 16px;
}
.hero-meta b {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--forest);
}
.hero-meta span {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   PAGE SPECIFIC: HOME & ABOUT
   ========================================================================== */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; padding: 60px 0; border-top: 1px solid var(--sage-line);
}
.feature-block h3 { color: var(--pine); font-size: 24px; margin-bottom: 12px; }
.feature-block p { color: var(--ink-soft); line-height: 1.6; font-size: 15px; }

.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0 80px;
}
.about-content p { color: var(--ink-soft); line-height: 1.7; font-size: 16px; margin-bottom: 20px;}

/* ==========================================================================
   VIDEO CAROUSEL (ABOUT PAGE)
   ========================================================================== */
.carousel-container {
  position: relative;
  width: 100%;
  height: 520px; /* Fixed height to hold the floating videos */
  background: var(--sage);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(22, 36, 26, 0.08);
}

/* Individual Video Items */
.carousel-item {
  position: absolute;
  top: 50%;
  width: 250px; /* Perfect width for portrait videos */
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

/* Carousel 3D States */
.carousel-item.hidden {
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.carousel-item.prev {
  left: 15%; /* Peeks out on the left */
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.5;
  z-index: 2;
}

.carousel-item.next {
  left: 85%; /* Peeks out on the right */
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.5;
  z-index: 2;
}

.carousel-item.active {
  left: 50%; /* Front and center */
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 3;
  cursor: default; /* Center item is playing, not a click target */
  box-shadow: 0 20px 40px rgba(22, 36, 26, 0.25);
}

/* Left / Right Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 248, 242, 0.85);
  color: var(--forest);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.2s, transform 0.2s;
}
.carousel-nav:hover { background: var(--paper); transform: translateY(-50%) scale(1.05); }
.carousel-nav.prev-btn { left: 16px; }
.carousel-nav.next-btn { right: 16px; }

/* Pagination Dots */
.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  background: rgba(47, 107, 58, 0.3); /* Faded green */
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}
.dot.active {
  background: var(--pine); /* Solid green */
  transform: scale(1.3);
}


/* Mobile Screen Adjustment */
@media (max-width: 520px) {
  .carousel-item { width: 190px; } /* Shrinks slightly so side videos don't overflow screen */
  .carousel-container { height: 420px; }
}

/* NEW: Mute/Unmute Button Styling */
.mute-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(22, 36, 26, 0.75); /* Semi-transparent dark green */
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
  z-index: 10;
}

.mute-btn:hover {
  background: var(--pine);
}
/* ==========================================================================
   PAGE SPECIFIC: PRODUCTS CATALOGUE
   ========================================================================== */
.cat-nav {
  position: sticky; top: 66px; z-index: 30; background: var(--cream);
  padding: 14px 0; border-bottom: 1px solid var(--sage-line);
}
.cat-nav .wrap { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cat-pill {
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--sage-line);
  padding: 9px 18px; border-radius: 100px; text-decoration: none;
  transition: all .2s ease;
}
.cat-pill:hover { border-color: var(--pine); color: var(--pine); }
.cat-pill.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }
.cat-count { margin-left: auto; font-size: 12.5px; color: var(--ink-soft); }

.cat-section { padding: 76px 0 20px; scroll-margin-top: 140px; }
.cat-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; margin-bottom: 38px; border-bottom: 1px solid var(--sage-line); padding-bottom: 22px;
}
.cat-head h2 { font-size: clamp(26px, 3vw, 38px); color: var(--forest); }
.cat-head p { max-width: 40ch; font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.cat-index { font-family: 'Fraunces', serif; font-size: 15px; color: var(--leaf); white-space: nowrap; padding-bottom: 6px; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 10px; margin-bottom: 26px;
}
.card {
  position: relative; aspect-ratio: 4/5; background: var(--paper);
  border: 1px solid var(--sage-line); overflow: hidden; cursor: pointer; outline-offset: 2px;
}
.card .photo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 18px; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .5s ease;
}
.card .photo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(22,36,26,0.10)); }
.card .tagchip {
  position: absolute; top: 14px; left: 14px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: var(--sage); color: var(--pine);
  padding: 5px 10px; border-radius: 100px; transition: opacity .3s ease;
}
.card .name-strip {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
  font-family: 'Fraunces', serif; font-size: 16.5px; color: var(--forest);
  background: linear-gradient(to top, rgba(250,248,242,.98), rgba(250,248,242,0));
  transition: opacity .35s ease, transform .35s ease;
}
.card .overlay {
  position: absolute; inset: 0; background: linear-gradient(165deg, rgba(22,36,26,.97), rgba(47,107,58,.93));
  color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0; transform: scale(1.03); transition: opacity .4s cubic-bezier(.22,.61,.36,1), transform .45s cubic-bezier(.22,.61,.36,1);
}
.card .overlay .ov-tag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #cfe4c8; margin-bottom: 10px; opacity: 0; transform: translateY(8px);
  transition: opacity .4s ease .05s, transform .4s ease .05s;
}
.card .overlay h3 {
  font-size: 21px; font-weight: 500; line-height: 1.15; margin-bottom: 10px; color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease .1s, transform .4s ease .1s;
}
.card .overlay p {
  font-size: 12.8px; line-height: 1.55; color: #e7efe2; margin: 0 0 12px;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease .15s, transform .4s ease .15s;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.card .overlay .meta {
  font-size: 11.3px; line-height: 1.6; color: #cfe4c8; border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 10px; opacity: 0; transform: translateY(10px); transition: opacity .4s ease .2s, transform .4s ease .2s;
}
.card .overlay .meta b { color: #fff; font-weight: 600; }

.card:hover .photo, .card.is-active .photo { transform: scale(1.08); opacity: .16; }
.card:hover .tagchip, .card.is-active .tagchip { opacity: 0; }
.card:hover .name-strip, .card.is-active .name-strip { opacity: 0; transform: translateY(6px); }
.card:hover .overlay, .card.is-active .overlay { opacity: 1; transform: scale(1); }
.card:hover .overlay .ov-tag, .card.is-active .overlay .ov-tag,
.card:hover .overlay h3, .card.is-active .overlay h3,
.card:hover .overlay p, .card.is-active .overlay p,
.card:hover .overlay .meta, .card.is-active .overlay .meta { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   SHARED FOOTER
   ========================================================================== */
footer {
  margin-top: 90px; background: var(--forest); color: #e9efe4; padding: 64px 0 32px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.14);
}
footer .wordmark2 {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; color: #fff; margin-bottom: 14px;
}
footer p { font-size: 13.5px; line-height: 1.7; color: #c7d4bf; max-width: 38ch; }
footer h4 {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9db593;
  margin-bottom: 16px; font-weight: 600; font-family: 'Inter', sans-serif;
}
footer .flinks a {
  display: block; color: #e9efe4; text-decoration: none; font-size: 14px; margin-bottom: 10px;
  opacity: .9; transition: opacity .2s ease;
}
footer .flinks a:hover { opacity: 1; color: #a9d19f; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding-top: 26px; font-size: 12.5px; color: #93a68b;
}

/* Contact & QR Code Horizontal Layout */
.contact-wrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap; /* Ensures it stays safe on very tiny mobile screens */
  gap: 50px; /* Space between the text and the QR code */
}

.footer-qr {
  margin-top: -30px; /* Pulls it up slightly to align perfectly with the first line of text */
}

.footer-qr .qr-code {
  width: 72px;          /* Scaled down to match the height of the two links perfectly */
  height: auto;
  background: #ffffff;  /* Solid white background */
  padding: 4px;         /* White frame */
  border-radius: 6px;   /* Rounded corners */
  display: block;
}

/* Responsive */
@media (prefers-reduced-motion: reduce){
  .card .photo, .card .overlay, .card .overlay *, .card .name-strip { transition: none !important; }
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  nav.links { display: none; } /* Mobile menu toggle would go here */
  .hero { padding: 64px 0 46px; }
  .about-content { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .card { aspect-ratio: 3/4; }
  .card .overlay h3 { font-size: 17px; }
  .card .overlay p { font-size: 11.5px; -webkit-line-clamp: 4; }
}

@media (max-width: 860px) {
  /* Fix Header Proportions */
  .wordmark { margin-left: 0; } /* Reclaims space */
  .header-logo { height: 38px !important; } /* Keeps logo prominent */
  .header-actions { gap: 8px; }
  
  /* Shrink buttons to fit next to logo */
  header.site .nav-cta { margin-right: 0; padding: 6px 10px; font-size: 11px; }
  .custom-lang-selector select { padding: 6px 22px 6px 10px; font-size: 11px; background-position: right 6px center; }

  /* Activate Mobile Menu */
  .menu-toggle { display: flex; align-items: center; }
  
  nav.links { 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid var(--sage-line);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: none; /* Hidden by default */
  }
  
  nav.links.is-open {
    display: flex; /* Shows when clicked */
  }

  /* Existing Mobile Layout Rules */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 64px 0 46px; display: flex; flex-direction: column; }
  .hero .wrap { order: 1; }
  .about-content { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  
  .hero-art {
    position: relative; 
    order: 2; 
    width: 100%;
    top: 0;
    transform: none;
    padding: 0 28px; 
    margin-top: 40px;
  }
}