:root {
  --bg: #f7f4ef;
  --surface: #fffdf9;
  --surface-alt: #efe2cf;
  --text: #26211c;
  --muted: #64584f;
  --primary: #a44a2f;
  --primary-dark: #7d3420;
  --accent: #3f6b6b;
  --accent-soft: #d8e5e2;
  --border: #d4c2ad;
  --shadow: 0 12px 28px rgba(38, 33, 28, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 239, 0.92);
  border-bottom: 1px solid rgba(164, 74, 47, 0.12);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: linear-gradient(135deg, rgba(164,74,47,0.12), rgba(63,107,107,0.18));
  border: 1px dashed rgba(164,74,47,0.35);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--primary);
}

.hero,
.subpage-hero {
  background:
    radial-gradient(circle at top right, rgba(63,107,107,0.10), transparent 28%),
    linear-gradient(180deg, #f3e7d8 0%, var(--bg) 100%);
}

.hero { padding: 5rem 0 4rem; }
.subpage-hero { padding: 4rem 0 2rem; }

.hero-grid,
.split-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
.split-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.contact-grid { grid-template-columns: 0.95fr 1.05fr; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

h1, h2, h3, h4 { line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 0.8rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.65rem; }
p { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--muted); }
.max-text { max-width: 760px; }

.hero-actions,
.cta-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-1px); }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover,
.button.primary:focus-visible { background: var(--primary-dark); }
.button.secondary { background: transparent; border-color: rgba(38,33,28,0.16); color: var(--text); }
.button.secondary:hover,
.button.secondary:focus-visible { border-color: rgba(164,74,47,0.4); color: var(--primary); }

.section { padding: 4rem 0; }
.section-light { background: var(--bg); }
.desert-band { background: linear-gradient(180deg, #ecdbc4 0%, #e8d3bc 100%); }
.cta-strip { padding-top: 0; }
.section-heading { margin-bottom: 2rem; }
.section-heading.narrow { max-width: 700px; }

.card-grid {
  display: grid;
  gap: 1.5rem;
}
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-gap { gap: 1rem; }

.service-card,
.info-card,
.placeholder-card,
.cta-box,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card,
.info-card,
.placeholder-card,
.form-shell {
  padding: 1.5rem;
}

.service-card.accent { background: #fff7f1; }
.service-card.accent-2 { background: #f4faf9; }
.placeholder-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.placeholder-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(164,74,47,0.12);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.check-list,
.footer-links { padding-left: 1.1rem; margin: 0 0 1rem; }
.text-link { color: var(--accent); font-weight: 800; }

.cta-box {
  justify-content: space-between;
  padding: 1.5rem;
}

.styled-form {
  display: grid;
  gap: 0.75rem;
}

.styled-form label {
  font-weight: 700;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text);
  font: inherit;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  outline: 2px solid rgba(63,107,107,0.25);
  border-color: var(--accent);
}

.fine-print {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer {
  background: #211b17;
  color: #f5ede4;
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.footer-simple {
  text-align: center;
}

.site-footer a { color: #f5ede4; }
.site-footer a:hover,
.site-footer a:focus-visible { color: #f1b49f; }

@media (max-width: 920px) {
  .nav-wrap,
  .hero-grid,
  .split-grid,
  .contact-grid,
  .three-up,
  .two-up,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    display: grid;
  }

  .site-nav {
    gap: 0.85rem 1rem;
  }

  .hero { padding-top: 3.5rem; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 1.25rem)); }
  .brand-mark { width: 56px; height: 56px; }
  .button { width: 100%; }
  .hero-actions .button { width: 100%; }
}


.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.pt-0 { padding-top: 0; }

.cta-actions,
.contact-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  .cta-actions .button,
  .contact-actions .button {
    width: 100%;
  }
}

.brand-logo { width: 64px; height:64px; border-radius:50%; object-fit:cover; flex:0 0 auto; box-shadow:0 8px 20px rgba(38,33,28,0.12); background:#fff; }

.nav-phone { padding:0.55rem 0.9rem; border-radius:999px; background:rgba(164,74,47,0.10); color:var(--primary) !important; font-weight:800 !important; }

.logo-feature-card { text-align:center; }

.hero-logo {
  width: min(100%, 280px);
  height: auto;
  margin: 0 auto 1rem;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(38, 33, 28, 0.12);
  background: #fff;
}

@media (max-width: 640px) {
  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .hero-logo {
    width: min(100%, 220px);
  }
}


.tesla-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.tesla-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 92px;
  padding: 0.75rem;
  border: 1px dashed rgba(164,74,47,0.35);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 700px) {
  .tesla-title-row {
    grid-template-columns: 1fr;
  }

  .tesla-logo-slot {
    width: fit-content;
    min-width: 84px;
    min-height: 84px;
  }
}
