/* Swim Solutions Pools concept: a section cut through a pool. Spec work by Pina Studios. */
:root {
  --deck: #F4F7F7;
  --shallow: #E2F0F4;
  --mid: #C9E5EC;
  --deep: #0F5E86;
  --deepest: #0A3F5E;
  --ground: #102330;
  --ink: #0D2131;
  --ink-2: #3D5566;
  --blue: #0955A1;
  --blue-hover: #07457F;
  --water: #93D2E1;
  --concrete: #C3CED4;
  --line: rgba(13, 33, 49, .15);
  --line-strong: rgba(13, 33, 49, .32);
  --font: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --num: 'Big Shoulders Display', 'Public Sans', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--deep) var(--shallow); }
.reduce { scroll-behavior: auto; }
body { margin: 0; background: var(--deck); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }
::selection { background: #BFE3EE; color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--font); text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(2rem, 2.2vw + 1rem, 3rem); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-weight: 800; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.concept-ribbon { background: var(--ink); color: #C9D8E1; font: 600 .8125rem/1.4 var(--font); text-align: center; padding: 8px var(--gutter); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 6px; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #1B3A50; color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: #E2F0F4; color: var(--blue-hover); }
.btn-wide { width: 100%; }

/* Header */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { max-width: 1320px; margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand img { width: 172px; height: auto; }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px 24px; justify-content: center; flex-wrap: wrap; }
.nav a { font: 600 .9375rem/1.2 var(--font); color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--blue); text-decoration: underline; }
.head-actions { display: flex; align-items: center; gap: 18px; }
.head-phone { font: 700 1rem/1.2 var(--font); color: var(--ink); text-decoration: none; white-space: nowrap; }

/* Hero: the deck */
.hero { padding: clamp(28px, 3.5vw, 44px) 0 clamp(28px, 4vw, 44px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: end; }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 3vw + .9rem, 4rem); line-height: 1; letter-spacing: -.03em; max-width: 13ch; }
.lede { font-size: 1.1875rem; color: var(--ink-2); max-width: 34em; margin: 18px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.phone-link { font-weight: 700; color: var(--ink); }

.zip { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 20px 20px 14px; }
.zip label { display: block; font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; }
.zip-row { display: flex; gap: 8px; }
.zip input { flex: 1; min-width: 0; }
.zip-result { margin: 10px 0 0; min-height: 1.6em; font-weight: 600; }
.zip-result.is-yes { color: #0A6B3F; }
.zip-result.is-no { color: var(--ink); }
.zip-result a { white-space: nowrap; }
.zip-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .35); color: #fff; }
.zip-dark .zip-result.is-yes { color: #9EF0C4; }
.zip-dark .zip-result.is-no { color: #fff; }
.zip-dark a { color: #fff; }
.zip-note { margin: 6px 0 0; font-size: .9375rem; color: #C6DCE7; }

/* The section cut */
.cut-wrap { margin: clamp(20px, 3vw, 32px) auto 0; }
.cut { width: 100%; height: auto; display: block; overflow: visible; }
.cut .ground { fill: #E3E9EB; }
.cut .pipes path, .cut .plumb, .pad .plumb { fill: none; stroke: #7A909C; stroke-width: 3; stroke-linejoin: round; }
.cut .shell { fill: none; stroke: var(--concrete); stroke-width: 14; stroke-linejoin: round; }
.cut .water { fill: var(--water); fill-opacity: .88; }
.cut .wall, .cut .deck { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.cut .surface { stroke: var(--blue); stroke-width: 2; }
.cut .coping, .cut .skimmer { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.cut .throat { fill: var(--water); }
.cut .basket { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2 2.5; }
.cut .drain, .cut .jet { fill: var(--ink); }
.cut .cleaner rect, .cut .cleaner .bag { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.cut .cleaner circle { fill: var(--ink); }
.cut .slab, .pad .slab { fill: var(--concrete); }
.cut .equip *, .pad .equip * { fill: #fff; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.pad .equip .mesh { fill: none; stroke-dasharray: 2 2.5; stroke-width: 1.4; }
.mk circle { fill: #fff; stroke: var(--blue); stroke-width: 2.5; transition: fill .2s; }
.mk text { font: 800 19px var(--num); fill: var(--blue); text-anchor: middle; transition: fill .2s; }
.mk.is-hot circle { fill: var(--blue); }
.mk.is-hot text { fill: #fff; }
.js .mk { opacity: 0; transition: opacity .35s var(--ease) var(--d, 0s); }
.js .mk.is-in { opacity: 1; }
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; }
.legend li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 1rem; line-height: 1.35; cursor: default; }
.legend .n { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--blue); color: var(--blue); font: 800 1.125rem/1 var(--num); transition: background-color .2s, color .2s; }
.legend li.is-hot .n { background: var(--blue); color: #fff; }

/* The waterline */
.waterline { display: block; width: 100%; height: 15px; }

/* Bands of water */
.band { padding: clamp(72px, 10vh, 120px) 0; }
.band-shallow { background: var(--shallow); }
.band-mid { background: var(--mid); }
.band-deep { background: var(--deep); color: #fff; }
.band-deepest { background: var(--deepest); color: #fff; }
.band-deep a:not(.btn), .band-deepest a:not(.btn) { color: #fff; }
.band-deep :focus-visible, .band-deepest :focus-visible { outline-color: #fff; }
.band-floor { background: var(--deck); }

.pools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 36px; }
.pool-type img { border-radius: 10px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; margin-bottom: 20px; }
.pool-type h3 { margin-bottom: 8px; }
.pool-type p { color: var(--ink-2); max-width: 34em; }
.creds { margin: clamp(44px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; border-top: 2px solid var(--ink); padding-top: 22px; }
.creds dt { font-weight: 800; font-size: 1.0625rem; }
.creds dd { margin: 4px 0 0; color: var(--ink-2); }

.repairs-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.repairs-copy h2 { margin-bottom: 18px; }
.repairs-copy > p { color: var(--ink-2); max-width: 36em; }
.ticks { list-style: none; margin: 6px 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.pad-wrap { margin: 0; background: #fff; border-radius: 10px; padding: clamp(16px, 2.5vw, 28px); }
.pad { width: 100%; height: auto; display: block; }
.pad-labels text { font: 700 15px var(--font); fill: var(--ink); }

.remodel-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: center; }
.remodel-copy h2 { margin-bottom: 18px; }
.remodel-copy h3 { margin: 28px 0 8px; }
.remodel-copy p { color: #D7E8F0; max-width: 36em; }
.edge-wrap { margin: 0; }
.edge { width: 100%; height: auto; display: block; }
.edge .e-ground { fill: #0B4C70; }
.edge .e-wall { stroke: #fff; stroke-width: 2.2; }
.edge .e-coping { fill: #fff; }
.edge .e-plaster { fill: #EAF3F6; }
.edge .e-water { fill: #2F8CB5; fill-opacity: .55; }
.edge .e-surface { stroke: #fff; stroke-width: 2; }
.edge .e-labels line { stroke: #fff; stroke-width: 1.4; }
.edge .e-labels text { font: 700 17px var(--font); fill: #fff; }

.area-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.cities { list-style: none; margin: 28px 0 0; padding: 0; columns: 4 9em; column-gap: 28px; }
.cities li { padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); break-inside: avoid; font-weight: 600; }
.zip-dark label { font-size: 1.25rem; }

.band-about { padding-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 88px); border-top: 1px solid rgba(255, 255, 255, .2); padding-top: clamp(64px, 9vh, 110px); }
.about-copy h2 { margin-bottom: 18px; }
.about-copy > p { color: #D7E8F0; max-width: 34em; }
.about-copy blockquote { margin: 24px 0 0; }
.about-copy blockquote p { font-size: 1.5rem; line-height: 1.35; font-style: italic; margin: 0; }
.team { list-style: none; margin: 0; padding: 0; }
.team li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.team li:first-child { padding-top: 0; }
.team .who { font-weight: 800; font-size: 1.25rem; margin: 0; }
.team .role { margin: 0 0 6px; color: #9FD6EA; font-weight: 600; }
.team p:last-child { margin: 0; color: #D7E8F0; }
.careers { grid-column: 1 / -1; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 24px 28px; }
.careers h3 { margin-bottom: 6px; }
.careers p { margin: 0; color: #D7E8F0; max-width: 60em; }

.estimate-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.estimate-copy h2 { margin-bottom: 18px; }
.estimate-copy p { color: var(--ink-2); max-width: 30em; }
.estimate-copy a { font-weight: 700; }
.estimate-form { background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: clamp(20px, 3vw, 36px); }
.estimate-form label { display: block; font-weight: 700; font-size: .9375rem; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--ink-2); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font: 400 1.0625rem/1.4 var(--font); }
.zip-dark input { border-color: rgba(255, 255, 255, .6); }
textarea { resize: vertical; margin-bottom: 16px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230D2131' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field-error { color: #A11B1B; font-weight: 700; }
.sent { margin-top: 16px; border: 1px solid var(--blue); background: var(--shallow); border-radius: 6px; padding: 14px 16px; }
.sent-title { font-weight: 800; margin-bottom: 4px; }
.sent p:last-child { margin: 0; }

/* Footer: the ground under the pool */
.site-foot { background: var(--ground); color: #AFC2CE; padding: 64px 0 120px; }
.site-foot a { color: #fff; }
.site-foot :focus-visible { outline-color: #fff; }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.foot-title { font-weight: 800; font-size: 1.75rem; color: #fff; margin-bottom: 6px; }
.foot-sub { max-width: 40em; }
.foot-facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; }
.foot-facts dt { font-weight: 700; font-size: .875rem; color: #fff; }
.foot-facts dd { margin: 4px 0 0; }
.foot-note { max-width: 1240px; margin: 40px auto 0; padding: 20px var(--gutter) 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .875rem; }

.lost { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 160px; }
.lost h1 { font-weight: 800; font-size: clamp(2.2rem, 3vw + 1rem, 3.6rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 18px; }

.mobile-cta { display: none; }

@media (max-width: 1100px) {
  .head-phone { display: none; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .head-inner { flex-wrap: wrap; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; -webkit-mask-image: linear-gradient(to right, #000 84%, transparent); mask-image: linear-gradient(to right, #000 84%, transparent); }
  .nav ul { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; }
  .head-actions { margin-left: auto; }
  .hero-top, .pools-grid, .repairs-grid, .remodel-grid, .area-grid, .about-grid, .estimate-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .foot-facts { grid-template-columns: 1fr 1fr; }
  .edge-wrap { max-width: 460px; }
}
@media (max-width: 760px) {
  .cut-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
  .cut-scroll .cut { min-width: 760px; }
  .mk-in { transform: scale(1.35); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { width: 136px; }
  .head-actions .btn { display: none; }
  .hero h1 { font-size: 2.4rem; }
  .lede { font-size: 1.0625rem; margin: 16px 0 20px; }
  .hero-actions { display: none; }
  .legend { grid-template-columns: 1fr; gap: 10px; }
  .ticks { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .cities { columns: 2; }
  .foot-facts { grid-template-columns: 1fr; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid rgba(255, 255, 255, .4); color: #fff; text-decoration: none; font: 700 .9375rem/1 var(--font); border-radius: 6px; }
  .mobile-cta a.is-primary { background: var(--blue); border-color: var(--blue); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
