/* Texas Power Depot — one-page prototype */

:root {
  --cream: #f3f0e6;
  --cream-dark: #e7e2d3;
  --paper: #fbfaf6;
  --ink: #1a1c1e;
  --muted: #5a5d62;
  --line: rgba(26, 28, 30, 0.12);
  --red: #c43b50;
  --red-dark: #9e2d3e;
  --header: #16181a;
  --max: 1120px;
  --narrow: 720px;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--red); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.85rem;
}
.skip-link:focus { top: 0.75rem; color: #fff; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  color: #f4f1ea;
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem 1.75rem;
  min-height: 4.25rem;
  padding: 0.65rem 0;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: #f4f1ea;
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}
.wordmark:hover { color: #fff; }

.wordmark-texas,
.wordmark-depot {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8c4bb;
}

.wordmark-power {
  position: relative;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.15rem 0.15rem;
}

.wordmark-wave {
  position: absolute;
  left: -0.15rem;
  right: -0.15rem;
  bottom: -0.45rem;
  width: calc(100% + 0.3rem);
  height: 0.7rem;
  color: var(--red);
  overflow: visible;
}

.nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.nav a {
  color: #f4f1ea;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: #fff; text-decoration: underline; }

.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
}
.header-phone:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* Hero */
.hero {
  padding: 3.25rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-dark);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lede {
  margin: 0.85rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--ink);
}

.hero-sub {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(26, 28, 30, 0.18);
  background: #2a2c2e;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 28, 30, 0.28);
}
.btn-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}

/* Sections */
.section {
  padding: 3.25rem 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--paper); }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h3 {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
}

.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }


/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: start;
}

.contact-intro { color: var(--muted); }

.facts {
  margin: 1.4rem 0 1rem;
  display: grid;
  gap: 1rem;
}
.facts div { margin: 0; }
.facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.15rem;
}
.facts dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
}
.facts a { color: var(--ink); text-decoration: none; }
.facts a:hover { color: var(--red-dark); text-decoration: underline; }


.contact-form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: 0 8px 24px rgba(26, 28, 30, 0.05);
}

.field { margin: 0 0 0.95rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid #c9c6bc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin: 0.4rem 0 0;
}

.mailto-link {
  font-size: 0.95rem;
  font-weight: 600;
}

.form-note {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  background: #eef6ee;
  border: 1px solid #b7d3b7;
  color: #1d3b1d;
  font-size: 0.95rem;
}
.form-note-error {
  background: #faf3f1;
  border-color: #e0b4b4;
  color: #6b1d1d;
}
.form-note[hidden] { display: none; }

/* Footer */
.site-footer {
  background: var(--header);
  color: #c8c4bb;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.92rem;
}
.footer-inner { display: grid; gap: 0.25rem; }
.footer-name {
  margin: 0;
  color: #f4f1ea;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.footer-tag { margin: 0; font-style: italic; }
.footer-address { margin: 0.35rem 0 0; }
.footer-contact { margin: 0.2rem 0 0; }
.footer-contact a { color: #f4f1ea; text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-contact span { margin: 0 0.45rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .hero { padding-top: 2.25rem; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

@media (max-width: 680px) {
  .wrap, .narrow { width: calc(100% - 1.75rem); }
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.55rem 1rem;
  }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    padding-top: 0.15rem;
    gap: 1rem;
  }
  .header-phone { margin-left: auto; }
  .section, .hero { padding-top: 2.25rem; padding-bottom: 2.25rem; }
  .contact-form-panel { padding: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
