/* ==========================================================================
   شركة فخامة الإبداع للمغاسل والرخام — Marble & Stone Landing Page
   Design system: off-white / warm beige / stone grey / charcoal + one
   muted-bronze accent. Premium, architectural, minimal. RTL Arabic.
   ========================================================================== */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --beige: #efe7da;
  --beige-dark: #ddceb2;
  --stone: #6c6455;
  --stone-light: #a79e8e;
  --charcoal: #201d19;
  --charcoal-soft: #3b362e;
  --accent: #8a6239;
  --accent-dark: #6a4a29;
  /* Darkened from the standard WhatsApp brand green (#25d366, ~1.98:1
     contrast with white — fails WCAG AA) to keep the same recognizable
     green family while clearing 4.5:1 contrast for white button text. */
  --whatsapp: #0f7a37;
  --border: #e6ddcc;

  /* ---------- Brand design tokens (V3.1 / BRAND-GUIDE.md) ----------
     Semantic aliases over the palette above. New brand assets (SVG logo
     set, People section, future components) should reference these
     --brand-* names rather than the raw palette variables, so the whole
     visual identity stays swappable from one place. Existing components
     keep using the original --bg/--accent/etc. names untouched — nothing
     about the current design changes, this only adds a documented layer
     on top of it. */
  --brand-primary: var(--accent);       /* #8a6239 — logo mark, primary brand color */
  --brand-secondary: var(--accent-dark); /* #6a4a29 — darker brand shade, gradients */
  --brand-accent: var(--whatsapp);      /* #0f7a37 — action/conversion accent (CTAs) */
  --brand-background: var(--bg);        /* #faf8f5 — page background */
  --brand-surface: var(--surface);      /* #ffffff — card/section surface */
  --brand-text: var(--charcoal);        /* #201d19 — primary text */
  --brand-muted: var(--stone);          /* #6c6455 — secondary/muted text */
  --brand-border: var(--border);        /* #e6ddcc — hairlines, card borders */

  --shadow-sm: 0 2px 10px rgba(32, 29, 25, 0.06);
  --shadow-md: 0 10px 30px rgba(32, 29, 25, 0.1);
  --shadow-lg: 0 20px 50px rgba(32, 29, 25, 0.16);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
section { position: relative; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container { padding: 0 32px; }
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-dark);
  background: var(--beige);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--stone);
  max-width: 640px;
  line-height: 1.8;
}
.section-head {
  margin-bottom: 44px;
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .section-sub { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; width: 20px; height: 20px; }
.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-secondary:hover { background: var(--charcoal); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--charcoal);
  min-width: 0;
}
/* The full legal company name doesn't fit the fixed-height sticky header
   row on narrow screens. Below 640px we show CONFIG.brandName (the short
   trade name) instead of truncating the full name with an ellipsis; the
   full legal name returns once there's room. A max-width + ellipsis stays
   as a safety net in case brandName itself is ever long or left empty
   (main.js falls back to the full name in that case). */
.site-header .brand-full { display: none; }
.site-header .brand-short {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
  font-size: 16px;
}
@media (min-width: 420px) {
  .site-header .brand-short { max-width: 220px; font-size: 18px; }
}
@media (min-width: 640px) {
  .site-header .brand-short { display: none; }
  .site-header .brand-full { display: inline; font-size: 19px; }
}
@media (min-width: 960px) {
  .site-header .brand-full { font-size: 20px; }
}
.brand .mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}
.brand .mark svg { width: 21px; height: 21px; }
.main-nav {
  display: none;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--charcoal-soft);
  transition: color 0.2s;
  position: relative;
}
.main-nav a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 12px 20px; font-size: 14px; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
}
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-size: 22px;
  font-weight: 700;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-footer { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(30px, 5.4vw, 50px);
  font-weight: 800;
  line-height: 1.28;
  color: var(--charcoal);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent-word { color: var(--accent-dark); }
.hero-sub {
  font-size: 18px;
  color: var(--stone);
  line-height: 1.85;
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--stone);
  font-weight: 500;
}
.hero-trust-inline li { display: flex; align-items: center; gap: 7px; }
.hero-trust-inline svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  left: 18px;
  background: rgba(32, 29, 25, 0.72);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.05fr 0.95fr; }
  .hero-media { order: 2; }
  .hero-copy { order: 1; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--charcoal);
  color: #fff;
  padding: 20px 0;
}
.trust-bar ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
}
.trust-bar li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
}
.trust-bar svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (min-width: 760px) {
  .trust-bar ul { grid-template-columns: repeat(4, auto); justify-content: center; }
}

/* ---------- Smart Service Selector ---------- */
.selector { padding: 52px 0 0; }
.selector-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
}
.selector-box h2 { font-size: clamp(21px, 3.2vw, 28px); font-weight: 800; color: var(--charcoal); margin-bottom: 10px; }
.selector-box > p { font-size: 15.5px; color: var(--stone); max-width: 520px; margin: 0 0 26px; line-height: 1.75; }
.selector-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px;
}
.selector-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--charcoal-soft);
  transition: all 0.2s var(--ease);
}
.selector-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.selector-btn.active { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.selector-cta { display: none; }
.selector-cta.visible { display: inline-flex; animation: selectorFadeIn 0.35s var(--ease); }
@keyframes selectorFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .selector-box { padding: 32px 18px; }
  .selector-btn { padding: 10px 16px; font-size: 13.5px; }
}

/* ---------- Services ---------- */
.services { padding: 88px 0; }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--beige); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-media.texture-only {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
}
.service-card-media.texture-only svg { width: 46px; height: 46px; color: var(--accent-dark); opacity: 0.75; }
/* V3.2: shown by the global broken-image safety net (see index.html <head>)
   when a real service-card photo fails to load on the live site — styled
   to match .texture-only above so it never looks accidental. Stays
   display:none via the [hidden] attribute's UA stylesheet rule until JS
   removes that attribute. */
.service-card-media-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--beige), var(--beige-dark));
}
.service-card-media-fallback:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-media-fallback svg { width: 46px; height: 46px; color: var(--accent-dark); opacity: 0.75; }
.service-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card-body h3 { font-size: 19px; font-weight: 700; color: var(--charcoal); }
.service-card-body p { font-size: 14.5px; color: var(--stone); line-height: 1.75; flex: 1; }
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-top: 4px;
}
.service-card-link svg { width: 15px; height: 15px; transition: transform 0.2s; }
.service-card-link:hover svg { transform: translateX(-3px); }

/* ---------- Portfolio ---------- */
/* V3.3: "أعمالنا" is now one of the largest, most prominent sections on the
   page (Part 2 of the V3.3 brief) — a marble business sells itself through
   photos, so the gallery gets more vertical room and a bigger heading than
   a standard section. */
.portfolio { padding: 110px 0 100px; background: var(--surface); }
.portfolio-title { font-size: clamp(30px, 5vw, 46px); }
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--stone);
  transition: all 0.2s;
}
.filter-tab.active, .filter-tab:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
/* V3.3: a single, large hero-like tile on very narrow screens — the photo
   itself carries the section, per "Visual proof > decorative icons". */
@media (max-width: 380px) { .gallery-grid { grid-template-columns: 1fr; gap: 16px; } }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--beige);
  cursor: pointer;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(32,29,25,0.06));
  transition: box-shadow 0.3s var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .gi-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(20,17,14,0.78) 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gi-overlay { opacity: 1; }
.gi-overlay span { color: #fff; font-size: 13px; font-weight: 600; }
.gallery-item.hidden { display: none; }

/* Inspiration CTA box (under the portfolio gallery) */
.inspiration-box {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  background: var(--beige);
  border-radius: var(--radius-lg);
}
.inspiration-box h3 { font-size: 18px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.inspiration-box p { font-size: 14.5px; color: var(--stone); }
@media (max-width: 640px) {
  .inspiration-box { flex-direction: column; align-items: flex-start; text-align: right; }
  .inspiration-box .btn { width: 100%; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 13, 11, 0.94);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 900px; width: 100%; }
.lightbox-inner img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 14px; font-size: 14px; opacity: 0.85; }
/* V3.2: in-Lightbox "أريد تنفيذ مشابه" CTA (requirement 9) — reuses
   .btn.btn-primary, centered under the caption. */
.lightbox-cta { display: flex; width: fit-content; margin: 16px auto 0; }
@media (max-width: 640px) { .lightbox-cta { width: 100%; } }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.lightbox-close { top: -56px; left: 0; }
.lightbox-prev { top: 50%; right: -8px; transform: translateY(-50%); }
.lightbox-next { top: 50%; left: -8px; transform: translateY(-50%); }
@media (max-width: 720px) {
  .lightbox-close { top: -50px; left: 0; }
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

/* ---------- Why us ---------- */
.why-us { padding: 88px 0; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-card {
  display: flex;
  gap: 16px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.why-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}
.why-icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 14.5px; color: var(--stone); line-height: 1.75; }

/* ---------- Residential (B2C) ---------- */
.residential { padding: 88px 0; background: var(--surface); }
.residential-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) { .residential-wrap { grid-template-columns: 0.9fr 1.1fr; } }
.residential-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.residential-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.process { padding: 88px 0; background: var(--surface); }
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}
@media (min-width: 860px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative;
  padding: 28px 22px;
  border-top: 3px solid var(--accent);
}
.process-step .num {
  font-size: 34px;
  font-weight: 900;
  color: var(--beige-dark);
  margin-bottom: 10px;
  line-height: 1;
}
.process-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--stone); line-height: 1.7; }

/* ---------- People / Craftsmanship (V3.1 Patch 3) ---------- */
.craft { padding: 72px 0 88px; background: var(--bg); }
.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
}
@media (min-width: 640px) { .craft-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .craft-grid { grid-template-columns: repeat(5, 1fr); gap: 22px; } }
.craft-step { position: relative; }
.craft-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--beige);
  color: var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.craft-icon svg { width: 22px; height: 22px; }
.craft-step .num { font-size: 13px; font-weight: 800; color: var(--stone-light); letter-spacing: 0.04em; margin-bottom: 4px; }
.craft-step h3 { font-size: 16px; font-weight: 700; color: var(--charcoal); margin-bottom: 6px; }
.craft-step p { font-size: 13.5px; color: var(--stone); line-height: 1.7; }
.craft-cta { margin-top: 36px; }

/* ---------- Pricing psychology micro-section ---------- */
.pricing-note { padding: 20px 0 68px; }
.pricing-note-box {
  background: var(--charcoal);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.pricing-note-box h2 { font-size: clamp(21px, 3.2vw, 27px); font-weight: 800; margin-bottom: 14px; }
.pricing-note-box p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 24px;
}
.pricing-note-box .btn-secondary { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.pricing-note-box .btn-secondary:hover { background: #fff; color: var(--charcoal); }

/* ---------- WhatsApp conversion banner ---------- */
.wa-banner {
  padding: 64px 0;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2c2620 100%);
  color: #fff;
}
.wa-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.wa-banner h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.wa-banner p { font-size: 16px; color: rgba(255,255,255,0.78); max-width: 560px; line-height: 1.8; }

/* ---------- B2B ---------- */
.b2b { padding: 88px 0; }
.b2b-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  background: var(--beige);
  border-radius: var(--radius-lg);
  padding: 44px 30px;
}
@media (min-width: 900px) { .b2b-wrap { grid-template-columns: 1.1fr 0.9fr; padding: 54px 60px; } }
.b2b-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 26px 0 30px; }
.b2b-list li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--charcoal-soft); }
.b2b-list svg { width: 17px; height: 17px; color: var(--accent-dark); flex-shrink: 0; }
.b2b-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.b2b-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.b2b-card ol { margin: 0 0 20px; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 8px; }
.b2b-card ol li { font-size: 14px; color: var(--stone); }

/* ---------- B2B lead form (secondary conversion) ---------- */
.b2b-form-wrap {
  margin-top: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.b2b-form-wrap h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.b2b-form-sub { font-size: 14px; color: var(--stone); margin-bottom: 22px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field-wide { grid-column: 1 / -1; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13.5px; font-weight: 700; color: var(--charcoal-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--charcoal);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 72px; }
.form-hint { font-size: 13px; color: var(--stone); margin: 14px 0 16px; }
.form-feedback { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-feedback.pending { color: var(--stone); }
.form-feedback.success { color: #1a7a41; font-weight: 700; }
.form-feedback.error { color: #a3311c; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { padding: 88px 0; background: var(--surface); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  color: var(--charcoal);
}
.faq-q .plus { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease); color: var(--accent-dark); }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 22px 22px; font-size: 14.5px; color: var(--stone); line-height: 1.85; }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 90px 0 110px; text-align: center; }
.final-cta h2 { font-size: clamp(26px, 4.4vw, 38px); font-weight: 800; margin-bottom: 14px; }
.final-cta p { font-size: 16.5px; color: var(--stone); max-width: 560px; margin: 0 auto 32px; line-height: 1.85; }
.final-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding: 56px 0 110px; }
@media (min-width: 900px) { .site-footer { padding-bottom: 56px; } }
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 24px;
}
@media (min-width: 760px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; }
.footer-brand .mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 900; color: #fff; }
.footer-brand .mark svg { width: 19px; height: 19px; }
.footer-desc { font-size: 14px; margin-top: 12px; max-width: 320px; line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social li a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
  transition: background 0.2s;
}
.footer-social li a:hover { background: var(--accent); }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
@media (min-width: 760px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Sticky / floating WhatsApp ---------- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 70;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.sticky-mobile-cta .btn { flex: 1; padding: 14px 10px; font-size: 14.5px; }
.sticky-mobile-cta .btn-call { background: var(--charcoal); color: #fff; flex: 0 0 auto; width: 52px; padding: 0; }
.sticky-mobile-cta .btn-call svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .sticky-mobile-cta { display: none; } }

.floating-wa {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 70;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s;
}
.floating-wa svg { width: 28px; height: 28px; }
.floating-wa:hover { transform: scale(1.08); }
@media (min-width: 900px) { .floating-wa { display: flex; } }

/* body padding so sticky bar never covers content on mobile — accounts for
   the iPhone home-indicator safe area, which the bar itself also pads. */
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -50px; right: 12px; background: var(--charcoal); color: #fff;
  padding: 10px 18px; border-radius: 6px; z-index: 200; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
