/*
Theme Name: Blue Ridge Propane Modern
Theme URI: https://www.blueridgepropanenc.net/
Author: Jereme Daniels
Description: A modern WordPress rebuild of the Blue Ridge Propane Gatsby website.
Version: 1.0.0
Text Domain: brp
*/

:root {
  --ink: #14202a;
  --muted: #596876;
  --blue: #235b78;
  --blue-dark: #12384c;
  --red: #a31621;
  --gold: #e0b15b;
  --snow: #fbfaf7;
  --mist: #edf3f5;
  --line: #d8e2e6;
  --shadow: 0 18px 50px rgba(20, 32, 42, 0.12);
  --radius: 8px;
  font-size: 16px;
}

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link,
.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: white;
  padding: 10px;
}

.topbar {
  background: var(--blue-dark);
  color: white;
  font-size: 0.92rem;
}

.topbar__inner {
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.topbar a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 168px;
  border-radius: 6px;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.primary-nav a {
  color: var(--ink);
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: var(--mist);
}

.nav-cta,
.button {
  background: var(--red);
  color: white;
  border: 0;
  box-shadow: 0 12px 24px rgba(163, 22, 33, 0.22);
}

.button--blue {
  background: var(--blue);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(8, 26, 37, 0.82), rgba(8, 26, 37, 0.16)), var(--hero-image) center / cover;
  color: white;
}

.hero--page {
  min-height: 380px;
}

.hero__content {
  padding: 110px 0 72px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: 0;
}

.hero--page h1 {
  font-size: clamp(2.4rem, 5vw, 4.7rem);
}

.hero p:not(.eyebrow) {
  max-width: 670px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--mist);
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.lead {
  color: var(--muted);
  font-size: 1.18rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 44px;
  align-items: center;
}

.media {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(-36px);
  overflow: hidden;
}

.stat {
  padding: 28px;
  border-right: 1px solid var(--line);
}

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

.stat strong {
  display: block;
  font-size: 2rem;
  color: var(--red);
}

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

.card,
.product-card,
.post-card,
.contact-card,
.safety-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20, 32, 42, 0.07);
  overflow: hidden;
}

.card {
  padding: 28px;
}

.card h3,
.card h2,
.product-card h2 {
  color: var(--blue-dark);
}

.services-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: end;
}

.services-proof {
  display: grid;
  gap: 12px;
}

.services-proof div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(20, 32, 42, 0.07);
}

.services-proof strong {
  display: block;
  color: var(--red);
  font-size: 2rem;
  line-height: 1;
}

.services-proof span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.safety-alert,
.pay-card {
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.safety-alert {
  border: 1px solid rgba(163, 22, 33, 0.28);
  background: white;
}

.safety-alert strong,
.safety-alert span,
.pay-card h2 {
  display: block;
}

.safety-alert strong {
  color: var(--red);
  font-size: 1.6rem;
  line-height: 1.1;
}

.safety-alert span {
  margin-top: 10px;
  color: var(--ink);
  font-weight: 800;
}

.pay-card {
  background: var(--blue-dark);
  color: white;
}

.pay-card a,
.pay-card h2 {
  color: white;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20, 32, 42, 0.07);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card__body {
  padding: 22px;
}

.service-card h2 {
  color: var(--blue-dark);
  font-size: 1.3rem;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.service-row:nth-child(even) .service-row__media {
  order: -1;
}

.service-row p {
  font-size: 1.08rem;
}

.service-row .button {
  margin-top: 8px;
}

.service-steps {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
}

.step-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: service-step;
  list-style: none;
}

.step-list li {
  position: relative;
  min-height: 92px;
  padding: 22px 22px 22px 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 10px 30px rgba(20, 32, 42, 0.07);
  counter-increment: service-step;
}

.step-list li::before {
  content: counter(service-step);
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-weight: 900;
}

.step-list strong,
.step-list span {
  display: block;
}

.step-list strong {
  color: var(--blue-dark);
  font-size: 1.12rem;
}

.step-list span {
  margin-top: 4px;
  color: var(--muted);
}

.step-list--three {
  grid-template-columns: repeat(3, 1fr);
}

.service-cta {
  padding: 56px 0;
  background: var(--blue-dark);
  color: white;
}

.service-cta__inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.service-cta h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.service-cta p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

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

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.product-card__body {
  padding: 22px;
}

.product-card ul,
.check-list,
.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.safety-grid {
  display: grid;
  gap: 20px;
}

.safety-card {
  display: grid;
  grid-template-columns: 290px 1fr;
}

.safety-card img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
}

.safety-card__body {
  padding: 26px;
}

.accordion-trigger {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--mist);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  padding: 0 14px;
}

.accordion-panel {
  margin-top: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-card {
  padding: 28px;
}

.contact-card--primary {
  position: sticky;
  top: 128px;
}

.plugin-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin-top: 20px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--muted);
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label,
.contact-form fieldset,
.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.contact-form textarea {
  min-height: 130px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}

.post-list {
  display: grid;
  gap: 20px;
}

.post-card {
  padding: 24px;
}

.content-page {
  max-width: 830px;
  padding: 70px 0;
}

.site-footer {
  background: var(--blue-dark);
  color: white;
}

.site-footer a {
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
  padding: 52px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 900px) {
  .nav-shell {
    min-height: 74px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav,
  .nav-cta {
    display: none;
  }

  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 114px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .primary-nav ul {
    display: grid;
    gap: 6px;
  }

  .hero {
    min-height: 560px;
  }

  .split,
  .service-row,
  .services-intro,
  .service-steps,
  .step-list--three,
  .contact-layout,
  .safety-card {
    grid-template-columns: 1fr;
  }

  .service-row:nth-child(even) .service-row__media {
    order: 0;
  }

  .stat-strip,
  .card-grid,
  .service-card-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-cta__inner {
    display: block;
  }

  .contact-card--primary {
    position: static;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

@media (max-width: 560px) {
  .topbar__inner,
  .checkbox-grid,
  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__inner {
    padding: 8px 0;
  }

  .brand img {
    width: 138px;
  }

  .primary-nav.is-open {
    top: 118px;
  }

  .section {
    padding: 52px 0;
  }
}
