/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Type stack inspired by SubstrateRx: Fraunces display + Source Sans 3 body + JetBrains Mono labels. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Source+Sans+3:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* Design tokens recovered from the live Welsh Global Energy site. */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-navy: #1c3144;
  --color-navy-mid: #42668a;
  --color-blue: #5d86af;
  --color-blue-light: #9ab2c9;
  --color-red: #ae0317;
  --color-pale-blue: #ccecff;
  --color-strip: #f8f9fa;
  --color-text: #212529;
  --color-muted: #6c757d;
  --color-border: #dee2e6;
  --color-surface: #ffffff;
  --header-height: 60px;
  --container-wide: 1320px;
  --container-shell: 1140px;
  --container-medium: 960px;
  --container-narrow: 720px;
  --page-gutter: 32px;
  --section-space: 96px;
  --radius: 16px;
  --radius-pill: 32px;
  --shadow-card: 0 1px 3px rgba(28, 49, 68, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  overflow-x: hidden;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.navigation-is-open {
  overflow: hidden;
}

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

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

button,
summary {
  cursor: pointer;
}

a {
  color: var(--color-blue);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--color-navy-mid);
}

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

[hidden] {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: white;
  color: var(--color-navy);
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.container--medium {
  max-width: var(--container-medium);
}

.container--wide {
  max-width: var(--container-wide);
}

.site-main {
  min-height: calc(100vh - var(--header-height) - 418px);
}

.section {
  padding-block: var(--section-space);
}

.section--compact {
  padding-block: 64px;
}

.section--pale {
  background: var(--color-pale-blue);
}

.section-heading,
/* Interior page mastheads are owned by tesla_theme.css (.page-hero__*). */

.brand-tagline {
  height: 70px;
  overflow: hidden;
  background: var(--color-strip);
}

.brand-tagline .container {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-tagline img {
  width: 250px;
  opacity: 0.13;
  animation: brand-tagline-in 1.5s ease both;
}

@keyframes brand-tagline-in {
  from { opacity: 0.2; transform: translateX(0); }
  to { opacity: 1; transform: translateX(6%); }
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 32px;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-red);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: rgba(174, 3, 23, 0.06);
  color: var(--color-red);
  transform: translateY(-1px);
}

.button--navy {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: white;
}

.button--navy:hover {
  background: var(--color-navy-mid);
  color: white;
}

.button--light {
  border-color: white;
  color: white;
}

.button--light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.button--square {
  border-radius: 2px;
}

.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* Fixed site header and responsive navigation. */
.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: var(--color-navy);
}

.site-header__inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-shell);
}

.site-header__brand {
  display: block;
  flex: 0 1 400px;
}

.site-header__brand img {
  width: 100%;
  max-width: 400px;
  max-height: var(--header-height);
  object-fit: contain;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.desktop-navigation a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--color-pale-blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-navigation a:hover,
.desktop-navigation a.is-active {
  background: rgba(204, 236, 255, 0.1);
}

.desktop-navigation .desktop-navigation__contact {
  margin-left: 8px;
  border-color: var(--color-pale-blue);
}

.navigation-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 4px;
  border: 0;
  background: transparent;
}

.navigation-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: white;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header--menu-open .navigation-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header--menu-open .navigation-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .navigation-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-navigation {
  position: fixed;
  z-index: 190;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 16px;
  overflow-y: auto;
  background: var(--color-strip);
}

.mobile-navigation a {
  display: block;
  padding: 8px 12px;
  color: var(--color-text);
  font-size: 1.25rem;
  text-decoration: none;
}

.mobile-navigation a:hover,
.mobile-navigation a.is-active {
  background: rgba(93, 134, 175, 0.12);
}

@keyframes mobile-navigation-in {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: none; }
}

/* Shared form controls. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label,
.newsletter label {
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: white;
  color: var(--color-text);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-blue);
  outline: 2px solid rgba(93, 134, 175, 0.25);
  outline-offset: 0;
}

.form-notice {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--color-red);
  background: rgba(174, 3, 23, 0.06);
  color: var(--color-navy);
}

/* Newsletter and footer appear on every public route. */
.newsletter {
  margin-top: 1px;
  padding-block: 64px;
  background: var(--color-pale-blue);
}

.newsletter__form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 16px 32px;
  align-items: center;
}

.newsletter h2 {
  font-size: 2rem;
}

.newsletter__fields {
  display: grid;
  gap: 6px;
}

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

.newsletter__controls input,
.newsletter__controls button {
  min-height: 50px;
}

.newsletter__privacy,
.newsletter .form-notice {
  grid-column: 1 / -1;
}

.newsletter__privacy {
  margin: 0;
  color: #343a40;
  font-size: 0.75rem;
}

.newsletter__privacy a {
  color: var(--color-red);
}

.site-footer {
  position: relative;
  padding: 64px 0 32px;
  background: var(--color-navy);
  color: white;
}

.site-footer > .container {
  max-width: var(--container-shell);
}

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

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.site-footer__links a {
  color: var(--color-blue-light);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: white;
  text-decoration: underline;
}

.site-footer__social h2 {
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.25rem;
}

.social-buttons {
  display: flex;
  gap: 20px;
}

.social-buttons button {
  width: 32px;
  height: 32px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: white;
}

.social-buttons svg {
  width: 100%;
  height: 100%;
}

.site-footer__logo {
  width: 350px;
  margin: 64px auto 0;
}

.site-footer__copyright {
  margin: 32px 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.social-dialog {
  width: min(90vw, 460px);
  padding: 36px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.social-dialog::backdrop {
  background: rgba(28, 49, 68, 0.72);
}

.social-dialog h2 {
  margin-bottom: 16px;
  font-size: 2rem;
}

.social-dialog__close {
  position: absolute;
  top: 8px;
  right: 12px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--color-navy);
  font-size: 2rem;
  line-height: 1;
}

/* Scroll reveals echo the restrained motion used by the reference site. */
[data-controller~="reveal"].reveal-is-ready {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 600ms ease, transform 650ms ease;
}

[data-controller~="reveal"].reveal-is-ready.reveal--scale {
  transform: scale(0.8);
}

[data-controller~="reveal"].reveal-is-ready.is-visible {
  opacity: 1;
  transform: none;
}

/* Home page. */
.home-hero {
  position: relative;
  /* min-height: calc(100vh - var(--header-height)); */
  overflow: hidden;
  background: var(--color-navy);
}

.home-hero__video,
.home-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__video {
  object-fit: cover;
}

.home-hero__overlay {
  background: rgba(28, 49, 68, 0.07);
}

.home-hero__inner {
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.home-hero__mark {
  position: absolute;
  z-index: 0;
  top: 12%;
  left: 50%;
  width: min(72%, 760px);
  transform: translateX(-50%);
  opacity: 0.58;
  filter: brightness(0) invert(1);
}

.home-hero__animated-tagline {
  position: absolute;
  z-index: 1;
  top: 22%;
  left: 50%;
  width: min(86%, 900px);
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(2.1rem, 5.2vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-align: center;
  text-wrap: balance;
  animation: none;
  pointer-events: none;
}

.home-hero__actions {
  position: absolute;
  z-index: 2;
  top: 49%;
  left: 50%;
  display: grid;
  width: min(700px, calc(100% - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 80px;
  transform: translateX(-50%);
}

.home-hero__actions .button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

.home-hero__primary {
  background: rgba(174, 3, 23, 0.12);
}

.home-hero__actions .button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

@keyframes hero-tagline {
  0% { opacity: 0; transform: translateX(28%); }
  16% { opacity: 1; transform: translateX(-50%); }
  58% { opacity: 1; transform: translateX(-50%); }
  100% { opacity: 0; transform: translateX(-70%); }
}

.home-statement {
  max-width: 920px;
  margin: 0 auto 80px;
  color: var(--color-text);
  font-size: 3rem;
  text-align: center;
}

.home-equipment {
  padding-top: 64px;
}

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

.home-equipment__grid img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  opacity: 0.3;
  transform: scale(0.82);
}

.home-access {
  padding-top: 32px;
}

.home-access__grid {
  display: grid;
  grid-template-areas: "copy image";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  overflow: hidden;
}

.home-access__image {
  grid-area: image;
}

.home-access__image img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  margin-inline: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.home-access__copy {
  grid-area: copy;
}

.home-access__copy h3 {
  color: var(--color-red);
  font-size: 2rem;
  font-weight: 400;
}

.home-why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  margin-top: 96px;
  align-items: stretch;
}

.home-why__image {
  min-height: 500px;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: url("/assets/welshge/black-man-charging-car-9e1218a0.jpg") center / cover no-repeat;
}

.home-why__content {
  max-width: 600px;
  padding: 0 32px 32px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 28px;
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit__number {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-red);
  color: white;
}

.benefit h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.benefit p {
  margin: 0;
  font-size: 0.875rem;
}

.home-locations {
  padding-top: 32px;
}

.home-locations .container > p {
  margin-top: 20px;
  font-size: 1.25rem;
}

.home-locations__preview {
  width: 100%;
  height: 500px;
  margin-top: 16px;
  object-fit: contain;
  opacity: 0.3;
  transform: scale(0.82);
}

.home-locations__button {
  display: flex;
  width: 100%;
}

.home-map {
  position: relative;
  height: 75vh;
  margin-top: 64px;
  overflow: hidden;
}

.home-map::before,
.home-map::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 20%;
  background: white;
  content: "";
  pointer-events: none;
}

.home-map::before { left: 0; }
.home-map::after { right: 0; }

.home-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.home-faq-cta {
  padding-block: 96px;
  background: var(--color-pale-blue);
}

.home-faq-cta__button {
  display: flex;
  width: 100%;
  min-height: 62px;
  border-color: var(--color-blue);
  color: var(--color-blue);
  font-size: 1.25rem;
}

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

.blog-card {
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

.blog-card h3 {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--color-blue);
}

/* Locations. */
.locations-section {
  padding-top: 0;
  padding-bottom: 96px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 16px;
  align-items: start;
}

.location-list {
  display: grid;
  height: 50vh;
  align-content: start;
  gap: 24px;
  overflow-y: auto;
}

.location-card {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.location-card__image {
  width: 100%;
  height: 150px;
  margin-top: 7px;
  margin-bottom: 7px;
  object-fit: cover;
}

.location-card h2 {
  margin: 0 0 2px;
  color: var(--color-red);
  font-size: 1.125rem;
  line-height: 1.45;
}

.location-card h2 span {
  white-space: nowrap;
}

.location-card p {
  margin-bottom: 4px;
}

.map-frame {
  height: 50vh;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-strip);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.location-help {
  display: grid;
  width: min(400px, 100%);
  justify-items: center;
  gap: 16px;
  margin: 80px auto 0;
  text-align: center;
}

.location-help h2 {
  color: var(--color-red);
  font-size: 1.125rem;
}

.location-help .button {
  width: 100%;
}

/* Charging equipment. */
.equipment-section {
  padding-top: 12px;
  padding-bottom: 104px;
}

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

.equipment-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.equipment-card__image {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

.equipment-card h2 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
}

.equipment-card ul {
  margin-bottom: 0;
  padding-left: 18px;
  font-size: 1rem;
  line-height: 1.55;
}

.equipment-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
  margin-top: 80px;
}

.equipment-gallery img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  object-fit: cover;
}

.equipment-gallery img:first-child,
.equipment-gallery img:last-child {
  height: 500px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 80px;
}

.video-card h2 {
  margin-bottom: 22px;
  font-size: 3rem;
  text-align: center;
}

.video-embed {
  height: 60vh;
  min-height: 200px;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f3f5;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card:first-child .video-embed {
  padding: 20px;
  border-radius: 25px;
}

.home-chargers {
  padding: 82px 0 80px;
  background: #0c0c0c;
  color: white;
  text-align: center;
}

.home-chargers h2 {
  color: white;
  font-size: 2.125rem;
  line-height: 1.3;
}

.home-chargers p {
  margin: 16px 0 20px;
}

.home-chargers__image {
  width: min(700px, 100%);
  margin: 0 auto 24px;
  object-fit: contain;
}

.home-chargers .button {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 1rem;
}

/* Residential services. */


.residential-services {
  padding-top: 16px;
  padding-bottom: 96px;
}

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

.feature-card {
  position: relative;
  min-height: 0;
  padding: 16px 16px 40px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.feature-card::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-red);
  content: "";
}

.feature-card--brown::after {
  background: #442f1c;
}

.feature-card--blue::after {
  background: var(--color-pale-blue);
}

.feature-card h2 {
  margin-bottom: 16px;
  color: var(--color-red);
  font-size: 1.375rem;
  text-align: center;
}

.feature-card ul {
  margin-bottom: 0;
}

.residential-overview {
  margin-top: 80px;
}

.residential-overview .split-section__content h2 {
  color: var(--color-red);
  font-size: 1.375rem;
}

.residential-overview .split-section__content {
  width: 100%;
  max-width: 600px;
  justify-self: end;
}

.residential-overview .split-section__image {
  width: min(500px, 100%);
  height: 300px;
}

.residential-cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 48px;
  text-align: center;
}

.residential-cta p {
  margin: 0;
  font-size: 1.5rem;
}

@media (min-width: 992px) {
  .residential-cta .button {
    padding-inline: 96px;
  }
}

/* Contact — visual system owned by tesla_theme.css */

/* Client site survey. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}



.survey-section {
  padding-top: 12px;
  padding-bottom: 80px;
}

.survey-form {
  display: grid;
  max-width: 960px;
  gap: 20px;
  margin-inline: auto;
}

.survey-card {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.survey-card > legend:not(.visually-hidden) {
  padding: 0 8px;
  color: var(--color-red);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.375rem;
  font-weight: 700;
}

.survey-uploads {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-uploads > h2 {
  font-size: 1.375rem;
}

.upload-field {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: white;
}

.upload-field h3 {
  margin: 0;
  color: var(--color-red);
  font-size: 1.125rem;
}

.upload-field p {
  margin: 0;
  color: #495057;
  font-size: 0.9rem;
}

.upload-field__dropzone {
  padding: 16px;
  border: 1px dashed #ced4da;
  border-radius: 4px;
  background: white;
}

.upload-field label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-navy);
  font-weight: 500;
}

.upload-field input[type="file"] {
  min-height: 44px;
  padding: 6px;
  background: white;
}

.upload-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  background: var(--color-navy);
  color: white;
  cursor: pointer;
}

.form-grid--three {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.survey-card--service .field:nth-child(-n + 3) {
  grid-column: span 2;
}

.survey-card--service .field:nth-child(n + 4) {
  grid-column: span 3;
}

.survey-form label {
  font-size: 0.875rem;
}

.survey-form input:not([type="file"]),
.survey-form select {
  min-height: 36px;
  padding-block: 6px;
}

.survey-form__consent {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.survey-form__actions {
  margin-top: 4px;
  text-align: center;
}

.survey-form__actions .button {
  min-width: auto;
  min-height: 50px;
  padding-inline: 64px;
}

/* About, community, blog, FAQ, and policy pages. */
.container--narrow {
  max-width: var(--container-narrow);
}

.section__title {
  margin-bottom: 48px;
  color: var(--color-navy);
  font-size: 3rem;
  text-align: center;
}

.section__actions {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}



.about-overview {
  padding-top: 16px;
  padding-bottom: 48px;
}

.about-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.about-overview__item {
  position: relative;
  min-height: 184px;
  padding: 32px 24px 40px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.about-overview__item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--color-red);
  content: "";
}

.about-overview__item:nth-child(2)::after {
  background: #3b2724;
}

.about-overview__item:nth-child(3)::after {
  background: #aeb9ec;
}

.about-overview__item h2 {
  margin-bottom: 16px;
  color: var(--color-red);
  font-size: 1.25rem;
}

.about-overview__item p {
  font-size: 1.125rem;
}

.service-provider {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
  margin: 96px auto 0;
}

.service-provider__logo {
  width: 190px;
  margin-inline: auto;
}

.service-provider p {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
}

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

.team-section {
  padding-block: 48px;
}

.team-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.team-card__image {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: top center;
}

.team-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.team-card__role {
  font-weight: 500;
}

.team-card__content > :last-child {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .team-card:nth-child(2) .team-card__content {
    max-height: 360px;
    padding-right: 12px;
    overflow-y: auto;
    scrollbar-color: var(--color-blue-light) transparent;
    scrollbar-width: thin;
  }
}

.values-section {
  padding-top: 48px;
  background: #f1f3f5;
}

.community-section,
.faq-section {
  padding-block: 48px;
}

.blog-index-section {
  padding-top: 48px;
}

.values-grid {
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 64px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: values;
}

.value-card {
  position: relative;
  padding-left: 56px;
  counter-increment: values;
}

.value-card::before {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-red);
  color: white;
  content: counter(values);
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.value-card p {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
  align-items: center;
}

.split-section--reverse .split-section__content {
  order: 2;
}

.split-section--reverse .split-section__media {
  order: 1;
}

.split-section__content h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.split-section__content p:last-child {
  margin-bottom: 0;
}

.split-section__image {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  object-fit: cover;
}



.faq-list {
  margin-top: 0;
}

.faq-item {
  border-bottom: 1px solid transparent;
}

.faq-item summary {
  position: relative;
  padding: 25px 40px 25px 0;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-item__answer {
  padding: 0 40px 20px 0;
  color: #343a40;
}

.legal-page {
  padding-top: 32px;
}

.legal-page__updated {
  color: var(--color-muted);
  font-style: italic;
}

.legal-page section,
.blog-article section {
  margin-top: 36px;
}

.legal-page h2 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.legal-page li,
.blog-article li {
  margin-bottom: 7px;
}



.blog-article {
  padding-top: 28px;
}

.blog-article h2 {
  margin-bottom: 12px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.blog-article__sources {
  margin-top: 36px;
}

.blog-article__back {
  margin-top: 36px;
}

.blog-card__title {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1.35;
}

.blog-card__title a {
  color: var(--color-text);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

@media (max-width: 1199px) {
  .desktop-navigation__about {
    display: none;
  }
}

@media (max-width: 991px) {
  .location-layout {
    grid-template-columns: minmax(250px, 1fr) minmax(0, 2fr);
    gap: 16px;
  }

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

  .home-equipment__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-why {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-why__content {
    max-width: none;
    padding: 0 var(--page-gutter) 32px;
  }

  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid,
  .team-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-card__image {
    height: 420px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .site-header__brand {
    max-width: 220px;
  }

  .desktop-navigation {
    gap: 0;
  }

  .desktop-navigation a {
    padding-inline: 8px;
  }
}

@media (max-width: 767px) {
  :root {
    --page-gutter: 16px;
    --section-space: 64px;
  }

  .mobile-navigation:not([hidden]) {
    animation: mobile-navigation-in 180ms ease-out both;
  }

  .location-layout,
  .contact-grid,
  .equipment-grid,
  .equipment-gallery,
  .video-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .location-card {
    max-width: none;
  }

  .location-card__image {
    width: 100%;
    height: 150px;
  }

  .location-list,
  .map-frame {
    height: 50vh;
  }

  .locations-section {
    min-height: 0;
  }

  .location-help {
    margin-top: 80px;
  }

  .equipment-card__image {
    height: 400px;
  }

  .equipment-gallery,
  .video-grid {
    gap: 16px;
    margin-top: 80px;
  }

  .video-card h2 {
    font-size: 1.8rem;
  }

  .home-chargers {
    padding-block: 80px;
  }

  .home-chargers h2 {
    font-size: 1.8rem;
  }

  .residential-overview {
    margin-top: 72px;
  }



  .survey-card {
    padding: 20px;
  }

  .survey-form__actions .button {
    width: auto;
  }

  .survey-card--service .field {
    grid-column: auto;
  }

  .site-main {
    min-height: calc(100vh - var(--header-height) - 964px);
  }

  .section-heading,
  .section__title {
    font-size: 1.8rem;
  }

  .brand-tagline {
    height: 68px;
  }

  .brand-tagline img {
    width: 250px;
  }

  .site-header__brand {
    max-width: 220px;
  }

  .desktop-navigation {
    display: none;
  }

  .navigation-toggle {
    display: block;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .field--full {
    grid-column: auto;
  }

  .newsletter {
    padding-block: 64px;
  }

  .newsletter__form {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .newsletter h2 {
    font-size: 1.4rem;
  }

  .newsletter__privacy,
  .newsletter .form-notice {
    grid-column: auto;
  }

  .site-footer {
    min-height: 964px;
    padding-top: 64px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-left: 32px;
  }

  .site-footer__logo {
    width: min(350px, 100%);
    margin-top: 64px;
  }

  .home-hero__video {
    display: none;
  }

  .home-hero__overlay {
    background: var(--color-navy);
  }

  .home-hero__mark {
    top: 10%;
    width: min(70%, 240px);
    opacity: 0.5;
  }

  .home-hero__animated-tagline {
    top: 28%;
    width: min(90%, 340px);
    font-size: 1.85rem;
    animation: none;
    opacity: 1;
    transform: translateX(-50%);
  }

  .home-hero__actions {
    top: 49%;
    width: calc(100% - 96px);
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-statement {
    margin-bottom: 48px;
    font-size: 1.8rem;
  }

  .home-equipment__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-equipment__grid img {
    height: 430px;
  }

  .home-access__grid {
    grid-template-areas: "image" "copy";
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-access__copy h3 {
    font-size: 1.3rem;
  }

  .home-why {
    gap: 32px;
    margin-top: 32px;
  }

  .home-why__image {
    min-height: 500px;
  }

  .benefits-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-locations .container > p {
    font-size: 1rem;
  }

  .home-map::before,
  .home-map::after {
    display: none;
  }

  .home-faq-cta__button {
    min-height: 60px;
    font-size: 1rem;
  }

  .about-overview__grid,
  .service-provider,
  .feature-grid,
  .values-grid,
  .split-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-overview__grid {
    gap: 36px;
  }

  .service-provider {
    gap: 28px;
    margin-top: 64px;
    text-align: center;
  }

  .team-card__image {
    height: 360px;
  }

  .value-card {
    min-height: 40px;
  }

  .split-section,
  .split-section--reverse {
    gap: 32px;
  }

  .split-section--reverse .split-section__content,
  .split-section--reverse .split-section__media {
    order: initial;
  }

  .split-section__image {
    height: 300px;
  }

  .legal-page h2 {
    font-size: 1.5rem;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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