/* ═══════════════════════════════════════════════════
   COMPONENTS.CSS — Reusable Component Library
   Source of Truth: index.html
   ═══════════════════════════════════════════════════ */

/* ── Stat Strip ── */
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
}

@media (min-width: 768px) {
  .stat-item {
    padding: 2.5rem;
  }
}

.stat-num {
  font-family: var(--font-headline);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--sm-sand);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
}

/* ── Product Images ── */
.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.prod-img-wrap {
  overflow: hidden;
}

.prod-img-wrap:hover .prod-img {
  transform: scale(1.04);
}

/* ── Operation Card ── */
.op-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease-in-out;
}

.op-card:hover .op-img {
  transform: scale(1.04);
}

/* ── Cert Card ── */
.cert-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: rgba(238, 118, 35, 0.6);
}

/* ── Why Card ── */
.why-card {
  background: var(--sm-ink);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 10rem;
  border-top: 1px solid transparent;
  transition: all 0.3s ease;
}

.why-card:hover {
  border-color: rgba(238, 118, 35, 0.4);
}

/* ── Logo & Image Wrappers ── */
.logo-img {
  height: 4rem;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.05);
}

.logo-img-light {
  height: 3.5rem;
  width: auto;
}

/* ── Bounce animation ── */
@keyframes float-down {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.7;
  }
}

.bounce-arrow {
  animation: float-down 2s ease-in-out infinite;
}

/* ── Common Action Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--sm-orange);
  color: var(--sm-ink);
  padding: 1rem 2.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 900;
  transition: background 0.2s ease;
  text-decoration: none;
}

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

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sm-sand);
  padding: 1rem 2.5rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--sm-orange);
  color: var(--sm-orange);
}

/* ══════════════════════════════════════════════════════
   HERO — Inner page hero (subpages)
   Full-viewport on homepage via .hero-home modifier.
   All subpages use .hero-section + per-page bg image.
   ══════════════════════════════════════════════════════ */

.hero-section {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  /* Default bg — overridden per-page via pages.css */
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.92) 100%),
    url("../images/3.webp") center center / cover no-repeat;
}

/* Full-height override for homepage */
.hero-section.hero-home {
  min-height: 100svh;
  background:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.45) 30%,
      rgba(0, 0, 0, 0.45) 70%,
      rgba(0, 0, 0, 1) 100%),
    url("../images/14.webp") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* extra vignette layer — pages already have gradient in bg */
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.5) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 5rem;
  padding-top: 10rem;
  /* clear fixed nav */
}

.hero-heading {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--sm-sand);
  margin: 0 0 1.5rem;
}

.hero-paragraph {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 300;
  color: var(--sm-mist);
  line-height: 1.7;
  max-width: 52ch;
  margin: 0 0 2.5rem;
}

/* ── Section typography helpers ── */
.sec-title {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--sm-sand);
  margin: 0;
}

.sec-description {
  font-size: 1rem;
  font-weight: 300;
  color: var(--sm-mist);
  line-height: 1.75;
  max-width: 60ch;
}

/* ── Stat group (hero stats bar) ── */
.stat-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 2rem 0 0;
}

.stat-value {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--sm-sand);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--sm-ash);
}

.stat-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0.25rem 0;
}

/* ── Block catalogue (concrete-blocks) ── */
.block-grid {
  display: grid;
  gap: 1rem;
}

.block-card {
  background: var(--sm-warm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.block-card:hover {
  border-color: rgba(238, 118, 35, 0.4);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0.5rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-key {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sm-ash);
  flex-shrink: 0;
}

.spec-val {
  font-size: 11px;
  font-weight: 500;
  color: var(--sm-sand);
  text-align: right;
}

/* ── Filter tabs ── */
.filter-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--sm-mist);
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--sm-orange);
  color: var(--sm-orange);
  background: rgba(238, 118, 35, 0.06);
}

/* ── Gallery ── */
.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
}

.gallery-cell {
  overflow: hidden;
  background: var(--sm-warm);
}

/* ── CTA section gradient overlay ── */
.cta-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(15, 15, 14, 1) 0%,
      rgba(15, 15, 14, 0.85) 55%,
      rgba(15, 15, 14, 0.5) 100%);
  pointer-events: none;
}

/* ── Panoramic aspect ratio (21:6 banner images) ── */
.aspect-panoramic {
  aspect-ratio: 21 / 6;
  overflow: hidden;
}

.aspect-panoramic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  .aspect-panoramic {
    aspect-ratio: 16 / 9;
  }
}

/* ══════════════════════════════════════════════════════
   FORMS — Shared form system (contact + request-quote)
   ══════════════════════════════════════════════════════ */

/* Label */
.form-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--sm-ash);
  margin-bottom: 0.5rem;
}

/* Base field — input, textarea, select */
.form-field,
.form-input {
  display: block;
  width: 100%;
  background: var(--sm-warm) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--sm-sand);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 300;
  padding: 0.875rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-field:focus,
.form-input:focus {
  border-color: var(--sm-orange);
  background: var(--sm-surface);
}

.form-field::placeholder,
.form-input::placeholder {
  color: var(--sm-ash);
  font-weight: 300;
}

/* Select arrow */
select.form-field,
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6762' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select.form-field option,
select.form-input option {
  background: var(--sm-charcoal);
  color: var(--sm-sand);
}

/* Textarea */
textarea.form-field,
textarea.form-input {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.6;
}

/* Form grid wrapper */
.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

@media (min-width: 768px) {
  .form-row.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Submit button — inherits .btn-primary style */
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--sm-orange);
  color: var(--sm-ink);
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 900;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover {
  background: var(--sm-amber);
}

/* Form card wrapper — matches cert-card visual style */
.form-card {
  background: var(--sm-warm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .form-card {
    padding: 3rem;
  }
}
/* ── Form submission status banner ──────────────────────────── */
.form-status {
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid transparent;
}
.form-status.is-success {
  background: rgba(46, 125, 50, 0.12);
  border-color: rgba(76, 175, 80, 0.5);
  color: #cdebd0;
}
.form-status.is-error {
  background: rgba(196, 94, 15, 0.12);
  border-color: rgba(238, 118, 35, 0.55);
  color: #f3d6c2;
}

/* ════════════════════════════════════════════════════════════
   MOBILE FULL-SCREEN MENU (2026)
   Built dynamically by navigation.js, shared across all pages.
   ════════════════════════════════════════════════════════════ */

/* Retire the legacy in-flow drawer (replaced by the overlay below) */
#mob-drawer { display: none !important; }

.m-menu {
  position: fixed;
  inset: 0;
  z-index: 100;                 /* above #site-nav (50) and .mob-cta-bar (60) */
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 90% at 80% -10%, #252523 0%, var(--sm-ink) 55%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.m-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

/* Header: logo + close */
.m-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 5rem;                 /* match nav h-20 */
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.m-menu__top img { height: 38px; width: auto; }
.m-menu__close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sm-sand);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.m-menu__close:hover { color: var(--sm-orange); border-color: var(--sm-orange); transform: rotate(90deg); }
.m-menu__close svg { width: 20px; height: 20px; }

/* Link list */
.m-menu__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.5rem;
  gap: 0.25rem;
}
.m-menu__item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.m-menu.is-open .m-menu__item { opacity: 1; transform: translateY(0); }

.m-menu__link {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.55rem 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 9vw, 2.9rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--sm-sand);
  text-decoration: none;
  transition: color 0.2s ease;
}
.m-menu__link:hover, .m-menu__link:focus-visible { color: var(--sm-orange); }
.m-menu__num {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--sm-ash);
  transform: translateY(-0.4em);
}
.m-menu__link.is-active { color: var(--sm-orange); }
.m-menu__link.is-active .m-menu__num { color: var(--sm-orange); }

/* Products sub-group */
.m-menu__sub-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.m-menu__chev {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--sm-ash);
  transition: transform 0.3s ease, color 0.2s ease;
}
.m-menu__sub-toggle[aria-expanded="true"] .m-menu__chev { transform: rotate(180deg); color: var(--sm-orange); }
.m-menu__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 2.4rem;
}
.m-menu__sub.is-open { max-height: 320px; }
.m-menu__sub a {
  display: block;
  padding: 0.55rem 0;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--sm-mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.m-menu__sub a:hover { color: var(--sm-orange); }

/* Footer: CTA + contact */
.m-menu__foot {
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.m-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: var(--sm-orange);
  color: var(--sm-ink);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease;
}
.m-menu__cta:hover { background: var(--sm-sand); }
.m-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.m-menu__contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  color: var(--sm-mist);
  text-decoration: none;
  transition: color 0.2s ease;
}
.m-menu__contact a:hover { color: var(--sm-sand); }
.m-menu__contact svg { width: 16px; height: 16px; color: var(--sm-orange); flex-shrink: 0; }

body.m-menu-open { overflow: hidden; }

/* Always hide the overlay on large screens (desktop nav takes over) */
@media (min-width: 1024px) {
  .m-menu { display: none !important; }
}

/* Hide floating side buttons & sticky CTA while the full-screen menu is open */
body.m-menu-open .floating-contact,
body.m-menu-open .mob-cta-bar { display: none !important; }

/* ════════════════════════════════════════════════════════════
   HAMBURGER TRIGGER — explicit local styles
   The bars previously relied on Tailwind's bg-sm-sand class; if
   that custom colour failed to apply they became invisible.
   These rules guarantee the icon is always visible on mobile.
   ════════════════════════════════════════════════════════════ */
#mob-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
#mob-btn > span,
#bar1, #bar2, #bar3 {
  display: block;
  height: 2px;
  background-color: var(--sm-sand);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
#bar1, #bar2 { width: 24px; }
#bar3 { width: 16px; }

/* Visible only on mobile; desktop nav takes over at lg (1024px) */
@media (min-width: 1024px) {
  #mob-btn { display: none; }
}
