/*
Theme Name: Roofing Alexandria VA
Theme URI: https://roofingalexandriava.com/
Author: Codex
Description: A fast, conversion-focused WordPress theme for RoofingAlexandriava.com, a DMV roofing specialist serving Alexandria, Arlington, Fairfax, Washington DC, Maryland, and nearby communities.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: roofing-alexandria-va
*/

:root {
  --ink: #15202b;
  --muted: #5c6874;
  --line: #d8dee5;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --brand: #b42318;
  --brand-dark: #8f1c14;
  --navy: #20394f;
  --gold: #a86f16;
  --green: #326f55;
  --shadow: 0 18px 45px rgba(21, 32, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.site-shell {
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner,
.section-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.05;
  color: var(--ink);
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--brand);
}

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

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

.button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--navy);
  background: #f8fafc;
}

.hero {
  min-height: 690px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(18, 29, 38, 0.86) 0%, rgba(18, 29, 38, 0.72) 38%, rgba(18, 29, 38, 0.2) 70%),
    var(--hero-image) center / cover no-repeat;
  display: grid;
  align-items: center;
  border-bottom: 6px solid var(--gold);
}

.hero-content {
  width: min(700px, 100%);
  padding: 72px 0 82px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 4.6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: var(--navy);
  color: #fff;
}

.trust-item {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust-item strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.1;
}

.trust-item span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.section {
  padding: 82px 0;
}

.section.soft {
  background: var(--surface-soft);
}

.page-hero {
  padding: 92px 0 72px;
  color: #fff;
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 72%, var(--brand-dark) 100%);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  line-height: 1.05;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 42px;
  align-items: start;
}

.content-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.06);
}

.content-panel h2,
.content-panel h3 {
  color: var(--navy);
}

.content-panel p:last-child {
  margin-bottom: 0;
}

.service-card,
.process-step,
.review-card,
.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21, 32, 43, 0.06);
}

.service-card {
  min-height: 255px;
  padding: 26px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #fbe8dc;
  color: var(--brand);
  font-weight: 900;
}

.service-card h3,
.process-step h3,
.review-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.15rem;
}

.service-card p,
.process-step p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 44px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
}

.check-list li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 6px #dff1e7;
}

.contact-list {
  max-width: 680px;
}

.contact-list li {
  grid-template-columns: 28px minmax(0, 1fr);
}

.contact-list li span {
  display: inline-block;
  min-width: 118px;
  margin-right: 8px;
  font-weight: 800;
}

.contact-list .contact-link {
  white-space: nowrap;
}

.quote-panel {
  padding: 28px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.quote-panel h2 {
  margin-bottom: 12px;
  font-size: 1.8rem;
  line-height: 1.12;
}

.quote-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.quote-panel form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.quote-panel input,
.quote-panel select,
.quote-panel textarea,
.quote-panel .wpcf7 input,
.quote-panel .wpcf7 select,
.quote-panel .wpcf7 textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

.quote-panel textarea {
  min-height: 96px;
  resize: vertical;
}

.quote-panel .wpcf7 textarea {
  min-height: 150px;
}

.quote-panel input::placeholder,
.quote-panel textarea::placeholder,
.quote-panel .wpcf7 input::placeholder,
.quote-panel .wpcf7 textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.quote-panel select,
.quote-panel .wpcf7 select {
  color: #fff;
}

.quote-panel .button,
.quote-panel .wpcf7-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.quote-panel .wpcf7-submit:hover {
  background: var(--brand-dark);
}

.quote-panel .wpcf7 p {
  margin-bottom: 14px;
  color: #fff;
}

.quote-panel .wpcf7-spinner {
  display: block;
  margin: 10px auto 0;
}

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

.process-step {
  padding: 24px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.area-band {
  background: var(--ink);
  color: #fff;
}

.area-band .section-heading h2,
.area-band .section-heading p {
  color: #fff;
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.area-list li {
  display: contents;
}

.area-list a {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.area-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.city-card {
  display: block;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.city-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.11);
}

.city-card strong {
  display: block;
  color: #fff;
}

.city-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

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

.article-card {
  overflow: hidden;
}

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

.article-body {
  padding: 22px;
}

.article-meta {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.22;
}

.article-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.article-card a {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.36fr);
  gap: 42px;
  align-items: start;
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}

.article-content {
  max-width: 760px;
  font-size: 1.05rem;
}

.article-content h2 {
  margin-top: 34px;
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1.15;
}

.article-content a {
  color: var(--brand);
  font-weight: 800;
}

.article-sidebar {
  position: sticky;
  top: 104px;
}

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

.review-card {
  padding: 26px;
}

.stars {
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--brand) 0%, #762018 100%);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta h2 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.04;
}

.cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 46px 0;
  background: #101820;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(150px, 0.5fr));
  gap: 30px;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  margin: 6px 0;
}

.site-footer a:hover {
  color: #fff;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .main-nav .menu {
    min-width: max-content;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(90deg, rgba(18, 29, 38, 0.9) 0%, rgba(18, 29, 38, 0.74) 58%, rgba(18, 29, 38, 0.34) 100%),
      var(--hero-image) center / cover no-repeat;
  }

  .trust-row,
  .service-grid,
  .process-grid,
  .review-grid,
  .article-grid,
  .city-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .split,
  .content-grid,
  .article-layout,
  .cta-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 650px;
  }

  .hero-content {
    padding: 58px 0 64px;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .trust-row,
  .service-grid,
  .process-grid,
  .review-grid,
  .article-grid,
  .city-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .section {
    padding: 62px 0;
  }
}
