/* Bobby's Pool Services — navy + aqua, pulled from the logo badge */
:root {
  --ink: #071033;
  --ink-2: #0d1b4f;
  --aqua: #19b8e6;
  --aqua-deep: #0a7da3;
  --foam: #e8f7fb;
  --sand: #f3ece0;
  --paper: #fbfdfe;
  --text: #1c2748;
  --muted: #56617f;
  --nav-h: 76px;
  --slant: clamp(32px, 4vw, 72px);
  --radius: 18px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 26C240 50 480 2 720 26S1200 50 1440 26V48H0Z'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .navbar-brand { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; letter-spacing: -0.02em; }
a { color: var(--aqua-deep); }
img { max-width: 100%; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

/* ---------- Navbar ---------- */
.site-nav { background: var(--ink); min-height: var(--nav-h); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
.site-nav .navbar-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 800; font-size: 1.3rem; padding: 0; margin-right: 1.5rem; white-space: nowrap; }
.site-nav .navbar-brand:hover { color: #fff; }
.site-nav .brand-logo { height: 48px; width: auto; }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 500; padding: .5rem 1rem; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus-visible { color: #fff; background: rgba(255,255,255,.08); }
.site-nav .nav-cta { background: var(--aqua); color: var(--ink); font-weight: 700; margin-left: .5rem; }
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible { background: #4fcdf0; color: var(--ink); }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.35); }
.site-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(25,184,230,.5); }
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .75rem 0 1rem; }
  .site-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
}
@media (max-width: 420px) { .site-nav .navbar-brand { font-size: 1.1rem; gap: .5rem; } .site-nav .brand-logo { height: 40px; } }
@media (max-width: 360px) { .site-nav .navbar-brand { font-size: .95rem; gap: .4rem; margin-right: .25rem; } .site-nav .brand-logo { height: 34px; } }

/* ---------- Hero (split panel) ---------- */
.hero { position: relative; display: grid; grid-template-columns: 5fr 7fr; min-height: min(calc(100vh - var(--nav-h)), 760px); background: var(--ink); overflow: hidden; }
.hero-panel {
  position: relative; z-index: 1; display: flex; align-items: center;
  padding: clamp(2.5rem, 6vw, 5rem) calc(var(--slant) + 1.5rem) clamp(4rem, 7vw, 6rem) max(1.5rem, calc((100vw - 1320px) / 2 + 1.5rem));
  background:
    radial-gradient(ellipse 75% 65% at 35% 45%, rgba(25,184,230,.20) 0%, rgba(25,184,230,0) 100%),
    repeating-radial-gradient(circle at 0 105%, rgba(255,255,255,0) 0 38px, rgba(255,255,255,.045) 39px 40px),
    linear-gradient(165deg, var(--ink-2), var(--ink));
}
.hero-content { max-width: 520px; }
.hero-eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--aqua); font-weight: 700; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.25rem; text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.8); }
.hero-eyebrow::before { content: ""; flex: none; width: 34px; height: 2px; background: var(--aqua); }
.hero-title { color: #fff; font-weight: 800; font-size: clamp(2.5rem, 4.6vw, 4.4rem); line-height: 1.02; margin: 0 0 1.25rem; text-shadow: 0 0 4px rgba(0,0,0,1), 0 2px 20px rgba(0,0,0,.95), 0 0 60px rgba(0,0,0,.8); }
.hero-title em { font-style: normal; color: var(--aqua); }
.hero-subtitle { color: rgba(255,255,255,.92); font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin: 0 0 .5rem; text-shadow: 0 0 3px rgba(0,0,0,1), 0 2px 16px rgba(0,0,0,.95), 0 0 40px rgba(0,0,0,.85); }
.hero-tagline { color: #bfeaf7; font-weight: 600; margin: 0 0 2rem; text-shadow: 0 0 3px rgba(0,0,0,1), 0 1px 12px rgba(0,0,0,.95), 0 0 30px rgba(0,0,0,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn-aqua { background: var(--aqua); color: var(--ink); font-weight: 700; border: 2px solid var(--aqua); border-radius: 999px; padding: .8rem 1.5rem; }
.btn-aqua:hover, .btn-aqua:focus-visible { background: #55d0f2; border-color: #55d0f2; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; font-weight: 600; border: 2px solid rgba(255,255,255,.55); border-radius: 999px; padding: .8rem 1.5rem; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }

.hero-photo {
  position: relative; z-index: 2; margin-left: calc(var(--slant) * -1); clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(to top, rgba(7,16,51,.38) 0%, rgba(7,16,51,0) 32%),
    url('img/hero.webp') 50% 62% / cover no-repeat;
}
.hero-chip {
  position: absolute; left: calc(var(--slant) + 2.25rem); bottom: 5.25rem; display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; border-radius: 999px; color: #fff; font-weight: 600; font-size: .95rem;
  background: rgba(7,16,51,.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.28); text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.hero-chip .bi { color: var(--aqua); }

.wave { position: absolute; left: 0; right: 0; height: 48px; background: var(--wave-color, var(--paper)); -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; pointer-events: none; }
.hero .wave { bottom: -1px; z-index: 3; }

@media (max-width: 991.98px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-photo { order: -1; margin: 0; clip-path: none; height: clamp(230px, 46vw, 380px); }
  .hero-panel { padding: 2.25rem 1.5rem 4.25rem; }
  .hero-content { max-width: 640px; padding-right: 0; }
  .hero-chip { left: 1rem; bottom: 1rem; font-size: .85rem; }
}
@media (max-width: 420px) { .hero-actions .btn { width: 100%; text-align: center; } }

/* ---------- Shared section bits ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--aqua-deep); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; color: var(--ink); margin: 0 0 1rem; }
.section-lead { color: var(--muted); max-width: 40rem; }

/* ---------- Features ---------- */
.features { background: var(--paper); overflow-x: clip; }
.feature-photo { position: relative; max-width: 460px; margin: 0 auto; }
.feature-photo::before { content: ""; position: absolute; inset: 26px -22px -22px 26px; border-radius: 28px 28px 130px 28px; background: var(--aqua); opacity: .22; z-index: 0; }
.feature-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 28px 130px 28px; box-shadow: 0 24px 50px -24px rgba(7,16,51,.5); }
.feature { display: flex; gap: 1.25rem; padding: 1.6rem 0; border-top: 1px solid rgba(7,16,51,.1); }
.feature:last-child { border-bottom: 1px solid rgba(7,16,51,.1); }
.feature-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--foam); color: var(--aqua-deep); font-size: 1.5rem; }
.feature h3 { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 0 0 .35rem; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-section { --wave-color: var(--foam); background: var(--foam); }
.gallery-section > .wave { top: -47px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(140px, 16vw, 210px); grid-auto-flow: dense; gap: 14px; margin-top: 2.75rem; }
.g-tile { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: #cfe9f1; }
.g-tile.tall { grid-row: span 2; }
.g-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-tile:hover img { transform: scale(1.05); }
.g-tile figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: .3rem .7rem; border-radius: 999px; background: rgba(7,16,51,.72); color: #fff; font-size: .78rem; font-weight: 600; line-height: 1.35; }
@media (max-width: 767.98px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(118px, 34vw, 230px); gap: 10px; }
  .g-tile { border-radius: 12px; }
  .g-tile figcaption { left: 6px; bottom: 6px; font-size: .68rem; padding: .2rem .55rem; }
}

/* ---------- Contact ---------- */
.contact { --wave-color: var(--paper); background: var(--paper); padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact > .wave { top: -47px; }
.info-card { height: 100%; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius); color: #fff; background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(25,184,230,.22), rgba(25,184,230,0)), linear-gradient(165deg, var(--ink-2), var(--ink)); }
.info-card h3 { font-size: 1.6rem; font-weight: 800; margin: 0 0 .5rem; }
.info-card > p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .bi { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(25,184,230,.16); color: var(--aqua); font-size: 1.15rem; }
.info-list small { display: block; color: #9fdcf0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.info-list a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.info-list a:hover { text-decoration: underline; color: #fff; }
.form-card { height: 100%; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius); background: #fff; border: 1px solid rgba(7,16,51,.09); box-shadow: 0 24px 50px -32px rgba(7,16,51,.35); }
.form-card h3 { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; }
.form-label { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .3rem; }
.form-control { border-radius: 12px; border: 1.5px solid rgba(7,16,51,.16); padding: .7rem .95rem; }
.form-control:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25,184,230,.2); }
.map-wrap { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(7,16,51,.1); line-height: 0; }
.map-wrap iframe { width: 100%; height: clamp(280px, 40vw, 420px); border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; }
.footer-logo { display: inline-flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.35rem; }
.site-footer .footer-logo, .site-footer .footer-logo:hover { color: #fff; }
.footer-logo img { height: 56px; width: 56px; object-fit: contain; padding: 4px; border-radius: 50%; background: #fff; }
.site-footer h4 { color: #fff; font-family: 'Figtree', sans-serif; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.footer-icons { display: flex; gap: .6rem; }
.footer-icons a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.1rem; transition: background .2s, color .2s; }
.footer-icons a:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .9rem; }
.powered { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(25,184,230,.12); border: 1px solid rgba(25,184,230,.4); color: #fff !important; font-weight: 600; }
.powered .bi { color: var(--aqua); }
.powered:hover { background: var(--aqua); color: var(--ink) !important; }
.powered:hover .bi { color: var(--ink); }
