/* Pristine Pools of Flagler LLC — mobile-first stylesheet */

:root {
  --navy: #0a3a4a;
  --aqua: #0fb8c9;
  --aqua-dark: #0c93a1;
  --sun: #ffd23f;
  --sun-dark: #e0ac0f;
  --cream: #f5fbfc;
  --ink: #12262c;
  --gray: #56696e;
  --border: #dcecef;
  --radius: 14px;
  --font-head: 'Quicksand', 'Segoe UI', sans-serif;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); }
.section-inner { max-width: 1120px; margin: 0 auto; padding: 4rem 1.25rem; }
.eyebrow { font-family: var(--font-head); color: var(--aqua-dark); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 700; margin: 0 0 0.55rem; }
.section-lead { max-width: 620px; color: var(--gray); font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem; border: 2px solid transparent; }
.btn-primary { background: var(--sun); color: var(--navy); }
.btn-primary:hover { background: var(--sun-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.contact .btn-outline { border-color: var(--navy); color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--navy); text-decoration: none; }
.logo span { color: var(--aqua-dark); }

.main-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 12px rgba(0,0,0,0.06); max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.main-nav.open { max-height: 320px; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.main-nav a:hover { color: var(--aqua-dark); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.phone-pill { display: none; background: var(--aqua); color: #fff; text-decoration: none; padding: 0.55rem 1.05rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.menu-toggle { width: 44px; height: 44px; background: none; border: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--navy); transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 84vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,58,74,0.5) 0%, rgba(10,58,74,0.8) 65%, rgba(8,46,58,0.94) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; padding: 6rem 1.25rem 3rem; color: #fff; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 6vw, 3rem); margin-bottom: 0.6rem; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.92); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* Services */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.service-card { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
.service-icon { width: 44px; height: 44px; color: var(--aqua-dark); margin-bottom: 1rem; }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.1rem; }
.service-card p { color: var(--gray); margin: 0; font-size: 0.95rem; }

/* About */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.about-image img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: 0 16px 32px rgba(10,58,74,0.12); max-width: 320px; margin: 0 auto; }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.check-list li { padding-left: 1.7rem; position: relative; font-weight: 600; color: var(--navy); }
.check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--aqua-dark); font-weight: 800; }

/* Contact */
.contact { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.contact-list a { color: var(--aqua-dark); text-decoration: none; font-weight: 700; }
.contact-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 2.5rem 1.25rem; text-align: center; }
.footer-name { font-family: var(--font-head); color: #fff; font-size: 1.15rem; margin: 0 0 0.5rem; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-copy { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.7; }

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

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; flex-direction: row; max-height: none; overflow: visible; background: transparent; box-shadow: none; }
  .main-nav a { color: var(--ink); border-top: none; padding: 0.5rem 0.9rem; min-height: auto; }
  .phone-pill { display: inline-flex; }
  .about-grid { grid-template-columns: 0.8fr 1.2fr; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
}
