/* Texas Made Electric homepage styles */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--tme-ink);
  background: var(--tme-field);
  font-family: var(--tme-font-sans);
  line-height: 1.5;
}

body::selection {
  background: var(--tme-gold);
  color: var(--tme-ink);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--tme-gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--tme-radius-sm);
  background: var(--tme-gold);
  color: var(--tme-ink);
  font-weight: 800;
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid rgba(21, 23, 26, .1);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 236px;
}

.brand img {
  width: auto;
  height: 56px;
  flex: 0 0 auto;
}

.brand span {
  max-width: 150px;
  color: var(--tme-navy);
  font-size: 15px;
  font-weight: 950;
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #30363d;
  font-size: 14px;
  font-weight: 750;
}

.desktop-nav a {
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
  border-color: var(--tme-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-link,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--tme-radius-sm);
  font-weight: 850;
  letter-spacing: 0;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.phone-link {
  border: 1px solid rgba(0, 47, 108, .2);
  color: var(--tme-navy);
  padding: 10px 14px;
}

.button {
  border: 1px solid transparent;
  padding: 12px 16px;
}

.button:hover,
.phone-link:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--tme-red);
  color: var(--tme-white);
  box-shadow: 0 12px 24px rgba(217, 4, 41, .2);
}

.button-primary:hover {
  background: var(--tme-red-700);
}

.button-secondary {
  background: var(--tme-white);
  color: var(--tme-ink);
  border-color: rgba(21, 23, 26, .18);
}

.button-secondary:hover {
  border-color: var(--tme-navy);
}

.mobile-menu {
  display: none;
}

.mobile-menu summary {
  min-width: 64px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21, 23, 26, .18);
  border-radius: var(--tme-radius-sm);
  color: var(--tme-navy);
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 8px);
  display: grid;
  gap: 6px;
  background: var(--tme-white);
  border: 1px solid var(--tme-line);
  border-radius: var(--tme-radius-md);
  padding: 12px;
  box-shadow: var(--tme-shadow-panel);
}

.mobile-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: var(--tme-radius-sm);
  font-weight: 800;
}

.mobile-panel a:hover {
  background: var(--tme-field);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 96px));
  color: var(--tme-white);
  overflow: clip;
  background:
    linear-gradient(90deg, rgba(0, 26, 61, .93) 0%, rgba(0, 35, 81, .86) 34%, rgba(0, 35, 81, .33) 64%, rgba(0, 0, 0, .2) 100%),
    image-set(
      url("assets/images/electrical-work-hero-1600.webp") type("image/webp"),
      url("assets/images/electrical-work-hero-1600.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--tme-navy), var(--tme-white) 48%, var(--tme-red));
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: inherit;
  display: grid;
  align-content: center;
  padding: 64px 0 72px;
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #d9e8ff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  background: var(--tme-gold);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  margin-top: 18px;
  font-size: 72px;
  line-height: .98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-top: 22px;
  color: #eef5ff;
  font-size: 21px;
  line-height: 1.48;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin-top: 36px;
}

.hero-proof span {
  display: block;
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  color: var(--tme-white);
}

.hero-proof p {
  margin-top: 7px;
  color: #c8d6e6;
  font-size: 14px;
  line-height: 1.35;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 58px 0;
}

.container {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.answer-band {
  background: var(--tme-white);
  border-bottom: 1px solid var(--tme-line);
}

.answer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}

.kicker {
  color: var(--tme-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  margin-top: 10px;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  margin-top: 18px;
  color: var(--tme-muted);
  font-size: 18px;
  line-height: 1.65;
}

.facts-list {
  display: grid;
  gap: 12px;
}

.fact-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tme-line);
}

.fact-row strong {
  color: var(--tme-navy);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fact-row span {
  color: #30363d;
}

.services {
  background: #f0f3f6;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .62fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head .section-copy {
  margin-top: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 272px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--tme-white);
  border: 1px solid var(--tme-line);
  border-radius: var(--tme-radius-md);
  padding: 22px;
  box-shadow: 0 12px 26px rgba(21, 23, 26, .05);
}

.service-card h3 {
  font-size: 22px;
  line-height: 1.12;
}

.service-card p {
  margin-top: 14px;
  color: var(--tme-muted);
}

.service-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #30363d;
}

.service-card li + li {
  margin-top: 6px;
}

.service-link {
  min-height: 44px;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  color: var(--tme-red-700);
  font-weight: 850;
}

.service-link::after {
  content: "\2192";
  margin-left: 8px;
}

.section-action {
  min-height: 44px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  color: var(--tme-gold);
  font-weight: 850;
}

.section-action::after {
  content: "\2192";
  margin-left: 8px;
}

.proof-section {
  background: var(--tme-ink);
  color: var(--tme-white);
}

.proof-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
}

.proof-section .section-copy {
  color: #cfd7df;
}

.proof-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  min-height: 184px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--tme-radius-md);
  padding: 22px;
  background: rgba(255, 255, 255, .05);
}

.metric span {
  display: block;
  color: var(--tme-gold);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

.metric h3 {
  margin: 14px 0 0;
  color: var(--tme-white);
  font-size: 20px;
  line-height: 1.15;
}

.metric p {
  margin-top: 8px;
  color: #e5ebf0;
}

.owner-layout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.owner-badge {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
  border-left: 5px solid var(--tme-red);
  padding-left: 24px;
}

.owner-badge img {
  width: min(280px, 72vw);
}

.owner-points {
  display: grid;
  gap: 18px;
}

.owner-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}

.owner-point b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--tme-navy);
  color: var(--tme-white);
  font-size: 14px;
}

.owner-point h3 {
  font-size: 21px;
}

.owner-point p {
  margin-top: 5px;
  color: var(--tme-muted);
}

.area-section {
  background: #fff;
  border-top: 1px solid var(--tme-line);
  border-bottom: 1px solid var(--tme-line);
}

.area-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 42px;
  align-items: center;
}

.area-map {
  position: relative;
  min-height: 430px;
  border-radius: var(--tme-radius-md);
  background:
    linear-gradient(rgba(0, 47, 108, .82), rgba(0, 47, 108, .82)),
    radial-gradient(circle at 42% 48%, rgba(242, 183, 5, .34), transparent 0 12%, rgba(255, 255, 255, .18) 12.4% 13%, transparent 13.3%),
    linear-gradient(135deg, #092b58, #101820);
  overflow: hidden;
  box-shadow: var(--tme-shadow-raised);
}

.area-map::before {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
}

.area-label {
  position: absolute;
  min-width: 120px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--tme-radius-sm);
  background: rgba(255, 255, 255, .12);
  color: var(--tme-white);
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.area-label.primary {
  background: var(--tme-red);
  border-color: transparent;
}

.area-label:nth-child(1) { left: 34%; top: 42%; }
.area-label:nth-child(2) { left: 18%; top: 62%; }
.area-label:nth-child(3) { right: 12%; top: 26%; }
.area-label:nth-child(4) { right: 18%; bottom: 18%; }
.area-label:nth-child(5) { left: 12%; top: 22%; }

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.area-list span {
  border: 1px solid var(--tme-line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: #30363d;
  font-weight: 750;
  font-size: 14px;
}

.service-map-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 32px;
}

.service-map-heading .section-copy {
  margin-top: 0;
}

.service-map {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--tme-line);
  border-radius: var(--tme-radius-md);
  background: var(--tme-white);
  box-shadow: var(--tme-shadow-raised);
}

.service-map::before {
  content: none;
}

.service-map iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
  background: #dfe4e8;
}

.service-map--wide iframe {
  height: 520px;
}

.service-map-caption {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--tme-line);
}

.service-map-caption div {
  display: grid;
  gap: 4px;
}

.service-map-caption strong {
  color: var(--tme-navy);
  font-size: 16px;
}

.service-map-caption span {
  color: var(--tme-muted);
  font-size: 14px;
}

.service-map-caption a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--tme-red-700);
  font-weight: 850;
}

.process {
  background: var(--tme-field);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--tme-line);
  border-radius: var(--tme-radius-md);
  overflow: hidden;
  background: #fff;
}

.step {
  padding: 24px;
  min-height: 246px;
  border-right: 1px solid var(--tme-line);
}

.step:last-child {
  border-right: 0;
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--tme-navy);
  color: #fff;
  font-weight: 900;
}

.step h3 {
  margin-top: 22px;
  font-size: 21px;
}

.step p {
  margin-top: 8px;
  color: var(--tme-muted);
}

.faq-contact {
  background: #fff;
}

.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 44px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

details.faq {
  border: 1px solid var(--tme-line);
  border-radius: var(--tme-radius-md);
  background: #fff;
}

.faq summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 850;
}

.faq summary::after {
  content: "+";
  color: var(--tme-red);
  font-size: 24px;
  line-height: 1;
}

.faq[open] summary::after {
  content: "-";
}

.faq p {
  padding: 0 18px 18px;
  color: var(--tme-muted);
}

.contact-panel {
  background: var(--tme-ink);
  color: var(--tme-white);
  border-radius: var(--tme-radius-md);
  padding: 28px;
  box-shadow: var(--tme-shadow-raised);
}

.contact-panel h2 {
  font-size: 32px;
  line-height: 1.1;
}

.contact-panel p {
  margin-top: 12px;
  color: #d7dde2;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 850;
  color: #eef5ff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--tme-radius-sm);
  background: rgba(255, 255, 255, .08);
  color: var(--tme-white);
  padding: 11px 12px;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, .62);
}

.field select {
  color-scheme: dark;
}

.form-note {
  margin-top: 0 !important;
  color: #bfcbd8 !important;
  font-size: 13px;
  line-height: 1.45;
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: #e6edf5;
  font-weight: 760;
}

.site-footer {
  background: var(--tme-navy);
  color: var(--tme-white);
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .8fr;
  gap: 30px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a {
  color: #d8e5f5;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links h3,
.footer-contact h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 18px;
  color: #c9d6e5;
  font-size: 13px;
}

.disclaimer {
  color: #617080;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .hero {
    background-image:
      linear-gradient(90deg, rgba(0, 26, 61, .93) 0%, rgba(0, 35, 81, .86) 34%, rgba(0, 35, 81, .33) 64%, rgba(0, 0, 0, .2) 100%),
      image-set(
        url("assets/images/electrical-work-hero-1200.webp") type("image/webp"),
        url("assets/images/electrical-work-hero-1200.jpg") type("image/jpeg")
      );
  }

  h1 {
    font-size: 60px;
  }

  .section-title {
    font-size: 44px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .phone-link {
    display: none;
  }

  .answer-grid,
  .section-head,
  .service-map-heading,
  .proof-layout,
  .owner-layout,
  .area-layout,
  .faq-contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--tme-line);
  }

  .owner-badge {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    min-height: 68px;
    width: min(100% - 24px, 1180px);
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    height: 48px;
  }

  .brand span {
    max-width: 92px;
    font-size: 12px;
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: min(660px, calc(100svh - 92px));
    background-image:
      linear-gradient(90deg, rgba(0, 26, 61, .93) 0%, rgba(0, 35, 81, .86) 34%, rgba(0, 35, 81, .33) 64%, rgba(0, 0, 0, .2) 100%),
      image-set(
        url("assets/images/electrical-work-hero-800.webp") type("image/webp"),
        url("assets/images/electrical-work-hero-800.jpg") type("image/jpeg")
      );
    background-position: 63% center;
  }

  .hero-shell {
    padding: 36px 0 32px;
    align-content: center;
  }

  h1 {
    font-size: 43px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .24);
    padding-top: 18px;
  }

  .hero-proof div {
    border-left: 0;
    padding-left: 0;
  }

  .hero-proof span {
    font-size: 27px;
  }

  .hero-proof p {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 5px;
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 34px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .service-grid,
  .process-steps,
  .proof-metrics {
    grid-template-columns: 1fr;
  }

  .step,
  .step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--tme-line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .fact-row,
  .work-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .area-map {
    min-height: 360px;
  }

  .area-map.service-map {
    min-height: 0;
  }

  .area-label {
    min-width: auto;
    font-size: 12px;
  }

  .service-map iframe,
  .service-map--wide iframe {
    height: 360px;
  }

  .service-map-caption {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
