/* ===================================================================
   Strickland's Pool Service — marketing site
   =================================================================== */

:root {
  --teal-950: #052229;
  --teal-900: #073540;
  --teal-800: #0b4a58;
  --teal-700: #0f5e6f;
  --cyan-600: #049aa8;
  --cyan-500: #05c2d1;
  --cyan-400: #3ddce8;
  --cyan-100: #e2fbfc;
  --gold-600: #d98d1c;
  --gold-500: #f5a623;
  --gold-400: #ffc457;
  --sand-50: #f7fbfa;
  --ink-900: #0a2530;
  --ink-700: #234450;
  --ink-500: #5c7981;
  --white: #ffffff;

  --shadow-sm: 0 2px 8px rgba(6, 40, 48, 0.08);
  --shadow-md: 0 10px 30px rgba(6, 40, 48, 0.12);
  --shadow-lg: 0 24px 60px rgba(6, 40, 48, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--teal-950);
}

p { margin: 0 0 1em; color: var(--ink-700); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: .6em;
}

.section-sub {
  max-width: 560px;
  font-size: 1.05rem;
}

.section-head { max-width: 640px; margin-bottom: 3rem; }

/* subtle background noise / texture */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(5,194,209,.06) 1px, transparent 0);
  background-size: 28px 28px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .95em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--teal-950);
  box-shadow: 0 10px 24px rgba(245, 166, 35, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(245, 166, 35, .45); }
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-block { width: 100%; padding: 1.05em 1.8em; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(7, 53, 64, .92);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6em;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; color: var(--white); }
.brand-text strong { font-family: 'Poppins', sans-serif; font-size: 1.15rem; letter-spacing: .01em; }
.brand-text small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-400); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-400);
  transition: width .25s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-pill {
  display: flex;
  align-items: center;
  gap: .5em;
  color: var(--teal-950);
  background: var(--gold-400);
  padding: .6em 1.1em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .2s var(--ease);
}
.phone-pill:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 140px;
  background: radial-gradient(120% 140% at 15% 0%, var(--teal-700) 0%, var(--teal-900) 45%, var(--teal-950) 100%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; }
.text-accent {
  background: linear-gradient(90deg, var(--cyan-400), var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  height: 90px;
  z-index: 1;
}
.hero-wave path { fill: var(--sand-50); }

.hero-bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-bubbles span {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(61,220,232,.55), rgba(61,220,232,.05));
  animation: rise linear infinite;
}
.hero-bubbles span:nth-child(1) { left: 6%;  width: 22px; height: 22px; animation-duration: 11s; animation-delay: 0s; }
.hero-bubbles span:nth-child(2) { left: 20%; width: 14px; height: 14px; animation-duration: 8s;  animation-delay: 1.5s; }
.hero-bubbles span:nth-child(3) { left: 48%; width: 30px; height: 30px; animation-duration: 14s; animation-delay: 3s; }
.hero-bubbles span:nth-child(4) { left: 68%; width: 18px; height: 18px; animation-duration: 9s;  animation-delay: .5s; }
.hero-bubbles span:nth-child(5) { left: 82%; width: 26px; height: 26px; animation-duration: 12s; animation-delay: 2.2s; }
.hero-bubbles span:nth-child(6) { left: 92%; width: 12px; height: 12px; animation-duration: 7s;  animation-delay: 4s; }

@keyframes rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: .9; }
  90%  { opacity: .5; }
  100% { transform: translateY(-620px) translateX(24px); opacity: 0; }
}

/* ---------- trust strip ---------- */
.trust-strip { background: var(--white); padding: 34px 0; box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .7em;
  font-weight: 600;
  font-size: .95rem;
  color: var(--teal-900);
  justify-content: center;
  text-align: center;
}
.trust-item .icon { color: var(--cyan-500); width: 26px; height: 26px; }

/* ---------- services ---------- */
.services { padding: 120px 0 100px; position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(6,40,48,.05);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(5,194,209,.25);
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan-100), #d3f4f6);
  margin-bottom: 1.2em;
}
.service-icon .icon { width: 28px; height: 28px; color: var(--cyan-600); stroke-width: 1.6; }
.service-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.service-card p { font-size: .95rem; margin: 0; }

/* ---------- why us ---------- */
.why-us { background: var(--teal-950); padding: 110px 0; position: relative; }
.why-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.why-visual-card {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--teal-800), var(--teal-700));
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.why-visual-card::before {
  content: "";
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,232,.28), transparent 70%);
  top: -60px; right: -60px;
}
.why-logo { width: 78%; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); position: relative; z-index: 1; }

.why-copy .eyebrow { color: var(--cyan-400); }
.why-copy h2 { color: var(--white); }
.why-list { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 2rem; }
.why-list li { display: flex; gap: 1.2rem; align-items: flex-start; }
.why-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold-400);
  opacity: .85;
  flex-shrink: 0;
  width: 46px;
}
.why-list h3 { color: var(--white); font-size: 1.1rem; margin-bottom: .3em; }
.why-list p { color: rgba(255,255,255,.72); margin: 0; font-size: .95rem; }

/* ---------- mid-page cta banner ---------- */
.cta-banner {
  position: relative;
  padding: 64px 0;
  background: linear-gradient(120deg, var(--teal-800), var(--cyan-600) 130%);
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  top: -180px; right: -100px;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-copy h2 { color: var(--white); margin-bottom: .2em; font-size: 1.7rem; }
.cta-copy p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- service area ---------- */
.service-area {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--sand-50), var(--cyan-100) 60%, var(--sand-50));
}
.service-area h2 { max-width: 620px; margin-left: auto; margin-right: auto; }
.service-area .section-sub { margin: 0 auto 2.2rem; }
.area-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.area-chips span {
  background: var(--white);
  border: 1px solid rgba(5,194,209,.3);
  color: var(--teal-800);
  font-weight: 600;
  font-size: .92rem;
  padding: .6em 1.3em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.area-note { margin-top: 1.6rem; font-size: .92rem; color: var(--ink-500); }

/* ---------- faq ---------- */
.faq-section { padding: 100px 0 120px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid rgba(6,40,48,.07);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--teal-950);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  color: var(--cyan-600);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* ---------- quote / contact ---------- */
.quote-section { padding: 120px 0; }
.quote-inner {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 60px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; margin-top: 2rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 1px solid rgba(6,40,48,.06);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .icon { width: 24px; height: 24px; color: var(--cyan-600); }
.contact-card strong { display: block; font-size: .8rem; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-card span { font-size: 1rem; font-weight: 600; color: var(--teal-950); }

.quote-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(6,40,48,.05);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.quote-form label { display: flex; flex-direction: column; gap: .5em; font-size: .88rem; font-weight: 600; color: var(--ink-700); }
.quote-form label.full { margin-bottom: 20px; }
.quote-form input, .quote-form select, .quote-form textarea {
  font-family: inherit;
  font-size: .96rem;
  padding: .85em 1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid #e1ecee;
  background: var(--sand-50);
  color: var(--ink-900);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  resize: vertical;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: none;
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(5,194,209,.15);
}
.form-note { text-align: center; font-size: .82rem; color: var(--ink-500); margin: 14px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-950); color: rgba(255,255,255,.75); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; background: rgba(255,255,255,.92); padding: 6px; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 260px; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .7rem; }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.footer-links a, .footer-contact a, .footer-contact span { color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan-400); }
.footer-bottom { padding: 24px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---------- floating call button ---------- */
.call-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(245,166,35,.5);
  z-index: 90;
  animation: pulse 2.4s infinite;
}
.call-fab .icon { color: var(--teal-950); width: 26px; height: 26px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,.5), 0 10px 26px rgba(245,166,35,.5); }
  70%  { box-shadow: 0 0 0 14px rgba(245,166,35,0), 0 10px 26px rgba(245,166,35,.5); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0), 0 10px 26px rgba(245,166,35,.5); }
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bubbles, .call-fab { animation: none; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { max-width: 320px; margin: 0 auto; }
  .quote-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--teal-950);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 99;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .phone-pill span { display: none; }
  .phone-pill { padding: .7em; }

  .hero { padding: 140px 0 120px; }
  .services-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .call-fab { display: flex; }
}
