/* ---------------------------------------------------
   Amanzi Pool Service — stylesheet
   Warm, sandy, neighborly — deep pool-blue for accents
--------------------------------------------------- */

:root {
  --bg: #FBF3E2;            /* cream / sandy page background */
  --bg-alt: #F3E5C7;        /* deeper sandy tone for alternating sections */
  --card: #FFFCF5;          /* warm off-white for cards */
  --blue: #0C447C;          /* deep pool blue — headlines, icons, primary button */
  --blue-dark: #082F58;
  --blue-tint: #E4ECF3;     /* pale blue for icon circles / chips */
  --brown: #5C4230;         /* warm brown — body copy */
  --brown-soft: #8A6C52;    /* lighter brown — secondary text */
  --gold: #D69A3E;          /* sandy gold accent — badges, underline */
  --gold-tint: #F6E4BE;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(92, 66, 48, 0.12);
  --shadow-sm: 0 4px 14px rgba(92, 66, 48, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--brown);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Quicksand', 'Nunito', sans-serif;
  color: var(--blue);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--blue); }

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

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

section { padding: 72px 0; }

.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 10px;
}

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

.section-head p {
  color: var(--brown-soft);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(12, 68, 124, 0.30);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 22px rgba(12, 68, 124, 0.38);
}

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

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 226, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 66, 48, 0.10);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
}

.brand .drop { color: var(--blue); flex-shrink: 0; }

.brand-logo {
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--brown);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a:hover { color: var(--blue); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.call-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.98rem;
}

.call-chip svg { width: 20px; height: 20px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--blue);
}

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--gold-tint);
  opacity: 0.6;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -160px;
  left: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--blue-tint);
  opacity: 0.7;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.hero .sub {
  font-size: 1.15rem;
  color: var(--brown-soft);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--gold);
  color: var(--blue);
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.badge svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.areas-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.area-badge {
  background: var(--card);
  font-size: 1rem;
  padding: 12px 22px;
}

.area-badge svg { color: var(--blue); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(92, 66, 48, 0.08);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Weekly Maintenance (featured section) ---------- */

.section-maintenance {
  background: var(--blue-tint);
  position: relative;
}

.maintenance-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: stretch;
}

.maintenance-content {
  display: flex;
  flex-direction: column;
}

.maintenance-content .eyebrow { margin-bottom: 6px; }

.maintenance-content h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 16px;
}

.maintenance-content > p {
  color: var(--brown-soft);
  font-size: 1.08rem;
  max-width: 560px;
}

.checklist-title {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 1.05rem;
  margin: 18px 0 14px;
}

.checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
  color: var(--brown);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat, linear-gradient(#000,#000);
  mask: url("data:image/svg+xml,%3Csvg 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'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/60% no-repeat, linear-gradient(#000,#000);
}

.maintenance-content .btn { align-self: flex-start; }

/* ---------- Photo frames ---------- */

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(92, 66, 48, 0.08);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.large {
  min-height: 380px;
  height: 100%;
}

.photo-frame.large img { object-position: center 42%; }

.photo-frame.small {
  height: 180px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.additional-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.service-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(92, 66, 48, 0.08);
  display: flex;
  flex-direction: column;
}

.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--blue-tint);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.icon-circle svg { width: 30px; height: 30px; }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--brown-soft);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Why choose ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  text-align: center;
  padding: 12px;
}

.why-card .icon-circle {
  margin: 0 auto 18px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold-tint);
  color: var(--blue);
}

.why-card .icon-circle svg { width: 34px; height: 34px; }

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  color: var(--brown-soft);
  font-size: 0.96rem;
}

.why-card.standout {
  position: relative;
}

.why-card.standout::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 4px;
}

/* ---------- Contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  background: var(--card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid rgba(92, 66, 48, 0.18);
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--brown);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.field textarea { min-height: 120px; }

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #E4F2E6;
  color: #2C6B3A;
}

.form-status.error {
  display: block;
  background: #F7E3DE;
  color: #A03C24;
}

.contact-aside {
  padding-top: 8px;
}

.contact-aside .quote-callout {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 30px 34px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.contact-aside .quote-callout .badge {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  color: var(--white);
  margin-bottom: 16px;
}

.contact-aside .quote-callout h3 {
  color: var(--white);
  font-size: 1.3rem;
}

.contact-aside .quote-callout p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
}

.contact-aside .quote-callout .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.contact-aside .quote-callout .btn-outline:hover {
  background: var(--white);
  color: var(--blue);
}

.contact-aside .call-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.contact-aside .call-card .icon-circle {
  margin: 0;
  flex-shrink: 0;
}

.contact-aside .call-card a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--blue);
}

.contact-aside .call-card p {
  margin: 0 0 2px;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
}

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

.site-footer .brand {
  color: var(--white);
}

.site-footer .brand small { color: var(--gold); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

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

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

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 420px; margin: 0 auto; aspect-ratio: 16/10; }
  .maintenance-grid { grid-template-columns: 1fr; }
  .photo-frame.large { min-height: 260px; }
  .services-grid, .additional-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .header-actions .call-chip { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .container { height: 72px; }
  .brand-logo { height: 46px; }
  .site-header .brand small { display: none; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 12px 24px 24px;
    border-bottom: 1px solid rgba(92, 66, 48, 0.12);
    box-shadow: var(--shadow-sm);
  }

  .site-header.nav-open .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(92, 66, 48, 0.08);
  }

  .site-header.nav-open .header-actions .call-chip {
    display: flex;
    padding: 12px 24px 0;
  }

  section { padding: 52px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .contact-form { padding: 26px 22px; }
  .site-footer .container { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 420px) {
  .badge { font-size: 0.82rem; padding: 8px 14px; }
}
