/* ============================================================
   Renov'Finances — design tokens
   Layout: sticky top nav, single-column content max 760px,
   card-based service blocks, footer with legal/ORIAS block
   ============================================================ */
:root{
  --bg:#F2F5F2;
  --surface:#FFFFFF;
  --surface-2:#EAF0EA;
  --fg:#16283D;
  --fg-muted:#4B5F70;
  --accent:#2F7A34;
  --accent-strong:#245F28;
  --navy:#16345E;
  --navy-strong:#0E2440;
  --border:#DCE3DE;
  --shadow: 0 1px 2px rgba(22,40,61,.06), 0 8px 24px -12px rgba(22,40,61,.18);
  --font-display:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#101B26;
    --surface:#17283A;
    --surface-2:#1E3247;
    --fg:#E9EFEC;
    --fg-muted:#A9BAC4;
    --accent:#5CB85C;
    --accent-strong:#79CB79;
    --navy:#6FA0D6;
    --navy-strong:#8FB8E6;
    --border:#2A3E52;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --bg:#101B26;
  --surface:#17283A;
  --surface-2:#1E3247;
  --fg:#E9EFEC;
  --fg-muted:#A9BAC4;
  --accent:#5CB85C;
  --accent-strong:#79CB79;
  --navy:#6FA0D6;
  --navy-strong:#8FB8E6;
  --border:#2A3E52;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.5);
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--accent-strong)}
h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  text-wrap:balance;
  margin:0 0 .5em;
  color:var(--fg);
}
h1{font-size:clamp(2rem,4.5vw,3rem)}
h2{font-size:clamp(1.5rem,3vw,2rem)}
h3{font-size:1.15rem}
p{margin:0 0 1em;color:var(--fg-muted);max-width:65ch}
.eyebrow{
  font-family:var(--font-body);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent-strong);
  margin:0 0 .6em;
}

.wrap{
  max-width:1040px;
  margin:0 auto;
  padding-inline:20px;
}

/* Header / nav */
header.site{
  position:sticky;
  top:env(safe-area-inset-top,0px);
  z-index:20;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  max-width:1040px;
  margin:0 auto;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand img{height:46px;width:auto}
.hero-logo{height:64px;width:auto;margin-bottom:18px}
@media (max-width:560px){
  .brand img{height:38px}
  .hero-logo{height:52px}
}
nav.links{display:flex;gap:4px;flex-wrap:wrap}
nav.links a{
  text-decoration:none;
  color:var(--fg-muted);
  font-size:.92rem;
  font-weight:600;
  padding:8px 12px;
  border-radius:8px;
}
nav.links a:hover{background:var(--surface-2);color:var(--fg)}
nav.links a[aria-current="page"]{color:var(--navy-strong);background:var(--surface-2)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 22px;
  border-radius:10px;
  font-weight:700;
  font-size:.95rem;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  font-family:var(--font-body);
}
.btn-primary{background:var(--accent);color:#fff;border-radius:999px;padding:14px 26px}
.btn-primary:hover{background:var(--accent-strong)}
.btn-primary .chev{transition:transform .15s}
.btn-primary:hover .chev{transform:translateX(3px)}
.btn-ghost{background:transparent;color:var(--navy-strong);border-color:var(--border);border-radius:999px}
.btn-ghost:hover{background:var(--surface-2)}

.hero-badges{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}
.badge{
  font-size:.78rem;
  font-weight:600;
  color:var(--navy-strong);
  background:var(--surface-2);
  border:1px solid var(--border);
  padding:6px 12px;
  border-radius:999px;
}

/* Hero — the photo IS the page: full-bleed background, logo floating on top */
.hero-full{
  position:relative;
  width:100vw;
  left:50%;
  right:50%;
  margin-left:-50vw;
  margin-right:-50vw;
  min-height:clamp(480px,78vh,720px);
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-direction:column;
  overflow:hidden;
  padding:48px 20px;
  isolation:isolate;
}
.hero-full-bg{
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:38% 25%;
}
.hero-full::before{
  /* legibility scrim, stronger toward the bottom where the text sits */
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(0deg, rgba(8,20,16,.82) 0%, rgba(8,20,16,.52) 30%, rgba(8,20,16,.05) 58%, rgba(8,20,16,0) 100%);
}
.hero-full-inner{
  max-width:620px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.hero-full-inner--bottom{
  padding-bottom:12px;
}

/* Checklist overlaid on the hero photo — each line gets its own
   legibility backdrop since it sits directly on varied photo content */
.hero-checklist{display:grid;gap:10px;margin-bottom:22px;width:100%;max-width:420px}
.hero-checklist .item{
  display:flex;
  align-items:center;
  gap:12px;
}
.hero-checklist .item .dot{
  width:38px;height:38px;min-width:38px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.hero-checklist .item span.label{font-weight:600;font-size:.92rem;color:var(--fg)}
.hero-checklist--on-photo .item{
  background:rgba(255,255,255,.92);
  padding:8px 14px 8px 8px;
  border-radius:999px;
  box-shadow:0 4px 16px -4px rgba(0,0,0,.35);
}
.hero-checklist--on-photo .item .dot{background:var(--navy-strong)}
.hero-checklist--on-photo .item span.label{color:var(--navy-strong)}
.hero-full-inner > img{
  height:64px;width:auto;margin-bottom:26px;
  filter:drop-shadow(0 2px 10px rgba(0,0,0,.45));
}
@media (max-width:560px){
  .hero-full-inner > img{height:46px;margin-bottom:18px}
}
.hero-full .eyebrow{text-align:center;color:#BEE8C4}
.hero-full h1{font-size:clamp(2rem,5vw,2.9rem);color:#fff}
.hero-full p.lead{color:rgba(255,255,255,.9);font-size:1.08rem;max-width:48ch;margin-inline:auto}
.hero-full .btn-primary{
  font-size:1.02rem;
  padding:16px 34px;
  margin-top:28px;
  box-shadow:0 14px 28px -10px rgba(0,0,0,.5);
}
.hero-full .badge{
  color:#fff;
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,.32);
}

/* Content + image split (service sections) */
.split{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:32px;
  align-items:start;
}
@media (max-width:760px){
  .split{grid-template-columns:1fr}
}
.split-img{
  display:block;
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  cursor:pointer;
}
.split-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s ease}
.split-img:hover img{transform:scale(1.03)}
.split-img:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

/* Trust row (flyer bottom icon strip) */
.trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  padding-block:18px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.trust-row .t-item{display:flex;align-items:center;gap:10px}
.trust-row .t-item .ic{color:var(--navy-strong)}
.trust-row .t-item span{font-size:.85rem;font-weight:600;color:var(--fg-muted)}

/* Cards */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin-block:24px;
}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:22px;
  box-shadow:var(--shadow);
  min-width:0;
}
.card .icon{
  width:40px;height:40px;
  border-radius:10px;
  background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:14px;
  color:var(--accent-strong);
}
.card p{margin-bottom:0;font-size:.95rem}

/* Steps */
.steps{display:grid;gap:14px;margin-block:20px}
.step{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 18px;
  align-items:start;
}
.step .n{
  font-family:var(--font-display);
  font-size:1.3rem;
  color:var(--accent-strong);
  min-width:1.6em;
}
.step h3{margin-bottom:4px;font-size:1.02rem}
.step p{margin:0;font-size:.92rem}

/* Section */
section{padding-block:36px}
section + section{border-top:1px solid var(--border)}
.section-head{max-width:640px;margin-bottom:8px}

/* Legal callout */
.legal-box{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 18px;
  font-size:.85rem;
  color:var(--fg-muted);
}
.legal-box strong{color:var(--fg)}

/* Form */
form.contact{
  display:grid;
  gap:16px;
  max-width:520px;
}
.field{display:grid;gap:6px}
.field label{font-size:.85rem;font-weight:700;color:var(--fg)}
.field input,.field select,.field textarea{
  font-family:var(--font-body);
  font-size:.95rem;
  padding:11px 13px;
  border-radius:9px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--fg);
  width:100%;
}
.field textarea{resize:vertical;min-height:110px}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:2px solid var(--accent);
  outline-offset:1px;
}
.confirm{
  display:none;
  background:var(--surface-2);
  border:1px solid var(--accent);
  border-radius:12px;
  padding:16px 18px;
  color:var(--fg);
}
.confirm.show{display:block}
.confirm h3{margin-bottom:4px;color:var(--accent-strong)}

/* Footer */
footer.site{
  border-top:1px solid var(--border);
  margin-top:40px;
  padding-block:28px calc(28px + env(safe-area-inset-bottom,0px));
  background:var(--surface);
}
footer.site .wrap{
  display:grid;
  gap:16px;
}
footer.site .foot-top{
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
footer.site .foot-nav{display:flex;gap:14px;flex-wrap:wrap}
footer.site .foot-nav a{color:var(--fg-muted);font-size:.88rem;text-decoration:none;font-weight:600}
footer.site .foot-nav a:hover{color:var(--fg)}
footer.site .legal-box{margin-top:4px}
.fine{font-size:.78rem;color:var(--fg-muted)}

@media (max-width:560px){
  .nav-inner{padding:10px 16px}
  .hero{padding-block:36px 28px}
}
