/* Allen AI Assist Foundation — senior-friendly, high-contrast, local-only draft */

:root {
  --ink: #2C1810;
  --muted: #4A3224;
  --cream: #FBF6EC;
  --sand: #F3E6C8;
  --mist: #F6EBDA;
  --white: #ffffff;
  --gold: #CC8B1F;
  --gold-hover: #C07A16;
  --gold-bright: #E8C44A;
  --bronze: #7A4A0C;
  --footer: #2C1810;
  --line: #E0C98A;
  --todo: #6a3b00;
  --todo-bg: #ffe9c4;
  --focus: #CC8B1F;
  --shadow: 0 8px 24px rgba(44, 24, 16, 0.10);
  --radius: 14px;
  --header-h: 5.75rem;
  --font: "Atkinson Hyperlegible", "Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif;
  --step: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem; /* 20px */
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}

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

a {
  color: var(--bronze);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--white);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 74rem;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
}

.logo-link {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}

.logo-header {
  width: auto;
  height: 4.6rem;
  max-width: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.menu-toggle {
  margin-left: auto;
  display: none;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 10px;
  min-height: 3rem;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

.site-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--mist);
  color: var(--ink);
}

.btn-header {
  flex: 0 0 auto;
  margin-left: 0.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  line-height: 1.2;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-hover);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--gold-hover);
  color: var(--ink);
  border-color: var(--ink);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--mist);
  color: var(--ink);
}

/* Hero */

.hero {
  background:
    linear-gradient(180deg, #F6EBD0 0%, var(--cream) 72%);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3.25rem;
}

.hero-inner {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.logo-hero {
  width: min(18rem, 70vw);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.15rem);
  line-height: 1.18;
  color: var(--ink);
  font-weight: 700;
}

.lede {
  margin: 0 auto 1.5rem;
  font-size: 1.35rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.hero-note {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  text-align: left;
}

/* Sections */

.section {
  padding: 3.25rem 1.25rem;
}

.section-alt {
  background: var(--mist);
}

.section-inner {
  max-width: 56rem;
  margin: 0 auto;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  color: var(--ink);
}

.section-intro {
  margin: 0 0 1.75rem;
  font-size: 1.3rem;
  color: var(--muted);
  max-width: 44rem;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 44rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Service cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.3rem 1.4rem;
}

.card h3,
.steps h3,
.promises h3 {
  margin: 0 0 0.55rem;
  font-size: 1.4rem;
  color: var(--ink);
}

.card p,
.card li,
.steps p,
.promises p {
  margin: 0;
  color: var(--muted);
}

.card ul {
  margin: 0.65rem 0 0.85rem;
  padding-left: 1.25rem;
}

.card li {
  margin: 0.3rem 0;
}

.card-note {
  margin-top: 0.7rem !important;
  font-size: 1.05rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.25rem 4.5rem;
  box-shadow: var(--shadow);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.05rem;
  top: 1.2rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Promises */

.promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.promises li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
}

/* Contact */

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.5rem 1.35rem;
  max-width: 36rem;
}

.contact-name {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.contact-card p {
  margin: 0 0 0.9rem;
}

.contact-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.15rem;
}

.contact-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.contact-value:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.todo-flag {
  display: inline-block;
  margin-top: 0.4rem;
  background: var(--todo-bg);
  color: var(--todo);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.contact-meta {
  margin-top: 1.1rem !important;
  color: var(--muted);
}

/* Footer */

.site-footer {
  background: var(--footer);
  color: var(--cream);
  padding: 2.5rem 1.25rem 2.75rem;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.logo-footer {
  width: 10.5rem;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  /* Place the gold logo on a cream chip so it stays readable on the dark footer. */
  background: var(--cream);
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.footer-status {
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.site-footer p {
  margin: 0 0 0.7rem;
  max-width: 40rem;
}

.site-footer a {
  color: var(--gold-bright);
  font-weight: 700;
}

.site-footer a:hover {
  color: #ffffff;
}

/* About */

.about-grid {
  max-width: 44rem;
}

/* Responsive */

.nav-call {
  display: none;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  :root { --header-h: 5.5rem; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-header {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    box-shadow: 0 16px 28px rgba(0, 31, 69, 0.12);
    padding: 0.6rem 1.25rem 1.25rem;
  }

  body.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .site-nav a {
    display: block;
    font-size: 1.25rem;
    padding: 0.75rem 0.5rem;
  }

  .nav-call {
    display: block;
    margin-top: 0.6rem;
  }

  .nav-call .btn {
    width: 100%;
  }

  .site-nav .btn-primary,
  .nav-call a.btn-primary {
    color: var(--ink);
    text-align: center;
  }

  .logo-header {
    height: 4.25rem;
  }

  .logo-hero {
    width: min(14rem, 62vw);
    margin-bottom: 0.85rem;
  }

  .hero {
    padding: 1.5rem 1.1rem 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 2.5rem 1.1rem;
  }

  .steps li {
    padding: 1.1rem 1.1rem 1.15rem 4.25rem;
  }

  .contact-value {
    font-size: 1.2rem;
  }
}

@media (min-width: 1101px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .site-nav {
    flex: 1 1 auto;
  }
  .site-nav ul {
    justify-content: flex-end;
  }
  .btn-header {
    margin-left: 0.35rem;
  }
}
