/* =========================================================
   RIA Energy Consultancy — site styles
   Palette taken from the RIA logo: deep ink navy + leaf greens
   ========================================================= */

:root {
  --ink: #0B2530;
  --ink-2: #113240;
  --ink-3: #1A4252;
  --leaf: #2F8F3A;
  --leaf-bright: #7BC93E;
  --leaf-deep: #1F6B27;

  --bg: #F5F8F4;
  --bg-alt: #ECF2EC;
  --surface: #FFFFFF;
  --text: #0B1F27;
  --muted: #52646B;
  --line: #DCE5DE;
  --accent: var(--leaf);
  --accent-soft: rgba(47, 143, 58, .1);
  --danger: #C2410C;
  --shadow: 0 1px 2px rgba(11, 37, 48, .05), 0 12px 32px -12px rgba(11, 37, 48, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 37, 48, .35);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-accent: "Instrument Serif", Georgia, serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071A21;
    --bg-alt: #0A222B;
    --surface: #0F2A34;
    --text: #E6EFEA;
    --muted: #9AB0A8;
    --line: #1D3D48;
    --accent: #6CC24A;
    --accent-soft: rgba(108, 194, 74, .12);
    --danger: #FB923C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071A21;
  --bg-alt: #0A222B;
  --surface: #0F2A34;
  --text: #E6EFEA;
  --muted: #9AB0A8;
  --line: #1D3D48;
  --accent: #6CC24A;
  --accent-soft: rgba(108, 194, 74, .12);
  --danger: #FB923C;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}
em { font-family: var(--f-accent); font-style: italic; font-weight: 400; letter-spacing: 0; font-stretch: normal; }
p { margin: 0; }
::selection { background: rgba(123, 201, 62, .3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--leaf);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .ico { transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-leaf { background: var(--leaf); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 143, 58, .7); }
.btn-leaf:hover { background: var(--leaf-deep); box-shadow: 0 14px 30px -10px rgba(47, 143, 58, .8); transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .btn-ink { background: var(--surface); border-color: var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-ink { background: var(--surface); border-color: var(--line); } }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--accent); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-dark { color: var(--leaf-bright); }
.eyebrow .dot { display: none; }
.hero .eyebrow::before { display: none; }
.hero .eyebrow .dot {
  display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-bright);
  box-shadow: 0 0 0 0 rgba(123, 201, 62, .6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(123, 201, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(123, 201, 62, 0); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: 14px;
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--wrap) - 2 * var(--gutter) + 32px);
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35);
  width: calc(100% - 2 * var(--gutter));
}
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; color: #33474F; text-decoration: none; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(47, 143, 58, .1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.site-header .icon-btn { background: transparent; border-color: rgba(11, 37, 48, .14); color: var(--ink); }
.theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
}
.menu-btn { display: none !important; }

/* Mobile menu (popover) */
.mobile-menu {
  margin: 0; inset: 0 0 auto auto; height: 100dvh; width: min(360px, 100vw); max-height: none;
  border: 0; padding: 20px; background: var(--surface); color: var(--text);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .3);
  flex-direction: column; gap: 24px;
}
.mobile-menu:popover-open { display: flex; }
.mobile-menu::backdrop { background: rgba(7, 26, 33, .5); backdrop-filter: blur(3px); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-head img { height: 36px; width: auto; background: #fff; border-radius: 8px; padding: 2px 6px; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 20px/1.2 var(--f-display); font-stretch: 110%; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(123, 201, 62, .22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(47, 143, 58, .25), transparent 60%),
    linear-gradient(160deg, #0B2530 0%, #082029 55%, #061920 100%);
  color: #fff;
  padding: clamp(130px, 16vw, 180px) 0 clamp(80px, 10vw, 130px);
}
.hero::after { /* fine grid texture */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 85%);
}
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .8; }
.flow { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.2s cubic-bezier(.6, .1, .2, 1) forwards; }
.f2 { animation-delay: .25s; } .f3 { animation-delay: .5s; } .f4 { animation-delay: .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 {
  font-size: clamp(40px, 5vw, 70px); font-weight: 750; letter-spacing: -.035em; line-height: 1.0;
  margin-bottom: 28px; text-wrap: balance;
}
.hero h1 em {
  display: block; font-size: 1.08em; line-height: 1.02; letter-spacing: -.01em;
  background: linear-gradient(100deg, #A6E36A 0%, #7BC93E 45%, #3FAE4C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.lede { font-size: clamp(17px, 1.4vw, 19px); color: rgba(230, 240, 236, .78); max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; }
.hero-stats div { padding: 0 clamp(18px, 3vw, 36px); border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { order: 2; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: rgba(230, 240, 236, .6); }
.hero-stats dd { margin: 0 0 4px; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--f-display); font-stretch: 115%; letter-spacing: -.02em; }
.hero-stats div { display: flex; flex-direction: column-reverse; }

.hero-visual { position: relative; margin: 0; animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-photo {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .1);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 37, 48, 0) 40%, rgba(11, 37, 48, .75) 100%), linear-gradient(120deg, rgba(47, 143, 58, .25), transparent 50%);
}
.float-card {
  position: absolute; left: clamp(-36px, -3vw, -16px); bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px 16px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
  animation: rise 1s .6s cubic-bezier(.2, .7, .2, 1) both;
}
.float-card strong { display: block; font: 700 17px/1.2 var(--f-display); font-stretch: 110%; }
.float-card small { color: #52646B; font-size: 14px; }
.float-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(47, 143, 58, .12); color: var(--leaf); }
.float-icon .ico { width: 24px; height: 24px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }

/* ---------- Ticker ---------- */
.ticker { background: var(--leaf); color: #fff; overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 40s linear infinite; }
.ticker span { font: 600 15px/1 var(--f-display); font-stretch: 115%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(34px, 4.4vw, 56px); text-wrap: balance; }
.section h2 em { color: var(--accent); font-size: 1.06em; }
.section-intro { font-size: 18px; color: var(--muted); max-width: 560px; }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.split-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; }
.center-head { text-align: center; display: grid; justify-items: center; }
.center-head .section-intro { margin-top: 20px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 56px; }
.service {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
}
.service::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--leaf-bright), var(--leaf));
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.service-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent); transition: background-color .3s, color .3s;
}
.service-icon .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.service:hover .service-icon { background: var(--leaf); color: #fff; }
.service-num { font: 700 15px/1 var(--f-display); font-stretch: 120%; color: var(--muted); letter-spacing: .08em; opacity: .7; }
.service h3 { font-size: clamp(22px, 2.1vw, 27px); margin-bottom: 14px; }
.service > p { color: var(--muted); margin-bottom: 26px; }
.ticks { list-style: none; margin: 0; padding: 24px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15.5px; line-height: 1.45; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8F3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Why RIA ---------- */
.why-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.why-visual { position: relative; margin: 0 0 40px; }
.why-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.why-photo img { width: 100%; height: 100%; object-fit: cover; }
.commit-card {
  position: absolute; right: clamp(-28px, -2.5vw, -12px); bottom: -40px; margin: 0;
  max-width: 320px; padding: 26px 28px; border-radius: 20px;
  background: linear-gradient(140deg, #1F6B27 0%, #0B2530 75%); color: #fff; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(123, 201, 62, .25);
}
.commit-card::before {
  content: ""; position: absolute; left: 28px; top: -14px; width: 46px; height: 28px;
  background: url("../img/ria-mark.png") left center / contain no-repeat;
}
.commit-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-bright); margin-bottom: 8px; }
.commit-card p:last-child { font: 600 19px/1.35 var(--f-display); font-stretch: 105%; }
.why-copy .section-intro { margin: 24px 0 44px; }
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 36px; }
.reason h3, .perk h3 { font-size: 18px; font-stretch: 108%; margin: 14px 0 8px; letter-spacing: -.01em; }
.reason p, .perk p { color: var(--muted); font-size: 15.5px; }
.reason-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
}
.reason-icon .ico { width: 22px; height: 22px; }

/* ---------- Process ---------- */
.section-ink {
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(123, 201, 62, .14), transparent 60%),
    var(--ink);
  color: #fff;
}
.section-ink h2 em { color: var(--leaf-bright); }
.section-ink .section-intro { color: rgba(230, 240, 236, .7); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 32px; right: 32px; height: 1px;
  background: linear-gradient(90deg, var(--leaf-bright), rgba(123, 201, 62, .15));
}
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); border: 1px solid rgba(123, 201, 62, .55); color: var(--leaf-bright);
  font: 700 18px/1 var(--f-display); font-stretch: 120%; margin-bottom: 28px;
  transition: background-color .3s, color .3s;
}
.step:hover .step-num { background: var(--leaf-bright); color: var(--ink); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: rgba(230, 240, 236, .7); font-size: 15.5px; max-width: 260px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 96px); align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy .section-intro { margin: 24px 0 40px; }
.perks { display: grid; gap: 24px; margin-bottom: 40px; }
.perk { display: flex; gap: 18px; }
.perk h3 { margin-top: 2px; }
.direct { list-style: none; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.direct li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.direct .ico { color: var(--accent); }
.direct a { text-decoration: none; color: var(--text); font-weight: 500; }
.direct a:hover { color: var(--accent); }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow);
}
.form-title { font-size: 26px; margin-bottom: 8px; }
.form-sub { color: var(--muted); margin-bottom: 30px; }
form { display: grid; gap: 22px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.field legend { margin-bottom: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.count.warn { color: #B45309; } .count.over { color: var(--danger); }
input:not([type="radio"]):not([type="checkbox"]), textarea {
  width: 100%; font: 16px/1.4 var(--f-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
input:not([type="radio"]):not([type="checkbox"]):focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft);
}
.invalid input, .invalid textarea { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--muted); font-size: 14px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; gap: 5px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.segmented label {
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 11px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--surface); color: var(--accent); box-shadow: 0 2px 10px -2px rgba(11, 37, 48, .2); }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Show the field that matches the chosen contact method — pure CSS */
.field-mobile { display: none; }
form:has(input[value="mobile"]:checked) .field-mobile { display: grid; }
form:has(input[value="mobile"]:checked) .field-email { display: none; }

.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); font-size: 14.5px !important; line-height: 1.5; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--leaf); flex-shrink: 0; }
.form-alert { padding: 14px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-size: 15px; }
.form-done { text-align: center; padding: 40px 10px; display: grid; justify-items: center; gap: 14px; }
.form-done h3 { font-size: 24px; }
.form-done p { color: var(--muted); max-width: 380px; }
.done-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.done-icon .ico { width: 30px; height: 30px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: #061920; color: rgba(230, 240, 236, .72); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.logo-chip { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 16px; margin-bottom: 20px; }
.logo-chip img { height: 44px; width: auto; }
.footer-brand p { max-width: 320px; font-size: 15.5px; }
.site-footer h4 { color: #fff; font-size: 14px; font-stretch: 115%; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15.5px; }
.site-footer a, .site-footer .link { text-decoration: none; color: inherit; transition: color .2s; text-align: left; }
.site-footer a:hover, .site-footer .link:hover { color: var(--leaf-bright); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: flex; align-items: center; gap: 20px; justify-content: space-between;
  padding: 16px 16px 16px 24px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14.5px; color: var(--muted); animation: rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
.cookie[hidden] { display: none; }
.cookie-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- Dialogs ---------- */
.modal {
  width: min(720px, calc(100% - 32px)); max-height: min(86vh, 900px); padding: 0;
  border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg);
}
.modal[open] { display: flex; flex-direction: column; animation: pop .3s cubic-bezier(.2, .7, .2, 1); }
.modal::backdrop { background: rgba(7, 26, 33, .6); backdrop-filter: blur(4px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-sm { width: min(440px, calc(100% - 32px)); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 24px; }
.modal-body { padding: 24px 28px 32px; overflow-y: auto; }
.modal-body.center { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 40px 32px; }
.modal-body.center h2 { font-size: 24px; }
.legal h3 { font-size: 17px; font-stretch: 105%; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 20px; margin: 8px 0 12px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: 96px; right: 20px; z-index: 70; max-width: 360px;
  padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
  animation: rise .4s both;
}
.toast[hidden] { display: none; }
.toast.error { background: #7C2D12; }

/* ---------- Scroll reveal ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid !important; }
  .hero-grid, .why-grid, .contact-grid, .split-head { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .float-card { left: 16px; bottom: -24px; }
  .why-visual { max-width: 620px; }
  .contact-copy { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .brand img { height: 34px; }
  .header-bar { padding: 8px 8px 8px 14px; }
  .services, .reasons, .row-2 { grid-template-columns: 1fr; }
  .hero-stats div { padding: 0 14px; }
  .hero-stats dd { font-size: 24px; }
  .hero-stats dt { font-size: 11.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .commit-card { position: relative; right: auto; bottom: auto; margin: -48px 16px 0; max-width: none; }
  .why-visual { margin-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-bottom: 36px; }
  .step::before { content: ""; position: absolute; left: 32px; top: 64px; bottom: 0; width: 1px; background: rgba(123, 201, 62, .35); }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cookie { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookie-actions { justify-content: flex-end; }
  .modal-head, .modal-body { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .flow { stroke-dashoffset: 0; }
}

/* Honeypot field — hidden from people, visible to spam bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
