/* ══════════════════════════════════════════════
   نُور للطاقة الشمسية — Design tokens
   Palette: Organic Biophilic (emerald + solar gold)
   ══════════════════════════════════════════════ */
:root {
  --bg: #F6FBF8;
  --bg-2: #FFFFFF;
  --surface: rgba(255, 255, 255, .74);
  --surface-solid: #FFFFFF;
  --surface-soft: #ECFDF5;
  --border: #D8EDE5;
  --border-strong: #B9E3D3;
  --text: #052E23;
  --text-muted: #5A7A6F;
  --primary: #059669;
  --primary-2: #10B981;
  --primary-ink: #FFFFFF;
  --accent: #F59E0B;
  --accent-2: #FBBF24;
  --accent-soft: #FEF3C7;
  --danger: #DC2626;
  --success: #047857;
  --grad-primary: linear-gradient(135deg, #059669, #10B981);
  --grad-sun: linear-gradient(135deg, #FBBF24, #F59E0B);
  --ring: rgba(5, 150, 105, .35);
  --shadow-sm: 0 2px 10px rgba(4, 60, 44, .06);
  --shadow: 0 12px 32px rgba(4, 60, 44, .09);
  --shadow-lg: 0 26px 64px rgba(4, 60, 44, .14);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --icon-sm: 18px;
  --icon-md: 22px;
  --icon-lg: 28px;
  --maxw: 1160px;
  --t-fast: .15s ease;
  --t: .28s cubic-bezier(.16, 1, .3, 1);
}
[data-theme="dark"] {
  --bg: #04150F;
  --bg-2: #061C15;
  --surface: rgba(255, 255, 255, .05);
  --surface-solid: #0A241B;
  --surface-soft: rgba(16, 185, 129, .10);
  --border: rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .20);
  --text: #EAF7F1;
  --text-muted: #96B7AB;
  --primary: #10B981;
  --primary-2: #34D399;
  --primary-ink: #04231A;
  --accent: #FBBF24;
  --accent-soft: rgba(251, 191, 36, .14);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .55);
  --ring: rgba(52, 211, 153, .45);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: 'DM Sans', 'Noto Sans Arabic', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.8;
  font-size: 16px; min-height: 100dvh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; transition: background var(--t), color var(--t);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.skip-link { position: absolute; inset-inline-start: -999px; top: .5rem; z-index: 200; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { inset-inline-start: .5rem; }
.bg-decor {
  position: fixed; inset: -30% -10% auto -10%; height: 78vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 78% 8%, rgba(245, 158, 11, .16), transparent 62%),
    radial-gradient(ellipse 55% 55% at 18% 0%, rgba(16, 185, 129, .18), transparent 60%);
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { color: var(--text-muted); }
.lead { font-size: clamp(1rem, 1.6vw, 1.12rem); }
.muted { color: var(--text-muted); font-size: .82rem; display: block; }
.grad { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 + p, h3 + p { margin-top: .5rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-size: .93rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn svg { width: var(--icon-sm); height: var(--icon-sm); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--grad-primary); color: var(--primary-ink); box-shadow: 0 8px 26px rgba(5, 150, 105, .28); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(5, 150, 105, .38); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-soft); transform: translateY(-2px); }
.btn-sm { padding: .52rem 1.05rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[data-loading="true"] { pointer-events: none; opacity: .75; }

/* ── Icon tiles / badges ── */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 1rem;
  background: var(--surface-soft); color: var(--primary);
  border: 1px solid var(--border);
}
.icon-tile svg { width: var(--icon-lg); height: var(--icon-lg); stroke-width: 1.75; }
.icon-tile.sm { width: 42px; height: 42px; border-radius: 13px; margin: 0; flex: 0 0 auto; }
.icon-tile.sm svg { width: var(--icon-md); height: var(--icon-md); }
.icon-tile.lg { width: 68px; height: 68px; border-radius: 22px; }
.icon-tile.lg svg { width: 34px; height: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; width: fit-content;
  font-size: .75rem; font-weight: 700; padding: .3rem .75rem; border-radius: var(--r-pill);
  background: var(--surface-soft); color: var(--primary); border: 1px solid var(--border);
}
.badge svg { width: 14px; height: 14px; }
.badge.green { background: rgba(5, 150, 105, .12); }
.badge.amber { background: var(--accent-soft); color: #B45309; border-color: rgba(245, 158, 11, .3); }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--primary); margin-bottom: .6rem; text-transform: uppercase; }
.eyebrow svg { width: var(--icon-sm); height: var(--icon-sm); }

/* ── Surfaces ── */
.glass {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.6rem; backdrop-filter: blur(12px); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; gap: .35rem;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 13px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  color: var(--text); transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-soft); transform: translateY(-2px); color: var(--primary); }
.icon-btn svg { width: var(--icon-md); height: var(--icon-md); stroke-width: 1.75; }

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { display: inline-flex; color: var(--primary); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--text-muted); }
.nav-links { display: flex; gap: .35rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: var(--r-pill); font-size: .92rem; font-weight: 600;
  color: var(--text-muted); transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--surface-soft); }
.nav-actions { display: flex; align-items: center; gap: .55rem; }
.nav-burger { display: none; }
.nav-mobile { display: none; flex-direction: column; gap: .2rem; padding: .75rem clamp(1rem, 4vw, 2rem) 1.25rem; border-top: 1px solid var(--border); background: var(--bg-2); }
.nav-mobile a { padding: .75rem .5rem; border-radius: var(--r-sm); font-weight: 600; color: var(--text-muted); }
.nav-mobile a:hover { background: var(--surface-soft); color: var(--primary); }

/* ── Hero ── */
.hero { position: relative; z-index: 1; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.hero-copy h1 { margin-bottom: .2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .88rem; font-weight: 600; color: var(--text-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: .35rem; }
.hero-points svg { width: 16px; height: 16px; color: var(--primary); }
.hero-visual { position: relative; }
.hero-art { padding: .55rem; overflow: hidden; }
.hero-art svg { border-radius: var(--r); }
.chip {
  position: absolute; display: flex; align-items: center; gap: .6rem; padding: .7rem .95rem;
  border-radius: var(--r); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.chip svg { width: var(--icon-md); height: var(--icon-md); color: var(--accent); flex: 0 0 auto; }
.chip div { display: flex; flex-direction: column; line-height: 1.3; }
.chip strong { font-size: .95rem; }
.chip span { font-size: .72rem; color: var(--text-muted); }
.chip-a { inset-block-end: -1.1rem; inset-inline-start: -1.4rem; }
.chip-b { inset-block-start: 1.1rem; inset-inline-end: -1.2rem; animation-delay: 1.6s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-9px) } }

/* ── Sections ── */
.section { position: relative; z-index: 1; padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

/* ── Stats band ── */
.stats-band { position: relative; z-index: 1; padding: 0 0 clamp(2rem, 4vw, 3rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem;
  background: var(--grad-primary); border-radius: var(--r-lg); padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(5, 150, 105, .22); color: #fff;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #fff; }
.stat span { font-size: .85rem; color: rgba(255, 255, 255, .82); }

/* ── Feature list ── */
.feature-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature-list li { display: flex; gap: .9rem; align-items: flex-start; }
.feature-list strong { display: block; font-size: 1rem; }
.feature-list p { font-size: .9rem; }
.mini { display: grid; gap: .3rem; margin-top: .75rem; }
.mini li { position: relative; padding-inline-start: 1.15rem; font-size: .86rem; color: var(--text-muted); }
.mini li::before { content: ""; position: absolute; inset-inline-start: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ── Panel + bars ── */
.panel { padding: clamp(1.25rem, 3vw, 1.9rem); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.panel-head strong { font-size: 1.05rem; display: block; }
.bars { display: grid; gap: 1rem; }
.bar-row { display: grid; grid-template-columns: 4.6rem 1fr 3rem; align-items: center; gap: .7rem; font-size: .88rem; font-weight: 600; }
.bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-soft); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--grad-primary); animation: barGrow 1s cubic-bezier(.16, 1, .3, 1) forwards; }
@keyframes barGrow { from { width: 0 } }
.bar i[style*="--w"] { width: var(--w); }
.bar-row:nth-child(2) i { background: var(--grad-sun); }
.bar-row b { text-align: end; font-weight: 700; color: var(--primary); }
.panel-foot { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.panel-foot svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); flex: 0 0 auto; margin-top: .3rem; }
.panel-foot p { font-size: .82rem; }

/* ── Calculator ── */
.calc-section { background: linear-gradient(180deg, transparent, rgba(5, 150, 105, .05)); }
.calc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: start; }
.calc-form { padding: clamp(1.25rem, 3vw, 1.9rem); display: grid; gap: 1.1rem; }
.contact-form { padding: clamp(1.25rem, 3vw, 1.9rem); display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
label { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; padding: .7rem .95rem; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface-solid); color: var(--text); font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .78rem; font-weight: 600; }
.range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .9rem; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 8px; border-radius: var(--r-pill);
  background: var(--surface-soft); border: 1px solid var(--border); cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad-sun); border: 3px solid var(--bg-2); box-shadow: 0 3px 10px rgba(245, 158, 11, .5); cursor: grab;
}
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--bg-2); border-radius: 50%; background: var(--accent); cursor: grab; }
.range-row output { min-width: 5.6rem; text-align: center; font-size: .88rem; font-weight: 700; color: var(--primary); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .22rem .6rem; }
.calc-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.calc-actions .btn-primary { flex: 1 1 12rem; }
.hint { display: flex; align-items: flex-start; gap: .45rem; font-size: .78rem; color: var(--text-muted); }
.hint svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: .35rem; color: var(--primary); }

/* ── Results ── */
.results { padding: clamp(1.25rem, 3vw, 1.9rem); min-height: 22rem; display: flex; flex-direction: column; justify-content: center; }
.empty-state { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem; }
.empty-state .icon-tile { margin-bottom: .35rem; }
.empty-state p { font-size: .9rem; max-width: 34ch; }
.res-head h3 { font-size: 1.2rem; }
.res-head h3 b { color: var(--primary); }
.res-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .7rem; margin: 1.25rem 0; }
.res-tile {
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--r);
  padding: .9rem; display: flex; flex-direction: column; gap: .15rem;
  transition: transform var(--t), box-shadow var(--t);
}
.res-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.res-tile svg { width: var(--icon-md); height: var(--icon-md); color: var(--primary); }
.res-tile strong { font-size: 1.15rem; font-weight: 800; }
.res-tile span { font-size: .76rem; color: var(--text-muted); }
.res-tile.highlight { background: var(--surface-soft); border-color: var(--border-strong); }
.res-note { font-size: .78rem; color: var(--text-muted); border-top: 1px dashed var(--border-strong); padding-top: .9rem; margin-top: 1rem; }
.skeleton { height: 1rem; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--surface-soft) 25%, var(--border) 50%, var(--surface-soft) 75%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.skeleton.w-60 { width: 60%; } .skeleton.w-40 { width: 40%; } .skeleton.w-80 { width: 80%; }
.skel-stack { display: grid; gap: .8rem; }
@keyframes shimmer { from { background-position: 220% 0 } to { background-position: -20% 0 } }

/* ── Tabs & projects ── */
.tabs { display: flex; flex-wrap: wrap; gap: .35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .3rem; width: fit-content; margin-bottom: 1.75rem; }
.tab {
  border: none; background: transparent; cursor: pointer; padding: .5rem 1.1rem; border-radius: var(--r-pill);
  font-size: .88rem; font-weight: 600; color: var(--text-muted); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.tab:hover { color: var(--primary); }
.tab.active { background: var(--grad-primary); color: var(--primary-ink); box-shadow: 0 6px 18px rgba(5, 150, 105, .28); }
.project { padding: 0 0 1.4rem; gap: 0; overflow: hidden; }
.project > *:not(.thumb) { padding-inline: 1.4rem; }
.project .badge { margin-top: 1.1rem; }
.project h3 { margin-top: .7rem; padding-inline: 1.4rem; }
.project p { font-size: .9rem; margin-top: .35rem; }
.thumb { height: 140px; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; overflow: hidden; }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 18px),
                    repeating-linear-gradient(-25deg, rgba(255, 255, 255, .10) 0 1px, transparent 1px 18px);
}
.thumb-a { background: linear-gradient(135deg, #064E3B, #059669 55%, #34D399); }
.thumb-b { background: linear-gradient(135deg, #0B3A52, #0E7490 55%, #22D3EE); }
.thumb-c { background: linear-gradient(135deg, #422006, #B45309 55%, #FBBF24); }
.thumb-d { background: linear-gradient(135deg, #14532D, #4D7C0F 55%, #A3E635); }
.project-meta { display: flex; gap: 1.2rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.project-meta dt { display: inline-flex; align-items: center; gap: .3rem; font-size: .76rem; color: var(--text-muted); }
.project-meta dt svg { width: 15px; height: 15px; color: var(--accent); }
.project-meta dd { font-size: 1rem; font-weight: 800; margin-top: .1rem; }
.tabs-empty { text-align: center; padding: 2rem; color: var(--text-muted); }

/* ── Timeline ── */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.1rem; counter-reset: step; }
.timeline li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem 1.4rem; backdrop-filter: blur(12px); box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.timeline li:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.timeline li::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 1.4rem; width: 46px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad-sun); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad-primary); color: #fff; font-weight: 800; margin-bottom: .85rem; }
.step-time { display: inline-block; margin-top: .8rem; font-size: .74rem; font-weight: 700; color: var(--primary); background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--r-pill); padding: .18rem .6rem; }

/* ── Testimonials ── */
.testimonials { background: linear-gradient(180deg, transparent, rgba(245, 158, 11, .06), transparent); }
.quote-card { gap: .85rem; padding: 1.6rem; }
.stars { display: flex; gap: .15rem; }
.stars svg { width: 17px; height: 17px; color: var(--accent); fill: var(--accent); stroke-width: 1.5; }
.quote-card blockquote { font-size: .95rem; line-height: 1.85; color: var(--text); }
.quote-card figcaption { display: flex; align-items: center; gap: .7rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); }
.quote-card figcaption div { display: flex; flex-direction: column; line-height: 1.35; }
.quote-card figcaption span:not(.avatar) { font-size: .78rem; color: var(--text-muted); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%; background: var(--grad-primary); color: #fff; font-weight: 700; font-size: .9rem;
  box-shadow: 0 6px 16px rgba(5, 150, 105, .28);
}

/* ── Accordion ── */
.faq-col { align-items: start; }
.accordion { display: grid; gap: .7rem; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.acc-item.open { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; background: transparent; border: none; cursor: pointer;
  font-size: .98rem; font-weight: 700; text-align: start; color: var(--text);
  transition: background var(--t-fast), color var(--t-fast);
}
.acc-head:hover { background: var(--surface-soft); color: var(--primary); }
.acc-head svg { width: var(--icon-md); height: var(--icon-md); color: var(--primary); transition: transform var(--t); flex: 0 0 auto; }
.acc-item.open .acc-head svg { transform: rotate(180deg); }
.acc-body { padding: 0 1.25rem 1.2rem; animation: fadeUp .3s ease; }
.acc-body p { font-size: .9rem; }

/* ── Contact ── */
.contact-col { align-items: start; }
.contact-list { display: grid; gap: .9rem; margin-top: 1.5rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; }
.contact-list div { display: flex; flex-direction: column; line-height: 1.4; }
.contact-list strong { font-size: .92rem; }
.contact-list a, .contact-list span { font-size: .88rem; color: var(--text-muted); }
.contact-list a:hover { color: var(--primary); }

/* ── CTA band ── */
.cta-band { position: relative; z-index: 1; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: linear-gradient(120deg, #04231A, #064E3B 55%, #0B7A57);
  border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); color: #fff;
  box-shadow: 0 26px 60px rgba(4, 35, 26, .3); position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; inset-block-start: -60%; inset-inline-end: -10%; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(251, 191, 36, .35), transparent 65%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { color: #fff; max-width: 34ch; }
.cta-inner p { color: rgba(255, 255, 255, .82); margin-top: .4rem; }
.cta-inner .btn-primary { background: var(--grad-sun); color: #3B2404; box-shadow: 0 10px 30px rgba(245, 158, 11, .38); }

/* ── Footer ── */
.footer { position: relative; z-index: 1; background: var(--bg-2); border-top: 1px solid var(--border); padding: clamp(2rem, 5vw, 3.2rem) 0 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.75rem; }
.footer-desc { font-size: .88rem; margin-top: .9rem; max-width: 38ch; }
.footer h4 { font-size: .95rem; margin-bottom: .7rem; }
.footer ul { display: grid; gap: .45rem; }
.footer ul a { font-size: .88rem; color: var(--text-muted); transition: color var(--t-fast), padding var(--t-fast); }
.footer ul a:hover { color: var(--primary); padding-inline-start: .25rem; }
.socials { display: flex; gap: .5rem; margin-top: 1.1rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: transform var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.socials a:hover { transform: translateY(-3px); color: var(--primary); background: var(--surface-soft); }
.socials svg { width: var(--icon-sm); height: var(--icon-sm); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 2rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: .8rem; }
.legal { display: flex; gap: .5rem; }
.legal a:hover { color: var(--primary); }

/* ── Back to top + toast ── */
.to-top {
  position: fixed; inset-block-end: 1.4rem; inset-inline-start: 1.4rem; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-solid); color: var(--primary); cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t-fast);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--surface-soft); }
.to-top svg { width: var(--icon-md); height: var(--icon-md); margin-inline: auto; }
.toast-wrap { position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; z-index: 90; display: grid; gap: .55rem; max-width: min(92vw, 380px); }
.toast {
  display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1.05rem; border-radius: var(--r);
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .88rem; font-weight: 600; animation: toastIn .3s cubic-bezier(.16, 1, .3, 1);
}
.toast svg { width: var(--icon-md); height: var(--icon-md); flex: 0 0 auto; }
.toast.success { border-color: rgba(5, 150, 105, .4); color: var(--success); }
.toast.error { border-color: rgba(220, 38, 38, .4); color: var(--danger); }
.toast.info { border-color: var(--border-strong); color: var(--text); }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) } }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-mobile.open { display: flex; }
  .hero-grid, .two-col, .calc-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.5rem; }
  .chip-a { inset-inline-start: -0.5rem; }
  .chip-b { inset-inline-end: -0.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav-inner { height: 64px; }
  .nav-actions .btn-sm span { display: none; }
  .brand-text em { display: none; }
  .hero-visual { margin-top: 1rem; }
  .chip { position: static; animation: none; margin-top: .7rem; }
  .chip-a, .chip-b { inset: auto; }
  .chip-wrap { display: grid; gap: .6rem; }
  .stats-grid { padding: 1.4rem 1rem; }
  .bar-row { grid-template-columns: 3.8rem 1fr 2.6rem; font-size: .82rem; }
  .toast-wrap { inset-inline: 1rem; inset-block-end: 1rem; }
  .to-top { inset-block-end: 1rem; inset-inline-start: 1rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── Inline spinner (no icon-font dependency) ── */
.spinner {
  width: 17px; height: 17px; border-radius: 50%; display: inline-block; flex: 0 0 auto;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.btn-ghost .spinner, .btn-primary .spinner { border-color: var(--border-strong); border-top-color: var(--primary); }
