:root {
  --ink: #17212b;
  --muted: #5c6975;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --navy: #12324a;
  --blue: #1d5f8f;
  --steel: #607d8f;
  --gold: #c7922b;
  --green: #3e7350;
  --shadow: 0 18px 45px rgba(18, 50, 74, 0.16);
}

* {
  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;
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.admin-userbar {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: #0d2234;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 20px rgba(13, 34, 52, 0.18);
  font-size: 0.88rem;
}

.admin-userbar-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 7px 0;
}

.admin-userbar strong {
  color: var(--gold);
}

.admin-userbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-userbar-links a {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
}

.admin-userbar-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

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

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

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

.has-admin-bar .site-header {
  top: 42px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 230px;
}

.brand img {
  width: 70px;
  height: auto;
}

.brand-name {
  display: block;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  color: var(--navy);
}

.brand-location {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
}

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

.button,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
  border: 1px solid transparent;
}

.button {
  background: var(--gold);
  color: #111;
}

.button-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(18, 50, 74, 0.22);
}

.button-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 50, 74, 0.94) 0%, rgba(18, 50, 74, 0.82) 44%, rgba(18, 50, 74, 0.24) 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide-a {
  background-image: url("../img/hero-roof-aerial.jpg");
}

.hero-slide-b {
  background-image: url("../img/hero-metal-roof.jpg");
}

.hero-slide-c {
  background-image: url("../img/roof-worker.jpg");
  background-position: center 32%;
}

.hero .section-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 72px 0 86px;
}

.hero-content {
  max-width: 690px;
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

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

.proof-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
  background: var(--line);
}

.proof-item {
  min-height: 122px;
  padding: 24px;
  background: var(--white);
}

.proof-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 1.05rem;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 82px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.service-card {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 26px rgba(18, 50, 74, 0.06);
}

.service-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.service-card p,
.feature p,
.area-list p,
.contact-card p {
  color: var(--muted);
}

.service-card a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.image-panel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

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

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 720;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
}

.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature {
  padding-top: 20px;
  border-top: 4px solid var(--gold);
}

.areas {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.area-list a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

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

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

.cta p {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 74px 0;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  align-items: center;
  background: var(--navy);
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 50, 74, 0.96) 0%, rgba(18, 50, 74, 0.82) 48%, rgba(18, 50, 74, 0.34) 100%);
}

.contact-hero .section-inner {
  position: relative;
  z-index: 2;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.contact-main {
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-copy {
  padding-top: 10px;
}

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

.contact-method {
  min-height: 118px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(18, 50, 74, 0.06);
}

.contact-method strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method span {
  overflow-wrap: anywhere;
  font-weight: 900;
}

.contact-note {
  padding: 24px;
  border-left: 5px solid var(--gold);
  background: var(--white);
  box-shadow: 0 10px 26px rgba(18, 50, 74, 0.05);
}

.contact-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 1.08rem;
}

.contact-note p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.contact-card,
.quote-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 28px;
  box-shadow: 0 12px 32px rgba(18, 50, 74, 0.08);
}

.contact-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row strong {
  display: block;
  color: var(--navy);
}

.quote-form label {
  display: block;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 800;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
}

.form-message.is-success {
  border-left-color: var(--green);
  color: var(--navy);
  font-weight: 800;
}

.form-message.is-error {
  border-left-color: #b42318;
}

.form-message strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-message ul {
  margin: 0;
  padding-left: 18px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #cbd6df;
  border-radius: 6px;
  font: inherit;
}

.quote-form textarea {
  min-height: 130px;
  resize: vertical;
}

.quote-form .button {
  width: 100%;
  cursor: pointer;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.footer-title {
  color: var(--white);
  font-weight: 900;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.footer-social a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
  font-weight: 850;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
}

.footer-social-facebook:hover {
  color: #fff;
  border-color: #1877f2;
  background: #1877f2;
}

.footer-social-google_business:hover {
  color: #fff;
  border-color: #4285f4;
  background: #4285f4;
}

.footer-social-instagram:hover {
  color: #fff;
  border-color: #c13584;
  background: #c13584;
}

.footer-social-yelp:hover {
  color: #fff;
  border-color: #d32323;
  background: #d32323;
}

.footer-social-bbb:hover {
  color: #fff;
  border-color: #005a78;
  background: #005a78;
}

.footer-social-linkedin:hover {
  color: #fff;
  border-color: #0a66c2;
  background: #0a66c2;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.error-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.95), rgba(18, 50, 74, 0.72)),
    url("../img/hero-roof-aerial.jpg") center / cover no-repeat;
}

.error-layout {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}

.error-layout h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.96;
}

.error-layout .lead {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.82);
}

.error-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.error-card strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
}

.error-card p {
  color: rgba(255, 255, 255, 0.78);
}

.error-card a {
  color: var(--white);
  font-weight: 900;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.error-links a {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(18, 50, 74, 0.08);
  font-weight: 900;
  text-decoration: none;
  text-align: center;
}

.error-links a:hover {
  color: #111;
  border-color: var(--gold);
  background: var(--gold);
}

.maintenance-hero {
  min-height: calc(100vh - 162px);
  display: grid;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 50, 74, 0.95), rgba(18, 50, 74, 0.72)),
    url("../img/hero-roof-aerial.jpg") center / cover no-repeat;
}

.maintenance-layout {
  display: grid;
  justify-items: center;
  padding: 72px 0;
}

.maintenance-card {
  width: min(680px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(12, 34, 51, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.maintenance-card img {
  width: 92px;
  margin-bottom: 26px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.maintenance-card h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.96;
}

.maintenance-card .lead {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .admin-userbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 9px 0;
  }

  .has-admin-bar .site-header {
    top: 82px;
  }

  .topbar-inner,
  .nav-inner,
  .cta .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero .section-inner {
    min-height: 560px;
  }

  .proof-grid,
  .services-grid,
  .features-grid,
  .split,
  .areas,
  .area-list,
  .contact-layout,
  .contact-methods,
  .error-layout,
  .error-links,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .image-panel img {
    min-height: 280px;
  }

}

@media (max-width: 560px) {
  .admin-userbar-inner,
  .topbar-inner,
  .nav-inner,
  .section-inner {
    width: min(100% - 28px, 1160px);
  }

  .admin-userbar-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .admin-userbar-links a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav-inner {
    min-height: auto;
    padding: 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 56px;
  }

  .nav-links .button {
    width: 100%;
  }

  section {
    padding: 58px 0;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(18, 50, 74, 0.95) 0%, rgba(18, 50, 74, 0.78) 100%);
  }

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