/* Valley Garage Door Repair — first-draft site styles
   Mobile-first, system fonts, no external assets.
   Brand colors sampled from the official logo:
   orange #FE6204, purple #380C80. Deep purple is a darkened
   logo purple for hero/footer contrast. */

:root {
  --navy: #380C80;
  --navy-deep: #15032C;
  --navy-mid: #2A0870;
  --navy-soft: #4B1FA3;
  --sand: #F7F4FB;
  --sand-dark: #E8E0F2;
  --cream: #FFFDFB;
  --gold: #FE6204;
  --gold-soft: #FFD4B0;
  --cta: #FE6204;
  --cta-hover: #E05500;
  --green: #15803d;
  --green-deep: #166534;
  --text: #1c1917;
  --muted: #57534e;
  --line: #E6E0EE;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(21, 3, 44, 0.12);
  --radius: 14px;
  --header-h: 72px;
  --sticky-h: 72px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--cta);
  --orange: #FE6204;
  --purple: #380C80;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

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

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

a:hover {
  color: var(--cta-hover);
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 6vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--cta);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:focus-visible,
.sticky-btn:focus-visible,
.logo:focus-visible,
.desktop-nav a:focus-visible,
summary:focus-visible,
.quote-form input:focus-visible,
.quote-form textarea:focus-visible,
.quote-form button:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-primary {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.btn-primary:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--white);
}

.btn-text-sm {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
  padding: 0.65rem 0.95rem;
}

.btn-text-sm:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-lg {
  padding: 1rem 1.35rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

.btn-short { display: inline; }
.btn-full { display: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.logo:hover { color: var(--navy); }

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-mark-img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
}

.logo-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--orange);
  line-height: 1;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin-top: 2px;
}

.logo-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--purple);
  margin-top: 2px;
  white-space: nowrap;
}

.desktop-nav {
  display: none;
  margin-left: auto;
  gap: 1.15rem;
}

.desktop-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.desktop-nav a:hover { color: var(--cta); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-actions .btn-text-sm { display: none; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(232, 197, 122, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 2.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero h1,
.hero .hero-lead,
.section-quote h2,
.section-quote .section-lead,
.section-quote .eyebrow {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}

.eyebrow.dark { color: var(--cta); }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-lead,
.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
}

.hero-tagline {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.01em;
}

.hero-lead {
  color: #d6d3d1;
  margin-bottom: 1.5rem;
}

.hero-ctas,
.quote-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  color: #d6d3d1;
  font-size: 0.95rem;
  margin: 0;
}

.stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.dot-sep { opacity: 0.6; }

.hero-art { display: none; }

.hero-svg {
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Trust bar */
.trust-bar {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.trust-item {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.trust-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(16, 36, 62, 0.06);
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.trust-item span:last-child,
.trust-item div span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.section-alt {
  background: var(--sand);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-lead { margin-bottom: 0; }

.service-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  box-shadow: 0 1px 0 rgba(16, 36, 62, 0.03);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sand);
  color: var(--navy);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid var(--line);
}

.why-num {
  display: block;
  font-weight: 800;
  color: var(--cta);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
}

.why-note {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

/* Cities */
.city-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.city-list li {
  background: var(--sand);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.areas-foot {
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Quote */
.section-quote {
  background:
    radial-gradient(ellipse at 10% 0%, rgba(232, 197, 122, 0.1), transparent 45%),
    var(--navy-deep);
  color: var(--white);
}

.quote-grid {
  display: grid;
  gap: 2rem;
}

.section-lead.light { color: #d6d3d1; }

.quote-points {
  list-style: none;
  color: var(--gold-soft);
  font-weight: 600;
}

.quote-points li {
  padding: 0.3rem 0 0.3rem 1.3rem;
  position: relative;
}

.quote-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.quote-form {
  background: var(--white);
  color: var(--text);
  border-radius: 20px;
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
}

.form-banner {
  background: #fff7ed;
  border: 1px dashed #fdba74;
  color: #7c2d12;
  font-size: 0.88rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1.1rem;
}

.form-banner a { font-weight: 700; }

.field { margin-bottom: 0.95rem; }

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.optional {
  font-weight: 500;
  color: var(--muted);
}

.field input[type="text"],
.field input[type="tel"],
.field textarea,
.field input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--cream);
  border: 1px solid #d6d3d1;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:hover,
.field textarea:hover {
  border-color: #a8a29e;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.form-status {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff7ed;
  color: #7c2d12;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 48rem;
}

details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.2rem 1rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 0.95rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--cta);
  line-height: 1;
}

details[open] summary::after { content: "–"; }

details p {
  margin: 0 0 1rem;
  color: var(--muted);
  padding-right: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #d6d3d1;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer h2 {
  color: var(--gold-soft);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.site-footer p { margin: 0 0 0.4rem; }

.site-footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover { color: var(--gold); }

.footer-lockup {
  display: block;
  width: min(200px, 70%);
  background: var(--white);
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin-bottom: 0.9rem;
}

.footer-lockup img {
  width: 100%;
  height: auto;
}

.logo-footer { margin-bottom: 0.8rem; }

.footer-brand p { max-width: 28rem; }

.placeholder {
  color: #fdba74;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #a8a29e;
}

.footer-placeholders { color: #fdba74; }

/* Sticky call / text bar */
.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 26, 46, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: 999px;
  padding: 0.9rem 0.75rem;
  min-height: 48px;
}

.sticky-call {
  background: var(--cta);
  color: var(--white);
}

.sticky-call:hover {
  background: var(--cta-hover);
  color: var(--white);
}

.sticky-text {
  background: var(--white);
  color: var(--navy);
}

.sticky-text:hover {
  background: var(--gold-soft);
  color: var(--navy);
}

/* Tablet */
@media (min-width: 640px) {
  .container { width: min(100% - 48px, var(--max)); }

  .btn-short { display: none; }
  .btn-full { display: inline; }

  .header-actions .btn-text-sm { display: inline-flex; }

  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }

  .service-grid { grid-template-columns: 1fr 1fr; }

  .quote-form { padding: 1.6rem 1.5rem 1.7rem; }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --header-h: 76px; --sticky-h: 68px; }

  .desktop-nav { display: flex; }

  .header-actions { margin-left: 0; }

  .hero { padding: 1.75rem 0 1rem; }
  .hero-lead { margin-bottom: 1.05rem; }
  .hero-ctas { margin-bottom: 0.9rem; }
  .trust-bar { padding: 0.85rem 0 1rem; }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .hero-art { display: block; }


  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  .section { padding: 4.5rem 0; }

  .service-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }

  .why-grid { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }

  .quote-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    align-items: start;
  }

  .footer-grid { grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr; }

  /* Full-width bottom bar so Call / Text never cover page content */
  .sticky-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
  }

  .sticky-btn {
    padding: 0.9rem 1.35rem;
    min-width: 200px;
  }
}

@media (min-width: 1100px) {
  .service-card,
  .why-card { padding: 1.55rem 1.5rem 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
}

@media (max-width: 359px) {
  .logo-tag { display: none; }
}
