/* ============================================================
   Desert Heat Marketing — stylesheet
   Token system: light palette on :root, dark palette under
   prefers-color-scheme + [data-theme] so the toggle always wins.
   ============================================================ */

:root {
  /* base surfaces */
  --sand: #F6EFE4;
  --paper: #FBF6EC;
  --warm-tint: #F1DACB;
  --cool-tint: #E9E1EF;
  --band-bg: #241A11;
  --band-ink: #F6EFE4;
  --band-muted: #C9B79D;

  /* ink / text */
  --ink: #2A1E14;
  --muted: #8A7A64;
  --line: rgba(42, 30, 20, 0.14);

  /* brand accents */
  --terracotta: #C1502E;
  --amber: #DE9A3C;
  --dusk: #4A3560;
  --sage: #6F7F5E;

  --focus-ring: #C1502E;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;

  --radius: 4px;
  --shadow-soft: 0 1px 2px rgba(42, 30, 20, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #1C140D;
    --paper: #241A11;
    --warm-tint: #33201A;
    --cool-tint: #241F30;
    --band-bg: #100B07;
    --band-ink: #F1E6D4;
    --band-muted: #C6B398;

    --ink: #F1E6D4;
    --muted: #C6B398;
    --line: rgba(241, 230, 212, 0.16);

    --terracotta: #E07248;
    --amber: #F0B052;
    --dusk: #9179B3;
    --sage: #98A986;

    --focus-ring: #F0B052;
  }
}

:root[data-theme="dark"] {
  --sand: #1C140D;
  --paper: #241A11;
  --warm-tint: #33201A;
  --cool-tint: #241F30;
  --band-bg: #100B07;
  --band-ink: #F1E6D4;
  --band-muted: #C6B398;

  --ink: #F1E6D4;
  --muted: #C6B398;
  --line: rgba(241, 230, 212, 0.16);

  --terracotta: #E07248;
  --amber: #F0B052;
  --dusk: #9179B3;
  --sage: #98A986;

  --focus-ring: #F0B052;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 6px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- brand mark (shared svg colors) ---------- */
.ray-fill { fill: var(--terracotta); }
.dome-fill { fill: var(--amber); }
.wave-1 { stroke: var(--terracotta); }
.wave-2 { stroke: var(--amber); }
.wave-3 { stroke: var(--dusk); }
.badge-bg { fill: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sand) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand-mark svg { width: 34px; height: 34px; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.brand-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 500;
}

.main-nav a {
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--terracotta); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ctrl-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ctrl-btn:hover { border-color: var(--terracotta); }

.lang-en, .lang-es { opacity: 0.4; transition: opacity 0.15s; }
html[lang="en"] .lang-en { opacity: 1; font-weight: 700; color: var(--terracotta); }
html[lang="es"] .lang-es { opacity: 1; font-weight: 700; color: var(--terracotta); }
.ctrl-sep { opacity: 0.35; }

.icon-btn { padding: 7px; }
.icon-btn svg { display: block; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.cta-small {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  background: var(--terracotta);
  color: var(--sand);
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
.cta-small:hover { filter: brightness(1.08); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---------- sections & shades ---------- */
.section {
  padding: 84px 0;
  background: var(--sand);
}
.shade-warm { background: var(--warm-tint); }
.shade-paper { background: var(--paper); }
.shade-cool { background: var(--cool-tint); }
.shade-band {
  background: var(--band-bg);
  color: var(--band-ink);
}
.shade-band .eyebrow { color: var(--amber); }
.shade-band .contact-note,
.shade-band label,
.shade-band .opt { color: var(--band-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 14px;
}

/* .about-copy p / .contact-intro p are more specific than .eyebrow,
   so pin these two back to the shared eyebrow size explicitly */
.about-copy .eyebrow,
.contact-intro .eyebrow {
  font-size: 1.42rem;
}

.section-intro {
  max-width: 800px;
  font-size: 1.26rem;
  font-weight: 500;
  color: var(--muted);
}

h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* ---------- hero ---------- */
.hero { padding-top: 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero-copy .lead {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-art { display: flex; justify-content: center; }
.hero-badge { width: min(340px, 80vw); height: auto; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--sand);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--terracotta); }
.shade-band .btn-ghost { border-color: rgba(241,230,212,0.3); color: var(--band-ink); }

/* ---------- card grids ---------- */
.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 44px;
}
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(3, 1fr); }

.feature-card, .service-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
}
.shade-warm .feature-card { background: var(--paper); }
.shade-paper .service-card { background: var(--sand); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--terracotta);
  display: block;
  margin-bottom: 10px;
}

.feature-card h3, .service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}
.feature-card p, .service-card p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  margin-bottom: 0;
}

.service-card.highlight {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.service-card.highlight h3, .service-card.highlight p { color: var(--sand); }
.service-card.highlight p { opacity: 0.92; }
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--sand);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.about-copy { font-size: 1.52rem; }
.about-copy p { color: var(--muted); font-size: 1.06rem; font-weight: 500; max-width: 56ch; }
.about-mark { display: flex; justify-content: center; }
.about-mark svg { width: min(280px, 70vw); height: auto; }

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  font-size: 0.92rem;
}
.area-list li {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink);
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-intro { font-size: 1.4rem; }
.contact-intro p { color: var(--band-muted); font-size: 1.05rem; font-weight: 500; }
.contact-intro h2 { color: var(--band-ink); }
.contact-note { font-size: 0.98rem; font-weight: 500; }
.contact-email a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}
.contact-email a:hover { text-decoration: underline; }

.mockup-form {
  background: var(--sand);
  color: var(--ink);
  border-radius: 8px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-full { grid-column: 1 / -1; }

.mockup-form label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.13rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.mockup-form .opt { text-transform: none; letter-spacing: 0; }

.mockup-form input,
.mockup-form textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.mockup-form input:focus,
.mockup-form textarea:focus {
  border-color: var(--terracotta);
}
.mockup-form textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }

.form-status {
  font-size: 0.88rem;
  color: var(--terracotta);
  margin: 10px 0 0;
  min-height: 1.2em;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 44px 0 30px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 32px;
}
.footer-tag { color: var(--muted); font-size: 0.98rem; font-weight: 500; margin: 0; }
.footer-nav { display: flex; gap: 20px; font-size: 0.9rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--terracotta); }
.footer-copy {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 6px 0 0;
  text-align: center;	
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-art, .about-mark { order: -1; }
  .card-grid.three, .card-grid.two { grid-template-columns: 1fr 1fr; }
  .mockup-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: flex; }
  .cta-small { display: none; }
  .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (max-width: 420px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
}
