/* ==========================================================================
   Aqua Oasis Pool Service — stylesheet
   ========================================================================== */

:root {
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-primary-darker: #155e75;
  --color-accent: #06b6d4;
  --color-accent-light: #67e8f9;
  --color-bg: #ffffff;
  --color-bg-alt: #f0f9ff;
  --color-bg-deep: #ecfeff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-border: #e2e8f0;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --container: 1200px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary-dark);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-primary-darker);
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--color-primary); }
.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}
.primary-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.97rem;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--color-bg-deep);
  color: var(--color-primary-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-cta:hover { background: var(--color-primary-dark); color: #fff; }

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

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 2rem;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--color-border);
    overflow-y: auto;
  }
  .primary-nav[data-open="true"] { transform: translateY(0); }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .primary-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
  }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--color-white); border-color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary-dark); }
.btn-ghost { background: var(--color-white); color: var(--color-primary-dark); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

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

.hero {
  position: relative;
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 60%, #67e8f9 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 10vw, 8rem);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12), transparent 45%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 70px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'><path fill='%23ffffff' d='M0,80 C200,120 400,40 600,80 C800,120 1000,40 1200,80 L1200,120 L0,120 Z'/></svg>") no-repeat center / cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: clamp(1.05rem, 1.5vw + 0.5rem, 1.3rem);
  margin-bottom: 1.8rem;
  opacity: 0.95;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

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

section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
section.alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head .eyebrow {
  background: var(--color-bg-deep);
  color: var(--color-primary-dark);
}
.section-head p { color: var(--color-text-muted); font-size: 1.08rem; }

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

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent-light);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg-deep);
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4rem; font-size: 1.18rem; }
.card p { color: var(--color-text-muted); margin: 0; }

/* Two-column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

.figure-block {
  background: linear-gradient(135deg, #0e7490 0%, #06b6d4 60%, #67e8f9 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.figure-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), transparent 45%),
    radial-gradient(circle at 75% 75%, rgba(255,255,255,0.15), transparent 45%);
}
.figure-block svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60%;
  height: auto;
  opacity: 0.9;
}

/* ==========================================================================
   Lists / benefits
   ========================================================================== */

.benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--color-text-muted);
}
.benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / 14px;
  margin-top: 3px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.testimonial p {
  font-size: 1.08rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.testimonial cite span {
  display: block;
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

/* ==========================================================================
   Pricing / plans
   ========================================================================== */

.plans-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.plan {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(8,145,178,0.08);
  position: relative;
}
.plan.featured::after {
  content: "Most Popular";
  position: absolute;
  top: -14px;
  right: 1.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
}
.plan h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.plan .price {
  font-size: 1.05rem;
  color: var(--color-primary-dark);
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 0.55rem;
}
.plan ul li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--color-text-muted);
}
.plan ul li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}
.plan .btn { margin-top: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 0 1.25rem;
  color: var(--color-text-muted);
}
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Service areas
   ========================================================================== */

.areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.areas span {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ==========================================================================
   Contact + form
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.contact-info h3 { margin-bottom: 0.5rem; }
.contact-info dl { margin: 0; display: grid; gap: 1.1rem; }
.contact-info dt {
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.contact-info dd { margin: 0; color: var(--color-text); }
.contact-info dd a { color: var(--color-text); }
.contact-info dd a:hover { color: var(--color-primary-dark); }

form.contact-form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}
form input, form textarea, form select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
form input:focus, form textarea:focus, form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.18);
}
form textarea { min-height: 140px; resize: vertical; }
form .btn { justify-self: flex-start; }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, #155e75 0%, #0891b2 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { font-size: 1.1rem; opacity: 0.95; max-width: 600px; margin: 0 auto 1.6rem; }
.cta-banner .btn-primary { background: #fff; color: var(--color-primary-dark); }
.cta-banner .btn-primary:hover { background: var(--color-bg-alt); color: var(--color-primary-darker); }

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

.site-footer {
  background: #0c4a5e;
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.95rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-brand p { color: #94a3b8; }
.social-links { display: flex; gap: 0.65rem; margin-top: 1rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background var(--transition);
}
.social-links a:hover { background: var(--color-primary); color: #fff; }
.social-links svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

/* ==========================================================================
   Page banner (non-home pages)
   ========================================================================== */

.page-banner {
  background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 50px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'><path fill='%23ffffff' d='M0,80 C200,120 400,40 600,80 C800,120 1000,40 1200,80 L1200,120 L0,120 Z'/></svg>") no-repeat center / cover;
}
.page-banner h1 { color: #fff; margin-bottom: 0.5rem; }
.page-banner p { font-size: 1.1rem; opacity: 0.92; max-width: 640px; margin: 0 auto; }

/* ==========================================================================
   Quote block
   ========================================================================== */

.quote-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  font-size: clamp(1.15rem, 2vw + 0.5rem, 1.5rem);
  font-style: italic;
  color: var(--color-primary-darker);
  line-height: 1.5;
  font-weight: 500;
}
.quote-block::before {
  content: "“";
  display: block;
  font-size: 4rem;
  color: var(--color-accent);
  line-height: 0.5;
  margin-bottom: 1.2rem;
  font-style: normal;
}
.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  font-weight: 500;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
