/*
Theme Name: Astra Renovation Group
Theme URI: https://astrarennovation.com/
Author: Astra Renovation Group
Description: Custom theme for Astra Renovation Group. Page design and copy are built into the templates.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: astra-renovation
*/

:root {
  --ink: #14191b;
  --ink-2: #1f2629;
  --line-dark: #3a4246;
  --paper: #f4f2ee;
  --line-light: #d9d6cf;
  --muted: #4d554f;
  --on-dark: #dde2df;
  --on-dark-2: #e3e7e4;
  --on-dark-muted: #c9cfcb;
  --faint: #9ba49e;
  --blue: #0a7bc2;
  --blue-hover: #075e93;
  --blue-deep: #0a3552;
  --water: #7fc0e8;
  --font: "Archivo", Helvetica, sans-serif;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font-family: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.sr-only,
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 980px; }

.site-header {
  background: var(--ink);
  color: #fff;
  position: relative;
  z-index: 5;
}
.ar-overlay-header .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
}
.logo-link { color: #fff; display: inline-flex; }
.logo-link:hover { color: #fff; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-words { display: flex; flex-direction: column; gap: 4px; }
.logo-name {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: .95;
  color: #fff;
}
.logo-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
}
.primary-nav a { color: #fff; }
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--water); }
.phone-pill,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 3px;
  text-decoration: none;
}
.phone-pill {
  background: #fff;
  color: var(--ink);
  padding: 11px 16px;
  font-weight: 700;
  font-size: 16px;
}
.phone-pill:hover { background: var(--water); color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  background: transparent;
  border-radius: 3px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--water);
}
.eyebrow.on-light { color: var(--blue); }
.eyebrow.serve { color: #fff; margin-top: 18px; }

h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: .9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(46px, 7vw, 104px);
}
.hero h1 { font-size: clamp(48px, 8.4vw, 124px); max-width: 980px; }
.hero h1 span { display: block; color: var(--water); }
.contact-page h1 { font-size: clamp(46px, 6.4vw, 92px); }

h2 {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: .92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  font-size: clamp(40px, 5.6vw, 76px);
}
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 17px 26px;
  font-weight: 700;
  font-size: 17px;
}
.btn-primary:hover { background: var(--blue-hover); color: #fff; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.7);
  padding: 17px 26px;
  font-weight: 600;
  font-size: 17px;
}
.btn-ghost:hover { background: #fff; color: var(--ink); }

.hero {
  position: relative;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  filter: grayscale(1) contrast(1.1);
}
.hero-duotone {
  position: absolute;
  inset: 0;
  background: var(--blue-deep);
  mix-blend-mode: multiply;
  opacity: .35;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,25,27,.58) 0%, rgba(20,25,27,.32) 46%, rgba(20,25,27,.12) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: clamp(120px, 16vw, 200px) 28px clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-lead { max-width: 560px; margin: 0; color: var(--on-dark-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; }

.waterline { height: 6px; background: var(--water); }
.waterline-band { position: relative; z-index: 1; }
.cert-grid {
  list-style: none;
  margin: 0;
  padding: 22px 28px;
  background: var(--blue);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 18px 28px;
  max-width: none;
}
.cert-grid li p { margin: 0; color: #fff; }
.cert-grid .eyebrow { color: #fff; margin-bottom: 4px; }
.cert-grid li p:last-child { font-size: 15px; font-weight: 600; }

.services { background: var(--ink); color: #fff; padding: 96px 0 40px; }
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 40px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.services h2 { max-width: 760px; }
.audience {
  display: inline-flex;
  border: 1.5px solid var(--line-dark);
  border-radius: 2px;
  padding: 4px;
  gap: 4px;
}
.audience button {
  border: 0;
  background: transparent;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 2px;
  cursor: pointer;
}
.audience button[aria-selected="true"] { background: #fff; color: var(--ink); }
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px 48px;
  padding: 40px 28px;
  border-bottom: 1px solid var(--line-dark);
  max-width: calc(var(--max) + 56px);
  margin: 0 auto;
}
.svc-num { margin: 0 0 10px; color: var(--water); font-size: 15px; font-weight: 700; }
.svc h3 { font-size: clamp(28px, 3.2vw, 42px); }
.svc-tag {
  margin: 12px 0 0;
  color: var(--water);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}
.svc-copy p { margin: 0 0 16px; color: var(--on-dark); text-shadow: 0 1px 12px rgba(20,25,27,.9); }
.svc-copy a { color: var(--water); font-weight: 700; }
.svc-copy a:hover { color: #fff; }

.process { background: var(--paper); padding-top: 104px; }
.process-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 28px 64px;
  align-items: end;
  margin-bottom: 48px;
}
.process-intro p { margin: 0; font-size: 17px; color: var(--muted); }
.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 2px solid var(--ink);
}
.process-grid li {
  position: relative;
  min-height: 360px;
  padding: 28px 22px 32px;
  border-right: 1px solid var(--line-light);
  overflow: hidden;
}
.process-grid li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--level);
  background: var(--blue);
  border-top: 4px solid var(--water);
}
.process-grid li > * { position: relative; z-index: 1; }
.process-grid h3 { font-size: 24px; font-stretch: 80%; margin: 8px 0 12px; }
.process-grid p:last-child { margin: 0; color: var(--muted); }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); }
.who-panel {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.who-home img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.who-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,25,27,.2), rgba(20,25,27,.94) 72%);
}
.who-biz { background: #064a75; }
.who-biz::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,123,194,.2), rgba(6,74,117,.95) 72%);
}
.who-copy { position: relative; z-index: 1; padding: 48px clamp(28px, 4vw, 56px); max-width: 640px; }
.who-copy h2 { font-size: clamp(34px, 4vw, 56px); }
.who-copy p { color: var(--on-dark-2); }
.who-copy a { color: #fff; font-weight: 700; }
.who-biz a { text-decoration: underline; text-underline-offset: 4px; }
.who-copy a:hover { color: var(--water); }

.insurance { padding: 104px 0; background: var(--paper); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px 72px;
}
.split.end { align-items: end; }
.claim-list { list-style: none; margin: 28px 0 0; padding: 0; }
.claim-list li {
  padding: 16px 0;
  border-top: 1.5px solid var(--ink);
  font-weight: 600;
}
.claim-list li + li { border-top: 1px solid var(--line-light); }
.section-rule { border-bottom: 2px solid var(--ink); margin-bottom: 22px; }
.label-heading { font-size: 12px; letter-spacing: .16em; font-stretch: 100%; }
.about-blurb { font-size: 18px; color: var(--muted); }
.founder-grid, .leader-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 28px 36px;
}
.role {
  margin: 8px 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.more-link { margin-top: 22px; font-weight: 700; }
.more-link.light a { color: #fff; }
.more-link.light a:hover { color: var(--water); }

.remodel {
  background: rgba(20, 25, 27, .92);
  color: #fff;
  padding: clamp(80px, 11vw, 150px) 0;
}
.remodel h2 { max-width: 1100px; }
.remodel p { max-width: 680px; color: var(--on-dark); font-size: 18px; }

.contact-band, .contact-page { background: var(--blue); color: #fff; position: relative; }
.contact-band { padding: 88px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px 56px;
  align-items: start;
}
.contact-band .lead, .contact-page .lead, .contact-page p { color: #fff; }
.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: #fff;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}
.contact-page .big-phone { font-size: clamp(36px, 4.4vw, 56px); }
.big-phone:hover { color: #fff; text-decoration: underline; }

.form-card {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  padding: 28px;
  max-width: 440px;
  justify-self: end;
  width: 100%;
}
.form-title { font-size: 20px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; text-transform: none; margin: 0 0 16px; }
.form-thanks { font-size: 22px; font-weight: 700; font-stretch: 100%; text-transform: none; letter-spacing: 0; margin: 0 0 8px; }
.form-thanks-copy, .form-error { color: var(--on-dark-muted); font-size: 16px; }
.form-error a { color: var(--water); }
.inspect-form { display: flex; flex-direction: column; gap: 12px; }
.inspect-form input,
.inspect-form select,
.inspect-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  background: var(--ink-2);
  color: #fff;
  border-radius: 3px;
  font-size: 16px;
}
.inspect-form textarea { resize: vertical; }
.inspect-form button {
  width: 100%;
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 15px;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.inspect-form button:hover { background: var(--blue-hover); }
.inspect-form button:disabled { opacity: .7; cursor: progress; }
.type-inline, .type-tiles { border: 0; margin: 0; padding: 0; }
.type-inline { display: flex; gap: 18px; }
.type-inline legend, .type-tiles legend {
  font-size: 13px;
  color: var(--on-dark-muted);
  margin-bottom: 8px;
}
.type-inline label { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.type-inline input, .type-tile input { accent-color: var(--blue); width: 18px; height: 18px; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.type-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 3px;
  padding: 12px;
}

.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 36px 28px;
}
.footer-tag { max-width: 280px; color: var(--on-dark-muted); }
.footer-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.footer-phone {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.footer-phone:hover { color: var(--water); }
.footer-serve { margin: 8px 0; }
.footer-certs { color: var(--faint); font-size: 13px; }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
  color: var(--faint);
  font-size: 13px;
}
.footer-base p { margin: 0; }

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 72px 0 0;
}
.page-hero .container { padding-bottom: clamp(56px, 8vw, 96px); }
.page-hero .lead { color: var(--on-dark-2); max-width: 680px; }
.hero-close .blue-band { height: 8px; background: var(--blue); }
.hero-close .blue-band.tall { height: 18px; }
.paper-section { background: var(--paper); padding: 104px 0; }
.paper-section .lead { color: var(--muted); font-size: 18px; }
.paper-section h2 { margin-bottom: 18px; }
.promise {
  background: var(--blue);
  color: #fff;
  padding: clamp(72px, 9vw, 128px) 0;
}
.promise p {
  margin: 0;
  font-weight: 800;
  font-stretch: 72%;
  line-height: .92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: clamp(42px, 6.4vw, 96px);
}
.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  font-stretch: 78%;
  box-shadow: inset 0 -8px 0 var(--water);
  margin: 0 0 16px;
}
.leader h3 { font-size: 40px; }
.contact-page { padding: 28px 0 72px; }
.ar-page-contact { background: var(--ink); }
.ar-page-contact main { background: var(--blue); }
.service-area { margin-top: 36px; padding-top: 22px; border-top: 1.5px solid rgba(255,255,255,.55); }
.area-name {
  margin: 0 0 8px;
  font-weight: 800;
  font-stretch: 78%;
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
}
.city-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.city-list li {
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 3px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
}
.audience-list { display: grid; gap: 28px; margin-top: 12px; }
.audience-list article { border-top: 1px solid var(--line-light); padding-top: 22px; }
.audience-list h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.audience-list a { color: inherit; }
.audience-list a:hover { color: var(--blue); }
.cta-close { background: var(--ink); color: #fff; padding: 88px 0; }
.cta-close h2 { max-width: 920px; margin-bottom: 28px; }

#services, #homes, #business, #insurance, #contact, #request { scroll-margin-top: 18px; }

@media (max-width: 800px) {
  .svc { grid-template-columns: 1fr; padding: 32px 28px; }
  .process-grid li { min-height: 220px; }
  .form-card { justify-self: stretch; max-width: none; }
  .who-panel { min-height: 460px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 8px;
  }
  .primary-nav.is-open { display: flex; }
  .header-inner { gap: 12px 16px; }
  .phone-pill { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
