/* =========================================================
   MD Legacy Property Care — site styles
   ✏️ EDIT: Brand colors & fonts live in :root below. Change once, updates everywhere.
   - Gold is the only "metallic" finish: logo, buttons, key numbers.
   - Bone white is used for light sections, cards, and menus.
   - Each service page has its own accent (see "Page themes").
   ========================================================= */
:root {
  /* dark backgrounds (soft matte charcoal, not pure black) */
  --black:      #1B1B1A;  /* page background */
  --black-2:    #242422;  /* lifted panels/cards */
  --line:       #373531;  /* hairlines on dark */

  /* bone white */
  --bone:       #ECE5D6;  /* light sections, cards, and text on dark */
  --bone-2:     #E2DACA;  /* cards sitting on a bone section */
  --bone-3:     #F7F3EA;  /* form fields on bone */
  --bone-dim:   #BDB6A7;  /* secondary text on dark (~8:1) */
  --line-light: #CDC4B1;  /* hairlines on bone */

  /* ink (text on bone) */
  --ink:        #1D1C1A;
  --ink-dim:    #57534B;  /* ~6:1 on bone */

  /* gold */
  --gold:       #D4AF61;
  --gold-hi:    #F0D58E;
  --gold-lo:    #A8823A;
  --gold-ink:   #7A5B1F;  /* gold that's readable on bone (~5:1) */
  --gold-metal: linear-gradient(135deg, var(--gold-lo) 0%, var(--gold) 35%, var(--gold-hi) 55%, var(--gold) 75%, var(--gold-lo) 100%);

  /* page accent (gold by default; snow + cleaning pages override) */
  --accent:     var(--gold);
  --accent-ink: var(--gold-ink);

  --error:      #F2A08F;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --max: 1080px;
  --header-h: 64px;
  --shade: 16, 16, 15;   /* photo overlay color (r, g, b) */
}

/* ---------- Page themes ---------- */
/* MD Snow Rx: blue-black with greyish-blue accents */
body.theme-snow {
  --black:      #161C23;
  --black-2:    #1E262F;
  --line:       #2E3946;
  --accent:     #9DB1C5;   /* greyish blue on dark (~7:1) */
  --accent-ink: #3D5165;   /* greyish blue on bone (~6:1) */
  --shade:      12, 18, 26;
}
/* MD Clean Rx: teal-black with a crisp, sparkly aqua */
body.theme-clean {
  --black:      #161C1C;
  --black-2:    #1E2625;
  --line:       #2D3937;
  --accent:     #86E0D3;   /* aqua on dark (~11:1) */
  --accent-ink: #19675F;   /* aqua on bone (~5:1) */
  --shade:      12, 22, 21;
}

/* ---------- Base (mobile first) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0; background: var(--black); color: var(--bone);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--bone); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.dim { color: var(--bone-dim); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }

.eyebrow {
  display: block; font-size: .75rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .9em;
}
.rule { width: 48px; height: 1px; border: 0; background: var(--accent); margin: 1.4em 0; }
.center .rule { margin-left: auto; margin-right: auto; }
.num { font-family: var(--font-heading); color: var(--gold); font-weight: 600; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; background: var(--bone); color: var(--ink);
}

/* ---------- Buttons (metallic gold) ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius);
  background: var(--gold-metal); color: #141210; border: 0;
  font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  cursor: pointer; transition: filter .15s;
}
.btn:hover { color: #141210; filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--bone-dim); }
.btn-ghost:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); filter: none; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

/* ---------- Header (shrinks once you scroll) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--black) 94%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); transition: height .3s ease; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); flex: none; }
.brand img { width: 40px; height: 36px; transition: width .3s, height .3s; }
.brand-name {
  font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.1; white-space: nowrap;
  max-width: 220px; overflow: hidden; transition: opacity .25s, max-width .3s;
}
.brand-name small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bone-dim); }
.header-tagline {
  flex: 1; margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--font-heading); font-style: italic; color: var(--gold);
  font-size: clamp(.9rem, 3.9vw, 1.1rem); transition: font-size .3s;
}

.site-header.scrolled { --header-h: 52px; }
.site-header.scrolled .brand img { width: 34px; height: 30px; }
.site-header.scrolled .brand-name { opacity: 0; max-width: 0; }

.nav-toggle { background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; flex: none; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--bone); margin: 5px 0; }

/* menu as a drop-down panel (phones, and on every screen once scrolled) */
.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; background: var(--black); border-bottom: 1px solid var(--line); padding: 4px 16px 20px;
}
.site-nav.open { display: flex; }
.site-nav > a, .nav-drop { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.site-nav a[aria-current="page"], .nav-drop.current { color: var(--accent); }
.site-nav .btn { margin-top: 16px; border-bottom: 0; }

/* Services drop-down */
.nav-drop {
  display: flex; align-items: center; gap: 6px; width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0;
  color: var(--bone); font: inherit; cursor: default; text-align: left;
}
.nav-drop::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 4px; }
.nav-menu { display: grid; gap: 4px; padding: 10px 0 6px; }
.nav-menu a {
  display: block; text-decoration: none; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bone); color: var(--ink);
}
.nav-menu a strong { display: block; font-family: var(--font-heading); font-weight: 600; }
.nav-menu a span { font-size: .85rem; color: var(--ink-dim); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--bone-2); color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.hero { padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero .tagline { font-family: var(--font-heading); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.lead { font-size: 1.12rem; color: var(--bone-dim); max-width: 34em; }
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid > * { background: var(--black); padding: 26px 22px; }
.grid h3 { margin-bottom: .3em; }
.grid p { margin: 0; color: var(--bone-dim); }
.step-n { display: block; font-family: var(--font-heading); color: var(--accent); font-size: 1.6rem; margin-bottom: 6px; }

.towns { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { padding: 7px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600; background: var(--bone); color: var(--ink); }

.facts { display: grid; gap: 18px; margin: 24px 0 0; }
.facts div { border-left: 1px solid var(--accent); padding-left: 16px; }
.facts dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.facts dd { margin: 2px 0 0; font-family: var(--font-heading); font-size: 1.35rem; color: var(--accent); }

/* bone cards on a dark section */
.cards { display: grid; gap: 16px; }
.card {
  display: block; background: var(--bone); color: var(--ink); border-radius: var(--radius);
  padding: 28px 24px; text-decoration: none; position: relative; overflow: hidden;
}
.card h3 { color: var(--ink); font-size: 1.5rem; }
.card p { color: var(--ink-dim); margin: 0; }
.card .eyebrow { color: var(--accent-ink); }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--ink); }
a.card:hover { color: var(--ink); background: var(--bone-2); }
.card.snow { --accent-ink: #3D5165; }
.card.clean { --accent-ink: #19675F; }
.card .card-art { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--bone-dim); }

.tribute { font-family: var(--font-heading); font-size: clamp(1.25rem, 4.5vw, 1.6rem); line-height: 1.45; }

/* illustrations */
.art { width: 100%; height: auto; border-radius: var(--radius); }
.hero-grid { display: grid; gap: 36px; align-items: center; }

/* ---------- Light (bone) sections ---------- */
.light { background: var(--bone); color: var(--ink); border-top: 0; }
.light h1, .light h2, .light h3 { color: var(--ink); }
.light .eyebrow, .light .step-n, .light .num { color: var(--accent-ink); }
.light .rule { background: var(--accent-ink); }
.light .lead, .light .dim, .light p.dim { color: var(--ink-dim); }
.light a:not(.btn) { color: var(--ink); }
.light a:not(.btn):hover { color: var(--accent-ink); }
.light .grid { background: var(--line-light); border-color: var(--line-light); }
.light .grid > * { background: var(--bone); }
.light .grid p { color: var(--ink-dim); }
.light .facts div { border-color: var(--accent-ink); }
.light .facts dt { color: var(--ink-dim); }
.light .facts dd { color: var(--accent-ink); }
.light .faq details, .light .faq details:first-child { border-color: var(--line-light); }
.light .faq summary::after { color: var(--accent-ink); }
.light .faq details p { color: var(--ink-dim); }
.light .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-dim); }
.light .btn-ghost:hover { color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-ink); }
.light .card, .light .bone-box { background: var(--bone-2); }
.light :focus-visible { outline-color: var(--accent-ink); }

/* a bone panel inside a dark section (forms, info boxes) */
.bone-box { background: var(--bone); color: var(--ink); border-radius: var(--radius); padding: 24px 20px; }
.bone-box h3 { color: var(--ink); }
.bone-box .eyebrow { color: var(--accent-ink); }
.bone-box .dim { color: var(--ink-dim); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field > label:not(.choice), .field legend { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--bone-dim); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; font: inherit; color: var(--bone); background: var(--black-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--black-2);
}
.choice:has(input:checked) { border-color: var(--gold); }
.choice input { accent-color: var(--gold); width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.choice strong { display: block; }
.choice span { color: var(--bone-dim); font-size: .95rem; }
.form-status { min-height: 1.4em; margin: 0; }
.form-status.error { color: var(--error); }
.form-status.ok { color: var(--gold); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* forms on bone */
.bone-box input[type=text], .bone-box input[type=email], .bone-box input[type=tel], .bone-box select, .bone-box textarea,
.light input[type=text], .light input[type=email], .light input[type=tel], .light select, .light textarea {
  background: var(--bone-3); color: var(--ink); border-color: var(--line-light);
}
.bone-box input:focus, .bone-box select:focus, .bone-box textarea:focus,
.light input:focus, .light select:focus, .light textarea:focus { border-color: var(--accent-ink); }
.bone-box .field .hint, .light .field .hint { color: var(--ink-dim); }
.bone-box .form-status.error, .light .form-status.error { color: #A3361F; }
.bone-box .form-status.ok, .light .form-status.ok { color: var(--accent-ink); }
.bone-box .panel { background: var(--bone-2); border-color: var(--line-light); color: var(--ink); }
.bone-box .panel .dim { color: var(--ink-dim); }

/* panels (renewal + thank-you pages) */
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; background: var(--black-2); }
.panel + .panel { margin-top: 16px; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-weight: 400; color: var(--bone-dim); }
.price-table td { text-align: right; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.terms { padding-left: 1.1em; margin: 0; color: var(--bone-dim); }
.terms li { margin-bottom: .6em; }
.terms strong { color: var(--bone); font-weight: 600; }
.notice { border-left: 2px solid var(--gold); padding: 10px 16px; background: var(--black-2); margin: 0 0 24px; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; }
.tabs button {
  font: inherit; font-size: .92rem; padding: 12px 6px; cursor: pointer; border-radius: var(--radius);
  background: transparent; color: var(--bone-dim); border: 1px solid var(--line);
}
.tabs button[aria-selected="true"] { color: var(--ink); background: var(--bone); border-color: var(--bone); font-weight: 600; }
[role=tabpanel][hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--bone-dim); font-size: .92rem; }
.site-footer .tagline { font-family: var(--font-heading); font-style: italic; color: var(--gold); font-size: 1.05rem; }
.site-footer a { color: var(--bone-dim); }
.footer-grid { display: grid; gap: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Admin ---------- */
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { border-collapse: collapse; width: 100%; font-size: .9rem; white-space: nowrap; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--bone-dim); font-weight: 600; position: sticky; top: 0; background: var(--black-2); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: .8rem; }
.badge.renewed { border-color: var(--gold); color: var(--gold); }
.badge.declined { color: var(--error); border-color: #5a3a33; }
.badge.question { color: var(--bone); border-color: var(--bone-dim); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 28px; }
.stats div { border-radius: var(--radius); padding: 14px; background: var(--bone); color: var(--ink); }
.stats .num { font-size: 1.8rem; display: block; color: var(--gold-ink); }

/* ---------- Landing (full-screen opening on the home page) ---------- */
.landing {
  position: relative; min-height: min(calc(100svh - 64px), 880px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 16px 72px;
}
.landing-logo { width: min(74vw, 320px); height: auto; }
.landing-name {
  margin: 22px 0 0; font-family: var(--font-body); font-weight: 600; line-height: 1.2;
  font-size: clamp(.85rem, 3.6vw, 1.05rem); letter-spacing: .42em; text-transform: uppercase;
  color: var(--bone-dim); padding-left: .42em;
}
.landing .rule { margin: 26px auto; }
.landing-tagline { font-family: var(--font-heading); font-style: italic; color: var(--gold); font-size: clamp(1.35rem, 6vw, 2rem); margin: 0 0 14px; }
.landing .actions { width: 100%; max-width: 440px; justify-content: center; margin-top: 32px; }
.landing-scroll { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--bone-dim); text-decoration: none; font-size: 1.4rem; padding: 8px; }

/* ---------- Effects: falling snow + sparkles ---------- */
.snowfall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.snowfall::before, .snowfall::after {
  content: ""; position: absolute; inset: -200px 0 0 0;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(236,229,214,.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 90px 120px, rgba(236,229,214,.7), transparent 60%),
    radial-gradient(2.5px 2.5px at 160px 60px, rgba(236,229,214,.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 60px 170px, rgba(236,229,214,.6), transparent 60%),
    radial-gradient(2px 2px at 140px 190px, rgba(236,229,214,.7), transparent 60%);
  background-size: 200px 200px;
  animation: snowfall 14s linear infinite;
  opacity: .6;
}
.snowfall::after { background-size: 300px 300px; animation-duration: 22s; opacity: .4; }
@keyframes snowfall { to { transform: translateY(200px); } }

.sparkles { position: relative; }
.sparkle {
  position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 0;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: twinkle 3.2s ease-in-out infinite;
}
.sparkle.s2 { width: 12px; height: 12px; animation-delay: .8s; background: var(--bone); }
.sparkle.s3 { width: 22px; height: 22px; animation-delay: 1.6s; }
.sparkle.s4 { width: 10px; height: 10px; animation-delay: 2.3s; background: var(--bone); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) {
  .snowfall::before, .snowfall::after, .sparkle { animation: none; }
}

/* ---------- Bigger screens ---------- */
@media (max-width: 559px) { .brand-name { display: none; } }
@media (min-width: 720px) {
  .container { padding: 0 28px; }
  .actions { flex-direction: row; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: end; }
  .stats { grid-template-columns: repeat(5, 1fr); }
  .section { padding: 88px 0; }
  .hero { padding: 104px 0 88px; }
  .panel, .bone-box { padding: 32px; }
}
/* full menu across the top on computers (until you scroll) */
@media (min-width: 860px) {
  .site-header:not(.scrolled) .nav-toggle { display: none; }
  .site-header:not(.scrolled) .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; padding: 0; border: 0; background: none;
  }
  .site-header:not(.scrolled) .site-nav > a, .site-header:not(.scrolled) .nav-drop { padding: 0; border: 0; font-size: .95rem; }
  .site-header:not(.scrolled) .site-nav .btn { margin: 0; padding: 10px 18px; }
  .site-header:not(.scrolled) .nav-group { position: relative; }
  .site-header:not(.scrolled) .nav-drop { cursor: pointer; width: auto; }
  .site-header:not(.scrolled) .nav-menu {
    display: none; position: absolute; top: calc(100% + 16px); left: -18px; min-width: 240px;
    background: var(--bone); border-radius: var(--radius); padding: 8px; box-shadow: 0 18px 40px rgba(0,0,0,.35);
  }
  .site-header:not(.scrolled) .nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .site-header:not(.scrolled) .nav-group:hover .nav-menu,
  .site-header:not(.scrolled) .nav-group:focus-within .nav-menu,
  .site-header:not(.scrolled) .nav-group.open .nav-menu { display: grid; }
  .site-header.scrolled .site-nav { max-width: var(--max); margin: 0 auto; }
}
@media (min-width: 860px) and (max-width: 1059px) { .brand-name { display: none; } }

/* ---------- Top contact bar ---------- */
.topbar { background: var(--bone); color: var(--ink); font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--gold-ink); }
.topbar .tb-links { display: flex; gap: 18px; }
@media (max-width: 559px) { .topbar .tb-email { display: none; } }

/* ---------- Photo openings with words over them ---------- */
.photo-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: min(84svh, 820px); padding: 120px 0 64px;
}
.photo-hero .bg { position: absolute; inset: 0; z-index: -3; }
.photo-hero .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(var(--shade), .94) 0%, rgba(var(--shade), .6) 42%, rgba(var(--shade), .2) 100%),
    linear-gradient(to right, rgba(var(--shade), .55) 0%, transparent 70%);
}
.photo-hero h1, .photo-hero h2 { font-size: clamp(2.5rem, 9vw, 4.8rem); max-width: 13ch; line-height: 1.05; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.photo-hero .lead { color: rgba(236,229,214,.92); }
.photo-hero .container { position: relative; }
.photo-band { min-height: min(64svh, 560px); align-items: center; text-align: center; padding: 96px 0; }
.photo-band h2 { margin-left: auto; margin-right: auto; font-size: clamp(2.2rem, 7.5vw, 3.8rem); }
.photo-band::after { background: rgba(var(--shade), .62); }
.photo-band .actions { justify-content: center; }

/* landing with a photo behind the big logo */
.landing.has-photo { isolation: isolate; overflow: hidden; }
.landing.has-photo .bg { position: absolute; inset: 0; z-index: -2; }
.landing.has-photo .bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.landing.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(var(--shade), .72) 0%, rgba(var(--shade), .88) 70%); }

/* rotating slideshow (MD Clean Rx) */
/* Smooth crossfade with a slow, continuous zoom:
   - the new photo fades in on top while slowly zooming
   - the old photo stays visible underneath and keeps drifting until it's fully covered
   - its zoom resets only after it's hidden, so you never see it snap back */
.slideshow .bg img { opacity: 0; z-index: 0; transform: scale(1); transition: none; }
.slideshow .bg img.active { opacity: 1; z-index: 2; transform: scale(1.08); transition: opacity 1.8s ease-in-out, transform 11s linear; }
.slideshow .bg img.prev { opacity: 1; z-index: 1; transform: scale(1.08); transition: transform 11s linear; }
.dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; z-index: 2; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--bone); background: transparent; padding: 0; cursor: pointer; opacity: .8; }
.dots button[aria-current="true"] { background: var(--bone); opacity: 1; }
.photo-hero .sparkle { z-index: -1; }

/* photo on top of a bone card */
.card .card-img { display: block; width: calc(100% + 48px); max-width: none; margin: -28px -24px 22px; height: 220px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
.trust div { border-top: 2px solid var(--accent-ink); padding-top: 12px; }
.trust strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.trust span { color: var(--ink-dim); font-size: .95rem; }
.section.trust-section { padding: 44px 0; }

/* photo + text side by side */
.split { display: grid; gap: 28px; align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .photo-hero { padding: 140px 0 88px; }
  .card .card-img { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .slideshow .bg img, .slideshow .bg img.active, .slideshow .bg img.prev { transform: none; }
}

/* ---------- Home: logo over a rotating North Shore slideshow ---------- */
.home-slides { align-items: stretch; padding: 48px 0 72px; }
.home-slides .landing-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.landing.home-slides::after { background: rgba(var(--shade), .78); }
.map-slide { object-position: 68% 50%; }
@media (min-width: 900px) {
  .home-slides .landing-inner { align-items: flex-start; text-align: left; }
  .home-slides .landing-logo { width: 280px; }
  .home-slides .landing-name { padding-left: 0; }
  .home-slides .rule { margin-left: 0; }
  .home-slides .actions { justify-content: flex-start; max-width: none; }
  .landing.home-slides::after {
    background: linear-gradient(to right, rgba(var(--shade), .92) 0%, rgba(var(--shade), .7) 38%, rgba(var(--shade), .15) 75%, rgba(var(--shade), .05) 100%);
  }
}

/* MD Clean Rx section on the home page: aqua accent */
.clean-band { --accent: #86E0D3; --shade: 12, 22, 21; }
