/*
Theme Name: Top Quality Painter
Theme URI: https://topqualitypainterfl.com
Author: Top Quality Painter
Description: Custom lightweight development theme for Top Quality Painter.
Version: 0.1.0
Requires at least: 6.0
Text Domain: top-quality-painter
*/

:root {
  --navy-950: #05294f;
  --navy-900: #07345f;
  --navy-800: #0a477c;
  --blue-700: #075b9b;
  --blue-100: #edf6fc;
  --blue-050: #f6fbfe;
  --orange-600: #ff5a1f;
  --orange-700: #e94b13;
  --text-primary: #102f4b;
  --text-secondary: #43586a;
  --border: #d8e2ea;
  --placeholder: #e8eef3;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(5, 41, 79, 0.11);
  --inner: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-primary);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

body.menu-open {
  overflow: hidden;
}

body.has-lightbox {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 90, 31, 0.7);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-900);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

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

.section {
  padding: 72px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: #062f59;
  color: var(--white);
}

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

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

.header-inner {
  width: min(var(--inner), calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link img {
  width: 135px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  min-width: 0;
}

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

.menu-parent-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.submenu-toggle {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.submenu-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.submenu-toggle::before {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  content: "";
}

.nav-dropdown.is-open .submenu-toggle::before {
  transform: rotate(225deg) translate(-2px, -1px);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 1100;
  width: min(320px, calc(100vw - 48px));
  margin: 0;
  padding: 10px 0 0;
  display: grid;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 0s linear 140ms;
}

.submenu::before {
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  content: "";
}

.submenu-residential,
.submenu-commercial {
  width: min(300px, calc(100vw - 48px));
  grid-template-columns: 1fr;
}

.submenu-locations {
  width: min(300px, calc(100vw - 48px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.submenu-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.submenu-column p {
  margin: 0 0 4px;
  color: var(--navy-900);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .nav-dropdown:hover .submenu,
  .nav-dropdown:focus-within .submenu,
  .nav-dropdown.is-hover .submenu,
  .nav-dropdown.is-open .submenu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
  }
}

.submenu a {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  color: var(--navy-900);
}

.submenu a:hover,
.submenu a:focus-visible {
  background: var(--blue-100);
}

.nav-call {
  min-width: 170px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  background: var(--orange-600);
}

.nav-call svg,
.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-photo {
  position: absolute;
  inset: 0 0 0 42%;
  min-height: 430px;
  background: #dfe8ee;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 41, 79, 1) 0%, rgba(5, 41, 79, 0.96) 37%, rgba(5, 41, 79, 0.54) 63%, rgba(5, 41, 79, 0.08) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 430px;
  padding: 56px 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 510px;
}

.hero h1 {
  max-width: 500px;
  color: var(--white);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.06;
}

.hero p {
  max-width: 485px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 17px;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-700);
}

.btn-secondary-light {
  min-width: 160px;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.82);
  background: rgba(5, 41, 79, 0.26);
}

.btn-secondary {
  min-width: 160px;
  color: var(--navy-900);
  border: 2px solid var(--navy-800);
  background: var(--white);
}

.btn-secondary:hover {
  color: var(--white);
  background: var(--navy-800);
}

.service-line {
  font-weight: 800;
}

.intro {
  padding-top: 28px;
  padding-bottom: 60px;
}

.intro h2,
.projects h2,
.audience h2,
.experience h2 {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  font-size: 34px;
  font-weight: 800;
}

.intro-copy {
  max-width: 960px;
  margin: 18px auto 0;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
}

.intro-copy p + p {
  margin-top: 12px;
}

.intro-copy a {
  color: var(--navy-900);
  font-weight: 800;
}

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

.service-card,
.feature-card,
.process-card {
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-card {
  min-height: 320px;
  border: 1px solid rgba(216, 226, 234, 0.8);
}

.photo-slot {
  position: relative;
  background: var(--placeholder);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-media {
  aspect-ratio: 4 / 3;
  border-radius: 7px 7px 0 0;
}

.service-body {
  padding: 17px 15px 16px;
  text-align: center;
}

.service-body h3 {
  min-height: 46px;
  font-size: 18px;
  font-weight: 800;
}

.service-body p {
  min-height: 62px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.btn-card {
  min-height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: var(--navy-800);
  font-size: 14px;
}

.service-card .btn-card {
  width: calc(100% - 28px);
  margin: 14px auto 0;
}

.projects,
.experience {
  background: var(--blue-100);
}

.projects {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section-lede {
  max-width: 760px;
  margin: 10px auto 22px;
  text-align: center;
  color: var(--text-secondary);
}

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

.project-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  border-radius: 7px;
}

.project-slot:not(:disabled) {
  cursor: pointer;
}

.gallery-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.btn-wide {
  min-width: 300px;
}

.btn-facebook {
  min-width: 300px;
  color: var(--navy-800);
  background: var(--white);
  border: 2px solid var(--navy-800);
}

.btn-facebook svg {
  fill: var(--blue-700);
}

.audience-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.audience-grid article {
  min-height: 140px;
  padding: 0 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.audience-grid article:last-child {
  border-right: 0;
}

.audience-grid svg,
.experience-grid svg {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  stroke: var(--blue-700);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audience-grid h3 {
  font-size: 17px;
  font-weight: 800;
}

.audience-grid p,
.experience-grid p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
}

.feature-panels {
  padding-top: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.feature-card {
  border: 1px solid var(--border);
}

.feature-media {
  height: 230px;
}

.feature-body {
  padding: 22px;
}

.feature-body h2 {
  font-size: 24px;
  font-weight: 800;
}

.feature-body p {
  margin-top: 8px;
  color: var(--text-secondary);
  min-height: 76px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 34px;
  min-height: 104px;
}

.check-list li {
  margin-bottom: 5px;
  break-inside: avoid;
  color: var(--text-primary);
  font-size: 14px;
}

.check-list li::before {
  content: "\2713";
  margin-right: 8px;
  color: var(--navy-800);
  font-weight: 800;
}

.feature-button {
  width: min(100%, 260px);
  margin: 18px auto 0;
  display: flex;
}

.talk-link {
  width: fit-content;
  margin: 14px auto 0;
  display: block;
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}

.experience {
  padding-top: 56px;
  padding-bottom: 38px;
}

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

.experience-grid article {
  min-height: 125px;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.experience-grid article:last-child {
  border-right: 0;
}

.experience-grid h3 {
  font-size: 16px;
  font-weight: 800;
}

.areas-process {
  padding-top: 26px;
  padding-bottom: 26px;
  background: var(--blue-100);
}

.areas-grid {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 28px;
}

.areas-card {
  min-height: 250px;
  padding: 28px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy-900);
}

.areas-card h2 {
  color: var(--white);
  font-size: 24px;
}

.areas-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.areas-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
}

.areas-card li {
  margin-bottom: 4px;
  font-weight: 700;
}

.areas-card li::before {
  content: "\2713";
  margin-right: 8px;
}

.small-note {
  font-size: 13px;
}

.areas-card .btn {
  margin-top: 16px;
}

.process-card {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
}

.process-card h2 {
  text-align: center;
  font-size: 24px;
}

.process-steps {
  position: relative;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--border);
}

.process-steps div {
  position: relative;
  text-align: center;
}

.process-steps span {
  width: 38px;
  height: 38px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--navy-800);
  font-weight: 800;
}

.process-steps h3 {
  font-size: 15px;
  font-weight: 800;
}

.process-steps p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.process-call {
  width: fit-content;
  margin: 22px auto 0;
  display: flex;
}

.final-cta {
  position: relative;
  min-height: 120px;
  overflow: hidden;
  background: linear-gradient(90deg, #053866 0%, #075b9b 50%, #07345f 100%);
  color: var(--white);
}

.roller {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 230px;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0.9;
}

.final-inner {
  position: relative;
  z-index: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-cta h2 {
  color: var(--white);
  font-size: 27px;
}

.final-cta p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.94);
}

.contact-line {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-weight: 700;
}

.contact-line a {
  text-decoration: none;
}

.seo-page-hero {
  padding: 56px 0;
  background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 100%);
}

.seo-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.seo-page-hero__copy {
  min-width: 0;
}

.seo-breadcrumbs {
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.seo-breadcrumbs a {
  color: var(--navy-800);
  text-decoration: none;
}

.seo-kicker {
  margin-bottom: 10px;
  color: var(--blue-700);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.seo-page-hero h1 {
  max-width: 650px;
  color: var(--navy-900);
  font-size: 46px;
  font-weight: 800;
  line-height: 1.08;
}

.seo-page-hero p:not(.seo-kicker) {
  max-width: 630px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 17px;
}

.seo-page-hero__media {
  width: 100%;
  height: 400px;
  max-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--placeholder);
  box-shadow: var(--shadow);
}

.seo-page-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.seo-page-hero__media[data-photo-slot="feature-commercial"] img,
.seo-page-hero__media[data-photo-slot="service-specialty"] img {
  object-position: center bottom;
}

.seo-page-hero__media[data-photo-slot="service-cabinets"] img,
.seo-page-hero__media[data-photo-slot="project-02"] img {
  object-position: center center;
}

.seo-two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.seo-two-col h2,
.seo-section-grid h2,
.seo-links-grid h2,
.seo-faq-section h2,
.seo-photos-section h2 {
  font-size: 30px;
}

.seo-two-col p {
  margin-top: 14px;
  color: var(--text-secondary);
}

.seo-checks {
  margin: 0;
  padding: 0;
  columns: 2;
  list-style: none;
}

.seo-checks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 24px;
  break-inside: avoid;
  color: var(--navy-900);
  font-weight: 700;
}

.seo-checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(-45deg);
}

.seo-content-band,
.seo-links-section {
  background: var(--blue-050);
}

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

.seo-section-grid article,
.seo-faq-grid article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.seo-section-grid p,
.seo-faq-grid p,
.seo-links-grid p,
.seo-detail-list p,
.areas-page p {
  margin-top: 12px;
  color: var(--text-secondary);
}

.seo-detail-list {
  display: grid;
  gap: 22px;
}

.seo-detail-list article,
.areas-page-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.seo-detail-list h2,
.areas-page h2 {
  font-size: 28px;
}

.seo-detail-section {
  background: var(--white);
}

.seo-project-grid,
.seo-photo-grid {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.seo-project-card,
.seo-photo {
  margin: 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.seo-project-card__media,
.seo-photo-media {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f3f5;
  border-radius: 8px 8px 0 0;
}

.seo-project-card__media img,
.seo-photo-media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.seo-project-card figcaption,
.seo-photo figcaption {
  padding: 14px 16px;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1049px) {
  .seo-project-grid,
  .seo-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .seo-project-card__media,
  .seo-photo-media {
    height: 250px;
  }
}

@media (max-width: 699px) {
  .seo-project-grid,
  .seo-photo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .seo-project-card__media,
  .seo-photo-media {
    height: auto;
    min-height: 0;
    max-height: 320px;
  }

  .seo-project-card__media img,
  .seo-photo-media img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
  }
}

.seo-links-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.seo-link-list {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-link-list a {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  color: var(--navy-900);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.seo-links-grid .btn-card {
  margin-top: 18px;
}

.seo-faq-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-faq-grid h3 {
  font-size: 18px;
}

#office-painting,
#warehouse-painting,
#property-managers,
#contractors {
  scroll-margin-top: 100px;
}

.support-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 100%);
}

.support-hero h1 {
  max-width: 780px;
  font-size: 44px;
}

.support-hero p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 17px;
}

.support-split,
.contact-grid {
  display: grid;
  gap: 34px;
  align-items: start;
}

.support-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
}

.contact-grid {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.support-image {
  height: 340px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.readable {
  max-width: 780px;
}

.readable h2 {
  margin-top: 28px;
  font-size: 28px;
}

.recent-project-filters,
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 24px;
}

.recent-project-filter,
.gallery-filters button {
  min-height: 42px;
  padding: 8px 17px;
  border: 1px solid var(--blue-700);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.recent-project-filter:hover,
.recent-project-filter:focus-visible,
.recent-project-filter.is-active,
.recent-project-filter[aria-pressed="true"],
.gallery-filters button:hover,
.gallery-filters button:focus-visible,
.gallery-filters button.is-active {
  background: var(--navy-800);
  color: var(--white);
}

.recent-projects-grid,
.recent-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.recent-project-card,
.gallery-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.recent-project-card__trigger,
.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

.recent-project-card[hidden],
.gallery-card[hidden] {
  display: none;
}

.recent-project-card__media,
.gallery-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 300px;
  overflow: hidden;
  background: var(--placeholder);
}

.recent-project-card__media img,
.gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.recent-project-card__caption,
.gallery-card span {
  display: block;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1099px) {
  .recent-projects-grid,
  .recent-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 699px) {
  .recent-projects-grid,
  .recent-gallery {
    grid-template-columns: 1fr;
  }

  .recent-project-filter,
  .gallery-filters button {
    min-height: 44px;
  }
}

.contact-panel,
.contact-form,
.form-errors {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-panel {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.contact-panel a {
  color: var(--navy-900);
  font-weight: 800;
  text-decoration: none;
}

.contact-phone {
  font-size: 28px;
}

.contact-form {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--navy-900);
  font-weight: 800;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form .full,
.contact-form .form-errors,
.contact-form button,
.hp-field {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-errors {
  padding: 14px 16px;
  color: #861b1b;
  background: #fff4f2;
}

.tqp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 41, 79, 0.86);
}

.tqp-lightbox.is-open {
  display: flex;
}

.tqp-lightbox figure {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  margin: 0;
}

.tqp-lightbox img {
  max-width: min(92vw, 1200px);
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
}

.tqp-lightbox figcaption {
  margin-top: 10px;
  color: var(--white);
  font-weight: 800;
}

.tqp-lightbox button {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  color: var(--navy-900);
  background: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.tqp-lightbox-close {
  top: 18px;
  right: 18px;
}

.tqp-lightbox-prev,
.tqp-lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.tqp-lightbox-prev {
  left: 18px;
}

.tqp-lightbox-next {
  right: 18px;
}

.areas-page-hero {
  padding: 56px 0 32px;
  background: linear-gradient(180deg, var(--blue-050) 0%, var(--white) 100%);
}

.areas-page-hero h1 {
  max-width: 760px;
  font-size: 44px;
}

.areas-page-hero p {
  max-width: 780px;
  font-size: 17px;
}

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

.areas-page-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  min-height: 180px;
  padding: 28px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  background: var(--navy-950);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 44px;
}

.footer-logo {
  width: 170px;
  height: 82px;
  object-fit: contain;
}

.site-footer p {
  margin-top: 8px;
}

.site-footer address {
  display: grid;
  gap: 6px;
  font-style: normal;
}

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

.facebook-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
}

.copyright {
  width: min(var(--inner), calc(100% - 48px));
  margin: 20px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: right;
}

.mobile-call-bar {
  display: none;
}

@media (max-width: 1199px) {
  .site-nav {
    gap: 10px;
  }

  .primary-menu {
    gap: 10px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .nav-call {
    min-width: 148px;
    padding: 0 10px;
  }

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

  .seo-page-hero__media {
    height: 360px;
    max-height: 380px;
  }
}

@media (max-width: 1023px) {
  .section {
    padding: 56px 0;
  }

  .section-inner,
  .header-inner,
  .copyright {
    width: min(var(--inner), calc(100% - 40px));
  }

  .hero {
    min-height: 400px;
  }

  .hero-inner {
    min-height: 400px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .audience-grid article:nth-child(3n) {
    border-right: 0;
  }

  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 0;
  }

  .experience-grid article:nth-child(2n) {
    border-right: 0;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }

  .seo-section-grid,
  .seo-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .site-header,
  .header-inner {
    height: 72px;
  }

  .logo-link img {
    width: 135px;
    height: auto;
    max-height: 58px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--white);
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    width: 22px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
  }

  .menu-toggle-lines {
    position: relative;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle-lines::before {
    top: -7px;
  }

  .menu-toggle-lines::after {
    top: 7px;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    max-height: calc(100vh - 126px);
    padding: 18px 20px 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: var(--navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.28);
  }

  .admin-bar .site-nav {
    top: 104px;
  }

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

  .primary-menu {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 16px;
  }

  .nav-dropdown {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 0;
  }

  .menu-parent-row {
    display: contents;
  }

  .submenu-toggle {
    width: 44px;
    height: 44px;
    grid-column: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .submenu {
    position: static;
    width: 100%;
    grid-column: 1 / -1;
    padding: 4px 0 10px 16px;
    display: none;
    gap: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

  .submenu::before {
    content: none;
  }

  .submenu-residential,
  .submenu-commercial,
  .submenu-locations {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .submenu-column {
    gap: 0;
  }

  .submenu-column p {
    margin: 12px 0 4px;
    padding: 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
  }

  .nav-dropdown:hover .submenu {
    display: none;
  }

  .nav-dropdown.is-open .submenu {
    display: grid;
  }

  .submenu a {
    min-height: 40px;
    color: var(--white);
    font-size: 14px;
  }

  .site-nav .nav-call {
    margin-top: 14px;
    justify-content: center;
    border-bottom: 0;
  }

  .hero-photo {
    inset: 46% 0 0 0;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(5, 41, 79, 1) 0%, rgba(5, 41, 79, 0.96) 48%, rgba(5, 41, 79, 0.54) 72%, rgba(5, 41, 79, 0.12) 100%);
  }

  .hero,
  .hero-inner {
    min-height: 540px;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .seo-page-hero__media {
    height: 300px;
    max-height: 320px;
  }

  .seo-two-col,
  .seo-links-grid,
  .areas-page-grid,
  .support-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .recent-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .admin-bar .site-nav {
    top: 118px;
  }
}

@media (max-width: 819px) {
  .seo-page-hero {
    padding: 42px 0;
  }

  .seo-page-hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 54px;
    font-size: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .section-inner,
  .header-inner,
  .copyright {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 35px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 16px;
  }

  .btn {
    min-height: 46px;
  }

  .intro h2,
  .projects h2,
  .audience h2,
  .experience h2,
  .seo-page-hero h1 {
    font-size: 28px;
  }

  .seo-two-col h2,
  .seo-section-grid h2,
  .seo-links-grid h2,
  .seo-faq-section h2,
  .seo-detail-list h2,
  .seo-photos-section h2 {
    font-size: 25px;
  }

  .intro-copy {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid article {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .feature-media {
    height: 190px;
  }

  .check-list {
    columns: 1;
    min-height: 0;
  }

  .feature-body p {
    min-height: 0;
  }

  .experience-grid {
    grid-template-columns: 1fr;
  }

  .experience-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 18px 12px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .process-steps::before {
    top: 0;
    bottom: 0;
    left: 19px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-steps div {
    min-height: 50px;
    padding-left: 56px;
    text-align: left;
  }

  .process-steps span {
    position: absolute;
    left: 0;
    margin: 0;
  }

  .final-inner {
    padding: 26px 0;
    display: grid;
    gap: 18px;
  }

  .final-inner .btn,
  .cta-row .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .copyright {
    text-align: left;
  }

  .mobile-call-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--white);
    background: var(--orange-600);
    font-weight: 800;
    text-decoration: none;
  }

  .site-footer {
    padding-bottom: 76px;
  }

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

  .support-hero h1 {
    font-size: 30px;
  }

  .gallery-card-media {
    height: auto;
    max-height: 280px;
  }
}

@media (max-width: 479px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .recent-gallery {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .seo-section-grid,
  .seo-photo-grid,
  .seo-faq-grid,
  .areas-page-grid {
    grid-template-columns: 1fr;
  }

  .seo-checks {
    columns: 1;
  }

  .areas-card ul {
    columns: 1;
  }

  .btn-wide,
  .btn-facebook {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 599px) {
  .areas-page-hero h1 {
    font-size: 30px;
  }

  .areas-page-card {
    padding: 20px;
  }
}

@media (max-width: 599px) {
  .seo-page-hero__media {
    height: 230px;
    max-height: 260px;
    border-radius: 6px;
  }
}

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