/* Peak Electric HTX — brand palette: cream, charcoal, tan/bronze #c09068 */
:root {
  --charcoal: #141414;
  --charcoal-mid: #1f1f1f;
  --charcoal-soft: #2a2a2a;
  --ink: #1a1a1a;
  --muted: #5c564e;
  --cream: #faf8f4;
  --cream-deep: #f0ebe3;
  --white: #ffffff;
  --accent: #c09068;
  --accent-hover: #a87a52;
  --accent-ink: #6b4a30; /* darker bronze for text links (WCAG AA on cream) */
  --accent-soft: #e8d5c0;
  --border: #e5ddd2;
  --shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
  --radius: 12px;
  --max: 1080px;
  --header-h: 96px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --leading: 1.6;
  --space-section: clamp(3rem, 6vw, 4.5rem);
  --rail-gutter: 0px;
  --callbar-h: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: var(--leading);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--callbar-h);
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--charcoal);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header — cream bar, real logo (tall mark needs height, not width squash) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 0.75rem;
  padding-block: 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover {
  opacity: 0.92;
}

.logo:focus-visible {
  border-radius: 8px;
}

.logo-img {
  height: 76px;
  width: auto;
  max-height: 76px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 11px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0 1rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 500;
}

.site-nav a:hover {
  background: var(--cream-deep);
  color: var(--charcoal);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: var(--charcoal);
  font-weight: 700;
  text-align: center;
  margin-top: 0.25rem;
}

.site-nav .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--charcoal);
}

/* Side crystalline wireframe rails (brand tan) */
.page-rails {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.rail {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  height: 100%;
  color: var(--accent);
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.rail-left {
  left: 0;
}

.rail-right {
  right: 0;
}

/* Hide rails on small phones — avoid crowding / horizontal pressure */
@media (max-width: 480px) {
  .page-rails {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .rail {
    width: 14px;
    opacity: 0.18;
  }
}

/* Hero — deep charcoal + logo watermark */
.hero {
  background: linear-gradient(145deg, var(--charcoal) 0%, var(--charcoal-mid) 55%, var(--charcoal-soft) 100%);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Watermark sits mid-right so H1 / lead stay primary */
  background: url("assets/bg-logo.jpg") 78% 45% / auto min(55%, 360px) no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20, 20, 20, 0.92) 0%,
    rgba(20, 20, 20, 0.78) 42%,
    rgba(20, 20, 20, 0.55) 72%,
    rgba(20, 20, 20, 0.62) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-actions .btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
  padding: 0.9rem 1.35rem;
}

.hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Buttons — charcoal on bronze meets WCAG AA */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.25;
}

.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
  border-color: var(--accent);
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.12);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--charcoal);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-phone-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
  min-height: 48px;
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-header {
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.section-header h2,
.service-area-copy h2,
.contact-details h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  text-wrap: balance;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.services {
  background: var(--cream);
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

/* Service category tabs */
.service-tabs {
  margin-top: 2rem;
}

.service-tablist {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream-deep);
  scrollbar-width: thin;
}

.service-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.service-tab:hover {
  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.72);
}

.service-tab[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
  box-shadow: 0 2px 0 rgba(20, 20, 20, 0.12);
}

.service-tabpanel {
  padding-top: 1.75rem;
}

.service-tabpanel[hidden] {
  display: none;
}

.service-info {
  margin-top: 1.25rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-info h3 {
  margin: 0 0 1rem;
  color: var(--charcoal);
  font-size: 1.125rem;
}

.service-info-grid {
  display: grid;
  gap: 1rem;
}

.service-info-grid h4 {
  margin: 0 0 0.35rem;
  color: var(--accent-ink);
  font-size: 0.9375rem;
}

.service-info-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.generator-quote-card,
.ev-quote-card {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.generator-quote-heading h3,
.ev-quote-heading h3 {
  margin: 0 0 0.45rem;
  color: var(--charcoal);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.2;
}

.generator-quote-heading p:last-child,
.ev-quote-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.generator-form-grid,
.ev-form-grid {
  display: grid;
  gap: 1rem;
}

.generator-form-full,
.ev-form-full {
  grid-column: 1 / -1;
}

.generator-quote-form .form-row,
.ev-quote-form .form-row {
  margin-bottom: 0;
}

.generator-quote-form > .btn,
.ev-quote-form > .btn {
  width: 100%;
  min-height: 48px;
}

.generator-form-help,
.ev-form-help {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field-optional {
  color: var(--muted);
  font-weight: 400;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  color: var(--charcoal);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Reviews */
.reviews {
  background: var(--cream-deep);
}

.reviews-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.reviews-disclaimer {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: italic;
}

.reviews-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.reviews-cta {
  margin-top: 1.25rem;
}

.reviews-grid {
  display: grid;
  gap: 1rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-stars {
  color: var(--accent-ink);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  line-height: 1;
}

.placeholder-badge {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.review-card blockquote {
  flex: 1;
  margin: 0;
  color: var(--charcoal);
  font-size: 1rem;
  line-height: 1.55;
}

.review-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 1.1rem 0 0;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.review-attribution span {
  color: var(--muted);
}

.review-attribution span::before {
  content: "·";
  margin-right: 0.55rem;
  color: var(--accent);
}

.review-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
}

/* Service area */
.service-area {
  background: var(--white);
}

.service-area-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.service-area-copy p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.area-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--charcoal);
}

.area-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.service-area-panel {
  background: var(--cream-deep);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.panel-logo {
  margin: 0 auto 1rem;
  width: 112px;
  height: auto;
  object-fit: contain;
}

.panel-label {
  margin: 0 0 0.35rem;
  color: var(--charcoal);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.panel-tagline {
  margin: 0;
  color: var(--accent-ink);
  font-style: italic;
  font-size: 0.95rem;
}

/* Contact */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-details {
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}

.contact-details h3 {
  color: var(--white);
}

.contact-owner {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
  word-break: break-word;
}

.contact-list a {
  color: var(--white);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.form-intro {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-row {
  margin-bottom: 1.05rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.req {
  color: var(--accent-ink);
  font-weight: 700;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem; /* prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--white);
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.form-row input:hover,
.form-row textarea:hover,
.form-row select:hover {
  border-color: #d2c8ba;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #8a837a;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row select {
  min-height: 48px;
  cursor: pointer;
  -webkit-appearance: auto;
  appearance: auto;
}

.form-row input[type="file"] {
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}

.form-row input[type="file"]::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--charcoal);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.25em;
}

.form-note.is-error {
  color: #8b3a2a;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 1.75rem 0;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-license {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.footer-tag {
  color: rgba(255, 255, 255, 0.5);
}

.footer-phone {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-phone:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Sticky mobile call bar — tasteful, only on small screens */
.mobile-callbar {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --header-h: 88px;
    --callbar-h: 60px;
  }

  .logo-img {
    height: 68px;
    max-height: 68px;
  }

  .mobile-callbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--charcoal);
    border-top: 1px solid rgba(192, 144, 104, 0.35);
    padding: 0.5rem 0.75rem;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    gap: 0.5rem;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  }

  .mobile-callbar .btn {
    flex: 1;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
  }

  .mobile-callbar .btn-secondary {
    border-color: rgba(255, 255, 255, 0.35);
  }
}

/* Keep content clear of side rails on larger screens */
@media (min-width: 768px) {
  .container {
    width: min(100% - 4.25rem, var(--max));
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 11.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    width: auto;
    margin: 0;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.5rem 0.8rem;
  }

  .site-nav .nav-cta {
    margin-top: 0;
    margin-left: 0.35rem;
    padding-inline: 1.1rem;
  }

  .service-area-inner {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.2fr;
    align-items: start;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .logo-img {
    height: 84px;
    max-height: 84px;
  }

  :root {
    --header-h: 104px;
  }

  .rail {
    width: 32px;
    opacity: 0.34;
  }
}

@media (min-width: 640px) {
  .generator-form-grid,
  .ev-form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 1.25rem;
  }

  .service-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem 1.5rem;
  }
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero::before {
    background-position: 82% 42%;
    background-size: auto min(48%, 400px);
    opacity: 0.14;
  }
}

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

  .btn,
  .nav-toggle-bar {
    transition: none;
  }
}
