/* =========================================================
   Pool & Spa Experts — Site Stylesheet
   Brand: ABS USA GROUP LLC dba Pool & Spa Experts
   Largo, FL · Serving the Tampa Bay Area
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — strict, no gradients */
  --navy: #0F2A52;          /* primary brand color (logo) */
  --navy-700: #15356B;      /* hover/state for navy */
  --royal: #1857B6;         /* secondary brand / links (logo) */
  --royal-100: #E5ECFA;     /* tinted background for icon chips */

  /* CTA accent — warm orange for buttons (Pinch A Penny style) */
  --action: #F26B3D;
  --action-600: #DB5A2C;
  --action-100: #FCEAE2;

  /* Neutrals */
  --ink: #0B1A33;
  --text: #2E3A53;
  --muted: #5F6B83;
  --line: #E4E9F2;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;       /* off-white section background */

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 42, 82, .06), 0 2px 6px rgba(15, 42, 82, .05);
  --shadow-md: 0 6px 18px rgba(15, 42, 82, .08), 0 2px 6px rgba(15, 42, 82, .06);
  --shadow-lg: 0 18px 40px rgba(15, 42, 82, .12);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--royal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--action); }

.section-title { max-width: 760px; margin-bottom: 48px; }
.section-title p { color: var(--muted); font-size: 1.1rem; }
.section-title.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .2s ease, border-color .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--action);
  color: #fff;
  box-shadow: 0 6px 16px rgba(242, 107, 61, .35);
}
.btn--primary:hover {
  background: var(--action-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(242, 107, 61, .42);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--white {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn--white:hover { background: var(--bg-soft); color: var(--navy); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.btn--outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }

/* ---------- Top bar (above header) ---------- */
.topbar {
  background: var(--navy);
  color: #cfd9eb;
  font-size: .88rem;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--action); }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img { height: 112px; width: auto; }
.brand__slogan {
  display: none; /* shown >= 760px */
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: -0.01em;
  border-left: 3px solid var(--action);
  padding-left: 16px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Plain nav links (excluded: buttons) */
.nav a:not(.btn) {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav a:not(.btn):hover { color: var(--royal); }
.nav a:not(.btn).active { color: var(--royal); }
.nav__cta { margin-left: 12px; }
/* Make sure the orange CTA in the nav stays orange-with-white-text and pill-shaped */
.nav a.btn.btn--primary,
.nav a.btn.btn--primary:hover,
.nav a.btn.btn--primary:focus { color: #fff; border-radius: 999px; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px);
  background: var(--navy);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: #d8e2f3;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 36px;
  font-size: .95rem;
  color: #cfd9eb;
}
.hero__badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--action);
}

/* Hero side panel — solid color card with placeholder for photo */
.hero__visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: var(--royal);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px 28px 16px;
}
.hero__visual img { /* shown if a real photo is dropped in */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__visual-card {
  position: relative;
  z-index: 2;
  background: rgba(15, 42, 82, 0.38);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius);
  padding: 12px 18px;
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  max-width: 96%;
  margin-inline: auto;
}
.hero__visual-card strong { display: block; font-size: 1.02rem; color: #fff; letter-spacing: -0.01em; }
.hero__visual-card span {
  display: block;
  color: #e2ecf9;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* ---------- Service / generic cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--royal-100);
}
.card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--royal-100);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--royal);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 16px; }
.card__link {
  margin-top: auto;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--royal);
}
.card__link::after { content: "→"; transition: transform .2s; }
.card__link:hover { color: var(--navy); }
.card__link:hover::after { transform: translateX(4px); }

/* ---------- Why choose us / features ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}
.feature__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--royal-100);
  color: var(--royal);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat__num {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--action);
  line-height: 1;
}
.stat__label { color: #d8e2f3; font-size: .95rem; margin-top: 6px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 56px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #d8e2f3; margin: 0; }
.cta-banner__actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.testimonial__quote {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.testimonial__author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: grid; place-items: center;
}
.testimonial__name { font-weight: 700; color: var(--navy); }
.testimonial__loc { color: var(--muted); font-size: .9rem; }
.stars { color: #F5A524; letter-spacing: 2px; margin-bottom: 8px; }

/* ---------- Gallery / photo grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--royal-100);
  position: relative;
  display: grid; place-items: center;
  color: var(--royal);
  font-weight: 600;
  font-size: .9rem;
  text-align: center;
  padding: 14px;
}
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-grid figure figcaption {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  background: rgba(15,42,82,.85);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  z-index: 2;
  display: none; /* shown when img is loaded */
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy);
  color: #fff;
  padding: clamp(60px, 9vw, 100px) 0 clamp(40px, 6vw, 70px);
  text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 12px; }
.page-header p { color: #d8e2f3; max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.breadcrumbs {
  font-size: .9rem;
  color: #b9c5dc;
  margin-bottom: 14px;
}
.breadcrumbs a { color: #d8e2f3; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__field label {
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
}
.form__field input,
.form__field select,
.form__field textarea {
  font: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px var(--royal-100);
}
.form__field textarea { min-height: 130px; resize: vertical; }
.form__check { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.form__hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: #b9c5dc;
  padding: 60px 0 30px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer a { color: #d8e2f3; }
.footer a:hover { color: var(--action); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__about p { color: #b9c5dc; font-size: .95rem; }

/* Logo on dark footer — placed on a white rounded badge so the navy text stays readable */
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer__brand-logo {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  display: inline-flex;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.footer__brand-logo img { height: 56px; width: auto; }
.footer__brand-text strong { color: #fff; font-size: 1.1rem; display: block; line-height: 1.1; }
.footer__brand-text span { color: #b9c5dc; font-size: .85rem; }

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: .95rem; }
.footer__contact div { margin-bottom: 12px; font-size: .95rem; }
.footer__contact strong { color: #fff; display: block; margin-bottom: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: #8a99b6;
}
.footer__bottom a { color: #b9c5dc; }

/* ---------- Visit-the-store callout strip ---------- */
.store-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #fff;
  border: 1px solid var(--line);
}
.store-strip__media {
  background: var(--royal-100);
  min-height: 320px;
  display: grid;
  place-items: center;
  color: var(--royal);
  font-weight: 600;
  text-align: center;
  padding: 24px;
  position: relative;
}
.store-strip__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.store-strip__body { padding: clamp(28px, 4vw, 44px); }
.store-strip__body h2 { margin-bottom: 10px; }
.store-strip__body p { color: var(--muted); }

/* ---------- Utilities ---------- */
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height:1px; background: var(--line); margin: 40px 0; border: 0; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .brand__slogan { display: block; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { aspect-ratio: 16/12; max-width: 560px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner__actions { justify-content: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .store-strip { grid-template-columns: 1fr; }
  .store-strip__media { min-height: 260px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }
  .nav.is-open a { padding: 12px; border-radius: 10px; }
  .nav.is-open .nav__cta { margin: 8px 0 0; }
  .form__row { grid-template-columns: 1fr; }
  .topbar__inner { justify-content: center; text-align: center; }
  .brand img { height: 78px; }
}

@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
}
