/* =====================================================================
   THEME — once your photos are in, these colours get matched to them.
   ===================================================================== */
:root {
  --ink: #17291d;          /* main text / dark panels */
  --ink-soft: #4b5a4e;
  --paper: #f3f1e7;        /* page background */
  --paper-2: #e4e6d6;
  --card: #fcfcf6;
  --accent: #4f8f2f;       /* buttons, highlights */
  --accent-dark: #3a6e20;
  --line: #d3d6c0;
  --ok: #2f6b4a;
  --err: #a6362b;

  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;

  --radius: 14px;
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(23, 41, 29, .06) 1px, transparent 0);
  background-size: 22px 22px;
}

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

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243, 241, 231, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 14px;
}
.brand {
  font-family: var(--display); font-weight: 700; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -.01em;
}
.brand span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(58, 110, 32, .8);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--paper);
  border: 1.5px solid rgba(255, 255, 255, .55); box-shadow: none;
}
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  min-height: 78vh; display: grid; align-items: end;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .55;
  animation: slowzoom 18s ease-out forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,41,29,.1) 0%, rgba(23,41,29,.85) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 120px 72px; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.03em; margin: 0 0 18px; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: #b9e27a; font-weight: 400; }
.hero p.lead { font-size: 1.15rem; max-width: 52ch; opacity: .9; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .8s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; }
.d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Main layout with sidebar ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px; padding-block: 72px;
}
.section-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 20px;
}

.about p { color: var(--ink-soft); max-width: 62ch; }
.about p:first-of-type { font-size: 1.2rem; color: var(--ink); }

.about-photo {
  margin: 36px 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--paper-2);
  box-shadow: 0 30px 60px -30px rgba(29, 36, 32, .5);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.values {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 36px;
}
.value {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.value .num {
  font-family: var(--display); font-size: 1.8rem; color: var(--accent);
  line-height: 1; display: block; margin-bottom: 8px;
}
.value h3 { margin: 0 0 6px; font-size: 1.02rem; }
.value p { margin: 0; font-size: .93rem; color: var(--ink-soft); }

.cta-band {
  margin-top: 48px; padding: 34px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cta-band h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; margin: 0; }
.cta-band p { margin: 4px 0 0; opacity: .75; }

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-inner { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 28px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.panel h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.35rem;
  margin: 0 0 4px;
}
.panel .sub { margin: 0 0 16px; font-size: .88rem; color: var(--ink-soft); }

/* Before / after slider */
.ba { margin-bottom: 18px; }
.ba:last-child { margin-bottom: 0; }
.ba-frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px;
  overflow: hidden; background: var(--paper-2); user-select: none;
}
.ba-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff; transform: translateX(-50%);
  pointer-events: none; box-shadow: 0 0 10px rgba(0,0,0,.35);
}
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink); font-weight: 800; font-size: .9rem;
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-tag {
  position: absolute; top: 10px; font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  background: rgba(23,41,29,.75); color: #fff; padding: 4px 9px; border-radius: 999px;
  pointer-events: none;
}
.ba-tag.b { left: 10px; } .ba-tag.a { right: 10px; background: var(--accent); }
.ba-title { font-size: .9rem; font-weight: 700; margin: 8px 0 0; }

/* Testimonials */
.testimonial { margin: 0 0 18px; padding: 0 0 18px; border-bottom: 1px dashed var(--line); }
.testimonial:last-child { margin: 0; padding: 0; border: 0; }
.testimonial blockquote {
  margin: 0 0 8px; font-family: var(--display); font-style: italic;
  font-size: 1.02rem; line-height: 1.5; position: relative; padding-left: 22px;
}
.testimonial blockquote::before {
  content: "“"; position: absolute; left: -2px; top: -12px;
  font-size: 2.6rem; color: var(--accent); font-style: normal;
}
.testimonial figcaption { font-size: .85rem; font-weight: 700; padding-left: 22px; }
.testimonial figcaption span { font-weight: 500; color: var(--ink-soft); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: .85rem; padding-left: 22px; margin-bottom: 4px; }

/* ---------- Quote page ---------- */
.page-head {
  background: var(--ink); color: var(--paper); padding-block: 72px 56px;
}
.page-head h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.05;
}
.page-head p { margin: 0; max-width: 58ch; opacity: .8; }

.quote-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px;
  padding-block: 56px 80px;
}
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 40px);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field label { font-weight: 700; font-size: .92rem; }
.req { color: var(--accent-dark); }
.hint { font-size: .82rem; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 143, 47, .18);
}
.field.invalid input,
.field.invalid textarea,
.field.invalid .dropzone { border-color: var(--err); }
.error-msg { color: var(--err); font-size: .84rem; font-weight: 600; min-height: 0; }

.dropzone {
  position: relative; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--paper); padding: 28px 18px; text-align: center;
  transition: border-color .15s ease, background .15s ease; cursor: pointer;
}
.dropzone.drag { border-color: var(--accent); background: #eef5e6; }
.dropzone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.dropzone strong { display: block; font-size: 1.02rem; }
.dropzone .icon { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.previews {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px; margin-top: 12px;
}
.previews figure {
  margin: 0; position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: var(--paper-2);
}
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px;
  border-radius: 50%; border: 0; background: rgba(23,41,29,.8); color: #fff;
  cursor: pointer; font-size: .85rem; line-height: 1;
}

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot .hint { flex: 1; min-width: 200px; }
.status {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none;
}
.status.show { display: block; }
.status.ok { background: #e3f0e8; color: var(--ok); }
.status.bad { background: #f6e1de; color: var(--err); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 18px; font-size: .95rem; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
}
.steps strong { display: block; }

.hidden-field { position: absolute; left: -9999px; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks h1 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(244, 239, 230, .75);
  padding-block: 40px; font-size: .9rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { color: var(--paper); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .layout, .quote-layout { grid-template-columns: 1fr; }
  .sidebar-inner { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .values, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero .wrap { padding-block: 90px 48px; }
  .layout { padding-block: 48px; gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-img { animation: none; opacity: 1; transform: none; }
}

/* Lighter green for labels sitting on dark backgrounds */
.hero .eyebrow, .page-head .eyebrow, .cta-band .eyebrow { color: #b9e27a; }

/* Keep buttons on one line; smaller header on phones for the longer name */
.btn { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header .brand { font-size: 1.05rem; line-height: 1.2; }
  .site-header .btn { padding: 10px 16px; font-size: .88rem; }
}
