/* ============================================================
   Old Dogs, New Tricks — Las Cruces, NM
   Mid-Century Modern / Googie edition.
   Accessibility spec (unchanged, non-negotiable):
   - Body text 20px (1.25rem) Atkinson Hyperlegible, contrast ≥ 7:1
   - All interactive targets ≥ 48px
   - All sizing in rem → usable at 200% zoom
   - Visible 3px focus outlines, skip link, reduced motion respected
   - Chile red is reserved EXCLUSIVELY for safety content
   ============================================================ */

:root {
  /* Atomic-age palette */
  --ink:        #23272E;  /* asphalt — body text, ~13:1 on linen */
  --linen:      #FAF4E4;  /* warm page ground */
  --teal:       #00554F;  /* deep atomic teal — panels, buttons  */
  --teal-bright:#0E7C74;  /* hover / borders                     */
  --aqua-tint:  #CDEBE6;  /* pale aqua panels                    */
  --sun:        #F2A93B;  /* harvest sun gold — decorative bands */
  --chile:      #A31D14;  /* SAFETY ONLY                         */
  --cloud:      #FFFDF6;  /* card faces                          */
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: 1.25rem;            /* 20px */
  line-height: 1.6;
}

/* subtle atomic-dot texture, decorative only */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(0,85,79,.06) 1.5px, transparent 1.5px);
  background-size: 2.75rem 2.75rem;
}

h1, h2, h3, .display {
  font-family: "Truculenta", "Atkinson Hyperlegible", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--teal);
}
h1 { font-size: 2.6rem; margin: 0 0 1rem; }
h2 { font-size: 1.9rem; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.45rem; margin: 1.75rem 0 .5rem; color: var(--ink); }

p, li { max-width: 42em; }

a { color: #0B5E57; text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 2px; }
a:hover { color: var(--teal); }

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

.skip-link {
  position: absolute; left: -999rem; top: 0;
  background: var(--sun); color: var(--ink);
  padding: 1rem 1.5rem; font-weight: 700; z-index: 50;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header: the roadside sign ---------- */

header.site {
  background: var(--cloud);
  border-bottom: 6px solid var(--teal);
  padding: 1.25rem 1.25rem .75rem;
}
.brand-row {
  max-width: 68rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.25rem;
  align-items: center; justify-content: space-between;
}
a.brand {
  font-family: "Truculenta", sans-serif;
  font-weight: 800;
  font-size: 2rem; line-height: 1.1;
  color: var(--teal); text-decoration: none;
  display: inline-flex; align-items: center; gap: .75rem;
  min-height: 3rem;
}
a.brand .burst { flex: none; }
a.brand span.tag {
  display: block;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 1.05rem; color: var(--ink); letter-spacing: 0;
}
a.brand:hover { color: var(--teal-bright); }

.phone-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .55rem 1.4rem;
  background: var(--teal); color: #fff !important;
  font-weight: 700; font-size: 1.2rem;
  border-radius: 999px; text-decoration: none;
  border: 3px solid var(--teal);
}
.phone-badge:hover { background: var(--teal-bright); border-color: var(--teal-bright); }
.phone-note { font-size: 1.05rem; margin: .4rem 0 0; max-width: 22em; }

nav.site { max-width: 68rem; margin: 1rem auto 0; }
nav.site ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
nav.site a {
  display: inline-flex; align-items: center;
  min-height: 3rem; padding: .4rem 1.1rem;
  border: 3px solid var(--teal); border-radius: 999px;
  color: var(--teal); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; background: var(--cloud);
}
nav.site a:hover { background: var(--aqua-tint); }
nav.site a[aria-current="page"] { background: var(--teal); color: #fff; }

/* ---------- Hero: upswept Googie roofline ---------- */

.hero {
  background: var(--teal);
  color: var(--linen);
  padding: 3.5rem 1.25rem 5.5rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), 0 100%);
  position: relative;
  overflow: hidden;
}
.hero .inner { max-width: 68rem; margin: 0 auto; position: relative; }
.hero h1 { color: var(--linen); font-size: 3rem; max-width: 18em; }
.hero p.lede { font-size: 1.4rem; max-width: 34em; }
.hero .eyebrow {
  display: inline-block; background: var(--sun); color: var(--ink);
  font-weight: 700; font-size: 1.05rem; letter-spacing: .06em;
  padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.hero svg.burst-bg {
  position: absolute; right: -2rem; top: -2rem;
  width: 16rem; height: 16rem; opacity: .28; pointer-events: none;
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .6rem 1.75rem; margin: .25rem .5rem .25rem 0;
  background: var(--teal); color: #fff !important;
  font-weight: 700; font-size: 1.2rem; text-decoration: none;
  border-radius: 999px; border: 3px solid var(--teal);
}
.btn:hover { background: var(--teal-bright); border-color: var(--teal-bright); }
.btn.alt { background: var(--cloud); color: var(--teal) !important; }
.btn.alt:hover { background: var(--aqua-tint); }
.hero .btn.alt { background: var(--linen); }

/* ---------- Layout ---------- */

main { max-width: 68rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem; }

.divider {
  text-align: center; margin: 3rem 0 1rem; line-height: 0;
}
.divider svg { width: 3rem; height: 3rem; }

/* ---------- Signature: the “Try Saying This” marquee card ---------- */

.try-card {
  background: var(--cloud);
  border: 4px solid var(--ink);
  border-radius: 0 2rem 0 2rem;     /* boomerang corners */
  max-width: 46rem;
  margin: 2rem 0;
  position: relative;
  box-shadow: .5rem .5rem 0 var(--aqua-tint);
}
.try-card .sign {
  display: flex; align-items: center; gap: .75rem;
  background: var(--sun); color: var(--ink);
  font-family: "Truculenta", sans-serif;
  font-weight: 800;
  font-size: 1.25rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .6rem 1.5rem;
  border-bottom: 4px solid var(--ink);
  border-radius: 0 1.7rem 0 0;
}
.try-card blockquote {
  margin: 0; padding: 1.5rem 1.75rem .75rem;
  font-size: 1.35rem; font-weight: 700; line-height: 1.5;
}
.try-card blockquote::before { content: "“"; color: var(--teal-bright); }
.try-card blockquote::after  { content: "”"; color: var(--teal-bright); }
.try-card .why {
  padding: 0 1.75rem 1.5rem; margin: 0; font-size: 1.15rem;
}

/* ---------- Topic grid: little motel signs ---------- */

ul.topic-grid {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
ul.topic-grid a {
  display: block; height: 100%;
  background: var(--cloud);
  border: 3px solid var(--teal);
  border-top: .8rem solid var(--teal);
  border-radius: 0 1.5rem 0 1.5rem;
  padding: 1.25rem 1.4rem 1.4rem;
  text-decoration: none; color: var(--ink);
  font-size: 1.15rem;
}
ul.topic-grid li:nth-child(even) a { border-top-color: var(--sun); }
ul.topic-grid a:hover { background: var(--aqua-tint); }
ul.topic-grid span.t {
  display: block;
  font-family: "Truculenta", sans-serif;
  font-weight: 800;
  font-size: 1.4rem; color: var(--teal); margin-bottom: .4rem;
}

/* ---------- Numbered steps: atomic orbits ---------- */

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; }
ol.steps li {
  counter-increment: step;
  margin: 1.25rem 0; padding-left: 3.9rem; position: relative;
  min-height: 3rem;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-family: "Truculenta", sans-serif; font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 .3rem var(--linen), 0 0 0 .45rem var(--sun); /* orbit ring */
}

/* ---------- Panels ---------- */

.panel {
  background: var(--aqua-tint);
  border-radius: 0 2rem 0 2rem;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }

/* Chile red: SAFETY ONLY */
.safety-callout {
  background: var(--cloud);
  border: 4px solid var(--chile);
  border-radius: 0 2rem 0 2rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.safety-callout h2, .safety-callout h3 { color: var(--chile); margin-top: 0; }
.safety-callout strong.flag { color: var(--chile); }

/* ---------- Definition-style lists ---------- */

ul.checks { list-style: none; padding: 0; }
ul.checks li {
  padding-left: 2.4rem; position: relative; margin: .9rem 0;
}
ul.checks li::before {
  content: "★"; position: absolute; left: 0; top: 0;
  color: var(--sun); font-size: 1.4rem; line-height: 1.3;
}

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

footer.site {
  background: var(--ink); color: #F4EFE4;
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
  border-top: .8rem solid var(--sun);
}
footer.site .inner { max-width: 68rem; margin: 0 auto; }
footer.site a { color: #A9E2DB; }
footer.site ul {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
}
footer.site ul a { display: inline-flex; align-items: center; min-height: 3rem; }
footer.site .phone-badge { background: #A9E2DB; border-color: #A9E2DB; color: var(--ink) !important; }
footer.site .phone-badge:hover { background: #CDEBE6; border-color: #CDEBE6; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 40rem) {
  h1, .hero h1 { font-size: 2.1rem; }
  .hero { padding-bottom: 4.5rem; }
}

@media print {
  body::before, header.site nav, footer.site, .skip-link, .hero svg { display: none; }
  body { background: #fff; font-size: 14pt; }
  .hero { clip-path: none; background: #fff; color: #000; }
  .hero h1 { color: #000; }
}
