/* IM SOLAR — shared stylesheet
   Editorial + warm. Cream paper, deep ink, solar amber.
*/

:root {
  /* Theme: amber (default) */
  --paper: #F5EFE5;
  --paper-2: #ECE3D3;
  --ink: #1B1F26;
  --ink-soft: #3A3F49;
  --ink-mute: #6B6F78;
  --line: #DCD3C2;
  --line-soft: #E8DFCD;
  --accent: #D98A2B;          /* solar amber */
  --accent-deep: #B26B14;
  --accent-soft: #F2D7A8;
  --eco: #5A7560;             /* secondary, used sparingly */
  --shadow-sm: 0 1px 2px rgba(27,31,38,.04), 0 2px 8px rgba(27,31,38,.04);
  --shadow-md: 0 6px 24px rgba(27,31,38,.08);

  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

[data-theme="forest"] {
  --accent: #4F7B5A;
  --accent-deep: #355A41;
  --accent-soft: #C8DAC9;
}
[data-theme="navy"] {
  --accent: #2E4470;
  --accent-deep: #1A2C50;
  --accent-soft: #C5CFE2;
}
[data-theme="mono"] {
  --accent: #1B1F26;
  --accent-deep: #000;
  --accent-soft: #D6CEBE;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7vw, 104px); }
h2 { font-size: clamp(36px, 4.6vw, 68px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); }
h4 { font-size: clamp(20px, 1.6vw, 24px); font-family: var(--sans); font-weight: 500; letter-spacing: -.005em; }

em, .it { font-style: italic; }

p { margin: 0 0 1em; max-width: 64ch; }
p.lead { font-size: clamp(18px, 1.4vw, 22px); line-height: 1.5; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  font-weight: 500;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===================== Utility bar + header ===================== */
.utility {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility a { color: var(--paper); }
.utility .phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.utility .phone .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.utility-right { display: inline-flex; gap: 22px; align-items: center; }
.utility-right a { font-family: var(--mono); font-size: 12px; opacity: .8; }
.utility-right a:hover { opacity: 1; }

.header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(8px) saturate(1.05);
  border-bottom: 1px solid var(--line-soft);
}
.header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 76px;
  gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 26px; letter-spacing: -.01em;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, var(--accent-deep) 65%, var(--ink) 100%);
  position: relative; flex-shrink: 0;
}
.brand-mark::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--ink); opacity: .25;
}
.brand small { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); display: block; line-height: 1; margin-top: 2px;}

nav.primary {
  justify-self: center;
  display: flex; gap: 28px;
  font-size: 14.5px;
}
nav.primary a {
  position: relative; padding: 6px 2px;
  color: var(--ink-soft);
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.active { color: var(--ink); }
nav.primary a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}

.cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  transition: background .2s, transform .15s;
}
.cta-pill:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cta-pill .arrow { display: inline-block; transition: transform .2s; }
.cta-pill:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--ink);
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-accent {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  border-radius: 999px; padding: 14px 26px;
  font-size: 15px; font-weight: 500; border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-accent:hover { background: var(--accent-deep); }

/* ===================== HERO ===================== */
.hero {
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero h1 {
  font-size: clamp(54px, 8.2vw, 124px);
  letter-spacing: -0.025em;
  line-height: 0.94;
}
.hero h1 .it { color: var(--accent-deep); }
.hero-meta {
  display: flex; gap: 28px; align-items: center;
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px;
  background: var(--paper);
}
.hero-meta .pill .check {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9px;
}
.hero-actions {
  margin-top: 36px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero-aside {
  display: flex; flex-direction: column; gap: 28px;
}
.hero-image {
  aspect-ratio: 4/5;
  background: var(--paper-2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.hero-image-caption {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; justify-content: space-between;
}

/* real photo block — replaces .ph */
.img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.img-caption {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(20,18,15,.55);
  padding: 6px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-image.img { aspect-ratio: 4/5; }
.gallery .g-item.img { width: 100%; height: 100%; }

/* placeholder image with stripes */
.ph {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 16px,
      rgba(27,31,38,.04) 16px 17px
    ),
    var(--paper-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  padding: 24px;
}
.ph::after {
  content: ""; position: absolute; inset: 12px;
  border: 1px dashed rgba(27,31,38,.18);
  pointer-events: none;
}
.ph span { background: var(--paper-2); padding: 4px 10px; border-radius: 999px; position: relative; z-index: 1;}

/* ===================== Section base ===================== */
section { padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line-soft); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 64px);
  align-items: end;
}
.section-head .right { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { letter-spacing: -.025em; }
.section-head .right p { color: var(--ink-soft); font-size: 18px; max-width: 50ch; }

/* ===================== Trust strip ===================== */
.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  background: var(--paper);
}
.trust-strip .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft);
}
.trust-item strong { color: var(--ink); font-weight: 500; }
.rge-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
}
.rge-badge img {
  height: 40px; width: auto; display: block;
}
.rge-badge .lbl {
  font-family: var(--mono); font-size: 10px; line-height: 1.1;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}
.rge-badge .lbl b { display: block; font-weight: 600; color: var(--ink); }

/* legacy seal — kept for old markup paths */
.rge-badge .seal {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent);
  color: #fff; font-family: var(--mono); font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -.02em;
}

/* ===================== Pricing ===================== */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.price-card {
  background: var(--paper);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  min-height: 460px;
}
.price-card.feature {
  background: var(--ink); color: var(--paper);
}
.price-card.feature .price-eyebrow,
.price-card.feature .price-label,
.price-card.feature .price-divider-label { color: rgba(245,239,229,.7); }
.price-card.feature .price-divider { background: rgba(245,239,229,.15); }
.price-card.feature .btn-card { background: var(--accent); color: #fff; border-color: var(--accent); }
.price-card.feature .btn-card:hover { background: var(--accent-deep); }
.price-eyebrow {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute);
}
.price-size {
  font-family: var(--serif); font-size: 56px; line-height: 1;
  letter-spacing: -.025em;
}
.price-size sup { font-size: 16px; vertical-align: super; opacity: .7; font-family: var(--mono); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-row .price-label { font-size: 14px; color: var(--ink-soft); }
.price-row .price-amt { font-family: var(--serif); font-size: 28px; letter-spacing: -.02em; }
.price-divider {
  height: 1px; background: var(--line); margin: 4px 0;
  position: relative;
}
.price-divider-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.price-card.feature .price-divider-label { background: var(--ink); }
.price-card .btn-card {
  margin-top: auto;
  display: inline-flex; justify-content: center; align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.price-card .btn-card:hover { background: var(--ink); color: var(--paper); }
.price-tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}

/* ===================== Calc ===================== */
.calc {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0;
}
.calc-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.calc h2 { color: var(--paper); }
.calc h2 .it { color: var(--accent); }
.calc-card {
  background: color-mix(in srgb, var(--paper) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  border-radius: 8px;
  padding: 32px;
}
.calc-row { margin-bottom: 22px; }
.calc-row label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,239,229,.7);
  margin-bottom: 10px;
}
.calc-row label b { color: var(--accent); font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; font-weight: 400;}
.calc-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; background: rgba(245,239,229,.2);
  outline: none; cursor: pointer;
}
.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--paper);
  cursor: pointer;
}
.calc-result {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.calc-result .num {
  font-family: var(--serif); font-size: 56px; letter-spacing: -.025em;
  color: var(--accent); line-height: 1;
}
.calc-result .lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(245,239,229,.7); margin-top: 8px;
}

/* ===================== Why solar (3 reasons) ===================== */
.reasons {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reason {
  background: var(--paper);
  padding: 40px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 280px;
}
.reason .num {
  font-family: var(--serif); font-size: 18px;
  font-style: italic;
  color: var(--accent);
}
.reason h3 { font-size: 28px; }
.reason p { color: var(--ink-soft); font-size: 15px; }

/* ===================== Services tabs ===================== */
.services {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.services-tabs {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line-soft);
}
.services-tab {
  background: transparent; border: none; text-align: left;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 28px;
  cursor: pointer;
  color: var(--ink-mute);
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s;
  letter-spacing: -.02em;
}
.services-tab:hover { color: var(--ink); }
.services-tab.active { color: var(--ink); }
.services-tab .arrow { font-family: var(--mono); font-size: 14px; opacity: 0; transition: opacity .2s, transform .2s;}
.services-tab.active .arrow { opacity: 1; }
.services-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  counter-reset: svc;
}
.services-content .item {
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line-soft);
  counter-increment: svc;
}
.services-content .item::before {
  content: counter(svc, decimal-leading-zero);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; color: var(--accent-deep);
  flex-shrink: 0; padding-top: 2px;
}
.services-content .item-body h4 { margin-bottom: 4px; font-size: 17px; font-weight: 500; }
.services-content .item-body p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===================== Gallery ===================== */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 12px;
}
.gallery .g-item { border-radius: 4px; overflow: hidden; position: relative; }
.gallery .g-item:nth-child(1) { grid-row: span 2; }
.gallery .g-item:nth-child(4) { grid-column: span 2; }
.gallery .g-item .ph { width: 100%; height: 100%; }
.gallery-meta {
  position: absolute; bottom: 12px; left: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference;
  display: flex; gap: 10px; align-items: center;
}

/* ===================== Testimonials ===================== */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.testimonial {
  background: var(--paper); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial-stars {
  color: var(--accent); font-size: 16px; letter-spacing: 2px;
}
.testimonial blockquote {
  margin: 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}
.testimonial blockquote::before { content: '“'; color: var(--accent); margin-right: 2px;}
.testimonial blockquote::after { content: '”'; color: var(--accent); margin-left: 2px;}
.testimonial .who {
  margin-top: auto;
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid var(--line-soft); padding-top: 18px;
}
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--accent-deep);
  font-size: 18px;
}
.testimonial .who-text { font-size: 13px; line-height: 1.3; }
.testimonial .who-text b { display: block; font-weight: 500; }
.testimonial .who-text span { color: var(--ink-mute); font-size: 12px; }

/* ===================== Big CTA ===================== */
.big-cta {
  padding: clamp(72px, 10vw, 140px) 0;
  text-align: center;
}
.big-cta .container { max-width: 900px; }
.big-cta h2 {
  font-size: clamp(48px, 8vw, 110px); letter-spacing: -.03em;
  line-height: .98;
}
.big-cta h2 .it { color: var(--accent-deep); }
.big-cta p { margin: 24px auto 36px; max-width: 60ch; color: var(--ink-soft); font-size: 18px; }

/* ===================== Footer ===================== */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
  font-size: 14px;
}
.footer .container { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 48px; }
.footer h5 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(245,239,229,.5);
  margin: 0 0 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px;}
.footer a { color: rgba(245,239,229,.85); }
.footer a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(245,239,229,.12);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245,239,229,.5);
}
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-tag { color: rgba(245,239,229,.7); margin-top: 12px; max-width: 30ch; }

/* ===================== Process / steps ===================== */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 32px;
}
.step {
  padding: 24px 18px 24px 0;
  border-top: 2px solid var(--ink);
  position: relative;
}
.step .num {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--accent-deep);
  margin-bottom: 14px;
}
.step h4 { font-size: 18px; margin-bottom: 6px; font-weight: 500; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ===================== Forms ===================== */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-grid .full { grid-column: span 2; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans); font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 120px; }
.radio-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.radio-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex; gap: 12px; align-items: center;
  background: var(--paper);
  font-size: 14px;
  transition: border-color .2s, background .2s;
}
.radio-card:hover { border-color: var(--ink); }
.radio-card input { accent-color: var(--accent); }
.radio-card.selected { border-color: var(--ink); background: #fff; }

/* ===================== Tweaks panel ===================== */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--ink); color: var(--paper);
  border-radius: 12px; padding: 20px;
  width: 280px;
  z-index: 100;
  font-family: var(--sans);
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.tweaks-panel h6 {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  margin: 0 0 12px; color: rgba(245,239,229,.6);
}
.tweaks-panel .swatches { display: flex; gap: 8px; margin-bottom: 16px;}
.tweaks-panel .swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 2px solid transparent;
  transition: border-color .2s;
}
.tweaks-panel .swatch.active { border-color: var(--paper); }

/* ===================== Responsive ===================== */
@media (max-width: 1100px) {
  .container { padding: 0 24px; }
}

@media (max-width: 980px) {
  .hero-grid, .calc-grid, .services, .footer .container, .section-head { grid-template-columns: 1fr !important; gap: 32px !important; }
  .pricing, .reasons, .testimonials { grid-template-columns: 1fr !important; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .gallery .g-item:nth-child(1), .gallery .g-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  nav.primary { display: none; }
  .header .container { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
  .header .brand { margin-right: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }

  /* Blog / article responsive */
  .featured-card { grid-template-columns: 1fr !important; gap: 32px !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .newsletter .row { grid-template-columns: 1fr !important; gap: 32px !important; }
  .related .row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .article-cta { grid-template-columns: 1fr !important; gap: 20px !important; }
}

/* Phone */
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .container { padding: 0 18px; }

  /* Utility bar — keep but compact */
  .utility { font-size: 11px; }
  .utility .container { flex-wrap: wrap; gap: 8px; }
  .utility-right a:nth-child(1) { display: none; }

  /* Header */
  .header { padding: 14px 0; }
  .brand small { display: none; }
  .cta-pill { padding: 10px 16px; font-size: 13px; }
  .cta-pill .arrow { display: none; }

  /* Hero & section padding */
  section { padding-block: 56px !important; }
  .hero { padding-top: 40px !important; padding-bottom: 56px !important; }

  /* Headlines: cap large display sizes on phones */
  h1, .hero h1 { font-size: clamp(40px, 11vw, 60px) !important; line-height: .98; }
  h2 { font-size: clamp(30px, 8vw, 44px) !important; line-height: 1.02; }
  .section-head h2 br { display: none; }

  /* Eyebrows + leads */
  .eyebrow { font-size: 10px; }
  p.lead, .lead { font-size: 16px !important; }

  /* Stats / numbers */
  .stat-num, [class*="stat"] { font-size: clamp(40px, 11vw, 56px); }

  /* Cards & forms */
  .card, .testimonial, .pricing-card { padding: 24px !important; }
  .form-grid input, .form-grid select, .form-grid textarea { font-size: 16px; } /* prevents iOS zoom */
  .form-grid { gap: 14px !important; }

  /* Gallery — single column on phones */
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(auto-fill, 240px); gap: 8px; }
  .steps { grid-template-columns: 1fr; }

  /* Pricing — full-width stacked */
  .pricing-card { padding: 28px !important; }

  /* Footer */
  .footer { padding: 56px 0 32px; }
  .footer .container { gap: 32px !important; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Spring offer — stack the guarantee strip */
  [id="offre-detail"] { padding: 24px !important; }

  /* Article: reduce display margins */
  .article-head h1 { font-size: clamp(34px, 9vw, 52px) !important; }
  .article-body { font-size: 16.5px; line-height: 1.6; }
  .article-body h2 { font-size: clamp(24px, 6.5vw, 32px) !important; }
  .article-body blockquote { font-size: 20px; padding: 16px 20px; }
  .article-body .callout { padding: 20px; }
  .article-body table { font-size: 14px; display: block; overflow-x: auto; }

  /* Blog hero compact */
  .blog-hero h1 { font-size: clamp(44px, 12vw, 80px) !important; }
  .topics .row { gap: 6px; }
  .topics .chip { padding: 7px 12px; font-size: 12px; }

  /* Buttons: full-width on phone for clarity */
  .btn-accent, .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .hero-cta, .form-actions { flex-direction: column; align-items: stretch; }

  /* Big CTA */
  .big-cta h2 { font-size: clamp(34px, 9vw, 56px) !important; }

  /* Disable extreme negative margins / weird type sizes */
  em.it { font-size: inherit; }
}

/* Tiny phones */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .brand { font-size: 14px; }
}

/* Mobile-first nav: hamburger appears below 980px */
.mobile-nav-btn { display: none; }
@media (max-width: 980px) {
  .mobile-nav-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--ink); color: var(--paper); border: none; cursor: pointer;
    margin-right: 8px;
  }
  .mobile-nav-btn svg { width: 18px; height: 18px; }
  .mobile-nav-panel {
    position: fixed; inset: 0; background: var(--paper); z-index: 100;
    padding: 80px 32px 32px; display: none; flex-direction: column; gap: 4px;
    overflow-y: auto;
  }
  .mobile-nav-panel.open { display: flex; }
  .mobile-nav-panel a {
    font-family: var(--serif); font-size: 36px; letter-spacing: -.01em;
    padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink);
  }
  .mobile-nav-panel a em { font-style: italic; color: var(--accent-deep); }
  .mobile-nav-close {
    position: absolute; top: 24px; right: 24px;
    width: 40px; height: 40px; border-radius: 999px;
    background: var(--ink); color: var(--paper); border: none; cursor: pointer;
    font-size: 18px;
  }
}

.footer-bottom a {
  color: rgba(245,239,229,.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.footer-bottom a:hover { color: var(--accent); }
