/* ==========================================================================
   Joy Earls Real Estate — restored brand styles
   Palette and type sampled from the original joyearls.com:
   brand red #BE1E2D on white, Italiana display + Montserrat text.
   ========================================================================== */

:root {
  --red: #be1e2d;
  --red-dark: #97161f;
  --red-deep: #7d1119;
  --ink: #2a2618;
  --ink-soft: #55503f;
  --line: #dedede;
  --paper: #ffffff;
  --cream: #faf7f4;
  --shadow-sm: 0 1px 2px rgba(42, 38, 24, .06), 0 4px 12px rgba(42, 38, 24, .06);
  --shadow-md: 0 8px 28px rgba(42, 38, 24, .12);
  --display: "Italiana", "Playfair Display", Georgia, serif;
  --text: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --nav-h: 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keep anchored sections clear of the sticky header */
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section.cream { background: var(--cream); }
.section.red { background: var(--red); color: #fff; }
.section.ink { background: var(--ink); color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .01em;
  margin: 0;
  color: inherit;
}

h2.title { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h3.title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }

.eyebrow {
  font-family: var(--text);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: #fff; opacity: .85; }
.center { text-align: center; }
.center .eyebrow { margin-inline: auto; }

/* red rule used under headings throughout the original */
.rule {
  width: 84px; height: 3px;
  background: var(--red);
  border: 0; margin: 22px 0 0;
}
.center .rule { margin-inline: auto; }
.rule.light { background: #fff; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 2px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
  transform: translateY(-2px);
}
.btn.outline {
  background: transparent;
  color: var(--red);
}
.btn.outline:hover { background: var(--red); color: #fff; }
.btn.on-red {
  background: #fff; color: var(--red); border-color: #fff;
}
.btn.on-red:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost-light {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7);
}
.btn.ghost-light:hover { background: #fff; border-color: #fff; color: var(--red); }
.btn.lg { padding: 19px 40px; font-size: .82rem; }

/* ---------- Header ---------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.topbar .wrap {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img {
  width: auto; height: 58px;
  border-radius: 2px;
}

/* primary navigation */
.nav { display: flex; align-items: center; }
.nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav a,
.nav .submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 12px 13px;
  border-radius: 2px;
  background: none; border: 0;
  font-family: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.nav a:hover,
.nav .submenu-toggle:hover,
.nav li:hover > a,
.nav li:hover > .submenu-toggle { color: var(--red); }

.nav .cta > a {
  background: var(--red); color: #fff;
  padding-inline: 24px;
}
.nav .cta > a:hover { background: var(--red-dark); color: #fff; }

.nav .caret { width: 9px; height: 9px; flex: 0 0 auto; transition: transform .2s ease; }

/* dropdowns */
.has-sub { position: relative; }
.submenu {
  list-style: none;
  margin: 0; padding: 8px;
  position: absolute;
  top: 100%; left: 0;
  min-width: 268px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 11px 14px;
  letter-spacing: .1em;
  white-space: normal;
}
.submenu a:hover { background: var(--cream); color: var(--red); }

.burger {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
}
.burger svg { width: 22px; height: 22px; display: block; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(84vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: clamp(72px, 12vw, 132px) 0;
  background: var(--ink) center/cover no-repeat;
  background-image: url("images/hero-missoula-920.jpg");
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 38, 24, .55) 0%, rgba(125, 17, 25, .5) 55%, rgba(42, 38, 24, .72) 100%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  margin: 0 0 6px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}

.hero-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  margin: 18px 0 30px;
}
.hero-names h1 {
  font-size: clamp(2.1rem, 6.4vw, 4.4rem);
  margin: 0;
}
.hero-names h1 a {
  color: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.hero-names h1 a:hover { color: #fff; border-bottom-color: #fff; }

/* the key mark from the logo, used as the divider between the two names */
.key-divider {
  width: clamp(44px, 7vw, 74px);
  height: auto;
  flex: 0 0 auto;
  opacity: .95;
}

.hero .btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* ---------- Intro ---------- */

.intro-grid {
  display: grid;
  gap: clamp(28px, 5vw, 60px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
}

/* ---------- Biographies ---------- */

.bio { padding: clamp(56px, 7vw, 92px) 0; }
.bio + .bio { border-top: 1px solid var(--line); }
.bio.alt { background: var(--cream); }

.bio-grid {
  display: grid;
  gap: clamp(28px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .bio-grid { grid-template-columns: minmax(280px, 400px) 1fr; }
  .bio.flip .bio-grid { grid-template-columns: 1fr minmax(280px, 400px); }
  .bio.flip .bio-figure { order: 2; }
  .bio-figure { position: sticky; top: calc(var(--nav-h) + 28px); }
}

.bio-figure { margin: 0; }
.bio-photo { position: relative; z-index: 0; }
.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}
/* red frame accent from the original layout */
.bio-photo::before {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 62%; height: 62%;
  border-right: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  z-index: -1;
}
.bio-figure figcaption {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 16px;
}

.bio-body h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }

/* first paragraph after a red rule gets extra breathing room */
.bio-body .rule + p,
.book-body .rule + p,
.contact-grid .rule + p { margin-top: 26px; }
.bio-body .subhead {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--red);
  margin: 26px 0 10px;
}
.bio-body ul {
  margin: 0 0 1.1em;
  padding-left: 0;
  list-style: none;
}
.bio-body ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}
.bio-body ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .62em;
  width: 9px; height: 9px;
  background: var(--red);
  transform: rotate(45deg);
}

.bio-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.bio-contact a {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-weight: 600;
  font-size: .95rem;
  word-break: break-word;
}
.bio-contact svg { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  grid-template-columns: 1fr;
  margin-top: clamp(34px, 5vw, 58px);
}
@media (min-width: 820px) { .service-grid { grid-template-columns: 1fr 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .kicker {
  font-family: var(--text);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.service-card h3 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  text-transform: uppercase;
  color: var(--red);
}
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Communities ---------- */

.community-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: clamp(34px, 5vw, 54px);
}
@media (min-width: 620px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }

.community {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 232px;
  padding: 24px;
  color: #fff;
  background: var(--red) center/cover no-repeat;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.community::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(42, 38, 24, .18) 0%, rgba(125, 17, 25, .78) 100%);
  transition: opacity .25s ease;
}
.community.plain::after {
  background: linear-gradient(150deg, var(--red) 0%, var(--red-deep) 100%);
}
.community:hover::after { opacity: .82; }
.community h3 {
  font-size: 1.85rem;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 6px;
}
.community span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.community:hover span { text-decoration: underline; text-underline-offset: 4px; }

/* wide feature tile */
.community.feature { min-height: 300px; }
@media (min-width: 980px) { .community.feature { grid-column: span 2; } }
.community.feature h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.community.feature .key-mark {
  width: 132px; margin-bottom: 14px; opacity: .9;
}

/* ---------- Testimonials ---------- */

.testimonial-strip { position: relative; }

.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 34px 0 10px;
  /* hide scrollbar without losing keyboard/touch scrolling */
  scrollbar-width: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .testimonial-track { grid-auto-columns: 46%; } }
@media (min-width: 1060px) { .testimonial-track { grid-auto-columns: 31.5%; } }

.testimonial {
  scroll-snap-align: start;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px;
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  margin: 0;
}
.testimonial .quote-mark {
  font-family: var(--display);
  font-size: 3.4rem;
  line-height: .6;
  color: var(--red);
  height: 26px;
}
.testimonial blockquote { margin: 0; font-size: 1.02rem; }
.testimonial figcaption {
  margin-top: auto;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 6px;
  border-top: 2px solid var(--line);
}

.carousel-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}
.carousel-controls button {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .6);
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.carousel-controls button:hover { background: #fff; color: var(--red); border-color: #fff; }
.carousel-controls svg { width: 18px; height: 18px; }

/* ---------- Articles ---------- */

.article-grid {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
  grid-template-columns: 1fr;
  margin-top: clamp(34px, 5vw, 56px);
}
@media (min-width: 700px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
}
.article .tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0;
}
.article h3 { font-size: 1.5rem; }
.article p { color: var(--ink-soft); font-size: .97rem; }
.article .more {
  margin-top: auto;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.article .more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Book ---------- */

.book-grid {
  display: grid;
  gap: clamp(30px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: start;
  margin-top: clamp(30px, 4vw, 50px);
}
@media (min-width: 880px) { .book-grid { grid-template-columns: minmax(220px, 300px) 1fr; } }

.book-cover { margin: 0; position: relative; }
.book-cover img {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 44px rgba(42, 38, 24, .3);
  border-radius: 2px;
}
.book-body h3 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 8px; }
.book-meta {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section.cream .book-meta { color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 920px) { .contact-grid { grid-template-columns: 1fr 1.1fr; } }

.contact-cards {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}
@media (min-width: 560px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

.contact-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  padding: 22px;
}
.contact-card h3 {
  font-size: 1.45rem;
  margin-bottom: 4px;
}
.contact-card .role {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 12px;
}
.contact-card a { color: #fff; display: block; font-size: .88rem; overflow-wrap: anywhere; }
.contact-card a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-office {
  margin-top: 24px;
  font-size: .95rem;
  opacity: .9;
}

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: 2px;
  padding: clamp(26px, 3.5vw, 44px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 16px;
}
.contact-form .row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }

.contact-form label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 14px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(190, 30, 45, .16);
}
.contact-form textarea { resize: vertical; min-height: 132px; }
.contact-form .btn { justify-content: center; width: 100%; margin-top: 4px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  padding: clamp(56px, 7vw, 88px) 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: clamp(30px, 4vw, 52px);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

.site-footer img.footer-logo { height: 62px; width: auto; border-radius: 2px; }
.site-footer h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: #fff;
  margin: 22px 0 14px;
}
.site-footer h3 {
  font-family: var(--text);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, .82); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-links a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-contact li { display: flex; gap: .6em; }
.footer-contact .lbl { color: #fff; font-weight: 600; flex: 0 0 auto; }
.footer-contact span { word-break: break-word; }

.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding: 24px 0;
}
.footer-bottom .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  letter-spacing: .06em;
}
.footer-bottom .legal { opacity: .7; }

/* ---------- Mobile navigation ---------- */

@media (max-width: 1100px) {
  .burger { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 0 auto;
    width: min(400px, 88vw);
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 18px 18px 48px;
    overflow-y: auto;
    display: block;
    transform: translateX(100%);
    transition: transform .26s ease;
  }
  body.nav-open .nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a,
  .nav .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 14px;
    font-size: .82rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav .cta > a { background: var(--red); color: #fff; margin-top: 14px; justify-content: center; border-bottom: 0; }

  /* accordion submenus on small screens */
  .submenu {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0; border-left: 3px solid var(--red);
    background: var(--cream);
    padding: 4px 0 4px 10px;
    min-width: 0;
    display: none;
  }
  .has-sub.open > .submenu { display: block; }
  .has-sub.open > .submenu-toggle .caret { transform: rotate(180deg); }
  .submenu a { border-bottom: 0; font-size: .78rem; }

  /* backdrop */
  body.nav-open::before {
    content: "";
    position: fixed; inset: 0;
    background: rgba(42, 38, 24, .45);
    z-index: 55;
  }
  .topbar { z-index: 60; }
  .nav { z-index: 58; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 44px; }
  :root { --nav-h: 72px; }
  .bio-photo::before { display: none; }
  .testimonial-track { grid-auto-columns: 92%; }
}

/* ---------- Motion / print ---------- */

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