/* ── RESET & BASE ──────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', Arial, sans-serif; background: #f9f6f0; color: #1a1a1a; line-height: 1.6; overflow-x: hidden; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ── HEADER (base styles moved to #header block below) ── */
.logo { height: 58px; width: 98px; }
nav ul { list-style: none; display: flex; gap: 28px; }
nav ul li a { text-decoration: none; color: #fff; font-weight: 600; font-size: 0.93rem; transition: color 0.2s; }
nav ul li a:hover { color: #c9922a; }
.header-cta {
  background: #c9922a; color: #fff; padding: 9px 22px;
  border-radius: 6px; font-weight: 700; font-size: 0.88rem;
  text-decoration: none; transition: background 0.3s;
}
.header-cta:hover { background: #a87520; }

/* ── HERO CAROUSEL ─────────────────── */
#hero { position: relative; width: 100%; height: 100vh; min-height: 520px; overflow: hidden; }
.carousel { position: relative; width: 100%; height: 100%; }

/* Slides stack on top of each other, only active is visible */
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 1s ease;
  display: flex; align-items: center;
}
.carousel-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }

/* ── THE ACTUAL BACKGROUND IMAGE ── */
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Ken-Burns zoom on active slide */
  transform: scale(1);
  transition: transform 7s ease;
}
.carousel-slide.active .slide-bg { transform: scale(1.06); }

/* Dark gradient overlay so text is always readable */
.slide-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.35) 55%,
    rgba(0,0,0,0.05) 100%
  );
}

/* Slide text content */
.slide-content {
  position: relative; z-index: 2;
  padding: 90px 8% 0;
  color: #fff; max-width: 620px;
}

/* Staggered entrance animations — reset on inactive, animate on active */
.slide-tag, .slide-content h1, .slide-content p, .slide-content .btn {
  opacity: 0; transform: translateY(20px); transition: none;
}
.carousel-slide.active .slide-tag {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}
.carousel-slide.active .slide-content h1 {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.3s, transform 0.55s ease 0.3s;
}
.carousel-slide.active .slide-content p {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.45s, transform 0.55s ease 0.45s;
}
.carousel-slide.active .slide-content .btn {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.55s ease 0.6s, transform 0.55s ease 0.6s;
}

.slide-tag {
  display: inline-block; background: #c9922a; color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 18px;
}
.slide-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.slide-content p { font-size: 1.05rem; color: rgba(255,255,255,0.88); margin-bottom: 28px; line-height: 1.7; }

.btn {
  display: inline-block; background: #c9922a; color: #fff;
  padding: 13px 30px; border-radius: 6px; text-decoration: none;
  font-weight: 700; font-size: 0.93rem; transition: background 0.3s, box-shadow 0.3s;
}
.btn:hover { background: #a87520; box-shadow: 0 8px 24px rgba(201,146,42,0.4); }

/* Arrows */
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; font-size: 2.5rem; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; z-index: 3;
  transition: background 0.3s;
}
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

/* Dots */
.carousel-dots {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: 10px;
}
.dot {
  width: 10px; height: 10px; border-radius: 5px;
  border: 2px solid rgba(255,255,255,0.6); background: transparent;
  cursor: pointer; transition: background 0.3s, width 0.3s, border-color 0.3s; padding: 0;
}
.dot.active { background: #c9922a; border-color: #c9922a; width: 28px; }

/* Progress bar */
.carousel-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); z-index: 10; }
.carousel-progress-bar { height: 100%; background: #c9922a; width: 0%; }

/* ── SERVICES SECTION ──────────────── */
#products { background: #f9f6f0; padding: 90px 20px 70px; }

.services-header { text-align: center; margin-bottom: 55px; }
.services-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: #1e4d0f; margin-bottom: 12px;
}
.services-subtitle { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.15em; color: #999; text-transform: uppercase; }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; max-width: 1200px; margin: 0 auto;
}

/* Card */
.svc-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: transform 0.35s, box-shadow 0.35s;
}
.svc-card:hover { transform: translateY(-7px); box-shadow: 0 14px 38px rgba(0,0,0,0.13); }

/* Image wrap — fixed height, image fills it */
.svc-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #2c5f1a; /* green fallback if image slow to load */
}
.svc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.svc-card:hover .svc-img-wrap img { transform: scale(1.06); }

/* Badge pinned bottom-right of image */
.svc-badge {
  position: absolute; bottom: 0; right: 18px;
  width: 54px; height: 54px; background: #c9922a;
  border-radius: 8px 8px 0 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; z-index: 2;
}
.svc-badge svg { width: 22px; height: 22px; }

/* Card body */
.svc-body { padding: 20px 22px 26px; }
.svc-body h3 {
  font-size: 1.1rem; font-weight: 800; color: #1a1a1a;
  border-left: 4px solid #c9922a; padding-left: 12px;
  margin-bottom: 10px; line-height: 1.3;
}
.svc-body p { font-size: 0.9rem; color: #666; line-height: 1.65; margin-bottom: 18px; }
.svc-btn {
  display: inline-block; background: #c9922a; color: #fff;
  padding: 9px 20px; border-radius: 5px; font-size: 0.86rem; font-weight: 700;
  text-decoration: none; transition: background 0.3s;
}
.svc-btn:hover { background: #a87520; }

/* ── ABOUT ─────────────────────────── */
#about { padding: 80px 20px; max-width: 860px; margin: auto; text-align: center; }
#about h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: #1e4d0f; margin-bottom: 20px; }
#about p { font-size: 1.05rem; color: #666; line-height: 1.85; }
.about-globe-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 10px 24px;
  background: #1e4d0f; color: #fff; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  transition: background 0.3s, box-shadow 0.3s;
}
.about-globe-link:hover { background: #c9922a; box-shadow: 0 6px 20px rgba(201,146,42,0.35); }
.about-globe-link svg { width: 20px; height: 20px; }

/* ── CONTACT ───────────────────────── */
#contact { background: #f4f1eb; padding: 80px 20px; }
.contact-wrapper { display: flex; flex-wrap: wrap; gap: 60px; justify-content: space-between; max-width: 1200px; margin: auto; align-items: flex-start; }
.contact-left { flex: 1; min-width: 280px; max-width: 400px; }
.contact-tag { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c9922a; margin-bottom: 12px; }
.contact-left h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: #1e4d0f; margin-bottom: 36px; line-height: 1.2; }
.contact-detail { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.contact-icon { width: 52px; height: 52px; border-radius: 50%; background: #c9922a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.contact-icon svg { width: 22px; height: 22px; }
.ci-label { font-size: 0.82rem; color: #999; margin-bottom: 3px; }
.ci-value { font-size: 1rem; font-weight: 700; color: #1a1a1a; text-decoration: none; }
.ci-value:hover { color: #c9922a; }
.contact-right { flex: 1.2; min-width: 320px; background: #fff; border-radius: 14px; padding: 40px 36px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.form-row { display: flex; gap: 16px; margin-bottom: 16px; }
.form-row input { flex: 1; }
#contactForm input, #contactForm textarea { width: 100%; padding: 14px 16px; border-radius: 8px; border: 1.5px solid #e8e8e8; font-size: 0.93rem; font-family: inherit; background: #f7f7f7; color: #333; transition: border-color 0.25s, background 0.25s; box-sizing: border-box; }
#contactForm input:focus, #contactForm textarea:focus { outline: none; border-color: #c9922a; background: #fff; }
#contactForm textarea { resize: vertical; margin-bottom: 16px; }
#contactForm button { padding: 14px 36px; border: none; background: #c9922a; color: #fff; font-weight: 700; border-radius: 8px; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background 0.3s; }
#contactForm button:hover { background: #a87520; }
.whatsapp-float { position: fixed; bottom: 28px; right: 28px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(37,211,102,0.45); z-index: 9998; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; }
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,0.55); }
@media (max-width: 768px) {
  .contact-wrapper { flex-direction: column; }
  .contact-left { max-width: 100%; }
  .form-row { flex-direction: column; gap: 0; margin-bottom: 0; }
  .form-row input { margin-bottom: 16px; }
  .contact-right { padding: 28px 20px; }
}

/* ── FOOTER ────────────────────────── */
#footer {
  background: #0f1f2e;
  color: rgba(255,255,255,0.65);
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 70px 60px 50px;
  box-sizing: border-box;
}

.footer-bottom {
  background: rgba(0,0,0,0.3);
  text-align: center;
  padding: 18px 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.footer-logo { height: 58px; width: auto; margin-bottom: 18px; }

.footer-brand p {
  font-size: 0.9rem; line-height: 1.8;
  color: rgba(255,255,255,0.55); margin-bottom: 22px;
}

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.3s, color 0.3s;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { background: #c9922a; color: #fff; border-color: #c9922a; }

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 800;
  color: #fff; margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c9922a;
  display: inline-block;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6); text-decoration: none;
  font-size: 0.92rem; display: flex; align-items: center; gap: 8px;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-col ul li a::before {
  content: '▸'; color: #c9922a; font-size: 0.75rem;
}
.footer-col ul li a:hover { color: #c9922a; padding-left: 4px; }

.footer-contact { gap: 14px !important; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
}
.footer-contact li a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-contact li a:hover { color: #c9922a; }
.fc-icon { font-size: 1rem; margin-top: 2px; flex-shrink: 0; }


@media (max-width: 1100px) {
  .footer-top { padding: 60px 30px 40px; gap: 24px; }
}
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; padding: 50px 24px 36px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; padding: 40px 20px 30px; gap: 28px; }
}
/* ── RESPONSIVE ────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  header .container { flex-direction: column; gap: 12px; padding: 14px 18px; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .header-cta { display: none; }
  #hero { height: 100vh; }
  .slide-content { padding: 0 6% 80px; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-container { flex-direction: column; }
}

/* ── WHY CHOOSE CARTO ──────────────── */
#why-carto { background: #1e4d0f; padding: 90px 20px 70px; }

.why-header { text-align: center; margin-bottom: 55px; }
.why-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.why-subtitle {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
}

.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; max-width: 1200px; margin: 0 auto;
}

.why-card {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px; padding: 40px 30px 36px;
  text-align: center;
  transition: transform 0.35s, background 0.35s, box-shadow 0.35s;
}
.why-card:hover {
  transform: translateY(-7px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.why-icon {
  font-size: 2.8rem; margin-bottom: 20px;
  display: inline-block;
}

.why-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 800;
  color: #c9922a; margin-bottom: 14px;
}

.why-card p {
  font-size: 0.93rem; color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ── PACKAGING PRODUCTS ────────────── */
#services { background: #f9f6f0; padding: 90px 20px 70px; }

.products-header { text-align: center; margin-bottom: 55px; }
.products-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800;
  color: #1e4d0f; margin-bottom: 14px;
}
.products-subtitle {
  display: inline-block;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.13em;
  color: #fff; text-transform: uppercase;
  background: #1e4d0f; padding: 6px 16px; border-radius: 3px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.prod-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 2.5;
  background: #1e4d0f;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  border: 3px solid #c9922a;
}

.prod-img-wrap {
  width: 100%; height: 100%;
}
.prod-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: brightness(0.88);
}
.prod-card:hover .prod-img-wrap img {
  transform: scale(1.08);
  filter: brightness(0.65);
}

.prod-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #c9922a;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  line-height: 1.3;
  word-wrap: break-word;
}
.prod-card:hover .prod-label {
  background: #c9922a;
  padding-bottom: 16px;
}

@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-subtitle { font-size: 0.68rem; letter-spacing: 0.09em; }
}

/* ── POPUP FORM ────────────────────── */
.popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.popup-overlay.active {
  opacity: 1; pointer-events: auto;
}

.popup-box {
  background: #fff; border-radius: 14px;
  padding: 40px 36px 36px;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
  transform: translateY(30px);
  transition: transform 0.4s ease;
}
.popup-overlay.active .popup-box {
  transform: translateY(0);
}

.popup-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none;
  font-size: 1.7rem; color: #999;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.popup-close:hover { color: #c9922a; }

.popup-header { margin-bottom: 24px; }
.popup-tag {
  display: inline-block; background: #c9922a; color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 30px; margin-bottom: 12px;
}
.popup-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 800;
  color: #1e4d0f; margin-bottom: 6px;
}
.popup-header p { font-size: 0.88rem; color: #888; }

#popupForm { display: flex; flex-direction: column; gap: 12px; }
#popupForm input,
#popupForm textarea {
  padding: 11px 14px; border-radius: 7px;
  border: 1.5px solid #ddd; font-size: 0.93rem;
  font-family: inherit; transition: border-color 0.25s;
  resize: none;
}
#popupForm input:focus,
#popupForm textarea:focus { outline: none; border-color: #c9922a; }

.popup-submit {
  padding: 13px; border: none;
  background: #c9922a; color: #fff;
  font-weight: 700; border-radius: 7px;
  cursor: pointer; font-size: 1rem;
  font-family: inherit; transition: background 0.3s;
  margin-top: 4px;
}
.popup-submit:hover { background: #a87520; }

@media (max-width: 500px) {
  .popup-box { padding: 30px 22px 28px; }
}

/* ── MAP ───────────────────────────── */
.map-wrap {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  border: 2px solid #e8e0d0;
  margin-top: 6px;
}
.map-wrap iframe { display: block; }

/* ── FOOTER MAP ─────────────────────── */
.footer-map-wrap {
  margin-top: 20px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.footer-map-wrap iframe { display: block; }

/* ── INNER PAGE HERO ───────────────── */
.inner-hero {
  position: relative; width: 100%;
  height: 55vh; min-height: 340px;
  background: url('images/corrugated-box.jpg') center/cover no-repeat;
  display: flex; align-items: center;
  margin-top: 0;
}
.inner-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}
.inner-hero-content {
  position: relative; z-index: 2;
  padding: 0 8%; color: #fff; max-width: 620px;
}
.inner-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin: 12px 0 16px; line-height: 1.2;
}
.inner-hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.85); }

/* ── SUB PRODUCTS ──────────────────── */
.sub-products { background: #f9f6f0; padding: 80px 20px 70px; }
.sub-products-header { text-align: center; margin-bottom: 50px; }
.sub-products-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #1e4d0f; margin-bottom: 12px;
}
.sub-products-header p { font-size: 0.9rem; color: #999; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.sub-products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1200px; margin: 0 auto;
}

.sub-prod-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: transform 0.35s, box-shadow 0.35s;
}
.sub-prod-card:hover { transform: translateY(-7px); box-shadow: 0 14px 38px rgba(0,0,0,0.13); }

.sub-prod-img { height: 220px; overflow: hidden; background: #2c5f1a; }
.sub-prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.sub-prod-card:hover .sub-prod-img img { transform: scale(1.06); }

.sub-prod-body { padding: 22px 24px 28px; }
.sub-prod-body h3 {
  font-size: 1.05rem; font-weight: 800; color: #1a1a1a;
  border-left: 4px solid #c9922a; padding-left: 12px;
  margin-bottom: 10px; line-height: 1.3;
}
.sub-prod-body p {
  font-size: 0.88rem; color: #666; line-height: 1.65; margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) { .sub-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sub-products-grid { grid-template-columns: 1fr; } }

/* ── CARD MODAL ────────────────────── */
.card-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.card-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}

.card-modal-box {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  max-width: 780px; width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: row;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transform: scale(0.8) rotateX(10deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-modal-overlay.active .card-modal-box {
  transform: scale(1) rotateX(0deg);
}

.card-modal-close {
  position: absolute; top: 14px; right: 18px;
  background: rgba(0,0,0,0.08); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 1.4rem; color: #555;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.card-modal-close:hover { background: #c9922a; color: #fff; }

.card-modal-img {
  width: 45%; flex-shrink: 0;
}
.card-modal-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.card-modal-body {
  padding: 40px 36px;
  display: flex; flex-direction: column;
  justify-content: flex-start; gap: 16px;
  overflow-y: auto;
  max-height: 90vh;
}
.card-modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 800;
  color: #1e4d0f; line-height: 1.2;
  border-left: 4px solid #c9922a;
  padding-left: 14px;
}
.card-modal-body p {
  font-size: 0.95rem; color: #666; line-height: 1.75;
}

/* Make cards show pointer cursor */
.sub-prod-card { cursor: pointer; }

@media (max-width: 600px) {
  .card-modal-overlay { padding: 10px; align-items: flex-end; }
  .card-modal-box {
    flex-direction: column;
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    width: 100%;
  }
  .card-modal-img { width: 100%; height: 200px; flex-shrink: 0; }
  .card-modal-body {
    padding: 20px 20px 28px;
    overflow-y: auto;
    flex: 1;
  }
  .card-modal-body h2 { font-size: 1.2rem; }
  .card-modal-body p { font-size: 0.88rem; }
}

a.prod-card { display: block; text-decoration: none; }

/* ══ NAVBAR RESPONSIVE ══════════════════════════════ */

#header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999; background: #fff;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;   /* reduced */
  height: 76px;
  max-width: 1200px; /* match other sections */
  margin: 0 auto;
}


/* Desktop Nav */
#mainNav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
#mainNav ul li a {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
#mainNav ul li a:hover { color: #c9922a; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none;
  cursor: pointer; padding: 0;
  z-index: 1001; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 100%; height: 2.5px;
  background: #333; border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hamburger → X animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(8.75px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8.75px) rotate(-45deg);
}

/* ── TABLET & MOBILE ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-cta { display: none; }
  .prod-label {
    font-size: 0.82rem;
    padding: 10px 10px;
    min-height: 48px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }

  .prod-card {
    aspect-ratio: 4 / 3;
  }

  #header .container {
    padding: 0 20px;
    height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .carousel-arrow {
    width: 32px; height: 32px;
    font-size: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    bottom: auto;
  }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .slide-content { padding: 100px 56px 80px; }

  #mainNav { order: 3; }
  .logo { order: 1; }
  .hamburger { order: 2; margin-left: auto; }

  .logo { height: 50px; }

  /* Hide nav by default on mobile */
  #mainNav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease;
    z-index: 998;
  }

  /* Open state */
  #mainNav.open {
    max-height: 400px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }

  #mainNav ul {
    flex-direction: column;
    gap: 0; padding: 8px 0 16px;
    align-items: center;
  }

  #mainNav ul li {
    width: 100%; text-align: center;
  }

  #mainNav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    color: #333 !important;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
  }

  #mainNav ul li:last-child a { border-bottom: none; }

  #mainNav ul li a:hover {
    background: #f9f6f0;
    color: #c9922a !important;
  }

  /* Mobile Get a Quote inside menu */
  #mainNav ul::after {
    content: "Get a Quote";
    display: block;
    margin: 12px auto 4px;
    padding: 12px 28px;
    background: #c9922a;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .logo { height: 44px; }
  .prod-label {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

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

  .prod-card {
    aspect-ratio: 16 / 9;
  }

  #mainNav ul li a { font-size: 0.95rem; padding: 13px 20px; }
  .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    width: 28px; height: 28px;
    font-size: 1.2rem;
  }
  .carousel-arrow.prev { left: 6px; }
  .carousel-arrow.next { right: 6px; }
  .slide-content { padding: 90px 50px 80px; }

  
}