/* =========================================================
   Brandywine Blinds — "The Neighbor"
   Warm, homey, community-trust styling. Vanilla CSS.
   Palette: soft cream, warm sage green, cozy terracotta.
   ========================================================= */

:root {
  /* Warm, homey palette */
  --cream: #fbf6ec;
  --cream-2: #f4ecdc;
  --paper: #ffffff;
  --ink: #3a3530;          /* warm near-black */
  --ink-soft: #6b6258;
  --sage: #7c8c6b;         /* warm sage green */
  --sage-deep: #5f6e51;
  --sage-soft: #e7ecdf;
  --terra: #c8714f;        /* cozy terracotta */
  --terra-deep: #ad5a3b;
  --terra-soft: #f6e4d9;
  --gold: #e0a458;
  --line: #e8ddc9;

  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 14px rgba(90, 70, 50, 0.08);
  --shadow-md: 0 14px 34px rgba(90, 70, 50, 0.12);
  --shadow-lg: 0 26px 60px rgba(90, 70, 50, 0.16);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1140px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.container { width: min(100% - 2.4rem, var(--container)); margin-inline: auto; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--terra); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-family: var(--font-body); font-weight: 800;
  font-size: 1rem; padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--terra); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--sage); color: var(--sage-deep); }
.btn-ghost:hover { background: var(--sage-soft); }
.btn-block { width: 100%; }

/* ---------- Ribbon ---------- */
.ribbon {
  background: var(--sage-deep); color: #fff; text-align: center;
  font-size: .92rem; padding: .5rem 1rem;
}
.ribbon p { margin: 0; }
.ribbon strong { color: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; }

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--sage); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.brand-tag { font-size: .72rem; color: var(--ink-soft); font-weight: 600; letter-spacing: .02em; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: .96rem;
  padding: .5rem .8rem; border-radius: var(--radius-pill); transition: background .15s, color .15s;
}
.primary-nav a:hover { background: var(--sage-soft); color: var(--sage-deep); }
.nav-cta { background: var(--terra); color: #fff !important; }
.nav-cta:hover { background: var(--terra-deep) !important; }

.header-phone {
  text-decoration: none; font-weight: 800; color: var(--sage-deep);
  white-space: nowrap; padding: .4rem .6rem; border-radius: var(--radius-pill);
}
.header-phone:hover { color: var(--terra-deep); }

/* Hamburger */
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0;
  width: 44px; height: 44px; cursor: pointer; flex-direction: column;
  justify-content: center; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-cream { background: var(--cream-2); }
.section-sage { background: var(--sage-soft); }

.section-head { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-weight: 800; color: var(--terra-deep);
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 .6rem;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy .hl { color: var(--terra); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 1.6rem; }
.hero-proof { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 700; font-size: .95rem; }
.hero-proof li { color: var(--ink-soft); }
.hero-proof strong { color: var(--ink); }
.stars { color: var(--gold); letter-spacing: 1px; }
.stars.big { font-size: 1.6rem; }

.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.hero-badge {
  position: absolute; left: -14px; bottom: -18px; background: var(--paper);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .7rem; max-width: 250px; border: 1px solid var(--line);
}
.badge-num { font-family: var(--font-head); font-weight: 700; font-size: 1.8rem; color: var(--sage-deep); }
.badge-label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); line-height: 1.25; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.6rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; }
.trust-item span { font-size: 1.6rem; line-height: 1; flex: none; }
.trust-item p { margin: 0; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); aspect-ratio: 6/5; object-fit: cover; }
.mission {
  margin: 1.6rem 0 0; padding: 1.1rem 1.4rem; border-left: 5px solid var(--terra);
  background: var(--terra-soft); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-style: italic; font-size: 1.15rem; color: var(--ink);
}

/* ---------- Products ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pc-media { overflow: hidden; }
.pc-media img { aspect-ratio: 10/7; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-body { padding: 1.2rem 1.4rem 1.5rem; }
.pc-body p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

.brands { margin-top: 3rem; text-align: center; }
.brands-label { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-soft); }
.brands-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem 1rem; }
.brands-list li {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--sage-deep);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .35rem 1.1rem;
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.7rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
}
.why-ico {
  display: inline-grid; place-items: center; width: 60px; height: 60px;
  background: var(--sage-soft); border-radius: 50%; font-size: 1.7rem; margin-bottom: .7rem;
}
.why-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Service Area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.town-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.town-list li {
  position: relative; padding-left: 1.6rem; font-weight: 700; color: var(--ink);
}
.town-list li::before {
  content: "📍"; position: absolute; left: 0; top: 0; font-size: .95rem;
}
.area-note { color: var(--ink-soft); font-style: italic; }

/* Stylized map panel */
.area-map {
  position: relative; aspect-ratio: 5/4.4; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 30%, #eef3e6 0%, transparent 55%),
    linear-gradient(160deg, #dfe7d2 0%, #cdd9bb 100%);
  box-shadow: var(--shadow-md); border: 4px solid var(--paper); overflow: hidden;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(95,110,81,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95,110,81,.10) 1px, transparent 1px);
  background-size: 42px 42px;
}
.map-river {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(124,140,107,.35) 41%, rgba(124,140,107,.35) 45%, transparent 46%);
  filter: blur(1px);
}
.pin {
  position: absolute; transform: translate(-50%, -100%);
  font-size: .76rem; font-weight: 800; color: var(--sage-deep);
  background: var(--paper); padding: .2rem .55rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.pin i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terra); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(200,113,79,.25);
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
}

/* ---------- Reviews ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proof-stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.4rem; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.proof-num { font-family: var(--font-head); font-weight: 700; font-size: 2.8rem; color: var(--terra); line-height: 1; }
.proof-text { color: var(--ink-soft); font-weight: 600; max-width: 22ch; }
.reviews-cta { text-align: center; margin-top: 2rem; font-size: 1.1rem; color: var(--ink-soft); }
.link-strong { color: var(--terra-deep); font-weight: 800; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-points { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .6rem; }
.contact-points li { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.contact-points a { color: var(--terra-deep); text-decoration: none; }
.contact-points a:hover { text-decoration: underline; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }
.socials a {
  text-decoration: none; font-weight: 800; color: var(--sage-deep);
  border: 2px solid var(--sage); padding: .4rem 1rem; border-radius: var(--radius-pill);
  transition: background .15s, color .15s;
}
.socials a:hover { background: var(--sage); color: #fff; }

/* Form */
.contact-form-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: clamp(1.4rem, 3vw, 2.2rem);
}
.contact-form h3 { margin-top: 0; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-weight: 700; font-size: .92rem; margin-bottom: .35rem; }
.field .opt { color: var(--ink-soft); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .7rem .85rem;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--cream);
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); background: #fff;
}
.field textarea { resize: vertical; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--terra); }
.error { color: var(--terra-deep); font-size: .82rem; font-weight: 700; margin-top: .3rem; min-height: 1em; }
.form-fineprint { font-size: .82rem; color: var(--ink-soft); text-align: center; margin: .8rem 0 0; }

.form-success {
  margin-top: 1.2rem; padding: 1.2rem; border-radius: var(--radius);
  background: var(--sage-soft); border: 2px solid var(--sage);
  display: flex; align-items: center; gap: .8rem;
}
.form-success p { margin: 0; }
.success-ico { font-size: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e1d4; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand-name { font-size: 1.4rem; color: #fff; }
.footer-brand p { color: #c5bba9; margin: .5rem 0 0; }
.footer-since { font-size: .9rem; }
.footer-col h4 { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--gold); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: #e9e1d4; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; }
.footer-bottom p { margin: 0; color: #b3a895; font-size: .88rem; text-align: center; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid, .story-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-media { order: 2; }
  .card-grid, .why-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-media { max-width: 560px; }
}

@media (max-width: 760px) {
  /* Mobile nav */
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .primary-nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--cream); box-shadow: var(--shadow-lg);
    transform: translateX(105%); transition: transform .28s ease;
    padding: 5rem 1.4rem 2rem; margin: 0; overflow-y: auto;
  }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .4rem; }
  .primary-nav a { padding: .8rem 1rem; font-size: 1.1rem; }
  .nav-cta { text-align: center; margin-top: .5rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .card-grid, .why-grid, .proof-grid, .town-list, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: 1rem; max-width: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}
