/* ===================================
   Rise Packaging Inc. — Stylesheet
=================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --espresso: #1C140E;
  --cream:    #FBF7F0;
  --tan-50:   #F7F2EA;
  --tan-100:  #EDE6D9;
  --tan-200:  #DDD4C4;
  --tan-300:  #C8BCA9;
  --tan-400:  #A89A86;
  --tan-500:  #877768;
  --tan-600:  #6B5E50;
  --tan-700:  #4F453A;
  --tan-800:  #362E26;
  --tan-900:  #221B15;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  color: var(--espresso);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, textarea, button { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================
   NAVIGATION
================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--tan-200);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}
.logo-mark {
  width: 32px;
  height: 32px;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--espresso);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-right: 36px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--tan-500);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--espresso);
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover,
.nav-link.active { color: var(--espresso); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.75; }

/* Language switcher */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  margin-left: 14px;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid var(--tan-200);
  border-radius: 6px;
  color: var(--tan-500);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--espresso); border-color: var(--tan-300); }
.lang-caret { transition: transform 0.25s var(--ease); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  background: var(--cream);
  border: 1px solid var(--tan-200);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(28, 20, 14, 0.12);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1000;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 5px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: var(--tan-600);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.lang-menu button:hover { background: var(--tan-50); color: var(--espresso); }
.lang-menu button.active { color: var(--espresso); font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin-left: 12px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 0.3s var(--ease), opacity 0.2s;
  transform-origin: center;
}

/* ==================
   HERO
================== */
.hero {
  min-height: 100vh;
  background: var(--tan-50);
  color: var(--espresso);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tan-700);
  background: var(--tan-200);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero-line1 { white-space: nowrap; }

.hero-headline em {
  font-style: normal;
  color: var(--tan-600);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero-body {
  font-size: 15px;
  color: var(--tan-600);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-solid {
  padding: 13px 26px;
  background: var(--espresso);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.btn-solid:hover { opacity: 0.85; }

.btn-ghost {
  padding: 12px 22px;
  border: 1px solid rgba(28, 20, 14, 0.25);
  color: var(--espresso);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: rgba(28, 20, 14, 0.6); }

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-glyph {
  width: 100%;
  max-width: 460px;
  height: auto;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

.hero-scroll {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan-700);
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--tan-600), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* ==================
   CERTIFICATIONS
================== */
.section-certifications {
  padding: 128px 0;
  background: var(--tan-100);
}

.certs-carousel-wrap { position: relative; }

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: var(--cream);
  border: 1px solid var(--tan-200);
  padding: 40px 36px;
  transition: background 0.25s ease;
}
.cert-card:hover { background: var(--tan-50); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--tan-200);
  border-radius: 50%;
  background: var(--cream);
  color: var(--espresso);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--tan-100);
  border-color: var(--tan-300);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tan-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--espresso);
  transform: scale(1.4);
}

.cert-icon {
  width: 36px;
  height: 36px;
  color: var(--tan-400);
  margin-bottom: 22px;
}
.cert-icon svg { width: 100%; height: 100%; }

.cert-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 5px;
}

.cert-full {
  font-size: 13px;
  font-weight: 500;
  color: var(--tan-600);
  margin-bottom: 12px;
  line-height: 1.4;
}

.cert-desc {
  font-size: 13px;
  color: var(--tan-500);
  line-height: 1.7;
}

/* ==================
   PRODUCTS
================== */
/* ==================
   WHY RISE
================== */
.section-why {
  padding: 128px 0;
  background: var(--cream);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 52px;
}

.why-icon {
  width: 40px;
  height: 40px;
  color: var(--tan-400);
  margin-bottom: 24px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-item h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--espresso);
  margin-bottom: 10px;
}

.why-item p {
  font-size: 14px;
  color: var(--tan-500);
  line-height: 1.75;
}

/* ==================
   CATEGORIES GRID
================== */
.section-categories {
  padding: 128px 0;
  background: var(--tan-50);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tan-200);
  border: 1px solid var(--tan-200);
  border-radius: 8px;
  overflow: hidden;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  padding: 44px 38px;
  text-decoration: none;
  color: inherit;
  transition: background 0.22s ease;
}
.category-card:hover { background: var(--tan-50); }
.category-card:hover .cat-card-link { color: var(--espresso); }

.category-card .card-icon {
  width: 36px;
  height: 36px;
  color: var(--tan-400);
  margin-bottom: 24px;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--espresso);
}

.category-card p {
  font-size: 14px;
  color: var(--tan-500);
  line-height: 1.7;
  flex: 1;
}

.cat-card-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tan-400);
  transition: color 0.2s;
}

/* ==================
   PRODUCTS (products page)
================== */
.section-products {
  padding: 128px 0;
  background: var(--cream);
}
.section-products--page {
  padding-top: 148px;
}
.section-products--page .container {
  max-width: 1440px;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}
.section-head.section-head--light h2 { color: var(--cream); }
.section-head.section-head--light .eyebrow--muted { color: var(--tan-400); }
.section-head.section-head--light .section-sub { color: var(--tan-300); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tan-400);
  margin-bottom: 16px;
}
.eyebrow--muted { color: var(--tan-600); }

.section-head h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--espresso);
}
.section-sub {
  font-size: 16px;
  color: var(--tan-500);
  line-height: 1.7;
}

/* Grid: 1px gap on tan-200 background creates cell borders */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--tan-200);
  border: 1px solid var(--tan-200);
  overflow: hidden;
}

.product-card {
  background: var(--cream);
  padding: 44px 38px;
  transition: background 0.25s ease;
}
.product-card:hover { background: var(--tan-50); }

.product-card--dark {
  background: var(--espresso);
  color: var(--cream);
}
.product-card--dark:hover { background: var(--tan-900); }

.card-icon {
  width: 38px;
  height: 38px;
  color: var(--tan-400);
  margin-bottom: 26px;
}
.card-icon svg { width: 100%; height: 100%; }
.product-card--dark .card-icon { color: var(--tan-600); }

.product-card h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--espresso);
}
.product-card--dark h3 { color: var(--cream); }

.product-card p {
  font-size: 14px;
  color: var(--tan-500);
  line-height: 1.7;
}
.product-card--dark p { color: var(--tan-500); }

.card-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
  border-bottom: 1px solid var(--tan-700);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.card-link:hover { border-color: var(--cream); }

/* ==================
   ABOUT
================== */
.section-about {
  padding: 128px 0;
  background: var(--tan-100);
}
.section-about--page {
  padding-top: 148px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 88px;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
}
.about-media {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.about-media-main {
  grid-row: 1 / 3;
  min-height: 320px;
}
.about-media-side { min-height: 154px; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
}
.stat-item {
  text-align: center;
  padding: 22px 12px;
  background: var(--cream);
  border: 1px solid var(--tan-200);
  border-radius: 8px;
}
.stat-val {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--espresso);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-val sup {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.stat-key {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan-400);
}

.about-text .eyebrow { margin-bottom: 16px; }
.about-text h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--espresso);
}
.about-text p {
  font-size: 15px;
  color: var(--tan-600);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

/* ==================
   CONTACT
================== */
.section-contact {
  padding: 128px 0;
  background: var(--tan-900);
  color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 8px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ci-icon {
  width: 18px;
  height: 18px;
  color: var(--tan-600);
  flex-shrink: 0;
  margin-top: 3px;
}
.contact-item h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan-600);
  margin-bottom: 7px;
}
.contact-item p {
  font-size: 15px;
  color: var(--tan-300);
  line-height: 1.65;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--tan-600);
}
.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
  color: var(--tan-700);
}
.form-field input,
.form-field textarea {
  background: rgba(251, 247, 240, 0.05);
  border: 1px solid rgba(251, 247, 240, 0.1);
  color: var(--cream);
  padding: 13px 15px;
  font-size: 14px;
  border-radius: 6px;
  outline: none;
  resize: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--tan-700); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(251, 247, 240, 0.28);
  background: rgba(251, 247, 240, 0.08);
}

.btn-submit {
  padding: 14px 28px;
  background: var(--cream);
  color: var(--espresso);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 6px;
  align-self: flex-start;
  cursor: pointer;
  transition: opacity 0.2s, background 0.25s, color 0.25s;
}
.btn-submit:hover { opacity: 0.85; }
.btn-submit:disabled { cursor: default; }

/* ==================
   SPECS TABLES
================== */
/* ==================
   PRODUCT SIDEBAR
================== */
.product-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--tan-200);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream);
}

.product-sidebar {
  background: var(--tan-100);
  border-right: 1px solid var(--tan-200);
  padding: 16px 0;
}

.category-nav {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 88px;
}

.cat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tan-600);
  border-left: 3px solid transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.cat-btn:hover {
  background: var(--tan-200);
  color: var(--espresso);
}

.cat-btn.active {
  background: var(--cream);
  color: var(--espresso);
  font-weight: 600;
  border-left-color: var(--espresso);
}

.cat-btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cat-btn-icon svg { width: 100%; height: 100%; }

.product-content {
  padding: 52px 56px;
  min-height: 560px;
  min-width: 0; /* allow grid cell to shrink below table's natural width */
}

.product-panel { display: none; }
.product-panel.active { display: block; }

.panel-img {
  position: relative;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tan-50);
}

.panel-carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-img img {
  flex: 0 0 100%;
  width: 100%;
  height: 320px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

/* Single-image panels (no carousel built): keep image as a static block */
.panel-img > img:only-child {
  flex: none;
}

.panel-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.82);
  color: var(--espresso);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s;
  z-index: 2;
}
.panel-carousel-btn:hover { background: var(--cream); }
.panel-carousel-btn.prev { left: 16px; }
.panel-carousel-btn.next { right: 16px; }

.panel-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.panel-carousel-dots .carousel-dot {
  background: rgba(251, 247, 240, 0.6);
}
.panel-carousel-dots .carousel-dot.active {
  background: var(--cream);
}

.panel-img-placeholder {
  flex: 1;
  height: 200px;
  background: var(--tan-100);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--tan-300);
  pointer-events: none;
}

.panel-img-placeholder svg {
  width: 36px;
  height: 36px;
}

.panel-img-placeholder span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-header {
  margin-bottom: 44px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--tan-100);
}

.panel-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--espresso);
  margin: 10px 0 12px;
}

.panel-desc {
  font-size: 15px;
  color: var(--tan-500);
  line-height: 1.75;
  max-width: 560px;
}

.panel-specs-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 44px 48px;
  background: var(--tan-50);
  border: 1px solid var(--tan-200);
  border-radius: 8px;
}

.panel-specs-cta p {
  font-size: 15px;
  color: var(--tan-600);
  line-height: 1.75;
  max-width: 480px;
}

/* ==================
   SPECS TABLES
================== */
.specs-tables {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.specs-table-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--espresso);
  margin-bottom: 16px;
}

/* Accordion toggle button (replaces h4 via JS) */
.specs-table-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--espresso);
  border-bottom: 1px solid var(--tan-200);
  transition: color 0.18s ease;
}
.specs-table-toggle:hover { color: var(--tan-500); }

.toggle-chevron {
  width: 15px;
  height: 15px;
  color: var(--tan-400);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.specs-table-wrap.open .toggle-chevron { transform: rotate(180deg); }

/* Collapse container using CSS grid trick for smooth animation */
/* Height-based accordion — overflow managed by JS so horizontal scroll always works */
.specs-table-collapse {
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.specs-table-collapse-inner .table-scroll {
  margin-top: 16px;
  margin-bottom: 12px;
}

.specs-table-note {
  font-size: 12px;
  color: var(--tan-500);
  margin-top: 8px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.panel-contact-note {
  margin-top: 40px;
  font-size: 13px;
  color: var(--tan-500);
}
.panel-contact-note a {
  color: var(--tan-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.panel-contact-note a:hover { color: var(--espresso); }

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS Safari */
  border: 1px solid var(--tan-200);
  border-radius: 6px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.specs-table thead tr {
  background: var(--espresso);
  color: var(--cream);
}

.specs-table th {
  padding: 12px 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
}

.specs-table td {
  padding: 10px 16px;
  color: var(--tan-700);
  border-bottom: 1px solid var(--tan-100);
}

.specs-table tbody tr:last-child td { border-bottom: none; }

.specs-table tbody tr:nth-child(even) { background: var(--tan-50); }
.specs-table tbody tr:nth-child(odd)  { background: var(--cream); }

.specs-table tbody tr:hover { background: var(--tan-100); }

.specs-table td:first-child {
  font-weight: 600;
  color: var(--espresso);
}

/* ==================
   FOOTER
================== */
.footer {
  background: var(--espresso);
  padding: 28px 0;
  border-top: 1px solid var(--tan-900);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-logo svg { width: 26px; height: 26px; }
.footer-logo span {
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
}
.footer-copy {
  margin-left: auto;
  font-size: 12px;
  color: var(--tan-700);
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  font-size: 12px;
  color: var(--tan-600);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cream); }

/* ==================
   RESPONSIVE
================== */
@media (max-width: 1024px) {
  .cert-card { flex-basis: calc((100% - 24px) / 2); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 60px; }
  .contact-grid { gap: 56px; }
  .product-layout { grid-template-columns: 190px 1fr; }
  .product-content { padding: 40px 36px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner { padding: 0 24px; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 32px;
    gap: 28px;
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-link {
    font-size: 22px;
    font-weight: 700;
    color: var(--espresso);
    letter-spacing: -0.02em;
  }
  .nav-link::after { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero-art { display: none; }
  .hero { padding: 110px 0 80px; }
  .hero-scroll { display: none; }

  /* Certifications */
  .cert-card { flex-basis: 100%; }
  .section-certifications { padding: 88px 0; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .section-products,
  .section-why,
  .section-categories,
  .section-about,
  .section-contact { padding: 88px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 36px; }
  .categories-grid { grid-template-columns: 1fr; }

  /* Hero text can wrap on mobile */
  .hero-line1 { white-space: normal; }

  /* Product sidebar — collapse to horizontal tabs */
  /* overflow:visible lets touch-scroll work in child elements on iOS Safari */
  .product-layout { grid-template-columns: 1fr; overflow: visible; border-radius: 6px; }
  .product-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--tan-200);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .category-nav {
    flex-direction: row;
    position: static;
    min-width: max-content;
  }
  .cat-btn {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 12px 14px;
    font-size: 12px;
    gap: 6px;
  }
  .cat-btn-icon { display: none; } /* hide icons to save space in tab bar */
  .cat-btn.active {
    border-bottom-color: var(--espresso);
    background: var(--cream);
    border-left-color: transparent;
  }
  .product-content { padding: 28px 20px; }
  .panel-specs-cta { padding: 28px 20px; }
  .panel-header { margin-bottom: 28px; padding-bottom: 20px; }
  .section-head { margin-bottom: 40px; }
  .specs-table { font-size: 12px; }
  .specs-table th { padding: 10px 12px; }
  .specs-table td { padding: 9px 12px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 48px; }
  .about-media { gap: 8px; }
  .about-media-main { min-height: 240px; }
  .about-media-side { min-height: 116px; }
  .about-stats { gap: 8px; }
  .stat-item { padding: 16px 8px; }
  .stat-val { font-size: 22px; }
  .footer-nav { flex-wrap: wrap; gap: 14px; }
}
