/* ============================================================
   BRAND NAMES — keep in sync with build.py
   Public:  Elemental Ads by Antonella Jarrín
   Short:   Elemental Ads
   Person:  Antonella Jarrín
   Tagline: Strategic Ads Partner
   Legal:   Antonella Jarrín Digital

   Palette: wine purple #6A1B4D + bright yellow #FFD100
   Mark:    butterfly from the Elemental Collective brand guide
   Type:    Source Sans 3 (most type) + Source Serif 4 (featured quotes only)
   ============================================================ */

:root {
  --purple: #6A1B4D;
  --purple-deep: #4A1536;
  --yellow: #FFD100;
  --yellow-soft: #FFF4B0;
  --ink: #1C1218;
  --muted: #5A4E54;
  --line: #E8DFE3;
  --bg: #FFFEFA;
  --wash: #F8F1F4;
  --white: #ffffff;
  --radius: 4px;
  --font: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 70rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 0.15em; }
a:hover { color: var(--purple-deep); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2.25rem, 78rem);
  margin-inline: auto;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(100% - 2.25rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.logo img { width: 2.6rem; height: auto; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-weight: 700; font-size: 1.05rem; }
.logo-by { font-size: 0.75rem; color: var(--muted); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-burger span,
.nav-burger span::before,
.nav-burger span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-burger span::before,
.nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 1.1rem 1rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.6rem 0.2rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--purple); }
.site-nav .btn { text-align: center; margin-top: 0.5rem; }
.nav-toggle:checked ~ .site-nav { display: block; }
.nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--yellow); }

@media (min-width: 960px) {
  .nav-burger { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }
  .site-nav a { padding: 0.2rem 0; }
  .site-nav .btn { margin-top: 0; }
}

/* ----- Buttons: squarer, not pills ----- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
}
.btn:hover { background: #ffdc33; color: var(--ink); }
.btn-purple {
  background: var(--purple);
  color: #fff;
}
.btn-purple:hover { background: var(--purple-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; margin-top: 1.25rem; }
.btn-row a.text-link { font-weight: 600; }

/* ----- Type ----- */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.65em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.lede { font-size: 1.2rem; color: var(--ink); }
.muted { color: var(--muted); }
.kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--purple);
  margin: 0 0 0.4rem;
}

/* ----- Hero: large photo, two columns on desktop; compact on mobile ----- */
.hero {
  padding: 0.75rem 0 2rem;
}
.hero-grid {
  display: grid;
  gap: 0.7rem;
  padding-inline: 1.125rem;
}
.hero-below { display: contents; }
.hero-copy { order: 1; }
.hero-copy h1 { margin-bottom: 0.3em; }
.hero-lede {
  order: 2;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
}
.hero-photo {
  order: 3;
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: 52%;
  max-width: 13.75rem;
  max-height: 15.5rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 8px;
}
.hero-cta { order: 4; margin-top: 0.15rem; }
.hero-more { order: 5; margin-top: 0.85rem; }
@media (min-width: 840px) {
  .hero { padding: 0 0 3rem; }
  .hero-grid {
    width: min(100%, 78rem);
    margin-inline: auto;
    padding-inline: 0;
    padding-left: max(1.125rem, calc((100% - 70rem) / 2));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto auto;
    gap: 0 3rem;
    align-items: center;
    min-height: min(86vh, 46rem);
  }
  .hero-below {
    display: block;
    order: 2;
    grid-column: 1;
    grid-row: 2;
    padding-bottom: 2.5rem;
  }
  .hero-copy { order: 1; grid-column: 1; grid-row: 1; padding-top: 2.5rem; }
  .hero-copy h1 { margin-bottom: 0.65em; }
  .hero-lede { font-size: 1.2rem; line-height: inherit; margin: 0 0 1em; }
  .hero-more { margin-top: 0; }
  .hero-cta { margin-top: 1.25rem; }
  .hero-photo {
    order: 3;
    display: block;
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: stretch;
    align-self: stretch;
  }
  .hero-photo img {
    width: 100%;
    max-width: none;
    max-height: none;
    height: 100%;
    min-height: 36rem;
    aspect-ratio: auto;
    border-radius: 0;
  }
}

/* ----- Stats row: big numbers, not cards ----- */
.stats-band {
  background: var(--wash);
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.25rem, 1fr));
  gap: 1.5rem 1.25rem;
}
.stat-item { min-width: 0; max-width: none; }
.stat-item .num {
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.25rem;
}
.stat-item .sub { margin: 0; font-size: 0.95rem; }
.stat-item .who { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* ----- Featured quote ----- */
.quote-block { padding: 3rem 0; }
.quote-feature {
  max-width: 44rem;
  border-left: 6px solid var(--yellow);
  padding: 0.15rem 0 0.15rem 1.4rem;
}
.quote-feature p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  font-weight: 400;
  margin: 0 0 1rem;
}
.quote-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* ----- Testimonials: featured quote + even typographic grid ----- */
.notes { padding: 0 0 3rem; }
.notes h2 { margin-bottom: 0.25rem; }
.note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.note .avatar { grid-row: span 4; }
.note .who { font-weight: 700; margin: 0; font-size: 1rem; }
.note .result { color: var(--purple); font-weight: 700; font-size: 0.95rem; margin: 0; }
.note blockquote { margin: 0.25rem 0 0; grid-column: 2; }
.note .excerpt { margin: 0; color: var(--ink); font-size: 1.05rem; }
.note details { margin-top: 0.4rem; }
.note summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
  list-style: none;
}
.note summary::-webkit-details-marker { display: none; }
.note details p { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; }

/* Even 2-up set: no orphan tiles, no shadow cards */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.notes-grid .note {
  border-top: 0;
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0 1.6rem;
  min-height: 100%;
}
.note--result .result {
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 0.35rem;
}
.note--result .result-sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  grid-column: 2;
}
@media (min-width: 800px) {
  .notes-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 3.25rem;
  }
}

.quote-stack .quote-feature + .quote-feature { margin-top: 2.75rem; }

.avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--wash);
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--fallback {
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ----- Prose / about ----- */
.section { padding: 3rem 0; }
.section-wash { background: var(--wash); }
.section-yellow { background: var(--yellow); color: var(--ink); }
.section-yellow a { color: var(--purple-deep); font-weight: 700; }
.section-yellow a.btn-purple, .section-yellow a.btn-purple:hover { color: #fff; }
.section-purple { background: var(--purple); color: #fff; }
.section-purple h2, .section-purple a { color: #fff; }
.section-purple .btn { color: var(--ink); }
.section-purple .btn:hover { color: var(--ink); }

.about-hero.section { padding: 0.75rem 0 2.5rem; }
.about-grid {
  display: grid;
  gap: 0.7rem;
}
.about-copy { display: contents; }
.about-intro { order: 1; }
.about-intro h1 { margin-bottom: 0.35em; }
.about-intro p:last-child {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 0;
}
.about-photo {
  order: 2;
  display: flex;
  justify-content: center;
}
.about-photo img {
  width: 52%;
  max-width: 13.75rem;
  max-height: 15.5rem;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  object-position: center 16%;
}
.about-cta { order: 3; margin-top: 0.15rem; }
.about-more { order: 4; margin-top: 0.85rem; }
@media (min-width: 800px) {
  .about-hero.section { padding: 3rem 0; }
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.25rem;
    align-items: start;
  }
  .about-copy { display: block; }
  .about-intro h1 { margin-bottom: 0.65em; }
  .about-intro p:last-child { font-size: inherit; line-height: inherit; margin-bottom: 1em; }
  .about-photo { display: block; order: unset; }
  .about-photo img {
    width: 100%;
    max-width: none;
    max-height: none;
    border-radius: var(--radius);
    aspect-ratio: 3 / 4;
    min-height: 32rem;
  }
  .about-cta { margin-top: 1.25rem; }
  .about-more { margin-top: 0; }
}

/* ----- Services: stacked, not twin cards ----- */
.service {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h2 { margin-bottom: 0.3rem; }
.service .for { font-size: 1.05rem; color: var(--muted); margin-bottom: 1rem; }
.service ul { margin: 0 0 1.15rem; padding-left: 1.2rem; }
.service li { margin: 0.3rem 0; }
.price {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
}
.fine { font-size: 1rem; color: var(--muted); margin: 0 0 0.35rem; }

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .split-2 { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.measure { max-width: 44rem; }
.hours { margin: 0; padding: 0; list-style: none; }
.hours > li {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.hours > li:first-child { border-top: 0; }
.hours h3 { margin: 0 0 0.35rem; }
.hours .when { font-weight: 700; color: var(--purple); font-size: 0.9rem; margin: 0 0 0.2rem; }
.hours ul { margin: 0.5rem 0 0; padding-left: 1.2rem; list-style: disc; }
.hours ul li { padding: 0.15rem 0; border: 0; }

.details-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 720px) {
  .details-grid { grid-template-columns: 1fr 1fr; }
}
.details-grid h3 { margin-bottom: 0.3rem; }

/* ----- FAQ (list, not cards) ----- */
.faq { margin: 1.25rem 0 0; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 1.15rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--purple);
}
.faq details[open] summary::after { content: "×"; }

.faq details p { margin: 0.65rem 0 0; max-width: 44rem; }

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

.site-footer {
  border-top: 4px solid var(--yellow);
  background: var(--purple-deep);
  color: #F8F0F4;
  padding: 2.25rem 0 2rem;
  font-size: 0.98rem;
}
.site-footer a { color: var(--yellow); }
.site-footer a:hover { color: #fff; }
.footer-brand { font-weight: 700; font-size: 1.15rem; margin: 0 0 0.25rem; }
.footer-meta { color: rgba(248, 240, 244, 0.75); margin: 0 0 1rem; }
.footer-legal { margin: 0; font-size: 0.85rem; color: rgba(248, 240, 244, 0.6); max-width: 40rem; }
.footer-mark { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem; }
.footer-mark img { width: 2.4rem; height: auto; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
