/* Saguaro Digital Services — one-page site
   Palette: sage, sand, terracotta. Mobile-first. */

:root {
  --sand-50: #FBF7F0;
  --sand-100: #F3EADF;
  --sand-200: #E6D5C0;
  --sand-300: #CDB892;
  --ink: #1A1612;
  --ink-soft: #4A433A;
  --sage: #2F5340;
  --sage-mid: #3D5C45;
  --sage-wash: #E4EEE5;
  --terra: #C0562A;
  --terra-deep: #9A3F1C;
  --terra-wash: #F6E4D8;
  --white: #FFFcf7;
  --line: #E4D6C4;
  --shadow: 0 10px 30px rgba(26, 22, 18, 0.08);
  --radius: 14px;
  --header-h: 4.5rem;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, sans-serif;
  --max: 72rem;
  --focus: 0 0 0 3px var(--sand-50), 0 0 0 6px var(--sage);
}

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

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

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--terra-deep); }

:focus-visible { outline: none; box-shadow: var(--focus); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: var(--white); box-shadow: var(--focus); }

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand img { width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.brand-place { font-size: 0.75rem; color: var(--ink-soft); }

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}
.burger-icon,
.burger-icon::before,
.burger-icon::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.burger-icon::before,
.burger-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger-icon::before { top: -6px; }
.burger-icon::after { top: 6px; }

.nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: var(--sand-50);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 1rem 1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
}
.nav a:hover,
.nav a:focus-visible { background: var(--sage-wash); color: var(--sage); }

#nav-toggle:checked ~ .nav { display: flex; }
#nav-toggle:checked + .nav-burger .burger-icon { background: transparent; }
#nav-toggle:checked + .nav-burger .burger-icon::before { top: 0; transform: rotate(45deg); }
#nav-toggle:checked + .nav-burger .burger-icon::after { top: 0; transform: rotate(-45deg); }
#nav-toggle:focus-visible + .nav-burger { box-shadow: var(--focus); }

.header-actions { display: none; }
@media (min-width: 900px) {
  .header-actions { display: flex; align-items: center; gap: 0.5rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-terra {
  background: var(--terra);
  color: #fff;
  border-color: var(--terra);
}
.btn-terra:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: #fff; }

.btn-sage {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn-sage:hover { background: #243E31; border-color: #243E31; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--sand-200);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--sage); }

.call-btn { letter-spacing: 0.01em; }

/* Hero */
.hero {
  padding: 2.25rem 0 3rem;
  background:
    radial-gradient(ellipse at 90% 10%, #f3c4b0 0%, transparent 42%),
    radial-gradient(ellipse at 70% 0%, #e8b0c4 0%, transparent 38%),
    radial-gradient(ellipse at 0% 80%, #efe4d0 0%, transparent 45%),
    var(--sand-50);
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.hero h1 span { display: block; }
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero-art { justify-self: center; max-width: 22rem; width: 100%; }
.hero-art img, .hero-art svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(42, 17, 72, 0.18);
}

/* Sections */
section { padding: 3.5rem 0; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.alt { background: var(--sand-100); }
.sage-band { background: var(--sage); color: var(--white); }
.sage-band .section-lead { color: #d7e5db; }
.sage-band a { color: #fff; }

/* Problem cards */
.cards-3, .cards-4, .steps, .plans {
  display: grid;
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--ink-soft); }
.icon-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sage-wash);
  color: var(--sage);
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.icon-mark.terra { background: var(--terra-wash); color: var(--terra-deep); }

/* Included list */
.include-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.include-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.7rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.include-list svg { margin-top: 0.2rem; color: var(--sage); }

/* Plans */
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
}
.plan.featured {
  border: 2px solid var(--sage);
  background: linear-gradient(180deg, #f3f8f3 0%, var(--white) 7rem);
}
.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--terra);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0.2rem 0 0.15rem;
}
.price {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.4rem 0 0.15rem;
}
.price small {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.plan-blurb { color: var(--ink-soft); margin: 0 0 1rem; }
.plan ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.plan li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.5rem;
  border-top: 1px solid var(--sand-100);
  font-size: 1.02rem;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.45rem;
  border-left: 2px solid var(--sage);
  border-bottom: 2px solid var(--sage);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan-note {
  text-align: center;
  color: var(--ink-soft);
  margin: 1.25rem 0 0;
  font-size: 1rem;
}

/* Pilot */
.pilot {
  display: grid;
  gap: 1rem;
  align-items: center;
}
.pilot-price {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.pilot p { margin: 0 0 1rem; }
.pilot .btn { background: #fff; color: var(--sage); border-color: #fff; }
.pilot .btn:hover { background: var(--sand-100); color: var(--sage-mid); }

/* Steps */
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
}
.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terra);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 1.5rem;
}
.about-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
}
.about-panel p { margin: 0 0 1rem; color: var(--ink-soft); }
.about-panel p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-list { display: grid; gap: 0.6rem; max-width: 46rem; }
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
}
summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--sage);
  line-height: 1;
}
details[open] summary::after { content: "–"; }
details p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  color: var(--ink-soft);
}
summary:focus-visible { border-radius: 12px; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}
form, .contact-aside {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 0.95rem; }
label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.hint { font-weight: 500; color: var(--ink-soft); font-size: 0.85rem; }
input, textarea, select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--sand-200);
  border-radius: 10px;
  background: var(--sand-50);
  color: var(--ink);
}
input:hover, textarea:hover { border-color: var(--sand-300); }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: var(--focus);
  background: var(--white);
}
textarea { min-height: 8rem; resize: vertical; }
.form-note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.7rem 0 0;
}
.contact-aside h3 {
  font-family: var(--font-serif);
  margin: 0 0 0.6rem;
}
.contact-aside p { margin: 0 0 0.85rem; color: var(--ink-soft); }
.contact-aside ul { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); }
.contact-aside li { margin: 0.3rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 6rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer .brand-name { color: var(--ink); }
.site-footer a { color: var(--ink-soft); }

/* Mobile bottom call bar */
.mobile-callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--sand-50);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.5rem;
}
.mobile-callbar .btn { flex: 1; }

@media (min-width: 700px) {
  .cards-3, .steps, .plans, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .plans .featured { grid-column: 1 / -1; }
  .hero-art { max-width: 26rem; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 2rem; padding: 1.5rem 0 1rem; }
  .hero-art { max-width: none; }
  .cards-3, .steps, .plans { grid-template-columns: repeat(3, 1fr); }
  .plans .featured { grid-column: auto; }
  .pilot { grid-template-columns: 1.2fr 0.8fr; gap: 2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .mobile-callbar { display: none; }
  .site-footer { padding-bottom: 2.25rem; }
  section { padding: 4.25rem 0; }
}

@media (min-width: 1140px) {
  .nav-burger { display: none; }
  .header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    padding: 0;
    gap: 0.15rem;
  }
  .nav a { font-size: 0.98rem; padding: 0.45rem 0.7rem; white-space: nowrap; }
}

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

@media (prefers-contrast: more) {
  .card, .plan, .step, details, form { border-width: 2px; border-color: var(--ink); }
  .btn-terra, .btn-sage { box-shadow: none; }
}

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

@media (max-width: 899px) {
  .brand-name { font-size: 0.88rem; }
  .hero { padding: 1.5rem 0 5.5rem; }
  .hero-art { max-width: 18rem; margin-inline: auto; }
  .hero-actions { margin-bottom: 0.5rem; }
  #contact, .site-footer { padding-bottom: 7rem; }
  body { padding-bottom: 0; }
}
