/* Tepeyac — mockup stylesheet
   Palette drawn from the Basilica and the image's colors:
   deep teal-green (mantle), gold (rays, stars), terracotta (Basilica wall),
   marigold (ofrenda), cream (paper). */

:root {
  --teal-950: #082f2e;
  --teal-900: #0b3b3a;
  --teal-800: #0f4c4a;
  --teal-700: #17615d;
  --gold: #c9a24a;
  --gold-light: #e6c978;
  --marigold: #f2a516;
  --marigold-deep: #d98c05;
  --terracotta: #a8492a;
  --rose: #c8566b;
  --cream: #faf4e8;
  --cream-deep: #f1e7d2;
  --ink: #1d2a29;
  --ink-soft: #3d4f4d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;          /* larger body text; boards skew older */
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--teal-700); }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ---------- mockup strip ---------- */
.mockup-strip {
  background: var(--ink);
  color: var(--gold-light);
  text-align: center;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .45rem 1rem;
}

/* ---------- header ---------- */
.site-header {
  background: var(--teal-950);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(201, 162, 74, .35);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
}
.brand .star { width: 22px; height: 22px; fill: var(--gold); }
.brand-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .04em;
  color: #fff;
}
.nav { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.nav a {
  color: #e9efe9;
  text-decoration: none;
  font-size: 1rem;
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--gold-light); }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); color: #fff; }
.nav .btn { border-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--marigold);
  color: var(--teal-950);
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.5rem;
  border-radius: 6px;
  border: 2px solid var(--marigold);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--marigold-deep); border-color: var(--marigold-deep); color: var(--teal-950); transform: translateY(-1px); }
.btn.small { padding: .5rem 1.1rem; font-size: 1rem; }
.btn.ghost { background: transparent; color: #fff; border-color: var(--gold); }
.btn.ghost:hover { background: rgba(201, 162, 74, .18); color: #fff; }

/* ---------- eyebrow + headings ---------- */
.eyebrow {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  clip-path: polygon(50% 0, 56% 31%, 85% 15%, 69% 44%, 100% 50%, 69% 56%, 85% 85%, 56% 69%, 50% 100%, 44% 69%, 15% 85%, 31% 56%, 0 50%, 31% 44%, 15% 15%, 44% 31%);
}
.dark .eyebrow { color: var(--gold-light); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 1rem; color: var(--teal-900); }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.005em; }
h3 { font-size: 1.35rem; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.lead { font-size: 1.3rem; max-width: 40rem; color: var(--ink-soft); }
.dark .lead { color: #dbe7e2; }

/* ---------- bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6rem); }
.band.dark { background: var(--teal-900); color: #dbe7e2; }
.band.deep { background: var(--teal-950); color: #dbe7e2; }
.band.tint { background: var(--cream-deep); }

/* ---------- hero with sunburst rays ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, var(--teal-700) 0%, var(--teal-900) 45%, var(--teal-950) 100%);
  color: #fff;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(230, 201, 120, .20) 0deg 1.6deg, transparent 1.6deg 6deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 120%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 120%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .stars { position: absolute; right: 4%; top: 12%; width: 220px; opacity: .9; fill: var(--gold); }
.hero .stars .s2 { opacity: .6; }
.hero .stars .s3 { opacity: .35; }
@media (max-width: 760px) { .hero .stars { display: none; } }

/* page-title hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--teal-900);
  color: #fff;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 85% 140%, rgba(230, 201, 120, .16) 0deg 1.4deg, transparent 1.4deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 85% 140%, #000 0%, transparent 65%);
          mask-image: radial-gradient(circle at 85% 140%, #000 0%, transparent 65%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }

/* ---------- two-column layout (headline left, text right) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------- simple "what we do" triplet ---------- */
.triplet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; }
@media (max-width: 820px) { .triplet { grid-template-columns: 1fr; } }
.triplet .card {
  background: #fff;
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 1.6rem;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(11, 59, 58, .06);
}
.triplet .card h3 { margin-bottom: .5rem; }
.triplet .card p { margin: 0; color: var(--ink-soft); }

/* ---------- process (numbered columns with dividers) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(230, 201, 120, .35); margin-top: 2.5rem; }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.6rem 1.4rem 1.2rem 0; }
.step + .step { border-left: 1px solid rgba(230, 201, 120, .25); padding-left: 1.4rem; }
@media (max-width: 920px) { .step:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .step + .step { border-left: 0; padding-left: 0; border-top: 1px solid rgba(230, 201, 120, .25); } }
.step .num { font-family: var(--serif); color: var(--gold-light); font-size: 1.1rem; letter-spacing: .15em; margin-bottom: .6rem; }
.step h3 { color: #fff; }
.step p { margin: 0; color: #cfe0da; font-size: 1.05rem; }

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li { padding: .7rem 0 .7rem 2rem; border-top: 1px solid rgba(29, 42, 41, .14); position: relative; }
.checks li:last-child { border-bottom: 1px solid rgba(29, 42, 41, .14); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 1.05rem;
  width: 14px; height: 14px;
  background: var(--terracotta);
  clip-path: polygon(50% 0, 56% 31%, 85% 15%, 69% 44%, 100% 50%, 69% 56%, 85% 85%, 56% 69%, 50% 100%, 44% 69%, 15% 85%, 31% 56%, 0 50%, 31% 44%, 15% 15%, 44% 31%);
}

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid rgba(29, 42, 41, .18); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid rgba(29, 42, 41, .18); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--teal-900); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--terracotta); font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); max-width: 46rem; }

/* ---------- pull quote ---------- */
.pullquote {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.25;
  color: var(--teal-900);
  border-left: 4px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2.5rem 0;
}
.pullquote small { display: block; margin-top: .8rem; font-family: var(--sans); font-size: .95rem; color: var(--ink-soft); }

/* ---------- prose ---------- */
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1.3rem; }
.draft-note {
  background: #fff7dc;
  border: 1px dashed var(--marigold-deep);
  border-radius: 6px;
  padding: .9rem 1.1rem;
  font-size: .95rem;
  color: #5a4300;
  margin: 0 0 2rem;
}

/* ---------- portfolio cards ---------- */
.portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.work {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 59, 58, .08);
  display: flex; flex-direction: column;
}
.work .thumb { height: 150px; background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); display: grid; place-items: center; }
.work .thumb svg { width: 56px; fill: var(--gold); }
.work .body { padding: 1.4rem; }
.work .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--cream-deep); color: var(--terracotta); padding: .25rem .6rem; border-radius: 4px; margin-bottom: .8rem; }
.work.empty { background: transparent; border: 2px dashed rgba(29, 42, 41, .25); box-shadow: none; }
.work.empty .thumb { background: transparent; }
.work.empty .thumb svg { fill: rgba(29, 42, 41, .25); }

/* ---------- about placeholders ---------- */
.placeholder {
  background: #fff;
  border-left: 4px solid var(--rose);
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.placeholder strong { color: var(--teal-900); }

/* ---------- CTA band + footer ---------- */
.cta { text-align: center; }
.cta h2 { color: #fff; margin-inline: auto; max-width: 20ch; }
.cta .lead { margin-inline: auto; }
.site-footer { background: var(--ink); color: #b9c9c4; padding-block: 2.2rem; font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--gold-light); }
.site-footer .brand-name { font-size: 1.25rem; }

/* ---------- story rows with images (Why Tepeyac) ---------- */
.story-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-block: 2.5rem;
}
.story-row.reverse { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 820px) {
  .story-row, .story-row.reverse { grid-template-columns: 1fr; }
  .story-row.reverse .story-fig { order: -1; }
}
.story-fig { margin: 0; }
.story-fig img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  border-radius: 10px;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 36px rgba(11, 59, 58, .25);
}
.story-fig figcaption {
  max-width: 380px;
  margin: .8rem auto 0;
  font-size: .9rem;
  color: var(--ink-soft);
  text-align: center;
}
.story-fig .mock { color: var(--terracotta); font-style: italic; }

/* ---------- polish (2026-11-18) ---------- */
h1, h2 { text-wrap: balance; }
.story-row { align-items: start; }
.story-row .prose h2:first-child { margin-top: 0; }

/* spacing between headings inside prose */
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.story-row .pullquote { margin: 2rem 0 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* hero subline must be light on the dark teal hero */
.hero .lead { color: #f3ede0; font-size: 1.4rem; }
.hero .lead em { color: var(--gold-light); font-style: italic; }

/* ---------- About page photo ---------- */
.about-photo {
  float: right;
  width: min(320px, 44%);
  margin: .4rem 0 1.2rem 2rem;
}
.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 70% 40%;
  border-radius: 10px;
  border: 3px solid var(--gold);
  box-shadow: 0 14px 36px rgba(11, 59, 58, .25);
}
@media (max-width: 700px) {
  .about-photo { float: none; width: 100%; max-width: 340px; margin: 0 auto 1.5rem; }
}
/* keep later sections clear of the float */
.prose h2 { clear: none; }

/* small source credit under a story */
.source-note { font-size: .9rem; font-style: italic; color: var(--ink-soft); margin-top: 1.2rem; }
