/* ==========================================================================
   EGY COOL — visual identity
   --------------------------------------------------------------------------
   Everything here is derived from the logo, not invented:
     · colour   #0083B5, the exact blue of the mark
     · shape    the mark is a circle; the UI uses generous pill radii
     · motion   the logo's swoosh becomes section dividers
     · texture  the logo's floating bubbles become background accents
     · type     Cairo for Arabic, Poppins for Latin — geometric and round,
                matching how the wordmark is drawn
   Works in RTL (Arabic) and LTR (English) via logical properties.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-arabic-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-arabic-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-arabic-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('/fonts/cairo-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* Brand blue sampled from the logo mark, extended into a usable scale. */
  --brand-50:  #f2fafd;
  --brand-100: #e0f2fa;
  --brand-200: #bde5f4;
  --brand-300: #7fcdea;
  --brand-400: #33abd4;
  --brand-500: #0083b5;   /* the logo */
  --brand-600: #006d98;
  --brand-700: #005679;
  --brand-800: #00405b;

  /* Aliases kept so the admin sheet and any older rules stay in sync. */
  --blue: #0083b5;
  --blue-dark: #006d98;
  --blue-light: #e0f2fa;

  --ink: #0c2430;
  --ink-soft: #5b7280;
  --line: #dceaf1;
  --bg: #ffffff;
  --bg-soft: #f4fafc;
  --wa: #25d366;

  /* The mark is a circle — the UI echoes that with soft, generous radii. */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --radius: 24px;

  --shadow-sm: 0 1px 2px rgba(0,64,91,.06);
  --shadow-md: 0 2px 6px rgba(0,64,91,.06), 0 12px 28px rgba(0,64,91,.08);
  --shadow-brand: 0 10px 30px rgba(0,131,181,.22);
  --shadow: var(--shadow-md);

  --max: 1280px;

  --font-ar: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --font-latin: 'Poppins', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.05rem; }

/* Latin headings use Poppins, matching the wordmark's geometry. */
body.ltr h1, body.ltr h2, body.ltr h3, body.ltr .brand-text strong,
body.ltr .btn, body.ltr .stat-item strong { font-family: var(--font-latin); }

p { margin: 0 0 1em; }
.muted { color: var(--ink-soft); }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.center { text-align: center; }
.huge { font-size: 4rem; margin-bottom: 0; }
.mt { margin-top: 2.5rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 840px; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .45em; }

/* Offset vertically, never horizontally — a horizontal offset would recreate
   the RTL overflow bug that the honeypot rule below warns about. */
.skip {
  position: absolute; inset-inline-start: 0; top: -100px; z-index: 100;
  padding: 10px 18px; background: var(--brand-500); color: #fff;
}
.skip:focus { top: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 16px; min-height: 74px; }

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 54px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.02rem; font-weight: 700; }
.brand-text small { color: var(--ink-soft); font-size: .72rem; font-weight: 400; }

.site-nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.site-nav a {
  padding: 9px 14px; border-radius: var(--r-pill);
  color: var(--ink); font-size: .95rem; font-weight: 600;
}
.site-nav a:hover { background: var(--brand-50); color: var(--brand-600); text-decoration: none; }
.site-nav a.active { color: #fff; background: var(--brand-500); }
.site-nav .lang-switch {
  border: 1.5px solid var(--line); margin-inline-start: 10px; font-weight: 700;
}
.site-nav .lang-switch:hover { border-color: var(--brand-300); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px;
  border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--bg);
  color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
}
.theme-toggle:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-700); }
.form-check { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface, #fff); font-size: .86rem !important; line-height: 1.65; cursor: pointer; }
.form-check input { width: 19px; min-width: 19px; height: 19px; min-height: 19px; margin: 2px 0 0; accent-color: var(--brand-500); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 44px; height: 40px; padding: 10px 9px;
  background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--brand-600); margin: 3px 0; border-radius: 2px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 14px; }
  .theme-toggle { margin: 8px 0 0; justify-content: center; padding: 11px 14px; }
  .site-nav .lang-switch { margin: 10px 0 0; text-align: center; }
  .brand-text small { display: none; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 78% -12%, var(--brand-200), transparent 62%),
    linear-gradient(168deg, var(--brand-50) 0%, #fff 72%);
}

/* The logo's own bubbles, floated in as brand texture. */
.hero::before {
  content: ''; position: absolute; z-index: 0;
  inset-block-start: 26px; inset-inline-end: 34px;
  width: 210px; height: 265px;
  background: url('/img/deco-bubbles.svg') no-repeat center / contain;
  opacity: .34;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
  padding-block: clamp(44px, 8vw, 92px);
}
.hero-text h1 { margin-bottom: .35em; }
.hero-text p { font-size: 1.1rem; color: var(--ink-soft); max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-art { color: var(--brand-400); opacity: .55; }
.hero-art svg { width: 100%; height: auto; }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero::before { width: 132px; height: 168px; inset-block-start: 14px; inset-inline-end: 12px; opacity: .26; }
}

/* The swoosh from the mark, closing the hero. */
.swoosh {
  position: relative; z-index: 1;
  height: 58px; margin-top: -58px;
  opacity: .5;
  background: url('/img/deco-swoosh.svg') no-repeat center bottom / 100% 100%;
  pointer-events: none;
}
body.rtl .swoosh { transform: scaleX(-1); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill); border: 2px solid transparent;
  font-family: inherit; font-size: .97rem; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--brand-600); border-color: var(--brand-200); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-300); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37,211,102,.28); }
.btn-wa:hover { filter: brightness(.95); }

.link { color: var(--brand-500); font-weight: 700; }
/* Do NOT mirror this with transform: scaleX(-1) — that reverses the label text
   too. The arrow character is chosen per language in the template instead. */
.back { display: inline-block; margin-bottom: 18px; }

/* --------------------------------------------------------------- sections */

.section { padding-block: clamp(36px, 6vw, 72px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }

/* A short brand rule under section headings, echoing the swoosh. */
.section > .container > h1::after,
.section > .container > h2::after,
.section-head h2::after {
  content: ''; display: block; width: 46px; height: 4px; margin-top: 12px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  border-radius: var(--r-pill);
}

/* ----------------------------------------------------------------- chips */

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.chip {
  display: inline-block; padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
  font-size: .84rem; font-weight: 700;
}
.chip-link { border: 1.5px solid var(--brand-100); transition: background .15s, border-color .15s, color .15s; }
.chip-link:hover { text-decoration: none; border-color: var(--brand-300); background: var(--brand-100); }
.chip-link.is-active { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

/* --------------------------------------------------------- trust numbers */

.stats-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500) 55%, var(--brand-400));
  color: #fff;
}
.stats-band::after {
  content: ''; position: absolute; inset-block-start: -30%; inset-inline-end: -8%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 68%);
  pointer-events: none;
}
.stats-row {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px; padding-block: clamp(26px, 4.5vw, 44px); text-align: center;
}
.stat-item strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; font-weight: 700; }
.stat-item span { font-size: .9rem; opacity: .92; }

/* ----------------------------------------------------------------- cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 22px; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover {
  text-decoration: none; box-shadow: var(--shadow-md);
  transform: translateY(-3px); border-color: var(--brand-200);
}

.card-img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--brand-50), var(--bg-soft)); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand-200); }
.card-img-placeholder.tall { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-lg); }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.card-body h3 { margin: 0; font-size: 1.04rem; }
.card-body p { margin: 0; font-size: .89rem; }
.card-cta { margin-top: 8px; color: var(--brand-500); font-weight: 700; font-size: .87rem; }

/* --------------------------------------------------------------- product */

.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .product-layout { grid-template-columns: 1fr; } }

.gallery-main {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--brand-50), var(--bg-soft));
}
.thumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.thumb {
  width: 72px; height: 58px; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--r-sm); background: none;
}
.thumb.is-active { border-color: var(--brand-500); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block; padding: 6px 14px; border-radius: var(--r-pill);
  background: #e7f7ee; color: #12694a; font-size: .82rem; font-weight: 700;
  margin-bottom: 16px;
}
.badge-alt { background: #fdf2e5; color: #8a5116; }

.prose h2 { font-size: 1.18rem; margin-top: 1.5em; }

/* ------------------------------------------------------------------ form */

.quote-box {
  position: relative; overflow: hidden; container-type: inline-size;
  margin-top: 30px; padding: clamp(20px, 3.4vw, 38px);
  background: var(--bg);
  border: 1px solid var(--brand-100); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.quote-box h2 { font-size: clamp(1.45rem, 3vw, 2rem); }

.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 7px; min-width: 0; font-size: .94rem; font-weight: 700; }
.form input, .form textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.form textarea { min-height: 118px; resize: vertical; }
.form-actions { display: grid; gap: 10px; margin-top: 16px; }

/* Honeypot — hidden from humans, still filled in by naive bots.
   Must NOT use off-screen positioning (e.g. left:-9999px): in an RTL document
   that overflows the page and creates thousands of pixels of horizontal
   scroll. This clip-based pattern takes up no space in any direction. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.alert { padding: 13px 16px; border-radius: var(--r-sm); font-weight: 700; }
.alert-ok { background: #e7f7ee; color: #12694a; }
.alert-bad { background: #fdecec; color: #8a1c1c; }

/* ------------------------------------------------------------ info blocks */

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin: 30px 0; }
.info-item {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.info-item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.info-item h3 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-500); margin-bottom: .4em; font-weight: 700;
}
.info-item p { margin: 0; }

.map-wrap { margin-top: 22px; }

/* --------------------------------------------------------------- the map */

.map-section {
  position: relative;
  background: var(--bg-soft); border-top: 1px solid var(--line);
  padding-block: clamp(32px, 5vw, 56px) 0;
}
.map-head { margin-bottom: 18px; }
.map-head h2 { margin-bottom: .25em; }
.map-head p { margin: 0; }
.map-frame {
  width: 100%; height: clamp(280px, 44vh, 440px);
  border-block: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.map-actions { padding-block: 18px; }

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: linear-gradient(180deg, var(--bg-soft), #eaf5fa);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-block: 44px; }
.footer-grid h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-600); font-weight: 700;
}
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--brand-600); }
.footer-logo { width: 200px; height: auto; margin-bottom: 14px; }
.footer-bottom { padding-bottom: 30px; color: var(--ink-soft); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ------------------------------------------------------ floating whatsapp */

.wa-float {
  position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,.42);
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }

@media print { .wa-float, .site-nav, .nav-toggle, .map-section { display: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ news posts */

.post-image {
  width: 100%; border-radius: var(--r-lg); margin: 18px 0 24px;
  border: 1px solid var(--line);
}

.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* -------------------------------------------------------------------- FAQ */

.faq { margin-top: 34px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 10px; background: #fff;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--brand-500); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin: 12px 0 0; color: var(--ink-soft); }

/* ------------------------------------------------------- footer, rebuilt */

.footer-top {
  display: grid; grid-template-columns: 1.15fr .8fr 1.3fr;
  gap: 36px; padding-block: 46px;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

.footer-top h4 {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-600); font-weight: 700; margin-bottom: .9em;
}
.footer-top a { color: var(--ink); }
.footer-top a:hover { color: var(--brand-600); }

.footer-where { grid-column: span 1; }
.where-text { font-style: normal; margin-bottom: 14px; }
.where-text p { margin: 0 0 .5em; }
.where-text .hours { font-size: .9rem; }
.where-text .small-areas { font-size: .85rem; margin-top: .7em; }

.where-map {
  width: 100%; height: 190px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.where-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(.9); }
.map-link { display: inline-block; margin-top: 10px; font-size: .9rem; }

.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  transition: transform .15s, filter .15s;
}
.social-btn:hover { transform: translateY(-2px); text-decoration: none; filter: brightness(1.06); }
.social-btn.fb { background: #1877f2; }
.social-btn.wa { background: var(--wa); }
.social-btn.tel { background: var(--brand-500); }
.social-btn.mail { background: var(--brand-700); }

.footer-bottom { padding-bottom: 30px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; }

/* ==========================================================================
   الإصدار الثاني — الأقسام الجديدة من النموذج المعتمد
   كله بخصائص منطقية (inline-start/end) عشان يشتغل عربي وإنجليزي بنفس الكود.
   ========================================================================== */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--brand-200); color: var(--brand-700);
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: .82rem; font-weight: 700; margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 64, 91, .07);
}

.sec-head { text-align: center; margin-bottom: 30px; }
.sec-head h2 { margin: 0 0 6px; }
.sec-head p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------- الأقسام */

.cats {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 16px; text-align: center; text-decoration: none; color: inherit;
  box-shadow: 0 2px 10px rgba(0, 64, 91, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat:hover, .cat:focus-visible {
  transform: translateY(-3px); border-color: var(--brand-200);
  box-shadow: 0 10px 26px rgba(0, 64, 91, .12);
}
.cat .ic {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px;
  background: var(--brand-50); color: var(--brand-500);
  display: grid; place-items: center;
}
.cat b { display: block; font-size: 1rem; }
.cat small { color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------- المميزات */

.feats {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; box-shadow: 0 2px 10px rgba(0, 64, 91, .06);
}
.feat .ic {
  width: 44px; height: 44px; border-radius: 13px;
  background: var(--brand-500); color: #fff;
  display: grid; place-items: center; margin-bottom: 12px;
}
.feat b { display: block; font-size: 1rem; margin-bottom: 4px; }
.feat p { margin: 0; color: var(--muted); font-size: .92rem; }

/* --------------------------------------------------------- بانر الدعوة */

.section-band { padding-block: 0 60px; }
.band {
  background: linear-gradient(120deg, var(--brand-700), var(--brand-500) 65%, var(--brand-400, #3fb2da));
  color: #fff; border-radius: var(--r-lg, 22px); padding: 36px 32px;
  display: flex; gap: 24px; align-items: center; justify-content: space-between;
  flex-wrap: wrap; box-shadow: 0 12px 32px rgba(0, 64, 91, .18);
}
.band h2 { margin: 0 0 6px; color: #fff; font-size: 1.5rem; }
.band p { margin: 0; opacity: .92; }
.btn-on-band { background: #fff; color: var(--brand-700); box-shadow: none; }

/* الوضع الداكن: نفس هوية الأزرق، بسطوح مريحة للعين بدون تغيير محتوى الموقع. */
html[data-theme=dark] {
  color-scheme: dark;
  --ink:#e7f3f7; --ink-soft:#aac0ca; --line:#294554; --bg:#0b1820; --bg-soft:#101f28;
  --brand-50:#143340; --brand-100:#1a4252; --brand-200:#28586a; --brand-300:#4aafcf;
  --brand-400:#61c9e8; --brand-500:#149dca; --brand-600:#59c7e4; --brand-700:#a5e0f0; --brand-800:#cceff8;
  --blue:#149dca; --blue-dark:#59c7e4; --blue-light:#1a4252;
  --shadow-sm:0 1px 2px rgba(0,0,0,.25); --shadow-md:0 4px 16px rgba(0,0,0,.28);
  --shadow-brand:0 10px 30px rgba(0,0,0,.32);
}
html[data-theme=dark] .site-header { background: rgba(11,24,32,.92); }
html[data-theme=dark] .site-nav, html[data-theme=dark] .site-nav .lang-switch,
html[data-theme=dark] .theme-toggle { background: var(--bg); }
html[data-theme=dark] .hero { background: radial-gradient(1100px 460px at 78% -12%, var(--brand-100), transparent 62%), linear-gradient(168deg, var(--brand-50) 0%, var(--bg) 72%); }
html[data-theme=dark] .btn-ghost, html[data-theme=dark] .card, html[data-theme=dark] input,
html[data-theme=dark] select, html[data-theme=dark] textarea, html[data-theme=dark] .quote-form,
html[data-theme=dark] .faq-item, html[data-theme=dark] .news-card, html[data-theme=dark] .footer-bottom { background: var(--bg-soft); color: var(--ink); }
html[data-theme=dark] .btn-on-band { background: var(--bg); color: var(--brand-700); }
html[data-theme=dark] .alert-ok { background:#123d32; color:#6cdbac; }
html[data-theme=dark] .alert-bad { background:#49242c; color:#ffa7b3; }
html[data-theme=dark] .badge { background:#173d31; color:#71dfaf; }
html[data-theme=dark] .badge-alt { background:#483222; color:#ffbf8a; }
html[data-theme=dark] .site-footer { background: #081218; }
.btn-on-band:hover { background: var(--brand-50); }

/* ------------------------------------------------------ مقاسات المنتج */

.card-sizes { font-size: .8rem; color: var(--muted); }
.card-sizes bdi { unicode-bidi: isolate; }

/* بيانات المقاسات في صفحة المنتج */
.size-picker { margin: 18px 0; }
.size-picker label {
  display: block; font-size: .85rem; font-weight: 700;
  margin-bottom: 6px; color: var(--brand-700);
}
.size-picker select {
  width: 100%; max-width: 340px; font: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: inherit;
}
.size-picker select:focus {
  outline: 0; border-color: var(--brand-400, #3fb2da);
  box-shadow: 0 0 0 4px var(--brand-50);
}

.note-box {
  background: var(--brand-50);
  border-inline-start: 4px solid var(--brand-400, #3fb2da);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px; font-size: .92rem; color: var(--brand-700); margin: 16px 0;
}

/* --------------------------------------------------- مواعيد العمل بالفوتر */

.hours { display: grid; gap: 6px; font-size: .88rem; }
.hours div { display: flex; justify-content: space-between; gap: 14px; }
.hours .state { font-weight: 700; }
/* الفوتر خلفيته فاتحة، فالأخضر لازم يبقى غامق عشان يتقرى. */
.hours .is-open { color: #12734a; }
.hours .is-closed { color: #a5451f; }
.hours .state::before { content: '● '; }

@media (max-width: 640px) {
  .band { padding: 26px 22px; }
  .sec-head { text-align: start; }
}

.hours-head { margin: 16px 0 8px; }
.hours-state { justify-content: flex-start !important; }

/* أي خانة أرقام (تليفون · إيميل) تفضل من الشمال لليمين حتى في الصفحة العربية */
.ltr-field {
  direction: ltr;
  text-align: start;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
}
.phone-combined { display: grid; grid-template-columns: minmax(130px, .42fr) minmax(0, 1fr); min-width: 0; overflow: hidden; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); transition: .15s ease; }
.phone-combined:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.form .phone-combined select,
.form .phone-combined input { width: 100%; min-width: 0; min-height: 50px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.form .phone-combined select { border-inline-end: 1px solid var(--line); color: var(--brand-700); font-weight: 800; }
.form .phone-combined select:focus,
.form .phone-combined input:focus { border: 0; box-shadow: none; }

/* طبقة أخيرة للوضع الداكن: بعض مكوّنات الصفحة تُعرّف بعد قواعد المظهر
   الأساسية، لذلك نجمعها هنا حتى لا تظل كروت بيضاء وسط الصفحة الداكنة. */
html[data-theme=dark] body { background: var(--bg); color: var(--ink); }
html[data-theme=dark] .site-header,
html[data-theme=dark] .site-nav,
html[data-theme=dark] .eyebrow,
html[data-theme=dark] .cat,
html[data-theme=dark] .feat,
html[data-theme=dark] .card,
html[data-theme=dark] .info-item,
html[data-theme=dark] .faq-item,
html[data-theme=dark] .quote-box,
html[data-theme=dark] .form-check,
html[data-theme=dark] .size-picker select,
html[data-theme=dark] .form input,
html[data-theme=dark] .form textarea,
html[data-theme=dark] .btn-ghost,
html[data-theme=dark] .site-footer,
html[data-theme=dark] .footer-bottom { background: var(--bg-soft); color: var(--ink); }
html[data-theme=dark] .site-nav a,
html[data-theme=dark] .footer-top a,
html[data-theme=dark] .site-footer a { color: var(--ink); }
html[data-theme=dark] .site-nav a.active { color: #fff; }
html[data-theme=dark] .hero { background: radial-gradient(1100px 460px at 78% -12%, var(--brand-100), transparent 62%), linear-gradient(168deg, var(--brand-50) 0%, var(--bg) 72%); }
html[data-theme=dark] .section-alt,
html[data-theme=dark] .map-section { background: var(--bg-soft); }
html[data-theme=dark] .badge { background: var(--ok-bg); color: var(--ok); }
html[data-theme=dark] .badge-alt { background: var(--warn-bg); color: var(--warn); }

/* حلول تجهيز المحلات: جزء قصير قابل للقراءة يربط المنتجات بما يبحث عنه العميل. */
.solutions-section { padding-top: 28px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.solution-card { position: relative; min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); overflow: hidden; }
.solution-card h3 { color: var(--brand-700); margin: 25px 0 8px; }
.solution-card p { color: var(--ink-soft); font-size: .93rem; }
.solution-card .link { display: inline-block; margin-top: 7px; }
.solution-number { position: absolute; inset-block-start: 15px; inset-inline-end: 18px; color: var(--brand-300); font-size: 1.35rem; font-weight: 800; }
html[data-theme=dark] .solution-card { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 800px) { .solutions-grid { grid-template-columns: 1fr; } }

.project-flow-section { padding-top: 28px; }
.project-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-soft); }
.project-flow article { display: flex; gap: 14px; padding: 22px; border-inline-end: 1px solid var(--line); }
.project-flow article:last-child { border-inline-end: 0; }
.project-flow article > span { color: var(--brand-500); font-weight: 800; font-size: 1.15rem; }
.project-flow h3 { margin: 0 0 6px; color: var(--brand-700); font-size: 1rem; }
.project-flow p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
html[data-theme=dark] .project-flow { background: var(--bg-soft); }
@media (max-width: 800px) { .project-flow { grid-template-columns: 1fr; } .project-flow article { border-inline-end: 0; border-bottom: 1px solid var(--line); } .project-flow article:last-child { border-bottom: 0; } }

/* ===========================================================================
   الواجهة العامة V3 — حضور بصري أوضح ومسار تحويل أقصر
   =========================================================================== */

.site-header { box-shadow: 0 1px 0 rgba(0,64,91,.04); }
.header-inner { min-height: 82px; }
.site-nav .nav-cta { margin-inline-start: 8px; padding-inline: 18px; color: #fff; background: var(--brand-500); box-shadow: var(--shadow-brand); }
.site-nav .nav-cta:hover { color: #fff; background: var(--brand-600); }
.site-nav .nav-cta.active { color: #fff; background: var(--brand-700); }

.hero { min-height: 660px; display: grid; align-items: center; }
.hero-inner { grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr); gap: clamp(36px, 6vw, 76px); padding-block: clamp(64px, 9vw, 112px); }
.hero-text h1 { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.12; }
.hero-text p { max-width: 58ch; font-size: clamp(1.04rem, 1.6vw, 1.22rem); }
.hero-actions .btn { min-height: 50px; padding-inline: 22px; }
.hero-proofs { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 23px; color: var(--ink-soft); font-size: .88rem; font-weight: 700; }
.hero-proofs span::first-letter { color: var(--brand-500); }

.hero-showcase { position: relative; min-width: 0; padding: 22px 22px 70px; }
.hero-showcase::before { content: ''; position: absolute; inset: 5% 0 12%; border-radius: 46% 54% 40% 60% / 52% 42% 58% 48%; background: linear-gradient(145deg, var(--brand-100), rgba(255,255,255,.78)); transform: rotate(-3deg); }
.hero-showcase-frame { position: relative; z-index: 1; aspect-ratio: 1 / 1; border: 1px solid rgba(255,255,255,.72); border-radius: 34px; overflow: hidden; background: rgba(255,255,255,.78); box-shadow: 0 30px 70px rgba(0,74,101,.2); backdrop-filter: blur(10px); }
.hero-showcase-frame img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.hero-showcase-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand-300); font-size: clamp(2rem, 6vw, 4rem); font-weight: 800; }
.hero-product-label { position: absolute; z-index: 2; inset-inline-start: 0; inset-block-end: 18px; width: min(330px, 82%); display: grid; gap: 2px; padding: 14px 17px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); color: var(--ink); }
.hero-product-label:hover { text-decoration: none; transform: translateY(-2px); }
.hero-product-label small { color: var(--brand-500); font-weight: 700; }
.hero-product-label strong { font-size: .98rem; }
.hero-product-label span { color: var(--ink-soft); font-size: .8rem; }

.products-page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 32px; align-items: end; margin-bottom: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(145deg, var(--brand-50), var(--bg)); }
.products-page-head h1 { margin-bottom: 8px; }
.products-page-head p { max-width: 65ch; margin: 0; color: var(--ink-soft); }
.products-search { position: relative; display: flex; align-items: center; }
.products-search > span { position: absolute; inset-inline-start: 15px; color: var(--brand-500); font-size: 1.35rem; pointer-events: none; }
.products-search input { width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); padding: 12px 48px 12px 18px; font: inherit; }
html[dir=ltr] .products-search input { padding: 12px 18px 12px 48px; }
.products-search input:focus { outline: 0; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.products-no-match { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--ink-soft); }

.product-card { min-width: 0; box-shadow: var(--shadow-sm); }
.product-card .card-img { aspect-ratio: 1 / 1; background: linear-gradient(155deg, #fff, var(--brand-50)); }
.product-card .card-img img { object-fit: contain; padding: 14px; transition: transform .3s ease; }
.product-card:hover .card-img img { transform: scale(1.035); }
.product-card .card-body { min-height: 210px; padding: 19px 20px 22px; }
.product-card .card-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.product-card .card-cta::after { content: '←'; }
html[dir=ltr] .product-card .card-cta::after { content: '→'; }
.product-card[hidden] { display: none !important; }

.product-layout { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(30px, 5vw, 64px); }
.gallery-main { aspect-ratio: 1 / 1; object-fit: contain; padding: 18px; background: linear-gradient(155deg, #fff, var(--brand-50)); box-shadow: var(--shadow-sm); }
.product-info > h1 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 12px; }
.product-info > .lead { font-size: 1.08rem; }
.product-info .quote-box { box-shadow: var(--shadow-md); }

.public-page-head { max-width: 820px; margin-bottom: 30px; }
.public-page-head p { color: var(--ink-soft); font-size: 1.04rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.about-story { min-height: 100%; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.about-story p { font-size: 1.04rem; }
.about-info { grid-template-columns: 1fr; gap: 10px; margin: 0; }
.about-flow { margin-top: 28px; }
.legal-page { max-width: 900px; }
.legal-card { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.legal-card h2 { margin-top: 30px; color: var(--brand-700); font-size: 1.18rem; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p { color: var(--ink-soft); line-height: 1.9; }
.legal-card a { color: var(--brand-600); font-weight: 800; }
.contact-layout { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(0, 1.45fr); gap: 28px; align-items: start; }
.contact-details { position: sticky; top: 105px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-soft); }
.contact-details h2 { font-size: 1.15rem; }
.contact-details .info-grid { grid-template-columns: 1fr; gap: 10px; margin: 18px 0 0; }
.contact-details .info-item { padding: 15px 16px; }
.contact-layout .quote-box { margin-top: 0; background: var(--bg); }
.form select { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.form select:focus { outline: none; border-color: var(--brand-400); box-shadow: 0 0 0 4px var(--brand-100); }
.project-fields { margin: 3px 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.project-fields legend { padding-inline: 8px; color: var(--brand-700); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }

/* ---------------------------------------------------- smart quote request */
.quote-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.quote-form-head h2 { margin: 7px 0 6px; color: var(--brand-800); }
.quote-form-head p { max-width: 68ch; margin: 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.quote-kicker { display: inline-flex; align-items: center; gap: 7px; color: #08704a; font-size: .84rem; font-weight: 800; }
.quote-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #12b76a; box-shadow: 0 0 0 4px #dff8eb; }
.quote-main-layout { display: grid; gap: 20px; align-items: start; }
.quote-fields { display: grid; gap: 18px; min-width: 0; }
.quote-form [hidden] { display: none !important; }
.quote-section { display: grid; gap: 16px; padding: clamp(17px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-soft); }
.quote-section-head { display: flex; align-items: center; gap: 11px; }
.quote-section-head > span { display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; background: var(--brand-500); color: #fff; font-weight: 800; }
.quote-section-head h3 { margin: 0; color: var(--brand-800); font-size: 1.05rem; }
.field-optional { margin-inline-start: 6px; color: var(--ink-soft); font-size: .74rem; font-weight: 500; }
.required-mark { color: #b42318; }
.hint { display: block; color: var(--ink-soft); font-size: .78rem; font-weight: 400; line-height: 1.55; }
.contact-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-choice legend { margin-bottom: 8px; font-size: .94rem; font-weight: 700; }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-card { position: relative; display: block !important; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: grid; place-items: center; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink-soft); text-align: center; transition: .15s ease; }
.choice-card input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-700); box-shadow: 0 0 0 2px var(--brand-100); }
.choice-card input:focus-visible + span { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.selected-product { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--brand-200); border-radius: var(--r-sm); background: var(--bg); }
.selected-product img { width: 58px; height: 58px; object-fit: contain; border-radius: 9px; background: var(--brand-50); }
.selected-product span, .selected-product strong { display: block; }
.selected-product span { color: var(--ink-soft); font-size: .76rem; }
.selected-product strong { margin-top: 2px; color: var(--brand-800); }
.input-unit { position: relative; }
.input-unit input { padding-inline-end: 48px; }
.input-unit > span { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-weight: 700; pointer-events: none; }
.quote-more { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); overflow: hidden; }
.quote-more > summary { display: flex; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; color: var(--brand-700); }
.quote-more > summary::-webkit-details-marker { display: none; }
.quote-more > summary::after { content: '+'; margin-inline-start: auto; font-size: 1.4rem; font-weight: 400; }
.quote-more[open] > summary::after { content: '−'; }
.quote-more > summary span, .quote-more > summary small { display: block; }
.quote-more > summary small { margin-top: 3px; color: var(--ink-soft); font-size: .78rem; font-weight: 400; }
.quote-more-fields { display: grid; gap: 15px; padding: 0 18px 18px; }
.file-field input[type=file] { min-height: 54px; padding: 9px; border-style: dashed; background: var(--bg-soft); cursor: pointer; }
.file-field input[type=file]::file-selector-button { margin-inline-end: 10px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--brand-100); color: var(--brand-700); font: inherit; font-weight: 700; cursor: pointer; }
.file-selection { color: var(--brand-700); font-size: .8rem; font-weight: 700; }
.project-toggle { display: flex !important; align-items: center; gap: 12px; margin-top: 2px; padding: 14px 15px; border: 1.5px dashed var(--brand-300); border-radius: var(--r-sm); background: var(--bg); cursor: pointer; }
.project-toggle input { flex: 0 0 auto; width: 21px; min-width: 21px; height: 21px; min-height: 21px; margin: 0; accent-color: var(--brand-500); }
.project-toggle span, .project-toggle strong, .project-toggle small { display: block; }
.project-toggle strong { color: var(--brand-700); font-size: .92rem; }
.project-toggle small { margin-top: 3px; color: var(--ink-soft); font-size: .78rem; font-weight: 400; line-height: 1.5; }
.quote-project-section { border-style: dashed; }
.quote-summary { padding: 18px; border: 1px solid var(--brand-200); border-radius: var(--r-md); background: linear-gradient(155deg, var(--brand-50), var(--bg)); }
.quote-summary h3 { margin: 0 0 10px; color: var(--brand-800); font-size: 1rem; }
.quote-summary-empty { margin: 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.65; }
.quote-summary dl { display: grid; gap: 8px; margin: 0; }
.quote-summary dl:empty { display: none; }
.quote-summary dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--brand-100); }
.quote-summary dt { color: var(--ink-soft); font-size: .78rem; }
.quote-summary dd { margin: 0; color: var(--ink); font-size: .84rem; font-weight: 800; text-align: end; }
.terms-check { margin-top: 15px; padding: 10px 11px; background: transparent; }
.terms-check a { color: var(--brand-700); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.quote-submit { width: 100%; min-height: 50px; }
.quote-submit[disabled] { cursor: wait; opacity: .72; }
.btn-wa-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1.5px solid #18a765; border-radius: var(--r-pill); color: #087a49; background: var(--bg); font-weight: 800; }
.btn-wa-secondary:hover { background: #eafbf2; text-decoration: none; }
.quote-alert { margin: 0 0 18px; }
.quote-success { max-width: 560px; margin: 26px auto 8px; padding: 28px; text-align: center; }
.quote-success-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: #dcfce7; color: #087a49; font-size: 1.8rem; font-weight: 900; }
.quote-success h3 { margin: 0 0 8px; color: var(--brand-800); font-size: 1.35rem; }
.quote-success p { color: var(--ink-soft); }
.quote-reference { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 18px; padding: 10px 15px; border: 1px solid var(--brand-200); border-radius: var(--r-sm); background: var(--brand-50); }
.quote-reference span { color: var(--ink-soft); font-size: .83rem; }
.quote-reference strong { color: var(--brand-800); letter-spacing: .04em; }

@container (min-width: 700px) {
  .quote-main-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr); gap: 24px; }
  .quote-summary { position: sticky; top: 96px; }
}

.solution-hero { padding-block: clamp(50px, 8vw, 92px); background: radial-gradient(760px 360px at 80% 0%, var(--brand-200), transparent 70%), var(--brand-50); border-bottom: 1px solid var(--line); }
.solution-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.solution-hero h1 { max-width: 18ch; }
.solution-hero p { color: var(--ink-soft); font-size: 1.05rem; }
.solution-brief { padding: 26px; border: 1px solid var(--brand-200); border-radius: var(--r-lg); background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: var(--shadow-md); }
.solution-brief b { color: var(--brand-700); font-size: 1.08rem; }
.solution-brief ol { margin: 17px 0 0; padding-inline-start: 22px; color: var(--ink-soft); }
.solution-scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.solution-scope-card { position: relative; min-height: 230px; padding: 25px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--shadow-sm); }
.solution-scope-card > span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 28px; border-radius: 13px; background: var(--brand-50); color: var(--brand-600); font-weight: 800; }
.solution-scope-card h3 { color: var(--brand-700); }
.solution-scope-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

html[data-theme=dark] .hero-showcase-frame,
html[data-theme=dark] .hero-product-label,
html[data-theme=dark] .products-page-head,
html[data-theme=dark] .contact-details,
html[data-theme=dark] .about-story,
html[data-theme=dark] .legal-card,
html[data-theme=dark] .solution-brief,
html[data-theme=dark] .solution-scope-card,
html[data-theme=dark] .project-fields { background: var(--bg-soft); color: var(--ink); }
html[data-theme=dark] .quote-section,
html[data-theme=dark] .file-field input[type=file] { background: var(--bg-soft); }
html[data-theme=dark] .quote-summary { background: linear-gradient(155deg, var(--brand-50), var(--bg-soft)); }
html[data-theme=dark] .product-card .card-img { background: linear-gradient(155deg, var(--bg-soft), var(--brand-50)); }

@media (max-width: 940px) {
  .hero { min-height: auto; }
  .hero-inner, .solution-hero-inner, .contact-layout, .about-layout, .product-layout { grid-template-columns: 1fr; }
  .hero-showcase { max-width: 620px; width: 100%; margin-inline: auto; }
  .contact-layout .quote-box { order: -1; }
  .contact-details { position: static; }
  .solution-scope-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .products-page-head { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 70px; }
  .hero-inner { padding-block: 48px 68px; }
  .hero-text h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .hero-showcase { padding-inline: 0; }
  .hero-showcase-frame { border-radius: 24px; }
  .hero-product-label { inset-inline-start: 12px; }
  .products-page-head { padding: 22px 18px; }
  .form-row, .solution-scope-grid { grid-template-columns: 1fr; }
  .project-fields { padding: 14px; }
  .site-nav .nav-cta { margin: 8px 0 0; }
}

@media (max-width: 440px) {
  .quote-box { padding: 17px 14px; border-radius: var(--r-md); }
  .quote-section { padding: 15px 12px; }
  .phone-combined { grid-template-columns: minmax(116px, .44fr) minmax(0, 1fr); }
  .form .phone-combined select { padding-inline: 8px; font-size: .82rem; }
  .form input, .form select, .form textarea { padding-inline: 11px; }
  .choice-row { gap: 6px; }
  .choice-card span { padding-inline: 5px; font-size: .8rem; }
}
