/* SeaScapes - Pool Cleaning and Repair Service
   Brand palette pulled from seascapespools.com (2026-07-29): navy blues
   sampled from their real logo + site background, with their gold/bronze
   accent color. See NOTES.md "Branding update" for sourcing detail. */

:root {
  --teal-900: #0c1b44;
  --teal-800: #123159;
  --teal-700: #084887;
  --teal-600: #18548f;
  --teal-500: #4a79a7;
  --teal-100: #e4edf5;
  --sand-100: #fbf6ee;
  --sand-200: #f4ead6;
  --sand-300: #ead9b8;
  --coral-500: #b38600;
  --coral-600: #8c6900;
  --ink-900: #16202b;
  --ink-600: #45505c;
  --white: #ffffff;

  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 10px 30px rgba(12, 27, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--sand-100);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--teal-900);
}

p {
  margin: 0 0 1em;
}

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-bottom: 0.6em;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--teal-900);
  color: var(--sand-100);
  font-size: 0.88rem;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}

.topbar a {
  color: var(--sand-100);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--coral-500);
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(12, 27, 68, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-height: 44px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--teal-500), var(--teal-800));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.logo {
  height: 34px;
  width: auto;
  max-width: 38vw;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .logo {
    height: 42px;
    max-width: none;
  }
}

@media (min-width: 860px) {
  .logo {
    height: 46px;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-900);
}

.brand-text .tag {
  font-size: 0.72rem;
  color: var(--teal-600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--sand-300);
  background: var(--sand-100);
  cursor: pointer;
}

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

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 320px);
  background: var(--teal-900);
  padding: 90px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 40;
}

.main-nav.open {
  transform: translateX(0);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  padding: 14px 10px;
  min-height: 44px;
  color: var(--sand-100);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--coral-500);
}

.main-nav .nav-cta {
  margin-top: 14px;
  background: var(--coral-500);
  color: var(--white);
  text-align: center;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(12, 27, 68, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 35;
}

.nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

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

  .main-nav {
    position: static;
    height: auto;
    width: auto;
    background: none;
    padding: 0;
    transform: none;
    transition: none;
  }

  .main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .main-nav a {
    color: var(--teal-900);
    padding: 10px 14px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--teal-100);
    color: var(--teal-800);
  }

  .main-nav .nav-cta {
    color: var(--white);
    margin-top: 0;
    margin-left: 6px;
  }

  .main-nav .nav-cta:hover {
    background: var(--coral-600);
    color: var(--white);
  }

  .nav-scrim {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(179, 134, 0, 0.35);
}

.btn-primary:hover {
  background: var(--coral-600);
}

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

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

.btn-teal {
  background: var(--teal-700);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-800);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 0%, var(--teal-600) 0%, var(--teal-800) 45%, var(--teal-900) 100%);
  color: var(--sand-100);
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 60px;
  background: var(--sand-100);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 75% 70%, 50% 35%, 25% 65%, 0 30%);
}

.hero .container {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--sand-300);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.1rem);
  margin-bottom: 0.4em;
}

.hero-copy p.lead {
  font-size: 1.1rem;
  color: var(--sand-200);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--sand-100);
}

.hero-trust-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--coral-500);
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-500) 0%, var(--teal-700) 55%, var(--teal-900) 100%);
  min-height: 260px;
  box-shadow: var(--shadow-soft);
}

.hero-visual .waves {
  position: absolute;
  inset: 0;
}

.hero-visual .waves svg {
  width: 100%;
  height: 100%;
}

.hero-visual .photo-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* ---------- Section shells ---------- */
section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--ink-600);
}

.bg-sand {
  background: var(--sand-200);
}

.bg-teal {
  background: var(--teal-900);
  color: var(--sand-100);
}

.bg-teal h2, .bg-teal h3 {
  color: var(--white);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

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

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--teal-500);
}

.service-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card .icon svg {
  width: 26px;
  height: 26px;
  color: var(--teal-700);
}

.service-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--ink-600);
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* ---------- Highlight / free chlorination banner ---------- */
.highlight-banner {
  display: grid;
  gap: 24px;
  background: linear-gradient(120deg, var(--teal-700), var(--teal-800));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  align-items: center;
}

.highlight-banner h3 {
  color: var(--white);
  font-size: 1.4rem;
}

.highlight-banner p {
  color: var(--sand-200);
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .highlight-banner {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.about-photo {
  border-radius: var(--radius-lg);
  min-height: 220px;
  background: repeating-linear-gradient(135deg, var(--sand-300) 0 18px, var(--sand-200) 18px 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-700);
  font-family: var(--font-head);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  border: 2px dashed var(--teal-500);
}

.about-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--ink-600);
}

.about-list svg {
  width: 22px;
  height: 22px;
  color: var(--coral-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--teal-100);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--teal-800);
  font-weight: 600;
}

/* ---------- Reviews / honesty section ---------- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.review-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}

.review-stars svg {
  width: 22px;
  height: 22px;
  color: var(--coral-500);
}

.review-card p {
  color: var(--ink-600);
}

.review-card .fine-print {
  font-size: 0.85rem;
  color: var(--teal-600);
  margin-bottom: 0;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--coral-500);
  color: var(--white);
  text-align: center;
}

.cta-strip h2 {
  color: var(--white);
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip .btn-primary {
  background: var(--teal-900);
  box-shadow: none;
}

.cta-strip .btn-primary:hover {
  background: var(--teal-800);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.contact-info-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-list svg {
  width: 24px;
  height: 24px;
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-list a {
  color: var(--teal-800);
  text-decoration: none;
  font-weight: 600;
}

.contact-info-list a:hover {
  text-decoration: underline;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

form.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-900);
  display: block;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--sand-300);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--sand-100);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal-500);
  outline-offset: 1px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-600);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: var(--sand-200);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand .name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-list a {
  color: var(--sand-200);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--coral-500);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: var(--sand-300);
  text-align: center;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 860px) {
  section {
    padding: 88px 0;
  }
}
