/* Oscar Saenz — El Paso smart home quote page
   Self-contained. Local fonts, no build step. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/source-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #101b2d;
  --navy-mid: #18283f;
  --navy-soft: #243551;
  --ink: #1c2330;
  --muted: #5c6573;
  --paper: #f6f1ea;
  --paper-2: #efe8dd;
  --card: #ffffff;
  --accent: #c24e1d;
  --accent-dark: #9e3e16;
  --accent-soft: #f8e6dc;
  --gold: #c4a35a;
  --gold-soft: #f3ead3;
  --line: #e4dcd0;
  --ok: #1e6b45;
  --ok-soft: #e5f3eb;
  --danger: #9b1c1c;
  --shadow: 0 16px 40px rgba(16, 27, 45, 0.12);
  --shadow-sm: 0 6px 18px rgba(16, 27, 45, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --sticky-h: 78px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  padding-bottom: var(--sticky-h);
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover { color: var(--accent-dark); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus { top: 12px; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 27, 45, 0.94);
  backdrop-filter: blur(12px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.logo-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--accent) 0%, #a13d16 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(194, 78, 29, 0.35);
}

.logo-mark svg { width: 22px; height: 22px; }

.brand-text { min-width: 0; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-role {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font: 650 0.75rem/1 var(--font-display);
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--navy);
}

.header-call {
  display: none;
  text-decoration: none;
  color: #fff !important;
  background: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.header-call:hover { background: var(--accent-dark); }

@media (min-width: 760px) {
  .header-call { display: inline-flex; align-items: center; gap: 8px; }
  .brand-role { white-space: normal; }
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(194, 78, 29, 0.28), transparent 55%),
    radial-gradient(700px 400px at 100% 20%, rgba(196, 163, 90, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, #0c1522 100%);
  color: #fff;
  padding: 2.4rem 0 3.2rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 60L60 0' stroke='%23ffffff' stroke-opacity='0.035' stroke-width='1' fill='none'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero { padding: 3.4rem 0 4.2rem; }
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.35rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 0.9rem;
}

.subhead {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy) !important;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.92rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.trust-badge:hover { transform: translateY(-1px); }

.stars {
  display: inline-flex;
  gap: 1px;
  background: var(--gold-soft);
  color: #8a6a1e;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.trust-badge .chev { color: var(--muted); font-weight: 700; }

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.proof-pill svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--gold); }

/* Form card */
.form-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 600px) {
  .form-card { padding: 1.7rem 1.6rem 1.8rem; }
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem;
}

.form-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.field { margin-bottom: 0.85rem; }

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: 400 1rem/1.2 var(--font-body);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field input:hover { border-color: #cfc5b6; }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194, 78, 29, 0.15);
}

.chip-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 12px;
  padding: 0.7rem 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 550;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip:hover { border-color: #cfc5b6; }

.chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(194, 78, 29, 0.12);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  cursor: pointer;
  text-decoration: none !important;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(194, 78, 29, 0.28);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-primary:active { transform: translateY(1px); }

.btn-primary[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.form-error {
  display: none;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: #fdecec;
  color: var(--danger);
  font-size: 0.9rem;
}

.form-error.is-visible { display: block; }

.thank-you {
  display: none;
  text-align: center;
  padding: 1.2rem 0.4rem 0.4rem;
}

.thank-you.is-visible { display: block; }

.thank-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
}

.thank-you h2 {
  margin-bottom: 0.5rem;
}

.thank-you p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.thank-actions {
  display: grid;
  gap: 8px;
}

@media (min-width: 440px) {
  .thank-actions { grid-template-columns: 1fr 1fr; }
}

.btn-secondary {
  background: var(--navy);
  color: #fff !important;
}

.btn-secondary:hover { background: var(--navy-mid); }

.btn-ghost {
  background: var(--paper-2);
  color: var(--ink) !important;
}

.btn-ghost:hover { background: var(--line); }

/* Sections */
.section { padding: 3.4rem 0; }

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 38rem;
}

.section-head { margin-bottom: 0.25rem; }

/* Included */
#include { background: var(--paper); }

.feature-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Why */
#why {
  background: var(--navy);
  color: #fff;
}

#why .section-lead { color: rgba(255, 255, 255, 0.72); }

.why-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.4rem;
}

.why-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

/* Reviews */
#reviews { background: var(--paper-2); }

.review-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 800px) {
  .review-grid { grid-template-columns: 1fr 1fr; }
}

.review {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review blockquote {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.review footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 0;
  background: none;
  color: inherit;
  border: 0;
}

.review .name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.95rem;
  font-style: normal;
}

.review .date {
  color: var(--muted);
  font-size: 0.85rem;
}

.review-stars {
  color: #b8860b;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.reviews-more {
  margin-top: 1.2rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 650;
  text-decoration: none;
  color: var(--accent-dark) !important;
}

.link-btn:hover { text-decoration: underline; }

/* FAQ */
#faq { background: var(--paper); }

.faq-list { display: grid; gap: 10px; max-width: 46rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.02rem;
  padding: 1rem 2.6rem 1rem 1.15rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: var(--muted);
}

/* Final CTA */
#final-cta {
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(194, 78, 29, 0.25), transparent 60%),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 3.6rem 0;
}

#final-cta h2 { margin-bottom: 0.55rem; }

#final-cta .section-lead {
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.75);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-actions .btn { width: auto; min-width: 200px; padding-inline: 1.4rem; }

/* Footer */
.site-footer {
  background: #0b1320;
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0 2.2rem;
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: grid;
  gap: 1rem;
}

.disclaimer {
  margin: 0;
  max-width: 50rem;
  line-height: 1.55;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-meta a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.footer-meta a:hover { color: #fff; text-decoration: underline; }

/* Sticky call / text bar */
.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(16, 27, 45, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}

.sticky-bar .btn { font-size: 1rem; padding: 0.85rem 0.7rem; }

@media (min-width: 760px) {
  .sticky-bar {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: min(420px, calc(100% - 40px));
    border-radius: 16px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 6.5rem; }
}

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

/* fixes */
.skip-link { top: -80px; }
#final-cta .btn-secondary { background: transparent; border: 1.5px solid rgba(255,255,255,.5); }
#final-cta .btn-secondary:hover { background: rgba(255,255,255,.08); }
