/* ==========================================================================
   MANARAT AL-INTAJ AL-HADITH — COASTAL INDUSTRIAL DESIGN
   منارة الإنتاج الحديث · طرابلس، ليبيا
   ========================================================================== */

:root {
  /* Palette from logo: copper-brown · charcoal · sand */
  --ink: #2f2f2f;
  --ink-soft: #404040;
  --muted: #6f6e6d;
  --bg: #f7f3ef;
  --bg-elevated: #efe6dc;
  --surface: #ffffff;
  --surface-2: #f3ebe3;
  --accent: #884018;
  --accent-deep: #6b3010;
  --accent-soft: rgba(136, 64, 24, 0.12);
  --accent-glow: rgba(136, 64, 24, 0.28);
  --sand: #c8a898;
  --sand-light: #e8cbb4;
  --forge: #a66840;
  --forge-soft: rgba(166, 104, 64, 0.16);
  --line: rgba(64, 64, 64, 0.12);
  --line-strong: rgba(64, 64, 64, 0.22);
  --wa: #128c7e;
  --ok: #3d7a4a;
  --shadow: 0 18px 50px -28px rgba(47, 47, 47, 0.35);
  --radius: 4px;
  --radius-md: 10px;
  --font-display: "El Messiri", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.28s var(--ease);

  /* Compat aliases */
  --gold-primary: var(--accent);
  --gold-secondary: var(--forge);
  --gold-light: var(--sand-light);
  --gold-dark: var(--accent-deep);
  --gold-glow: var(--accent-glow);
  --gold-gradient: linear-gradient(135deg, #a66840, #884018 55%, #6b3010);
  --gold-metallic: var(--gold-gradient);
  --bg-main: var(--bg);
  --bg-surface: var(--surface);
  --bg-surface-elevated: var(--bg-elevated);
  --bg-card: var(--surface);
  --bg-glass: rgba(247, 243, 239, 0.9);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-subtle: #8a8078;
  --border-color: var(--line);
  --border-strong: var(--line-strong);
  --accent-slate: var(--ink-soft);
  --accent-green: var(--ok);
  --accent-blue: #5a6e78;
  --shadow-gold: 0 12px 32px -16px var(--accent-glow);
  --shadow-dark: var(--shadow);
  --radius-sm: var(--radius);
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-main: var(--font-body);
}

[data-theme="dark"] {
  --ink: #f3ebe3;
  --ink-soft: #e0d2c4;
  --muted: #b0a398;
  --bg: #171311;
  --bg-elevated: #221c18;
  --surface: #1e1814;
  --surface-2: #241e1a;
  --accent: #c48a5a;
  --accent-deep: #a66840;
  --accent-soft: rgba(196, 138, 90, 0.16);
  --accent-glow: rgba(196, 138, 90, 0.3);
  --sand: #c8a898;
  --sand-light: #e8cbb4;
  --forge: #d4a06a;
  --forge-soft: rgba(212, 160, 106, 0.16);
  --line: rgba(243, 235, 227, 0.1);
  --line-strong: rgba(243, 235, 227, 0.18);
  --shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.65);
  --bg-main: var(--bg);
  --bg-surface: var(--surface);
  --bg-surface-elevated: var(--bg-elevated);
  --bg-card: var(--surface);
  --bg-glass: rgba(23, 19, 17, 0.9);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-subtle: #8f847a;
  --border-color: var(--line);
  --border-strong: var(--line-strong);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.nav-open {
  overflow: hidden;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  right: 1rem;
  top: -48px;
  z-index: 3000;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

i[class*="fa-"] {
  display: inline-block;
  width: 1.15em;
  text-align: center;
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition), transform var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

ul { list-style: none; }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left));
}

/* --------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.gradient-text {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: unset;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header-center .section-desc {
  margin-inline: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #fff;
  color: var(--accent-deep);
  border-color: #fff;
}

.btn-whatsapp {
  background: var(--wa);
  color: #fff;
}

.btn-whatsapp:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header.scrolled,
.header.on-page {
  background: var(--bg-glass);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.25);
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.header:not(.scrolled):not(.on-page) .brand-name,
.header:not(.scrolled):not(.on-page) .brand-sub,
.header:not(.scrolled):not(.on-page) .nav-link,
.header:not(.scrolled):not(.on-page) .icon-btn {
  color: #fff;
}

.header:not(.scrolled):not(.on-page) .logo-img {
  border-color: rgba(255, 255, 255, 0.7);
}

.header:not(.scrolled):not(.on-page) .icon-btn {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-call {
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.mobile-toggle {
  display: none;
}

/* --------------------------------------------------------------------------
   HERO — full-bleed composition
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(47, 36, 28, 0.62) 0%, rgba(47, 36, 28, 0.38) 38%, rgba(47, 36, 28, 0.86) 100%),
    linear-gradient(90deg, rgba(47, 36, 28, 0.55) 0%, transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  animation: heroRise 0.9s var(--ease) both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  max-width: 34rem;
}

.hero-title .gradient-text {
  color: var(--sand-light);
}

.hero-description {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  max-width: 34rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-buttons .btn-primary {
  background: #fff;
  color: var(--accent-deep);
}

.hero-buttons .btn-primary:hover {
  background: #f3ebe3;
}

/* --------------------------------------------------------------------------
   STATS STRIP (below fold)
   -------------------------------------------------------------------------- */
.stats-section {
  background: #383838;
  color: #fff;
  padding: 2.75rem 0;
}

[data-theme="dark"] .stats-section {
  background: #120e0b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 0.5rem;
  background: none;
  border: none;
  box-shadow: none;
}

.stat-card:hover {
  transform: none;
  box-shadow: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--sand-light);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about-section,
.products-section,
.quality-section,
.contact-section {
  padding: 5.5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo {
  position: relative;
  min-height: 420px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: auto -1rem -1rem auto;
  width: 42%;
  height: 42%;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

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

.about-feature-item {
  padding: 0;
  background: none;
  border: none;
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}

.about-feature-item:hover {
  transform: none;
  box-shadow: none;
}

.feature-icon-box {
  width: auto;
  height: auto;
  background: none;
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  display: block;
}

.about-feature-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.about-feature-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.capability-panel {
  margin-top: 4rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.capability-panel h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.capability-panel > p {
  color: var(--muted);
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.capability-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

.cap-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.cap-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.15rem;
}

.cap-info h5 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.cap-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   PRODUCTS
   -------------------------------------------------------------------------- */
.products-section {
  background: var(--surface-2);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.55rem 1.15rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.product-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.product-img-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(47, 36, 28, 0.78));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-img-overlay {
  opacity: 1;
}

.product-tag-chip {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.product-body {
  padding: 1.25rem 1.35rem 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.65rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-desc {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.product-footer {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.product-footer .btn {
  flex: 1;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   QUALITY
   -------------------------------------------------------------------------- */
.quality-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.quality-band img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
}

.quality-checks {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}

.quality-checks li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 0.98rem;
}

.quality-checks i {
  color: var(--accent);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.standard-card {
  padding: 1.75rem 1.5rem;
  border-top: 3px solid var(--accent);
  background: var(--surface);
  border-inline: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.standard-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
  border-top-color: var(--accent);
}

.standard-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.standard-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.standard-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.info-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.info-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.info-details p,
.info-details a {
  font-weight: 700;
  color: var(--ink);
}

.info-details a:hover {
  color: var(--accent);
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 1.35rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.map-container {
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 55%),
    var(--bg-elevated);
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.map-placeholder-box i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

/* --------------------------------------------------------------------------
   PAGE BANNER
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3.25rem;
  background:
    linear-gradient(120deg, rgba(136, 64, 24, 0.92), rgba(64, 40, 20, 0.9)),
    url("../assets/facility-hub.webp") center / cover;
  color: #fff;
  overflow: hidden;
}

.page-banner .section-title {
  color: #fff;
  margin-bottom: 0.65rem;
}

.page-banner .section-title .gradient-text {
  color: var(--sand-light);
}

.page-banner p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   PRODUCT DETAIL / SHARED GRIDS
   -------------------------------------------------------------------------- */
.product-detail-grid,
.quality-intro-grid,
.facilities-grid {
  display: grid;
  gap: 2rem;
}

.product-detail-grid {
  grid-template-columns: 1fr 1.05fr;
  gap: 3rem;
  align-items: start;
}

.quality-intro-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.facilities-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.facility-item {
  background: none;
  border: none;
  padding: 0;
}

.facility-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.facility-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.facility-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.vm-block {
  padding-top: 1rem;
  border-top: 2px solid var(--accent);
}

.vm-block i {
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.vm-block h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.vm-block p {
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}

.spec-table-wrap {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.spec-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.spec-table-wrap tr {
  border-bottom: 1px solid var(--line);
}

.spec-table-wrap tr:nth-child(odd) {
  background: var(--accent-soft);
}

.spec-table-wrap td {
  padding: 0.85rem 1.15rem;
}

.spec-table-wrap td:first-child {
  font-weight: 700;
  width: 40%;
}

.detail-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.detail-perk {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.detail-perk i {
  color: var(--accent);
  font-size: 1.2rem;
}

.detail-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.detail-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   FLOATING WHATSAPP + TOAST
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--wa);
  color: #fff;
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(18, 140, 126, 0.55);
  animation: waPulse 2.8s ease-in-out infinite;
}

@keyframes waPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.floating-whatsapp .wa-bubble {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.floating-whatsapp .wa-label {
  font-weight: 700;
  font-size: 0.88rem;
  padding-inline-end: 0.35rem;
}

.floating-whatsapp:hover {
  filter: brightness(1.06);
}

.toast-notice {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: 0.3s var(--ease);
}

.toast-notice.show {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #2f2f2f;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 5.5rem;
}

[data-theme="dark"] .footer {
  background: #120e0b;
}

.footer .brand-name,
.footer .brand-sub {
  color: #fff;
}

.footer .logo-img {
  border-color: rgba(255, 255, 255, 0.45);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.footer-col h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 1.15rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.footer-col h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2rem;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--sand-light);
  padding-inline-start: 0.25rem;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-menu { gap: 0; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .btn-call span { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 992px) {
  .mobile-toggle { display: inline-flex; }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s var(--ease);
    box-shadow: var(--shadow);
  }

  .nav-menu.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.9rem 1rem;
    color: var(--ink) !important;
  }

  .nav-link::after { display: none; }

  .header:not(.scrolled):not(.on-page) {
    background: rgba(47, 36, 28, 0.6);
    backdrop-filter: blur(10px);
  }

  .about-grid,
  .quality-band,
  .quality-intro-grid,
  .contact-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .capability-list { grid-template-columns: 1fr; }
  .standards-grid,
  .facilities-grid { grid-template-columns: 1fr; }
  .about-photo::after { display: none; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .logo-img { width: 40px; height: 40px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: none; }
  .header-actions #themeToggle { display: none; }

  .hero {
    min-height: 92svh;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero-brand {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-title { font-size: 1.1rem; }
  .hero-description { font-size: 0.95rem; }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn { width: 100%; }
  .hero-buttons .btn-whatsapp { display: none; }

  .about-section,
  .products-section,
  .quality-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .about-features,
  .vision-mission,
  .detail-perks,
  .form-row {
    grid-template-columns: 1fr;
  }

  .products-grid { grid-template-columns: 1fr; }

  .page-banner {
    padding-top: calc(var(--header-h) + 2.5rem);
    padding-bottom: 2.5rem;
  }

  .detail-photo { height: 220px; }
  .product-footer { flex-direction: column; }
  .product-footer .btn { width: 100%; }

  .floating-whatsapp .wa-label { display: none; }
  .floating-whatsapp { padding: 0.45rem; left: 1rem; bottom: 1rem; }

  .footer { padding-bottom: 6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
