/* ============================================
   TESLA SHADES — Retro Atomic-Age Design System
   ============================================ */

:root {
  /* Palette pulled from the retro Houston/Space City illustration */
  --gold: #e2a638;
  --gold-dark: #c98a1f;
  --teal: #1f7a7a;
  --teal-dark: #145858;
  --teal-light: #7fd1cf;
  --sky: #a9dde0;
  --orange: #ea7530;
  --orange-dark: #d15f1f;
  --coral: #d8432e;
  --cream: #f7efdb;
  --cream-dark: #efe3c4;
  --ink: #2a2015;
  --ink-soft: #4a3d2a;
  --white: #fffdf7;

  --font-display: "Bungee", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgba(42, 32, 21, 0.35);

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.5px;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: var(--coral);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--teal-dark);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-alt {
  background: var(--white);
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
}

.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-teal .section-head h2 {
  color: var(--white);
}

.section-teal .section-head p {
  color: var(--sky);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-hard);
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

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

.btn-secondary {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--teal-dark);
}

.brand-word span {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: var(--coral);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.main-nav a:hover {
  color: var(--orange-dark);
}

.mobile-nav-phone,
.mobile-nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--teal-dark);
}

.header-phone svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold) 40%, var(--sky) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpeg");
  background-size: cover;
  background-position: center 30%;
  filter: saturate(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 40, 40, 0.15) 0%, rgba(20, 30, 28, 0.55) 65%, rgba(15, 20, 18, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--white);
  padding: 140px 0 100px;
}

.hero .eyebrow {
  background: var(--coral);
  color: var(--white);
  border-color: var(--ink);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--white);
  text-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 0.35em;
}

.hero h1 .accent {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--cream);
  max-width: 560px;
  margin-bottom: 2em;
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 2px;
  font-weight: 700;
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Marquee strip ---------- */

.marquee-strip {
  background: var(--ink);
  color: var(--gold);
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 14px 28px;
  white-space: nowrap;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--ink);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 3px solid var(--ink);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.icon-gold { background: var(--gold); }
.icon-orange { background: var(--orange); }
.icon-coral { background: var(--coral); }
.icon-teal { background: var(--teal); }

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.service-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--coral);
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Why us / features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 20px 14px;
}

.feature-stat {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 4px;
}

.feature-card h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--sky);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

.process-step {
  position: relative;
  text-align: center;
  padding-top: 12px;
}

.process-number {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
}

.process-step h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.process-step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.process-connector {
  display: none;
}

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  border: 3px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  box-shadow: var(--shadow-hard-sm);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item span {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}

.g1::before { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.g2::before { background: linear-gradient(135deg, var(--gold), var(--orange-dark)); }
.g3::before { background: linear-gradient(135deg, var(--orange), var(--coral)); }
.g4::before { background: linear-gradient(135deg, var(--sky), var(--teal)); }
.g5::before { background: linear-gradient(135deg, var(--coral), var(--ink)); }
.g6::before { background: linear-gradient(135deg, var(--teal-light), var(--gold)); }

/* ---------- Testimonials ---------- */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-hard-sm);
}

.stars {
  color: var(--orange);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card p {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--white);
}

.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
}

.author-loc {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ---------- Service area ---------- */

.service-area {
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-hard);
}

.service-area h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
}

.service-area p {
  color: var(--sky);
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-pills li {
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}

.city-badge {
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
}

.city-badge svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
}

.city-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.city-badge span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Contact / quote ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-hard);
}

.contact-info-card h3 {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 1.2rem;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-list svg {
  width: 24px;
  height: 24px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}

.contact-info-list span, .contact-info-list a {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--gold);
}

.social-row svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.quote-form {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-hard);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
}

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

.form-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 12px;
  text-align: center;
}

.form-success {
  display: none;
  background: var(--teal);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  font-weight: 700;
}

.form-success.visible {
  display: block;
}

.quote-form.hidden {
  display: none;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: radial-gradient(circle at 30% 30%, var(--orange) 0%, var(--coral) 60%);
  color: var(--white);
  text-align: center;
  border-top: 6px solid var(--ink);
  border-bottom: 6px solid var(--ink);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 3px 3px 0 var(--ink);
}

.cta-banner p {
  color: var(--cream);
  max-width: 520px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

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

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247, 239, 219, 0.15);
}

.footer-brand .brand-word {
  color: var(--cream);
}

.footer-brand p {
  color: rgba(247, 239, 219, 0.7);
  font-size: 0.88rem;
  max-width: 280px;
  margin-top: 14px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(247, 239, 219, 0.8);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.78rem;
  color: rgba(247, 239, 219, 0.55);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: rgba(247, 239, 219, 0.55);
}

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

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-hard-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .service-area { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  section { padding: 64px 0; }

  .main-nav, .header-phone {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    border-bottom: 4px solid var(--ink);
    gap: 16px;
  }

  .site-header.nav-open .mobile-nav-phone {
    display: block;
    font-weight: 700;
    color: var(--teal-dark);
  }

  .site-header.nav-open .mobile-nav-cta {
    display: inline-flex;
    margin-top: 6px;
  }

  .services-grid, .features-grid, .process-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.tall { grid-row: span 1; }

  .service-area {
    padding: 36px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 26px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    padding: 120px 0 80px;
  }
}
