/* ============================================================
   Swimming Pool Slip Testing — pool blue palette
   ============================================================ */

:root {
  --primary: #0a5d8e;        /* Deep pool blue — like clean tiled water */
  --primary-dark: #074c75;
  --primary-light: #1a7eb8;
  --accent: #00b4d8;         /* Bright water highlight */
  --accent-soft: #90e0ef;    /* Pale aqua */
  --text: #1a2e3a;
  --text-soft: #4a5e6e;
  --bg: #ffffff;
  --bg-alt: #f0f7fa;         /* Very pale aqua wash */
  --border: #d9e6ec;
  --gold: #f4a261;           /* Subtle warm accent for CTAs */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */

header {
  background: var(--primary);
  color: white;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(10, 93, 142, 0.15);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

header .logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

header .logo svg { flex-shrink: 0; }

header nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.92;
  transition: opacity 0.2s;
}
header nav a:hover { opacity: 1; }

.header-phone {
  font-weight: 600;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .header-phone { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #052e47 100%);
  color: white;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* Subtle wave pattern at the bottom */
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-image:
    radial-gradient(ellipse at 30% 100%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(255,255,255,0.04) 0%, transparent 50%);
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero .subtitle {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 720px;
  opacity: 0.95;
  margin-bottom: 32px;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.05rem; }
}

/* Page hero — for non-homepage pages */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 64px 0 56px;
}

.page-hero h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.page-hero .subtitle {
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: 0.95;
  max-width: 760px;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .page-hero { padding: 48px 0 40px; }
  .page-hero h1 { font-size: 1.7rem; }
}

/* ============================================================
   Trust bar — sits below the hero
   ============================================================ */

.trust-bar {
  background: var(--bg-alt);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  text-align: center;
}

.trust-item {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
}

.trust-item strong { color: var(--primary); font-weight: 700; }

/* ============================================================
   Sections
   ============================================================ */

section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }

@media (max-width: 720px) { section { padding: 48px 0; } }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 760px;
}

.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 40px;
  max-width: 760px;
}

@media (max-width: 720px) {
  .section-title { font-size: 1.55rem; }
  .section-subtitle { font-size: 1rem; }
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover { background: #009ec0; border-color: #009ec0; }

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ============================================================
   Cards
   ============================================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.cards-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 93, 142, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

.card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.card a:hover { color: var(--accent); }

.card-compact {
  padding: 20px;
}

.card-accent {
  border-left: 4px solid var(--accent);
}

/* Compact link cards (used on homepage feature grid) */
a.card-compact {
  display: block;
  background: white;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

a.card-compact small {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin-top: 6px;
  line-height: 1.4;
}

a.card-compact:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 93, 142, 0.08);
}

/* ============================================================
   Content blocks (industry/scenario/guide bodies)
   ============================================================ */

.content-block {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-block h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

.content-block p { margin-bottom: 16px; color: var(--text); }

.content-block ul, .content-block ol {
  margin: 0 0 18px 22px;
  color: var(--text);
}

.content-block li { margin-bottom: 8px; line-height: 1.6; }

.content-block strong { color: var(--text); }

.content-block a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-block a:hover { color: var(--accent); }

/* ============================================================
   Spec tables (for PTV bands etc.)
   ============================================================ */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 22px;
  font-size: 0.95rem;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.spec-table th {
  background: var(--primary);
  color: white;
  text-align: left;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.92rem;
}

.spec-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  color: var(--text);
}

.spec-table tr:nth-child(even) td { background: var(--bg-alt); }

/* ============================================================
   Breadcrumb
   ============================================================ */

.breadcrumb {
  background: var(--bg-alt);
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================================
   Locations grid (homepage)
   ============================================================ */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.location-link {
  display: block;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-align: center;
}

.location-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================================
   CTA section
   ============================================================ */

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  text-align: center;
  padding: 64px 0;
}

.cta-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p { font-size: 1rem; }
}

/* ============================================================
   Form wrapper (contact page)
   ============================================================ */

.form-wrap {
  background: white;
  border-radius: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.info-box {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.info-box h3 {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 1.05rem;
}

.info-box p { margin-bottom: 6px; font-size: 0.95rem; }

/* ============================================================
   Footer
   ============================================================ */

footer {
  background: #052e47;
  color: white;
  padding: 56px 0 28px;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
}

footer h4 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 8px; }

footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
