/* ==========================================================================
   Crestone Computer — San Luis Valley Tech
   Static, zero-dependency stylesheet. Mobile-first.
   ========================================================================== */

:root {
  /* Palette */
  --forest: #1c3322;
  --forest-deep: #14251a;
  --ochre: #c99e55;
  --ochre-light: #e0bd85;
  --cream: #faf9f6;
  --cream-dark: #f0ede4;
  --sage: #728c6e;
  --sage-dark: #4f6a4c;
  --red: #a24832;
  --red-dark: #873722;
  --ink: #1f2a22;
  --muted: #55625a;
  --line: #e3dccb;
  --paper: #fffefb;

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1080px;
  --topbar-h: 64px;
  --shadow: 0 1px 2px rgba(20, 37, 26, 0.06), 0 8px 24px rgba(20, 37, 26, 0.08);
}

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

html {
  font-size: 18px; /* bumped base for readability on phones */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--forest);
}

h1 { font-size: clamp(2rem, 7vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ochre);
  color: var(--forest);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px; /* generous touch target */
  padding: 0.75rem 1.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--ochre); color: var(--forest-deep); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.btn-primary:hover { background: var(--ochre-light); color: var(--forest-deep); }

.btn-secondary { background: transparent; color: var(--cream); border-color: rgba(250, 249, 246, 0.55); }
.btn-secondary:hover { background: rgba(250, 249, 246, 0.12); border-color: var(--cream); color: var(--cream); }

/* ---------- Sticky top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest-deep);
  color: var(--cream);
  border-bottom: 3px solid var(--ochre);
}
.topbar .container {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  color: var(--cream);
  text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre); font-weight: 600; }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.4rem 1.1rem;
  background: var(--ochre);
  color: var(--forest-deep);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.call-btn:hover { background: var(--ochre-light); color: var(--forest-deep); transform: translateY(-1px); }
.call-btn svg { width: 18px; height: 18px; flex: none; }
.call-label { display: none; font-weight: 600; font-size: 0.8rem; opacity: 0.85; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(201, 158, 85, 0.22), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(114, 140, 110, 0.35), transparent 60%),
    var(--forest);
  color: var(--cream);
  padding: 3rem 0 3.5rem;
}
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--ochre); }
.hero .eyebrow { color: var(--ochre); line-height: 1.5; }
.hero .eyebrow .dot { color: var(--sage); margin-inline: 0.35em; }
.hero-sub {
  font-size: 1.1rem;
  max-width: 38rem;
  color: rgba(250, 249, 246, 0.92);
  margin-bottom: 1.75rem;
}
.hero-ctas { display: flex; flex-direction: column; gap: 0.85rem; max-width: 28rem; }

/* Hero grid: single column on mobile (copy, bio, offer); two columns >= 900px */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.hero-main { grid-area: main; }
.bio-card { grid-area: card; }
.hero-offer { grid-area: offer; }
.hero-grid {
  grid-template-areas:
    "main"
    "card"
    "offer";
}

/* $50 callout: warm paper card with a double ochre/forest flyer-style border */
.intro-badge {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  color: var(--forest);
  border: 2px solid var(--ochre);
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 5px var(--forest),
    0 10px 28px rgba(0, 0, 0, 0.28);
}
.intro-price {
  flex: none;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}
.intro-text strong { display: block; font-size: 1.1rem; line-height: 1.3; margin-bottom: 0.35rem; }
.intro-text p { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

/* Personal bio card */
.bio-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.bio-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--sage-dark), var(--forest)); /* shown until photo loads */
  margin-bottom: 1.1rem;
}
.bio-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center 32%;
}
.bio-title { font-size: 1.35rem; margin: 0 0 0.5rem; padding-inline: 0.25rem; }
.bio-card p { font-size: 0.95rem; margin: 0 0 1rem; padding-inline: 0.25rem; color: var(--muted); }
.bio-badges { list-style: none; margin: 0; padding: 0 0.25rem 0.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bio-badges li {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  background: var(--cream-dark);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.card-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-top: 5px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-top-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-top-color: var(--ochre); }
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--forest);
  color: var(--ochre);
  margin-bottom: 1rem;
}
.card-icon svg { width: 26px; height: 26px; }
.card p { margin: 0; color: var(--muted); }

.services-note { margin-top: 1.75rem; font-weight: 600; color: var(--forest); }

/* ---------- About ---------- */
.about { background: var(--cream-dark); }
.about-inner { display: grid; gap: 1.5rem; }
.about-mark {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--ochre);
  font-size: 2rem;
  font-weight: 800;
  border: 4px solid var(--ochre);
}
.about blockquote {
  margin: 1.25rem 0 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 4px solid var(--ochre);
  color: var(--forest);
  font-weight: 600;
}

/* ---------- Cross-link ---------- */
.crosslink { padding: 2rem 0; background: var(--cream); }
.crosslink-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  border: 1.5px dashed var(--sage);
  border-radius: var(--radius);
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.crosslink-box:hover { background: #fff; border-color: var(--ochre); color: var(--forest); }
.crosslink-box .arrow { color: var(--red); font-weight: 800; }
.crosslink-kicker { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-dark); }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: rgba(250, 249, 246, 0.85); padding: 3rem 0 2rem; }
.footer a { color: var(--ochre); }
.footer a:hover { color: var(--ochre-light); }
.footer h2 { font-size: 1rem; color: var(--ochre); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
.footer address { font-style: normal; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(250, 249, 246, 0.15);
  font-size: 0.8rem;
  color: rgba(250, 249, 246, 0.6);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .call-label { display: inline; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; max-width: none; }
}

@media (min-width: 720px) {
  html { scroll-padding-top: 90px; }
  :root { --topbar-h: 72px; }
  .brand-name { font-size: 1.2rem; }
  .hero { padding: 5rem 0 5.5rem; }
  section { padding: 5rem 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .about-inner { grid-template-columns: auto 1fr; gap: 2.5rem; align-items: start; }
  .about-mark { width: 120px; height: 120px; font-size: 2.8rem; }
  .crosslink-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "main card"
      "offer card";
    column-gap: 3rem;
    row-gap: 2rem;
  }
  .hero-offer { align-self: end; }
  .bio-photo img { height: 260px; }
}

@media (max-width: 479px) {
  .intro-badge { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .bio-photo img { height: 240px; }
}

@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

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