/* Flash Pool Services — base styles
   Pool/water-inspired, clean and trustworthy. Mobile-first. */

:root {
  --color-deep: #07345A;      /* Navy - primary/header/footer/headings */
  --color-primary: #20A9E0;   /* Pool Blue - CTA/accent, checkmarks, focus states */
  --color-primary-dark: #07345A; /* Navy - body text links (Pool Blue fails AA contrast on white) */
  --color-accent: #20A9E0;    /* Pool Blue - CTA fill */
  --color-accent-dark: #27C1D4; /* Aqua - secondary accent/hover */
  --color-sand: #EFF8FA;      /* Ice Blue - section background */
  --color-white: #ffffff;
  --color-text: #183746;      /* Dark Slate - body text */
  --color-text-muted: #4d6672;
  --color-border: #DDEEF2;    /* Blue Gray - borders */
  --radius: 8px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --shadow-sm: 0 1px 3px rgba(7, 52, 90, 0.12);
  --shadow-md: 0 4px 14px rgba(7, 52, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.55;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

h2 {
  font-size: 1.7rem;
  color: var(--color-deep);
}

section {
  padding: 56px 0;
}

section:nth-of-type(even) {
  background: var(--color-sand);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--color-deep);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.lede {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 640px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-deep);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* Header */
.site-header {
  background: var(--color-deep);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo-full {
  height: 44px;
  width: auto;
}

.brand-logo-icon {
  height: 44px;
  width: auto;
  display: none;
}

@media (max-width: 399px) {
  .brand-logo-full {
    display: none;
  }

  .brand-logo-icon {
    display: block;
  }
}

.footer-brand-logo {
  height: 38px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.main-nav {
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--color-deep);
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.main-nav.open {
  display: flex;
}

.main-nav a {
  color: var(--color-white);
  padding: 12px 0;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a:hover {
  text-decoration: none;
  color: var(--color-accent);
}

.nav-cta {
  margin-top: 12px;
}

.nav-cta .btn {
  width: 100%;
  text-align: center;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--color-deep) 0%, #0a4570 100%);
  color: var(--color-white);
  padding: 64px 0 72px;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 14px;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.72);
}

/* Wave divider */
.wave {
  display: block;
  width: 100%;
  height: 40px;
  margin-bottom: -1px;
}

/* Feature / list grids */
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  color: var(--color-deep);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--color-text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.badge {
  display: inline-block;
  background: rgba(15, 124, 143, 0.1);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Service area */
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.area-pill {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-deep);
}

/* Contact / form */
.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.contact-info dl {
  margin: 18px 0;
}

.contact-info dt {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.contact-info dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.required {
  color: #b3261e;
}

.consent-box {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 22px 0;
}

.consent-box .consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.consent-box input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.consent-box .consent-text {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.consent-box .consent-text strong {
  color: var(--color-text);
}

.consent-box .consent-text a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Footer */
.site-footer {
  background: var(--color-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 28px;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  margin-right: 18px;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-fine {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
}

/* Legal pages */
.legal-content h2 {
  margin-top: 34px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text);
}

.legal-flag {
  background: #fff4e5;
  border: 1px solid #f2a341;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 30px;
  font-size: 0.92rem;
}

.legal-flag strong {
  display: block;
  margin-bottom: 4px;
}

.updated-date {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

/* Utility */
.text-center {
  text-align: center;
}

.mt-0 { margin-top: 0; }

/* Tablet / Desktop */
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border-top: none;
    padding: 0;
    width: auto;
  }

  .main-nav a {
    border-bottom: none;
    padding: 8px 14px;
  }

  .nav-cta {
    margin-top: 0;
    margin-left: 10px;
  }

  .nav-cta .btn {
    width: auto;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
