/* ==========================================================================
   Design Homes Style — designhomesstyle.com
   Custom theme layered on top of Bootstrap 5 (grid + components)
   Palette: deep forest green / warm sand / clay accent
   Fonts: Fraunces (display) + Inter (body) — self-hosted
   ========================================================================== */

:root {
  --ink: #0d1a14;
  --ink-soft: #16281f;
  --forest: #17352b;
  --forest-2: #1f4436;
  --sage: #edf2ec;
  --sage-2: #dfe8dd;
  --sand: #faf7f1;
  --sand-2: #f2ece0;
  --clay: #b4623f;
  --clay-dark: #98502f;
  --clay-soft: #e9b79b;
  --gold: #c39a4e;
  --muted: #5f6f68;
  --line: #e6e0d4;
  --white: #ffffff;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 6px 18px -10px rgba(13, 26, 20, .35);
  --shadow-md: 0 26px 50px -28px rgba(13, 26, 20, .45);
  --shadow-lg: 0 40px 80px -40px rgba(13, 26, 20, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------- 1. Base -- */

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.4rem); }

a { color: var(--clay); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--clay-dark); }

img { max-width: 100%; height: auto; }

::selection { background: var(--clay); color: #fff; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--forest); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

.section { padding: clamp(3.4rem, 7vw, 6.4rem) 0; }
.section-sm { padding: clamp(2.4rem, 4.5vw, 3.6rem) 0; }
.bg-sand { background: var(--sand); }
.bg-sage { background: var(--sage); }
.bg-forest { background: var(--forest); color: #dce7de; }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4 { color: #fff; }
.bg-forest .lead-muted, .bg-forest .text-muted { color: #b9cbc0 !important; }

.lead-muted { color: var(--muted); font-size: 1.055rem; line-height: 1.8; }
.text-clay { color: var(--clay) !important; }
.text-ink { color: var(--ink) !important; }

.display-hero {
  font-size: clamp(2.5rem, 5.1vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .72rem; font-weight: 600; color: var(--clay);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; opacity: .55; }
.bg-forest .eyebrow { color: var(--clay-soft); }

.section-head { max-width: 44rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ------------------------------------------------------------ 2. Buttons -- */

.btn {
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .78rem 1.55rem;
  transition: all .3s var(--ease);
  border-width: 1px;
}
.btn-lg { padding: .95rem 2rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1.15rem; font-size: .875rem; }

.btn-clay { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 14px 28px -16px rgba(180, 98, 63, .95); }
.btn-clay:hover, .btn-clay:focus { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; transform: translateY(-2px); }

.btn-forest { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: 0 14px 28px -18px rgba(23, 53, 43, .95); }
.btn-forest:hover, .btn-forest:focus { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline-ink { background: transparent; border-color: rgba(13, 26, 20, .22); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: #fff; border-color: #fff; color: var(--ink); transform: translateY(-2px); }

.btn-link-quiet { color: var(--ink); font-weight: 600; padding: 0; border: 0; }
.btn-link-quiet i { transition: transform .3s var(--ease); }
.btn-link-quiet:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------- 3. Header -- */

.site-top {
  background: var(--forest);
  color: #c6d8cc;
  font-size: .84rem;
  padding: .5rem 0;
}
.site-top a { color: #dfeae1; }
.site-top a:hover { color: #fff; }
.site-top .sep { opacity: .35; margin: 0 .75rem; }

.navbar-dhs {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
  transition: box-shadow .3s var(--ease);
}
.navbar-dhs.is-stuck { box-shadow: 0 12px 34px -22px rgba(13, 26, 20, .55); }
.navbar-dhs .navbar-brand { display: flex; align-items: center; gap: .7rem; padding: 0; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; }
.brand-text { line-height: 1; }
.brand-text .b1 { font-family: 'Fraunces', Georgia, serif; font-size: 1.16rem; font-weight: 600; color: var(--ink); display: block; letter-spacing: -.01em; }
.brand-text .b2 { font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--clay); font-weight: 600; display: block; margin-top: .22rem; }

.navbar-dhs .nav-link {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: .55rem .9rem !important; position: relative;
}
.navbar-dhs .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--clay);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar-dhs .nav-link:hover::after, .navbar-dhs .nav-link.active::after { transform: scaleX(1); }
.navbar-dhs .nav-link.active { color: var(--clay); }
.navbar-dhs .navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .6rem; }
.navbar-dhs .navbar-toggler:focus { box-shadow: none; }

.header-cta { display: flex; align-items: center; gap: .6rem; }

@media (max-width: 1199.98px) { .header-cta { margin-top: 1rem; } }

/* --------------------------------------------------------------- 4. Hero -- */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-image: url("../assets/img/hero.jpg");
  background-size: cover; background-position: center 45%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(8, 20, 15, .93) 0%, rgba(8, 20, 15, .80) 38%, rgba(8, 20, 15, .42) 68%, rgba(8, 20, 15, .18) 100%),
    radial-gradient(120% 90% at 90% 0%, rgba(180, 98, 63, .30) 0%, transparent 55%);
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .84); }
.hero-inner { padding: clamp(4.5rem, 9vw, 8rem) 0; max-width: 42rem; }

.hero-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 2rem; list-style: none; padding: 0; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
  border-radius: 999px; padding: .42rem 1rem; font-size: .84rem; color: rgba(255, 255, 255, .93);
}
.hero-chips i { color: var(--clay-soft); }

.hero-note {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  background: rgba(255, 255, 255, .95); color: var(--ink);
  border-radius: var(--radius) 0 0 0;
  padding: 1.35rem 1.6rem; max-width: 22rem;
  box-shadow: var(--shadow-md);
}
.hero-note p { color: var(--muted); margin: 0; font-size: .9rem; }
.hero-note strong { font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; display: block; margin-bottom: .3rem; color: var(--ink); }
@media (max-width: 767.98px) { .hero-note { display: none; } }

/* ---------------------------------------------------- 5. Page hero (inner) */

.page-hero {
  position: relative; color: #fff; isolation: isolate;
  padding: clamp(3.2rem, 6vw, 5.2rem) 0 clamp(3.6rem, 7vw, 5.8rem);
  background: var(--forest);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2rem), 0 100%);
}
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .30; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(10, 26, 20, .92) 0%, rgba(23, 53, 43, .72) 55%, rgba(180, 98, 63, .38) 100%);
}
.page-hero h1 { color: #fff; max-width: 40rem; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 44rem; margin-bottom: 0; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); margin: .9rem 0 0; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .82); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: var(--clay-soft); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }

/* ----------------------------------------------------- 6. Service band ----- */

.marquee {
  background: var(--ink); color: #cfe0d6; padding: .95rem 0; overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: slide 42s linear infinite; }
.marquee span {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: .88;
}
.marquee span::after { content: "◆"; color: var(--clay); font-size: .55rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------------------------------------------------- 7. Service cards ---- */

.card-service {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card-service:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: #dcd4c4; }
.card-service .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand-2); }
.card-service .media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.card-service:hover .media img { transform: scale(1.07); }
.card-service .media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 26, 20, 0) 45%, rgba(13, 26, 20, .45) 100%);
}
.card-service .icon-badge {
  position: absolute; right: 1rem; bottom: -1.35rem; z-index: 2;
  width: 52px; height: 52px; border-radius: 16px;
  background: #fff; color: var(--clay); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 1.35rem;
  box-shadow: var(--shadow-sm); transition: all .4s var(--ease);
}
.card-service:hover .icon-badge { background: var(--clay); color: #fff; border-color: var(--clay); transform: rotate(-6deg); }
.card-service .body { padding: 1.7rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.card-service h3 { font-size: 1.19rem; margin-bottom: .6rem; }
.card-service .desc { color: var(--muted); font-size: .94rem; line-height: 1.72; margin-bottom: 1.15rem; }
.card-service .tag-pill {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  background: rgba(255, 255, 255, .93); color: var(--ink);
  border-radius: 999px; padding: .34rem .9rem;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
}
.card-service .card-foot { margin-top: auto; padding-top: 1.15rem; border-top: 1px dashed var(--line); }
.card-service .card-foot .btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; width: 100%; }
.card-service .card-foot .btn i { transition: transform .3s var(--ease); }
.card-service .card-foot .btn:hover i { transform: translateX(4px); }
.card-service .dot-list { margin-bottom: 1.25rem; }
.card-service .dot-list li { font-size: .89rem; margin-bottom: .45rem; padding-left: 1.55rem; }

/* ------------------------------------------------------ 8. Feature tiles -- */

.tile {
  height: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.6rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tile .tile-icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--sage); color: var(--forest-2); font-size: 1.4rem; margin-bottom: 1.1rem;
  transition: all .4s var(--ease);
}
.tile:hover .tile-icon { background: var(--clay); color: #fff; transform: rotate(-6deg); }
.tile h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.tile p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.bg-forest .tile { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.bg-forest .tile p { color: #b9cbc0; }
.bg-forest .tile .tile-icon { background: rgba(255, 255, 255, .1); color: var(--clay-soft); }

/* --------------------------------------------------------- 9. Process ----- */

.step {
  position: relative; height: 100%; padding: 1.8rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step .step-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--forest); color: #fff; font-size: 1.2rem; margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------------------------------------------------------- 10. Stories --- */

.story { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.story:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.story .media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.story .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.story:hover .media img { transform: scale(1.06); }
.story .pill {
  position: absolute; left: 1rem; top: 1rem; z-index: 2;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  border-radius: 999px; padding: .32rem .85rem; font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.story .body { padding: 1.5rem 1.5rem 1.65rem; }
.story h3 { font-size: 1.14rem; margin-bottom: .55rem; }
.story h3 a { color: var(--ink); }
.story h3 a:hover { color: var(--clay); }
.story .meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .8rem; }
.story p { color: var(--muted); font-size: .93rem; margin-bottom: 1.1rem; }

/* ----------------------------------------------------------- 11. Bands ---- */

.cta-band {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  border-radius: var(--radius-lg);
}
.cta-band .cb-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(9, 22, 17, .94) 0%, rgba(23, 53, 43, .82) 52%, rgba(180, 98, 63, .45) 100%);
}
.cta-band .inner { padding: clamp(2.4rem, 5vw, 4rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); margin-bottom: 0; }

.newsletter-band {
  background: var(--forest);
  color: #dce7de; border-radius: var(--radius-lg);
  padding: clamp(2rem, 4.5vw, 3.4rem);
  position: relative; overflow: hidden;
}
.newsletter-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(180, 98, 63, .45), transparent 68%);
}
.newsletter-band h2 { color: #fff; }
.newsletter-band p { color: #b9cbc0; margin-bottom: 0; }
.newsletter-band .form-control { border-radius: 999px; padding: .85rem 1.3rem; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; }
.newsletter-band .form-control::placeholder { color: rgba(255, 255, 255, .55); }
.newsletter-band .form-control:focus { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 .2rem rgba(180, 98, 63, .35); border-color: var(--clay-soft); }

.quote-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; height: 100%; position: relative;
}
.quote-card::before {
  content: "\201C"; font-family: 'Fraunces', Georgia, serif; font-size: 4.5rem; line-height: .7;
  color: var(--clay); opacity: .35; display: block; margin-bottom: .6rem;
}
.quote-card p { color: var(--ink-soft); font-size: 1rem; }
.quote-card .who { font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }

/* -------------------------------------------------------- 12. Forms ------- */

.form-label { font-weight: 600; font-size: .88rem; color: var(--ink-soft); margin-bottom: .4rem; }
.form-control, .form-select {
  border-radius: 14px; border: 1px solid var(--line); padding: .8rem 1.05rem;
  font-size: .95rem; background: #fff; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-control:focus, .form-select:focus {
  border-color: var(--clay); box-shadow: 0 0 0 .22rem rgba(180, 98, 63, .16);
}
.form-control::placeholder { color: #a9b3ad; }
.form-check-input { width: 1.15rem; height: 1.15rem; border-color: #cbd3cd; margin-top: .22rem; }
.form-check-input:checked { background-color: var(--clay); border-color: var(--clay); }
.form-check-input:focus { border-color: var(--clay); box-shadow: 0 0 0 .2rem rgba(180, 98, 63, .16); }
.form-check-label { font-size: .92rem; color: var(--muted); }
.form-hint { font-size: .82rem; color: var(--muted); }
.was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: #c0392b; }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; height: 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.contact-card .ci {
  width: 48px; height: 48px; border-radius: 14px; background: var(--sage); color: var(--forest-2);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--muted); margin-bottom: 0; }
.contact-card a { color: var(--ink); font-weight: 600; }
.contact-card a:hover { color: var(--clay); }

.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.6rem); box-shadow: var(--shadow-sm);
}

/* -------------------------------------------------------- 13. Articles ---- */

.article-body { font-size: 1.06rem; color: #2b3a33; }
.article-body > p { margin-bottom: 1.35rem; }
.article-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 2.6rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.9rem 0 .75rem; }
.article-body ul, .article-body ol { margin-bottom: 1.4rem; padding-left: 1.1rem; }
.article-body li { margin-bottom: .6rem; }
.article-body ul li::marker { color: var(--clay); }
.article-body img { border-radius: var(--radius); margin: 1.6rem 0; }
.article-body blockquote {
  margin: 2rem 0; padding: 1.4rem 1.6rem; border-left: 3px solid var(--clay);
  background: var(--sand); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; color: var(--ink-soft);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body .callout {
  background: var(--sage); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.8rem 0;
  border: 1px solid var(--sage-2);
}
.article-body .callout h3 { margin-top: 0; }
.article-body .callout p:last-child { margin-bottom: 0; }

.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; font-size: .84rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clay); display: inline-block; }

.toc { position: sticky; top: 6.5rem; }
.toc h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { margin-bottom: .55rem; }
.toc a { color: var(--ink); font-size: .92rem; }
.toc a:hover { color: var(--clay); }

.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.author-box .ab-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; flex: 0 0 52px; }
.author-box p { margin: 0; font-size: .92rem; color: var(--muted); }
.author-box strong { color: var(--ink); }

.legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 .8rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.legal-body p, .legal-body li { color: #33443c; font-size: .99rem; }
.legal-body ul { padding-left: 1.1rem; }
.legal-body li { margin-bottom: .5rem; }
.legal-body ul li::marker { color: var(--clay); }

/* --------------------------------------------------------- 14. Footer ----- */

.site-footer { background: var(--ink); color: #a9bdaf; padding-top: clamp(3rem, 6vw, 4.6rem); }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 1.1rem; }
.site-footer a { color: #c3d3c8; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer p { font-size: .93rem; }
.footer-brand .brand-text .b1 { color: #fff; }
.footer-brand .brand-text .b2 { color: var(--clay-soft); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: clamp(2.2rem, 4vw, 3.2rem); padding: 1.3rem 0; font-size: .86rem; }
.footer-bottom a { font-size: .86rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  display: inline-grid; place-items: center; color: #d6e3d9;
  transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; transform: translateY(-3px); }

.to-top {
  position: fixed; right: 1.15rem; bottom: 1.15rem; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--forest); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--clay); transform: translateY(-3px); }

/* --------------------------------------------------- 15. Reveal effect ---- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------ 16. Accordion ----- */

.accordion-dhs .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .85rem; overflow: hidden; }
.accordion-dhs .accordion-button {
  font-family: 'Fraunces', Georgia, serif; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  background: #fff; padding: 1.1rem 1.3rem;
}
.accordion-dhs .accordion-button:not(.collapsed) { background: var(--sage); color: var(--ink); box-shadow: none; }
.accordion-dhs .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.accordion-dhs .accordion-button::after { color: var(--clay); }
.accordion-dhs .accordion-body { color: var(--muted); font-size: .96rem; padding: 1.15rem 1.3rem 1.4rem; }

/* -------------------------------------------------------- 17. Utility ----- */

.ratio-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.ratio-frame img { display: block; width: 100%; }
.img-stack { position: relative; }
.img-stack .float-card {
  position: absolute; left: -1.2rem; bottom: 2rem; max-width: 15rem;
  background: #fff; border-radius: var(--radius); padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.img-stack .float-card strong { font-family: 'Fraunces', Georgia, serif; display: block; margin-bottom: .25rem; }
.img-stack .float-card p { font-size: .86rem; color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .img-stack .float-card { position: static; margin-top: 1rem; max-width: 100%; } }

.dot-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.dot-list li { position: relative; padding-left: 1.7rem; margin-bottom: .7rem; color: var(--muted); font-size: .96rem; }
.dot-list li::before {
  content: "\2713"; position: absolute; left: 0; top: .05rem;
  width: 20px; height: 20px; border-radius: 50%; background: var(--sage); color: var(--forest-2);
  font-size: .68rem; display: grid; place-items: center; font-weight: 700;
}
.bg-forest .dot-list li { color: #b9cbc0; }
.bg-forest .dot-list li::before { background: rgba(255, 255, 255, .12); color: var(--clay-soft); }

.badge-pill-soft {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--sage); color: var(--forest-2); border-radius: 999px;
  padding: .38rem .95rem; font-size: .82rem; font-weight: 600;
}
.badge-pill-soft.clay { background: rgba(180, 98, 63, .12); color: var(--clay-dark); }

.hr-fade { height: 1px; background: linear-gradient(90deg, var(--line), transparent); border: 0; margin: 2.5rem 0; }

.alignwide { max-width: 1180px; }
.narrow { max-width: 760px; }

/* Small screens */
@media (max-width: 575.98px) {
  .hero { min-height: auto; }
  .hero-inner { padding: 4rem 0; }
  .card-service .body { padding: 1.5rem 1.25rem; }
  .card-service .card-foot .btn { white-space: nowrap; }
}

/* If the hero photograph cannot load, the overlay keeps the section readable */
.hero-media { background-color: var(--forest); }
