:root {
  --bg: #0f1a22;
  --bg-deep: #142634;
  --bg-sand: #efe5d4;
  --ink: #f7f2ea;
  --muted: #c7b9a4;
  --card: rgba(20, 31, 40, 0.86);
  --line: rgba(239, 229, 212, 0.14);
  --brand: #c79b63;
  --brand-deep: #aa7b44;
  --brand-strong: #f1debd;
  --seafoam: #6ea6b0;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(199, 155, 99, 0.14), transparent 24%),
    radial-gradient(circle at top right, rgba(110, 166, 176, 0.14), transparent 24%),
    linear-gradient(180deg, #111922 0%, #13222d 38%, #18242d 58%, #e8ddca 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0 28px;
}

.pool-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-top: 8px;
  padding: 16px 20px;
  border: 1px solid rgba(239, 229, 212, 0.12);
  border-radius: 999px;
  background: rgba(13, 22, 29, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.topbar nav,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand-home span:last-child {
  display: grid;
  gap: 2px;
}

.brand-home strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand-home small {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #f7feff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.site-nav a {
  position: relative;
  font-weight: 600;
  color: #ecdfcb;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--brand);
  transition: transform 160ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 32px;
  align-items: stretch;
  min-height: 76vh;
  padding: 44px 0 56px;
}

.hero-copy h1,
.section-heading h2,
.split-section h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.hero-text,
.coverage p,
.steps p,
.hero-card li,
.status-message,
label,
input,
textarea,
select,
button {
  font-size: 1rem;
}

.hero-text,
.coverage p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.9;
  margin: 22px 0 0;
}

.eyebrow,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  color: var(--brand-strong);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-actions,
.hero-metrics,
.steps,
.package-grid,
.form-shell {
  display: grid;
}

.hero-actions {
  grid-auto-flow: column;
  justify-content: start;
  gap: 14px;
  margin: 34px 0 30px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #18120d;
  box-shadow: 0 16px 30px rgba(199, 155, 99, 0.22);
}

.primary:hover {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-strong));
}

.secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #f5ebdb;
  border-color: var(--line);
}

.full {
  width: 100%;
}

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

.hero-metrics div,
.hero-card,
.steps article,
.package-card,
.glass-form,
.service-card,
.testimonial-card,
.project-quote-card {
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 229, 212, 0.09);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  border-radius: 26px;
  padding: 20px;
}

.hero-metrics strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.hero-metrics span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-card {
  border-radius: 34px;
  padding: 30px;
  align-self: stretch;
  position: relative;
  overflow: hidden;
}

.pool-hero {
  align-items: center;
}

.pool-hero-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(22, 34, 43, 0.9), rgba(18, 28, 36, 0.96)),
    var(--card);
}

.pool-hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(145deg, rgba(101, 213, 194, 0.95), rgba(13, 142, 207, 0.95) 48%, rgba(8, 37, 59, 0.94));
}

.pool-hero-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.02);
}

.water-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.water-ring-large {
  inset: 22px;
}

.water-ring-small {
  inset: 54px;
}

.pool-hero-panel {
  position: relative;
  z-index: 1;
}

.hero-card h2 {
  font-size: 2rem;
  margin: 0 0 18px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.signal-band {
  margin: 20px 0 64px;
  padding: 18px 22px;
  border: 1px solid rgba(239, 229, 212, 0.1);
  border-radius: 32px;
  color: var(--brand-strong);
  background: rgba(17, 26, 34, 0.72);
}

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

.pool-stat-band div {
  display: grid;
  gap: 6px;
}

.pool-stat-band strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.pool-stat-band span {
  color: #d9cbb6;
  line-height: 1.7;
}

.split-section,
.packages,
.coverage,
.faq-section,
.eligibility-panel {
  padding: 44px 0 72px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

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

.steps article,
.package-card,
.glass-form,
.service-card,
.testimonial-card,
.project-quote-card {
  border-radius: 28px;
  padding: 24px;
}

.steps span,
.package-card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(199, 155, 99, 0.14);
  color: var(--brand-strong);
  font-weight: 700;
}

.steps h3,
.package-card h3,
.glass-form h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.steps p,
.package-card p,
.package-card li,
.glass-form label {
  color: var(--muted);
  line-height: 1.6;
}

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

.pool-section-heading {
  max-width: 820px;
}

.section-intro {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.service-grid,
.testimonial-grid,
.project-highlight-grid,
.project-points,
.about-contact-grid,
.team-list,
.photo-gallery-grid {
  display: grid;
  gap: 18px;
}

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

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: auto -20px -60px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(101, 213, 194, 0.3), transparent 68%);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(199, 155, 99, 0.14);
  color: var(--brand-strong);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card h3,
.testimonial-card strong {
  margin: 18px 0 10px;
  font-size: 1.2rem;
}

.service-card p,
.project-copy span,
.testimonial-text,
.project-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-card li,
.steps p,
.package-card p,
.package-card li,
.glass-form label,
.faq-item p,
.about-story-card p,
.team-member span {
  color: #d2c6b5;
}

.pool-steps article {
  min-height: 100%;
}

.pool-steps span {
  min-width: auto;
  padding: 0 14px;
}

.project-highlight-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
  margin-top: 28px;
}

.photo-gallery-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) minmax(260px, 0.7fr);
  margin-top: 28px;
}

.gallery-card {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-card-copy {
  display: grid;
  align-items: end;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(19, 31, 40, 0.95), rgba(32, 48, 60, 0.92)),
    var(--card);
}

.gallery-card-copy figcaption {
  color: #effcff;
  line-height: 1.8;
  font-size: 1.02rem;
}

.about-contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  margin-top: 28px;
}

.about-story-card,
.contact-team-card {
  border-radius: 28px;
  padding: 26px;
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(239, 229, 212, 0.09);
  box-shadow: var(--shadow);
}

.about-story-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.about-story-card p:last-child {
  margin-bottom: 0;
}

.team-list {
  margin-top: 14px;
}

.team-member {
  display: grid;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid rgba(8, 37, 59, 0.08);
}

.team-member-featured {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.team-member-copy {
  display: grid;
  gap: 6px;
}

.team-member:first-child {
  border-top: 0;
  padding-top: 0;
}

.team-member strong {
  font-size: 1.08rem;
}

.team-member span {
  color: var(--muted);
  line-height: 1.6;
}

.team-member a {
  color: var(--brand-strong);
  font-weight: 600;
}

.team-photo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  box-shadow: 0 14px 24px rgba(6, 41, 65, 0.18);
}

.project-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.project-points div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(239, 229, 212, 0.08);
}

.project-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.project-quote-card {
  background:
    linear-gradient(180deg, rgba(199, 155, 99, 0.18), rgba(17, 27, 35, 0.96)),
    var(--card);
  color: #effcff;
}

.project-quote-card .section-kicker,
.project-quote-card .project-quote {
  color: inherit;
}

.project-quote {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.testimonial-card {
  min-height: 100%;
}

.testimonial-text {
  margin: 0 0 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
}

.faq-group {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: 28px;
  background: var(--card);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.faq-item {
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  line-height: 1.45;
  position: relative;
  font-size: 1.04rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.7;
}

.package-card .price {
  margin: 18px 0 12px;
  font-size: 2.4rem;
  font-weight: 700;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.package-card ul {
  padding-left: 18px;
  margin: 0 0 18px;
}

.form-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.form-shell .glass-form {
  max-width: 100%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 32px 0 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  line-height: 1.6;
}

.footer-link-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.footer-link-button:hover {
  color: var(--brand-deep);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.48);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.contact-modal {
  width: min(100%, 560px);
  background: rgba(251, 254, 255, 0.98);
  border: 1px solid rgba(29, 36, 31, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(6, 41, 65, 0.24);
  padding: 24px;
}

.confirmation-modal {
  width: min(100%, 640px);
}

.contact-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.contact-modal-header h3 {
  margin: 6px 0 0;
  font-size: 1.8rem;
  line-height: 1.05;
}

.confirmation-copy {
  display: grid;
  gap: 22px;
}

.confirmation-message {
  margin: 0;
  color: #2f6a34;
  font-size: 1.35rem;
  line-height: 1.45;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal-close-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-button:hover {
  background: rgba(255, 255, 255, 1);
}

.checkout-shell {
  max-width: 980px;
}

.checkout-main {
  padding: 56px 0 96px;
}

.checkout-card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 32px;
}

.checkout-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.checkout-text {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.checkout-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.checkout-summary div {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(29, 36, 31, 0.08);
}

.checkout-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.checkout-summary strong {
  font-size: 1.05rem;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.glass-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  color: #f7efe2;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(13, 142, 207, 0.26);
  border-color: rgba(13, 142, 207, 0.45);
}

.status-message {
  min-height: 1.5em;
  margin: 0;
}

.inline-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-message.success {
  color: #2f6a34;
}

.status-message.error {
  color: #9c2f26;
}

.hidden {
  display: none;
}

.dashboard-page {
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(217, 108, 31, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f4ef 0%, #edf1f5 100%);
}

.dashboard-app {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 22px;
  max-width: 1480px;
  margin: 0 auto;
}

.dashboard-app-simple {
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
}

.dashboard-sidebar,
.dashboard-card,
.dashboard-hero-card,
.stat-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(29, 36, 31, 0.09);
  box-shadow: 0 20px 54px rgba(24, 32, 44, 0.08);
}

.dashboard-sidebar {
  border-radius: 28px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: calc(100vh - 48px);
  position: sticky;
  top: 24px;
}

.dashboard-main,
.dashboard-stack {
  display: grid;
  gap: 18px;
}

.dashboard-view {
  display: none;
}

.dashboard-view.is-active {
  display: block;
}

.single-column-main {
  max-width: 760px;
  margin: 0 auto;
}

.sidebar-section {
  display: grid;
  gap: 10px;
}

.sidebar-label,
.section-kicker,
.hero-card-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: #738091;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  color: #334155;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #eff4f9;
  border-color: rgba(51, 65, 85, 0.1);
  color: #122033;
}

.sidebar-button {
  width: 100%;
  font: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.sidebar-note {
  margin-top: auto;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(217, 108, 31, 0.08), rgba(110, 127, 84, 0.08));
}

.sidebar-note p:last-child {
  margin: 0;
  color: #5f6b7a;
  line-height: 1.7;
}

.dashboard-topbar,
.card-header,
.topbar-actions,
.account-meta,
.detail-meta,
.lead-item,
.lead-meta,
.verify-actions {
  display: flex;
  gap: 16px;
}

.dashboard-topbar,
.card-header {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.dashboard-topbar h1,
.dashboard-hero-card h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-hero-card {
  border-radius: 30px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.dashboard-hero-card p {
  color: #5f6b7a;
  line-height: 1.75;
}

.hero-card-aside {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.04), rgba(17, 24, 39, 0.01));
  display: grid;
  gap: 10px;
}

.hero-card-aside strong {
  font-size: 1rem;
}

.hero-card-aside span {
  color: #5f6b7a;
  line-height: 1.65;
}

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

.portal-login-layout {
  grid-template-columns: minmax(0, 760px);
}

.portal-login-layout.is-authenticated {
  display: none;
}

.dashboard-grid-admin {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.dashboard-card {
  border-radius: 28px;
  padding: 24px;
}

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

.stat-card {
  border-radius: 24px;
  padding: 20px;
}

.stat-card span {
  display: block;
  color: #738091;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.stat-card p {
  margin: 12px 0 0;
  color: #5f6b7a;
  line-height: 1.6;
}

.auth-card,
.account-card,
.detail-card,
.verify-card {
  align-self: start;
}

.account-meta,
.detail-meta {
  flex-wrap: wrap;
}

.account-meta div,
.detail-meta div {
  min-width: 140px;
  display: grid;
  gap: 6px;
}

.account-meta span,
.detail-meta span,
.table-shell small,
.lead-item p {
  color: #738091;
}

.table-shell {
  overflow: auto;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 20px;
}

.visitor-log-pagination {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.visitor-log-pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.visitor-log-page-button {
  min-width: 116px;
  padding: 10px 16px;
}

.visitor-log-page-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.visitor-log-page-indicator {
  color: #738091;
  font-weight: 600;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(29, 36, 31, 0.08);
  vertical-align: top;
}

.dashboard-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #738091;
  background: rgba(239, 244, 249, 0.72);
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table-clickable tbody tr {
  cursor: pointer;
  transition: background 160ms ease;
}

.dashboard-table-clickable tbody tr:hover,
.dashboard-table-clickable tbody tr.is-selected {
  background: rgba(239, 244, 249, 0.86);
}

.status-badge,
.topbar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.topbar-chip {
  background: rgba(17, 24, 39, 0.06);
  color: #334155;
}

.status-badge {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.status-pending {
  background: rgba(217, 119, 6, 0.14);
  color: #b45309;
}

.status-scheduled {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.status-live {
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.detail-card textarea[disabled] {
  opacity: 1;
  color: #5f6b7a;
}

.inline-form {
  display: grid;
  gap: 14px;
}

.inline-form-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.field-label,
.inline-hint {
  color: #738091;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.inline-hint {
  margin: 8px 0 0;
  line-height: 1.6;
}

.detail-subsection {
  display: grid;
  gap: 12px;
}

.provider-stack,
.provider-card-list,
.provider-location-list,
.provider-utility-list {
  display: grid;
  gap: 14px;
}

.provider-card,
.provider-summary-card,
.provider-location-card {
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.provider-card {
  padding: 18px 20px;
}

.provider-card-header,
.provider-summary-card,
.provider-location-card,
.provider-action-row,
.provider-summary-meta {
  display: flex;
  gap: 14px;
}

.provider-card-header,
.provider-summary-card,
.provider-location-card {
  justify-content: space-between;
  align-items: flex-start;
}

.provider-summary-card,
.provider-location-card {
  width: 100%;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.provider-summary-card strong,
.provider-location-card strong {
  display: block;
  margin-bottom: 4px;
}

.provider-summary-card small,
.provider-location-card small {
  color: #738091;
}

.provider-summary-card.is-selected,
.provider-location-card.is-selected {
  border-color: rgba(217, 108, 31, 0.3);
  background: rgba(217, 108, 31, 0.08);
}

.provider-location-card.static {
  cursor: default;
}

.provider-summary-meta {
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 120px;
}

.provider-action-row {
  flex-wrap: wrap;
  margin-top: 10px;
}

.provider-action-button {
  min-height: 54px;
  padding-inline: 22px;
}

.compact-status {
  margin: 0;
}

.customer-order-list {
  display: grid;
  gap: 20px;
}

.customer-order-card {
  display: grid;
  gap: 16px;
}

.customer-order-card h3 {
  margin: 0 0 6px;
}

.customer-location-grid {
  display: grid;
  gap: 16px;
}

.customer-map-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

.customer-map-canvas {
  position: relative;
  min-height: 260px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(29, 36, 31, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.customer-map-canvas.real-map .leaflet-container {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 24px;
}

.customer-map-popup {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.customer-map-popup p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.customer-map-popup-image {
  width: 100%;
  max-width: 220px;
  border-radius: 14px;
  border: 1px solid rgba(29, 36, 31, 0.08);
}

.customer-location-card {
  margin-bottom: 0;
}

.customer-proof-block {
  display: grid;
  gap: 12px;
  padding: 0 6px 10px;
}

.customer-proof-image {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.design-proof-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
}

.design-proof-panel h4 {
  margin: 0 0 6px;
}

.detail-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: #334155;
  font-weight: 700;
}

.admin-qr-preview-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin: 18px 0;
}

.admin-qr-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 36, 31, 0.08);
}

.admin-qr-preview-image {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

.admin-qr-preview-placeholder {
  color: #64748b;
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

.admin-qr-preview-actions {
  display: grid;
  gap: 10px;
}

.qr-scan-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.qr-scan-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.05);
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.45;
}

.location-checkbox-grid {
  display: grid;
  gap: 10px;
}

.location-picker-shell {
  display: grid;
  gap: 14px;
}

.location-picker-toolbar {
  display: grid;
  gap: 12px;
}

.location-checkbox-grid.compact-grid {
  max-height: 340px;
  overflow: auto;
  padding-right: 6px;
}

.location-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
}

.location-option input {
  width: auto;
  margin-top: 2px;
}

.location-option span {
  display: grid;
  gap: 4px;
}

.location-option strong {
  display: block;
}

.location-option small {
  color: #738091;
}

.location-option.is-selected {
  border-color: rgba(217, 108, 31, 0.3);
  background: rgba(217, 108, 31, 0.06);
}

.location-option.is-disabled {
  opacity: 0.58;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-row input {
  width: auto;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 72px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #5f6b7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(255, 255, 255, 1);
}

.password-toggle.is-active {
  color: var(--brand);
  border-color: rgba(217, 108, 31, 0.25);
}

.password-toggle-eye {
  width: 18px;
  height: 18px;
}

.lead-list {
  display: grid;
  gap: 12px;
}

.settings-list {
  display: grid;
  gap: 16px;
}

.settings-list div {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 18px;
}

.settings-list span {
  color: #738091;
}

.lead-item {
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(29, 36, 31, 0.08);
  border-radius: 18px;
}

.lead-item strong,
.dashboard-table strong {
  display: block;
  margin-bottom: 4px;
}

.lead-item p {
  margin: 0;
}

.lead-meta {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.empty-state {
  color: #738091;
  line-height: 1.7;
  padding: 28px;
}

.compact-empty {
  padding: 0;
}

.verify-actions {
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .form-shell,
  .checkout-summary,
  .package-grid,
  .faq-grid,
  .steps,
  .service-grid,
  .testimonial-grid,
  .project-highlight-grid,
  .project-points,
  .about-contact-grid,
  .photo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-app,
  .dashboard-grid-2,
  .dashboard-grid-admin,
  .dashboard-stats,
  .dashboard-hero-card {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    min-height: auto;
    position: static;
  }

  .dashboard-page {
    padding: 16px;
  }

  .hero-actions {
    grid-auto-flow: row;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .pool-stat-band {
    grid-template-columns: 1fr;
  }

  .team-member-featured {
    grid-template-columns: 1fr;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pool-topbar {
    border-radius: 28px;
  }

  .topbar-cta {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .confirmation-actions .button {
    width: 100%;
  }

  .provider-summary-card,
  .provider-location-card,
  .provider-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .provider-summary-meta {
    align-items: flex-start;
    min-width: 0;
  }

  .provider-action-button {
    width: 100%;
  }

  .customer-proof-image {
    max-width: 100%;
  }

  .customer-map-canvas {
    min-height: 220px;
  }

.detail-meta {
    grid-template-columns: 1fr;
  }
}

body.homepage {
  background: #edf1f5;
  color: #18344f;
  overflow-x: hidden;
}

.homepage .page-shell {
  max-width: 1220px;
  padding: 12px 6px 36px;
}

.homepage .homepage-topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin: 0 0 18px;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(33, 89, 140, 0.08);
  box-shadow: 0 12px 30px rgba(40, 91, 136, 0.08);
}

.homepage .homepage-brand,
.homepage .footer-brand {
  color: #1b3750;
}

.homepage .brand-mark {
  background: linear-gradient(145deg, #dceeff, #8ebce5);
  color: #1c5f97;
  box-shadow: none;
}

.homepage .brand-home small,
.homepage .footer-brand small {
  color: #5f82a4;
}

.homepage .homepage-nav a {
  color: #18344f;
  font-weight: 700;
  font-size: 0.92rem;
}

.homepage .homepage-nav a::after {
  background: #2c83cb;
}

.homepage .button {
  min-height: 42px;
  border-radius: 999px;
  font-size: 0.92rem;
}

.homepage .primary {
  background: linear-gradient(180deg, #2c8de0, #0f68b6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(23, 111, 190, 0.22);
}

.homepage .secondary {
  background: #fff;
  color: #194162;
  border-color: rgba(25, 65, 98, 0.12);
}

.homepage .homepage-main {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.homepage .homepage-hero {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.homepage .homepage-hero-media {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 24px;
  background: #dce8f4;
}

.homepage .homepage-hero-media img,
.homepage .homepage-hero-media video {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

.homepage .homepage-hero-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(14, 41, 63, 0.18), rgba(14, 41, 63, 0.34));
}

.homepage .hero-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.95;
}

.homepage .homepage-hero-overlay h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.homepage .homepage-hero-overlay p:not(.hero-kicker) {
  max-width: 520px;
  margin: 18px 0 0;
  line-height: 1.7;
  font-size: 1rem;
}

.homepage .hero-actions {
  margin: 24px 0 0;
}

.homepage .homepage-service-intro,
.homepage .homepage-faq,
.homepage .homepage-testimonials,
.homepage .homepage-form-section {
  padding: 18px 10px;
  text-align: center;
}

.homepage .service-microcopy {
  margin: 0;
  color: #2c5377;
  font-size: 0.82rem;
}

.homepage .homepage-service-intro h2,
.homepage .homepage-testimonials h2,
.homepage .form-section-heading h2 {
  margin: 10px 0 8px;
  color: #136cb2;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.homepage .service-intro-copy {
  max-width: 680px;
  margin: 0 auto;
  color: #587491;
  line-height: 1.8;
}

.homepage .homepage-service-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.homepage .service-tile {
  display: grid;
  gap: 8px;
  min-height: 114px;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #4a5662, #3d454d);
  color: #fff;
  text-align: left;
  box-shadow: 0 14px 22px rgba(40, 63, 82, 0.08);
}

.homepage .service-tile h3 {
  margin: 0;
  font-size: 1rem;
}

.homepage .service-tile p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.homepage .center-action {
  margin-top: 18px;
}

.homepage .homepage-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 89, 133, 0.08);
  box-shadow: 0 20px 40px rgba(67, 104, 136, 0.08);
}

.homepage .homepage-feature-card-reverse {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.homepage .homepage-seo-copy {
  display: grid;
}

.homepage .seo-copy-card {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 89, 133, 0.08);
  box-shadow: 0 20px 40px rgba(67, 104, 136, 0.08);
}

.homepage .seo-copy-card h2,
.homepage .homepage-faq h2 {
  margin: 10px 0 12px;
  color: #136cb2;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.homepage .seo-copy-card p:last-child {
  margin: 0;
  color: #506d88;
  line-height: 1.85;
}

.homepage .feature-copy {
  display: grid;
  gap: 14px;
}

.homepage .feature-copy .section-kicker,
.homepage .centered-kicker,
.homepage .form-section-heading .section-kicker {
  margin: 0;
  color: #5b7691;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.homepage .feature-copy h2 {
  margin: 0;
  color: #136cb2;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.homepage .feature-copy p {
  margin: 0;
  color: #506d88;
  line-height: 1.8;
}

.homepage .feature-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: 0 24px 40px rgba(56, 100, 137, 0.18);
}

.homepage .portfolio-slideshow {
  position: relative;
  min-height: 440px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 40px rgba(56, 100, 137, 0.18);
  background: #d5e6f3;
}

.homepage .portfolio-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: homepage-portfolio-fade 18s infinite;
}

.homepage .portfolio-slide.slide-one {
  animation-delay: 0s;
}

.homepage .portfolio-slide.slide-two {
  animation-delay: 6s;
}

.homepage .portfolio-slide.slide-three {
  animation-delay: 12s;
}

@keyframes homepage-portfolio-fade {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  28% {
    opacity: 1;
  }

  36% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.homepage .homepage-split-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.homepage .split-panel {
  min-height: 220px;
  border-radius: 16px;
  padding: 28px;
}

.homepage .split-panel-quote {
  background:
    linear-gradient(180deg, rgba(8, 73, 126, 0.88), rgba(10, 55, 96, 0.9)),
    #0a5f9d;
  color: #fff;
}

.homepage .split-panel-quote h2 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.homepage .split-panel-copy {
  background: linear-gradient(180deg, #d9ebfb, #b9daf3);
  color: #163955;
}

.homepage .split-panel-copy h3 {
  margin: 10px 0 12px;
  font-size: 2rem;
  line-height: 1.08;
  color: #136cb2;
}

.homepage .split-panel-copy p {
  margin: 0;
  line-height: 1.8;
  color: #44627d;
}

.homepage .testimonial-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.homepage .faq-card {
  padding: 22px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 88, 128, 0.08);
  box-shadow: 0 14px 28px rgba(54, 99, 136, 0.06);
  text-align: left;
}

.homepage .faq-card h3 {
  margin: 0 0 10px;
  color: #18344f;
  font-size: 1.08rem;
}

.homepage .faq-card p {
  margin: 0;
  color: #506d88;
  line-height: 1.75;
}

.homepage .testimonial-card-light {
  min-height: 250px;
  padding: 22px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 88, 128, 0.08);
  text-align: left;
  box-shadow: 0 14px 28px rgba(54, 99, 136, 0.06);
}

.homepage .testimonial-card-light p {
  margin: 0 0 18px;
  color: #4d6882;
  line-height: 1.75;
}

.homepage .stars {
  color: #f2b414;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.homepage .homepage-cta-banner {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 34px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8, 53, 98, 0.76), rgba(8, 53, 98, 0.88)),
    url("/images/pool-gallery-1.jpg") center/cover no-repeat;
  color: #fff;
  display: grid;
  align-items: center;
}

.homepage .homepage-cta-copy {
  max-width: 520px;
}

.homepage .homepage-cta-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.homepage .homepage-cta-copy p {
  margin: 14px 0 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.homepage .homepage-team-strip {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.homepage .team-spotlight,
.homepage .team-secondary article {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(41, 88, 128, 0.08);
  box-shadow: 0 14px 28px rgba(54, 99, 136, 0.06);
}

.homepage .team-spotlight {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.homepage .team-photo-large {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.homepage .team-spotlight-copy,
.homepage .team-secondary {
  display: grid;
  gap: 14px;
}

.homepage .team-spotlight-copy h3 {
  margin: 0;
  color: #136cb2;
  font-size: 1.8rem;
}

.homepage .team-spotlight-copy p,
.homepage .team-secondary span {
  margin: 0;
  color: #57728c;
}

.homepage .team-spotlight-copy a,
.homepage .team-secondary a {
  display: block;
  color: #16466a;
  font-weight: 700;
}

.homepage .team-secondary article {
  display: grid;
  gap: 6px;
}

.homepage .homepage-form-section {
  padding: 10px 0 6px;
}

.homepage .homepage-form-card {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(41, 88, 128, 0.08);
  box-shadow: 0 14px 28px rgba(54, 99, 136, 0.06);
}

.homepage .form-shell {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.homepage label {
  display: grid;
  gap: 8px;
  text-align: left;
  color: #355371;
  font-weight: 700;
}

.homepage input,
.homepage textarea,
.homepage select {
  background: #fff;
  color: #18344f;
  border: 1px solid rgba(44, 101, 145, 0.16);
  border-radius: 0;
  box-shadow: none;
}

.homepage .homepage-footer {
  margin-top: 18px;
  padding: 34px 28px 28px;
  border-radius: 18px;
  background: linear-gradient(180deg, #78acd7, #6198c8);
  color: #fff;
  overflow: hidden;
}

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

.homepage .footer-columns div {
  display: grid;
  gap: 8px;
}

.homepage .footer-label {
  margin: 0 0 6px;
  font-weight: 800;
}

.homepage .footer-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.homepage .footer-brand-row p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 960px) {
  .homepage .page-shell {
    width: 100%;
    max-width: 100%;
    padding: 12px 12px 36px;
    overflow-x: hidden;
  }

  .homepage .homepage-topbar,
  .homepage .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .homepage .homepage-topbar {
    width: 100%;
    gap: 14px;
    padding: 14px;
    overflow: hidden;
  }

  .homepage .homepage-brand,
  .homepage .homepage-brand span:last-child,
  .homepage .homepage-nav,
  .homepage .homepage-header-cta {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .homepage .homepage-service-tiles,
  .homepage .faq-grid,
  .homepage .testimonial-row,
  .homepage .footer-columns,
  .homepage .homepage-split-panels,
  .homepage .homepage-team-strip,
  .homepage .homepage-feature-card,
  .homepage .homepage-feature-card-reverse,
  .homepage .team-spotlight {
    grid-template-columns: 1fr;
  }

  .homepage .homepage-hero-media,
  .homepage .homepage-hero-media img,
  .homepage .homepage-hero-media video {
    width: 100%;
    max-width: 100%;
    min-height: 340px;
  }

  .homepage .portfolio-slideshow {
    min-height: 320px;
  }

  .homepage .homepage-hero-overlay {
    position: static;
    inset: auto;
    justify-items: start;
    text-align: left;
    padding: 20px 0 0;
    color: #18344f;
    background: none;
  }

  .homepage .homepage-hero-overlay h1 {
    max-width: 11ch;
    font-size: clamp(2.5rem, 12vw, 3.4rem);
    line-height: 0.98;
  }

  .homepage .homepage-hero-overlay p:not(.hero-kicker) {
    max-width: 100%;
    color: #466680;
  }

  .homepage .hero-kicker {
    color: #567693;
  }

  .homepage .homepage-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .homepage .homepage-nav {
    gap: 10px 14px;
  }

  .homepage .homepage-header-cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage .portfolio-slide {
    animation: none;
  }

  .homepage .portfolio-slide:not(.slide-one) {
    display: none;
  }
}
