/* ==========================================================================
   Affordable and Easy Homes — public stylesheet
   Palette taken straight from the company logo: magenta and yellow used
   as accents against a warm neutral base, so the brand stays loud without
   the pages becoming hard to read.
   ========================================================================== */

:root {
  --ink:        #151310;
  --ink-2:      #332e26;
  --muted:      #6f6759;
  --line:       #e6dfd2;
  --line-soft:  #f0eae0;
  --paper:      #ffffff;
  --sand:       #faf6ee;
  --sand-2:     #f4eee2;

  --brand:      #e5007e;
  --brand-dark: #b30063;
  --brand-deep: #8f0050;   /* readable on the yellow header and footer */
  --brand-soft: #fdeaf3;
  --sun:        #ffc800;   /* the logo yellow — the header, footer and the
                              logo file all use this exact value, so the mark
                              sits on them with no visible edge */
  --sun-dark:   #d9a800;
  --sun-line:   #e0ae00;   /* a darker yellow for rules drawn on the yellow */
  --leaf:       #00a94f;

  --wrap:   1200px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(21,19,16,.06), 0 2px 8px rgba(21,19,16,.05);
  --shadow-md: 0 2px 6px rgba(21,19,16,.07), 0 14px 34px rgba(21,19,16,.09);
  --shadow-lg: 0 4px 12px rgba(21,19,16,.09), 0 30px 60px rgba(21,19,16,.14);

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heavy: "Arial Black", "Segoe UI", system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.018em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* -------------------------------------------------------------- layout */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(52px, 7vw, 92px) 0; }
.section-tight { padding: clamp(38px, 5vw, 60px) 0; }
.section-paper { background: var(--paper); }
.section-sand  { background: var(--sand-2); }
.section-ink   { background: var(--ink); color: #f4f0e8; }
.section-ink h2, .section-ink h3 { color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }
.section-ink .section-head p { color: #bdb5a6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-dark); margin: 0 0 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--sun); border-radius: 3px; }
.section-ink .eyebrow { color: var(--sun); }
.section-ink .eyebrow::before { background: var(--brand); }

.lede { font-size: 1.15rem; color: var(--ink-2); }

.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: 999px;
  font: 700 1rem/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(229,0,126,.28); }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }

.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(255,200,0,.34); }
.btn-sun:hover { background: var(--sun-dark); color: var(--ink); }

.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; text-decoration: none; color: var(--brand-dark);
}
.textlink svg { transition: transform .15s ease; }
.textlink:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- top bar */
.topbar {
  background: var(--ink); color: #d8d1c4;
  font-size: .86rem;
}
.topbar-in { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding: 8px 0; }
.topbar p { margin: 0; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; }
.topbar-note svg { color: var(--sun); flex: none; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; text-decoration: none; font-weight: 600;
}
.topbar-contact a:hover { color: var(--sun); }
.topbar-contact svg { color: var(--brand); flex: none; }

/* -------------------------------------------------------------- masthead */
/* The header is the logo's own yellow, so the mark sits straight on it. */
.masthead {
  background: var(--sun); border-bottom: 3px solid var(--brand);
  position: sticky; top: 0; z-index: 40;
}
.masthead-in { display: flex; align-items: center; gap: 20px; padding: 12px 0; }

.brand { flex: none; line-height: 0; }
.brand img { width: clamp(200px, 23vw, 290px); height: auto; }

.mainnav { margin-left: auto; }
.mainnav ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav a {
  display: block; padding: 10px 13px; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .97rem;
}
.mainnav a:hover { background: rgba(0,0,0,.10); color: var(--ink); }
.mainnav a[aria-current="page"] { background: var(--ink); color: var(--sun); }
.nav-cta { margin-left: 10px; }
.nav-cta a { color: #fff; }
.nav-cta a:hover { color: #fff; background: var(--brand-dark); }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 9px;
  padding: 10px 16px; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; font: 700 .95rem var(--sans); cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #f2eee6;
  padding: clamp(48px, 7vw, 90px) 0 clamp(56px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(760px 460px at 12% -10%, rgba(229,0,126,.30), transparent 62%),
    radial-gradient(620px 420px at 92% 8%, rgba(255,200,0,.18), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--brand) 0 34%, var(--sun) 34% 68%, var(--leaf) 68% 100%);
}
.hero-in { position: relative; display: grid; gap: clamp(30px, 4vw, 56px); grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }

.hero-kicker {
  display: inline-block; background: var(--sun); color: var(--ink);
  padding: 7px 16px; border-radius: 999px;
  font: 800 .78rem/1 var(--sans); letter-spacing: .11em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .hl {
  color: var(--sun);
  /* A quiet nod to the chromatic offset in the logo wordmark. */
  text-shadow: 3px 3px 0 rgba(229,0,126,.55);
}
.hero-intro { font-size: clamp(1.03rem, .95rem + .35vw, 1.2rem); color: #cdc6b8; max-width: 56ch; }
.hero .btn-row { margin-top: 26px; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 32px 0 0; padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 9px; font-size: .93rem; color: #d5cec0; font-weight: 600; }
.hero-proof svg { color: var(--sun); flex: none; }

.hero-card {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); color: var(--ink); position: relative;
}
.hero-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-card-body { padding: 20px 24px 24px; }
.hero-card-body h2 { font-size: 1.4rem; margin-bottom: 4px; }
.hero-card-body p { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.hero-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--sun); color: var(--ink);
  padding: 7px 14px; border-radius: 999px;
  font: 800 .74rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
}

/* page banner for interior pages */
.page-head {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: clamp(40px, 5vw, 68px) 0 clamp(44px, 5vw, 72px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 400px at 8% 0%, rgba(229,0,126,.28), transparent 62%),
              radial-gradient(520px 340px at 96% 20%, rgba(255,200,0,.14), transparent 60%);
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand) 0 34%, var(--sun) 34% 68%, var(--leaf) 68% 100%);
}
.page-head-in { position: relative; max-width: 68ch; }
.page-head h1 { color: #fff; }
.page-head p { color: #cdc6b8; font-size: 1.1rem; margin-bottom: 0; }
.page-head .eyebrow { color: var(--sun); }
.page-head .eyebrow::before { background: var(--brand); }

.crumbs { font-size: .88rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: inherit; }
.crumbs span { opacity: .5; margin: 0 6px; }
.page-head .crumbs { color: #a9a294; }
.page-head .crumbs a { color: #d8d1c4; }

/* -------------------------------------------------------------- promises */
.promise-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.promise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.promise {
  padding: 26px 26px 26px 0; display: flex; gap: 14px; align-items: flex-start;
  border-right: 1px solid var(--line-soft);
}
.promise:last-child { border-right: 0; }
.promise + .promise { padding-left: 26px; }
.promise-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark);
}
.promise h3 { font-size: 1rem; margin-bottom: 3px; }
.promise p { font-size: .9rem; color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}

.home-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8cdb9; }
.home-card-media { position: relative; background: var(--sand-2); }
.home-card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.home-card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(21,19,16,.86); color: #fff; backdrop-filter: blur(4px);
  padding: 6px 12px; border-radius: 999px;
  font: 700 .72rem/1 var(--sans); letter-spacing: .07em; text-transform: uppercase;
}
.home-card-plan {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--sun); color: var(--ink);
  padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  font: 700 .74rem/1 var(--sans);
}
.home-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.home-card-body h3 { margin-bottom: 4px; }
.home-card-body h3 a { color: inherit; text-decoration: none; }
.home-card-body h3 a:hover { color: var(--brand-dark); }
.home-meta { font-size: .87rem; font-weight: 700; color: var(--brand-dark); letter-spacing: .02em; margin: 0 0 10px; }
.home-card-body p { color: var(--muted); font-size: .96rem; }
.home-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-note { font-size: .86rem; color: var(--muted); margin: 0; }

/* range / category cards */
.range-card {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.range-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.range-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--sun); margin-bottom: 4px;
}
.range-card h3 { margin: 0; }
.range-card .tagline { font-weight: 700; color: var(--brand-dark); font-size: .92rem; margin: 0; }
.range-card p { color: var(--muted); font-size: .96rem; margin: 0; }
.range-card .textlink { margin-top: 6px; }

/* -------------------------------------------------------------- steps */
.steps { counter-reset: step; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding-top: 18px; border-top: 4px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font: 800 .95rem/1 var(--sans); color: var(--brand); letter-spacing: .1em; margin-bottom: 10px;
}
.step:nth-child(1) { border-top-color: var(--brand); }
.step:nth-child(2) { border-top-color: var(--sun); }
.step:nth-child(3) { border-top-color: var(--leaf); }
.step:nth-child(4) { border-top-color: var(--ink); }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); font-size: .97rem; margin: 0; }
.section-ink .step { border-top-color: rgba(255,255,255,.16); }
.section-ink .step p { color: #b9b2a4; }

/* -------------------------------------------------------------- features */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; align-items: flex-start; }
.feature-list svg { color: var(--leaf); flex: none; margin-top: 2px; }

.reasons { list-style: none; margin: 0; padding: 0; counter-reset: reason; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.reasons li {
  counter-increment: reason;
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 12px; padding: 18px 20px; font-weight: 600;
}
.reasons li::before {
  content: counter(reason); flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: grid; place-items: center; font: 800 .9rem/1 var(--sans);
}

.build-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.build-card .range-icon { background: var(--brand); color: #fff; }
.build-card h3 { margin-bottom: 8px; }
.build-card p { color: var(--muted); margin: 0; }

.split { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

.pull-facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; padding: 0; list-style: none; }
.pull-facts li { border-left: 3px solid var(--sun); padding-left: 14px; }
.pull-facts strong { display: block; font: 800 1.9rem/1.1 var(--sans); letter-spacing: -.02em; }
.pull-facts span { font-size: .9rem; color: var(--muted); }
.section-ink .pull-facts span { color: #b9b2a4; }

/* -------------------------------------------------------------- home detail */
.home-layout { display: grid; gap: clamp(28px, 3.5vw, 48px); grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }

.gallery-main {
  position: relative; background: var(--sand-2); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-main.is-plan img { object-fit: contain; background: #fff; }
.gallery-caption {
  margin: 0; padding: 12px 18px; font-size: .9rem; color: var(--muted);
  background: var(--paper); border-top: 1px solid var(--line);
}
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.gallery-thumbs button {
  padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--sand-2); cursor: pointer; line-height: 0;
}
.gallery-thumbs img { width: 96px; height: 72px; object-fit: cover; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery-thumbs .is-plan-thumb img { object-fit: contain; background: #fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0 0 14px; border-bottom: 2px solid var(--line); list-style: none; }
.tabs button {
  padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sand-2); color: var(--ink-2); font: 700 .95rem var(--sans);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab-panel { padding-top: 24px; }
.tab-panel[hidden] { display: none; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 45%; }
.spec-table td { font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.sidebar-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-md);
}
.sidebar-card + .sidebar-card { margin-top: 20px; }
.sidebar-card h2 { font-size: 1.25rem; }
.sidebar-card > p:last-child { margin-bottom: 0; }
.sidebar-sticky { position: sticky; top: 96px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px;
  font: 700 .78rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
}
.badge-sun  { background: var(--sun); color: var(--ink); }
.badge-soft { background: var(--brand-soft); color: var(--brand-dark); }
.badge-ink  { background: var(--ink); color: #fff; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  background: rgba(12,10,8,.93); padding: 24px;
  align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 96vw); max-height: 88vh; width: auto; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font: 700 1.4rem/1 var(--sans);
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--ink); font: 700 1.5rem/1 var(--sans);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* -------------------------------------------------------------- filters */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 18px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px;
}
.filters form { display: contents; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--sand); color: var(--ink-2); text-decoration: none;
  font: 650 .92rem var(--sans);
}
.chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-search { margin-left: auto; display: flex; gap: 8px; }
.filter-search input { min-width: 200px; }

.result-count { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }

.empty {
  text-align: center; padding: 56px 24px; background: var(--paper);
  border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty h3 { color: var(--ink); }

/* -------------------------------------------------------------- clients */
.client-card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.client-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.client-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.client-card-body h3 { margin-bottom: 3px; font-size: 1.18rem; }
.client-card-body h3 a { color: inherit; text-decoration: none; }
.client-where { font-size: .87rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.client-card-body p { color: var(--muted); font-size: .95rem; }

.quote {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--sun);
  border-radius: var(--radius); padding: 28px 30px; margin: 0;
}
.quote svg { color: var(--sun); margin-bottom: 10px; }
.quote p { font-size: 1.14rem; line-height: 1.55; font-weight: 500; }
.quote footer { font-size: .92rem; color: var(--muted); font-weight: 700; }

/* -------------------------------------------------------------- faq */
.faq-list { display: grid; gap: 12px; max-width: 82ch; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; font-weight: 750; font-size: 1.05rem; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--brand); transition: transform .2s ease; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-body { padding: 0 22px 22px; color: var(--ink-2); }
.faq-body > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }

input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid #d5cbb8; border-radius: 10px; background: var(--paper);
  font: 400 1rem var(--sans); color: var(--ink);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f6759 50%), linear-gradient(135deg, #6f6759 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

.field-row { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; border: 1px solid; }
.notice p { margin: 0; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok   { background: #ecfaf1; border-color: #b6e6c8; color: #14532d; }
.notice-bad  { background: #fdeef0; border-color: #f3c2ca; color: #86142c; }
.notice-info { background: #fff8e0; border-color: #f2dc9a; color: #6a4e00; }

/* -------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { color: var(--brand); flex: none; margin-top: 2px; }
.contact-list a { color: inherit; font-weight: 650; }
/* The business email is long and has no spaces in it. Without these two
   rules it refuses to wrap and pushes the whole page sideways. */
.contact-list li > :not(svg) { min-width: 0; overflow-wrap: anywhere; }
.topbar-contact a, .footer-col a { overflow-wrap: anywhere; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; line-height: 0; }
.map-frame iframe { width: 100%; height: 320px; border: 0; }

/* -------------------------------------------------------------- cta band */
.cta-band { background: var(--brand); color: #fff; padding: clamp(38px, 5vw, 62px) 0; }
.cta-band-in { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: 6px; max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 60ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-brand { background: var(--sun); color: var(--ink); box-shadow: none; }
.cta-band .btn-brand:hover { background: #fff; color: var(--ink); }

/* -------------------------------------------------------------- footer */
/* Same yellow as the header and the logo. Black text on it clears AA with
   room to spare; the pink is darkened to --brand-deep so it does too. */
.site-footer {
  background: var(--sun); color: var(--ink-2);
  border-top: 6px solid var(--ink);
  padding: clamp(44px, 5vw, 70px) 0 0; font-size: .95rem;
}
.footer-grid { display: grid; gap: 34px; grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(160px, 1fr)); }
.footer-brand img { width: 250px; margin-bottom: 16px; }
.footer-brand p { max-width: 42ch; }
.footer-col h2 { font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink); text-decoration: none; font-weight: 600; }
.footer-col a:hover { color: var(--brand-deep); text-decoration: underline; }
.footer-contact .contact-list svg { color: var(--brand-deep); }
.footer-contact .contact-list a { color: var(--ink); }
.footer-social { display: flex; gap: 10px; margin: 0; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--sun);
}
.footer-social a:hover { background: var(--brand); color: #fff; }

/* A black strip closes the page off, so it does not end in a wall of yellow. */
.footer-base-band { background: var(--ink); margin-top: 44px; }
.footer-base {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding: 18px 0; font-size: .87rem; color: #a29b8c;
}
.footer-base p { margin: 0; }
.footer-base a { color: #a29b8c; }
.footer-base a:hover { color: var(--sun); }

/* -------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.page-link {
  min-width: 42px; padding: 10px 14px; border-radius: 10px; text-align: center;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  text-decoration: none; font-weight: 650;
}
.page-link:hover { border-color: var(--brand); color: var(--brand-dark); }
.page-link.is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.page-gap { padding: 10px 4px; color: var(--muted); }

/* -------------------------------------------------------------- prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 4px solid var(--sun); font-size: 1.1rem; font-style: italic; color: var(--ink-2);
}
.prose ul li { margin-bottom: .4em; }

/* -------------------------------------------------------------- utilities */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .home-layout { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .mainnav { display: none; width: 100%; margin: 0; order: 3; }
  .mainnav.is-open { display: block; }
  .masthead-in { flex-wrap: wrap; }
  .mainnav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 0 14px; border-top: 1px solid rgba(0,0,0,.18); margin-top: 8px; }
  .mainnav a { padding: 13px 14px; font-size: 1.02rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta a { justify-content: center; padding: 14px; }
  .promise { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
  .promise + .promise { padding-left: 0; }
  .cta-band-in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .topbar-in { justify-content: center; text-align: center; }
  .gallery-thumbs img { width: 74px; height: 56px; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .topbar, .masthead, .cta-band, .site-footer, .btn, .tabs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .home-layout { grid-template-columns: 1fr; }
  .tab-panel[hidden] { display: block !important; }
}
