:root {
  --bg: #0e171b;
  --panel: #173039;
  --panel-soft: #1f3f49;
  --text: #eef5f6;
  --muted: #b8c8cb;
  --brand: #136677;
  --brand-dark: #0f4f5d;
  --gold: #d8a328;
  --gold-dark: #9e7a2c;
  --ring: #2b6e7b;
  --line: #37606a;
  --shadow: 0 16px 30px rgba(4, 10, 14, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 15%, rgba(19, 102, 119, 0.28), transparent 32%),
    radial-gradient(circle at 92% 85%, rgba(216, 163, 40, 0.2), transparent 33%),
    var(--bg);
  line-height: 1.6;
}


.site-header,
.site-footer {
  background: rgba(15, 35, 40, 0.92);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 0.22rem;
}

.header-brand {
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 0;
  position: relative;
  z-index: 1;
}

.header-logo {
  width: min(190px, 52vw);
  height: auto;
  display: inline-block;
  transform: scale(1.56);
  transform-origin: center center;
  margin-top: -0.28rem;
  margin-bottom: -0.42rem;
}

.nav-list {
  margin: 0;
  padding: 0.16rem 0.8rem;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  position: relative;
  z-index: 2;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list li {
  flex: 0 0 auto;
}

.nav-list a {
  color: #e1ecee;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: #1b3640;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  transition: all 160ms ease;
}

.nav-list a:hover {
  color: #fff7e2;
  border-color: var(--gold);
  background: #295562;
}

.social-link {
  width: 2rem;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  padding: 0.2rem;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  display: block;
}

.hero {
  min-height: 42vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem 1rem 2rem;
  gap: 0.4rem;
}

.main-logo {
  width: min(760px, 92vw);
  height: auto;
  transform: none;
}

.hero p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
}

.hero-services {
  margin: 0.1rem 0 0.1rem;
  text-align: left;
  color: #d4e3e5;
}

.hero-services a {
  color: #d4e3e5;
  text-decoration: underline;
  text-decoration-color: rgba(216, 163, 40, 0.55);
  text-underline-offset: 0.15rem;
}

.hero-services a:hover {
  color: #fff2d4;
  text-decoration-color: #d8a328;
}

.section-lead {
  color: var(--muted);
  margin-top: 0.55rem;
}

.business-meta {
  margin-top: 0.9rem;
  color: #9fb6b9;
  font-size: 0.88rem;
  line-height: 1.45;
}

.button-link,
.contact-form button {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.78rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(216, 163, 40, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
  cursor: pointer;
}

.button-link:hover,
.contact-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(216, 163, 40, 0.42);
}

.button-link-secondary {
  background: rgba(19, 102, 119, 0.34);
  border: 1px solid #3b8d9d;
  box-shadow: none;
  color: #d8e6e8;
}

.button-link-secondary:hover {
  background: rgba(19, 102, 119, 0.52);
  box-shadow: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.content-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

#about.content-section,
.form-page,
.gallery-page,
.reviews-page,
.featured-reviews,
.review-form-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

#about.content-section {
  max-width: 860px;
  padding: 2rem 1.4rem;
  margin-top: 0.3rem;
  margin-bottom: 2rem;
  scroll-margin-top: 12rem;
}

.content-section h1,
.content-section h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #f3dfaf;
}

.content-section h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.5rem);
}

.content-section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
}

.form-page {
  max-width: 760px;
}

.service-area-page {
  max-width: 980px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.service-map-card {
  margin-top: 0.9rem;
  border: 1px solid #4b7380;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1b3a44;
}

#service-area-map {
  width: 100%;
  height: 540px;
}

.service-map-legend {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid #4b7380;
  background: #173039;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #eef6f7;
}

.legend-chip.duval {
  background: rgba(19, 102, 119, 0.35);
  border: 1px solid rgba(19, 102, 119, 0.9);
}

.legend-chip.stjohns {
  background: rgba(158, 122, 44, 0.4);
  border: 1px solid rgba(216, 163, 40, 0.88);
}

.service-area-note {
  margin: 0.95rem 0 0.15rem;
  color: #c9d9dc;
}

.service-area-note a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline;
}

.service-area-note a:hover {
  color: #ebbd5d;
}

.services-page,
.service-detail-page {
  max-width: 980px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.service-card {
  border: 1px solid #4c7581;
  border-radius: 0.85rem;
  background: #1b3a44;
  padding: 1rem;
}

.service-card h2,
.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.service-card p {
  margin: 0;
  color: #d4e3e5;
}

.service-card .button-link {
  margin-top: 0.7rem;
}

.service-detail-page .button-row {
  margin-top: 1rem;
}

.featured-reviews {
  max-width: 1080px;
  margin-bottom: 1.4rem;
}

.review-proof-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  margin-top: 0.2rem;
}

.review-proof-bar p {
  margin: 0;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #4f7783;
  background: #1a3640;
  color: #dbe8ea;
  font-size: 0.82rem;
  font-weight: 500;
}

.review-proof-bar p strong {
  color: #f3dfaf;
  font-weight: 700;
}

.reviews-page {
  max-width: 1080px;
}

.reviews-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
}

.rating-line {
  margin: 0;
}

.all-reviews {
  margin-bottom: 2rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.95rem;
}

.preview-grid {
  margin-top: 0.8rem;
}

.review-card {
  margin: 0;
  border: 1px solid #4c7581;
  border-radius: 0.85rem;
  background: #1b3a44;
  padding: 1rem 1rem 0.95rem;
}

.review-card h3 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.02rem;
}

.review-card p {
  margin: 0;
  color: #d4e3e5;
}

.review-note {
  color: #9eb8bc;
  font-style: italic;
}

.review-stars {
  color: var(--gold);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.review-form-wrap {
  padding: 1.3rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.contact-form label {
  font-weight: 600;
  color: #d9e7e9;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid #4f7783;
  border-radius: 0.65rem;
  font: inherit;
  background: #1a3640;
  color: var(--text);
}

.checkbox-group {
  margin: 0.3rem 0 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid #4f7783;
  border-radius: 0.65rem;
  background: #1a3640;
}

.checkbox-group legend {
  padding: 0 0.35rem;
  font-weight: 600;
  color: #d9e7e9;
}

.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  color: #d4e3e5;
}

.checkbox-option input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--ring);
}

.gallery-page {
  max-width: 1220px;
  padding-bottom: 8rem;
}

.gallery-page > p {
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.gallery-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: -0.6rem 0 1.2rem;
}

.gallery-jump-links .button-link {
  margin-top: 0;
}

.gallery-section + .gallery-section {
  margin-top: 2.2rem;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.2rem 0 1rem;
}

.filter-chip {
  border: 1px solid #4f7783;
  border-radius: 999px;
  background: #1a3640;
  color: #e5eff1;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.45rem 0.82rem;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-chip:hover {
  border-color: #d8a328;
  color: #fff7e2;
}

.filter-chip.is-active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: #d8a328;
  color: #111111;
}

#owner-gallery-title,
#cabinet-gallery-title,
#outdoor-gallery-title,
#business-gallery-title,
#residential-exterior-gallery-title,
#residential-interior-gallery-title {
  scroll-margin-top: 10.3rem;
}

#business-gallery-title {
  scroll-margin-top: 13.8rem;
}

#residential-exterior-gallery-title,
#residential-interior-gallery-title {
  scroll-margin-top: 14rem;
}

#outdoor-gallery-title {
  scroll-margin-top: 14rem;
}

.owner-grid {
  max-width: 1120px;
}

.owner-card {
  background: #1a3640;
  overflow: hidden;
}

.owner-card .owner-image {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  aspect-ratio: auto;
  display: block;
}

.owner-card img {
  object-fit: contain;
  aspect-ratio: auto;
  height: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
}

.lightbox-group .gallery-card {
  cursor: zoom-in;
}

.lightbox-group .gallery-card:hover {
  transform: translateY(-2px);
}

.gallery-card {
  margin: 0;
  position: relative;
  border: 1px solid #4c7581;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1b3a44;
  box-shadow: 0 8px 18px rgba(3, 8, 20, 0.45);
  transition: transform 140ms ease;
}

.stage-ribbon {
  position: absolute;
  top: 0.55rem;
  left: -2.2rem;
  width: 7.4rem;
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  padding: 0.22rem 0.25rem;
  transform: rotate(-36deg);
  pointer-events: none;
  box-shadow: 0 5px 14px rgba(3, 8, 20, 0.55);
}

.stage-ribbon.before {
  background: linear-gradient(135deg, #c53a4b, #a3192f);
}

.stage-ribbon.after {
  background: linear-gradient(135deg, #1f9b63, #137a4c);
}

.owner-ribbon {
  position: absolute;
  top: 0.95rem;
  left: -2.2rem;
  width: 10.6rem;
  text-align: center;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 800;
  color: #ffffff;
  background: #0b0b0b;
  padding: 0.24rem 0.25rem;
  transform: rotate(-36deg);
  pointer-events: none;
  box-shadow: 0 5px 14px rgba(3, 8, 20, 0.55);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 10, 14, 0.9);
  display: grid;
  place-items: center;
  padding: 1rem 4rem;
  overflow: auto;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  width: auto;
  height: auto;
  max-width: min(1240px, calc(100vw - 10rem));
  max-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
}

.lightbox-figure img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
  border-radius: 0.6rem;
}

.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  background: rgba(25, 62, 71, 0.92);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.site-footer {
  margin-top: 2.2rem;
}

.footer-legal {
  margin: 0.35rem 0 0.85rem;
  text-align: center;
  color: #c9b07a;
  font-size: 0.78rem;
}

.hidden-field {
  display: none;
}

@media (max-width: 900px) {
  .nav-list {
    justify-content: flex-start;
    padding: 0.2rem 0.5rem;
    gap: 0.45rem;
  }

  .nav-list a {
    font-size: 0.82rem;
    padding: 0.26rem 0.62rem;
    white-space: nowrap;
  }

  .hero {
    min-height: 34vh;
    padding-bottom: 2.2rem;
  }

  .main-logo {
    max-height: 320px;
    transform: none;
  }

  .content-section {
    padding: 1.25rem 0.8rem;
  }

  .gallery-page {
    padding-bottom: 6.5rem;
  }

  #service-area-map {
    height: 430px;
  }

  #about.content-section {
    scroll-margin-top: 10.2rem;
  }

  #owner-gallery-title,
  #cabinet-gallery-title,
  #outdoor-gallery-title,
  #business-gallery-title,
  #residential-exterior-gallery-title,
  #residential-interior-gallery-title {
    scroll-margin-top: 8.9rem;
  }

  #business-gallery-title {
    scroll-margin-top: 11.8rem;
  }

  #residential-exterior-gallery-title,
  #residential-interior-gallery-title {
    scroll-margin-top: 11.5rem;
  }

  #outdoor-gallery-title {
    scroll-margin-top: 11.5rem;
  }

  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button-row .button-link {
    text-align: center;
  }

  .owner-grid {
    max-width: 100%;
  }

  .owner-card .owner-image {
    width: 96%;
    margin: 0 auto;
    max-height: none;
  }

  .stage-ribbon {
    top: 0.45rem;
    left: -2.45rem;
    width: 7rem;
    font-size: 0.6rem;
  }

  .owner-ribbon {
    top: 0.85rem;
    left: unset !important;
    right: -2.1rem !important;
    width: 10rem;
    font-size: 0.58rem;
    transform: rotate(36deg);
  }

  .preview-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .preview-grid::-webkit-scrollbar {
    display: none;
  }

  .preview-grid .review-card {
    flex: 0 0 86%;
    scroll-snap-align: start;
  }

  .lightbox-nav {
    width: 2.2rem;
    height: 2.2rem;
  }

  .lightbox {
    padding: 0.75rem;
  }

  .lightbox-figure {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 4.2rem);
  }

  .lightbox-figure img {
    max-height: calc(100vh - 4.2rem);
  }
}
