/* ==========================================================================
   CACTUS POOL CO
   Desert sand and pool blue: centred hero with a promise strip and a pool
   photo, feature splits, route numbers, published plans, review, FAQ, notes.
   ========================================================================== */

:root {
  --background: #FBF7F1;
  --card: #FFFFFF;
  --foreground: #1E2430;
  --primary-cta: #0E7C9B;
  --primary-cta-text: #FFFFFF;
  --secondary-cta: #EDE5DA;
  --secondary-cta-text: #1E2430;
  --accent: #D2683C;
  --background-accent: #9CCFDD;
  --radius: 1.25rem;
  --content-width: 87.5vw;
  --section-head-size: var(--text-6xl);
  --font-body: 'Switzer', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Zodiak', 'Switzer', Georgia, serif;
}

@media (width >= 1536px) { :root { --section-head-size: var(--text-7xl); } }


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

.hero { position: relative; padding-top: 9rem; padding-bottom: 4rem; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}

.hero__title {
  max-width: 20ch;
  font-size: var(--text-8xl);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero__lede { max-width: 52ch; font-size: var(--text-xl); line-height: 1.45; opacity: 0.75; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }
.hero__note { font-size: var(--text-base); opacity: 0.6; }

.hero__stage { margin-top: 3rem; padding: 0.75rem; border-radius: var(--radius); }
.hero__stage img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) - 0.25rem); }

@media (width <= 768px) {
  .hero { padding-top: 7.5rem; }
  .hero__title { font-size: var(--text-7xl); max-width: 15ch; }
}

.brand-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.75rem; margin-top: 2rem; opacity: 0.75; }
/* The template ran customer logos here. Inventing client logos is not on, so
   the strip carries four short promises instead. */
.brand-strip span { font-size: var(--text-base); font-weight: 500; }

/* --- Feature splits ------------------------------------------------------- */

.feat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--radius);
}

.feat-row:nth-child(even) .feat-row__media { order: -1; }
.feat-row__copy { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.feat-row__copy h3 { font-size: var(--text-4xl); line-height: 1.15; }
.feat-row__copy p { max-width: 48ch; font-size: var(--text-lg); line-height: 1.5; opacity: 0.8; }
.feat-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 0.5rem); }

@media (width <= 900px) {
  .feat-row { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
  .feat-row:nth-child(even) .feat-row__media { order: 0; }
}

/* --- Metrics --------------------------------------------------------------- */

.metric { padding: 2rem; border-radius: var(--radius); }
.metric strong { display: block; font-size: var(--text-7xl); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--primary-cta); }
.metric > p { font-size: var(--text-2xl); margin: 0.5rem 0 1.25rem; }
.metric ul { display: flex; flex-direction: column; gap: 0.55rem; }
.metric li { font-size: var(--text-lg); opacity: 0.7; }

/* --- How it works ----------------------------------------------------------- */

.how-card { padding: 0.75rem; border-radius: var(--radius); }
.how-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - 0.5rem); }
.how-card__body { padding: 1.15rem 0.6rem 0.5rem; }
.how-card__body h3 { font-size: var(--text-2xl); margin-bottom: 0.35rem; }
.how-card__body p { font-size: var(--text-lg); line-height: 1.45; opacity: 0.78; }

/* --- Quote ------------------------------------------------------------------ */

.quote-band { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 3.5rem 2rem; border-radius: var(--radius); text-align: center; }
.quote-band h3 { font-size: var(--text-3xl); }
.quote-band blockquote { max-width: 40ch; margin: 0; font-size: var(--text-2xl); line-height: 1.5; }

/* --- Blog cards -------------------------------------------------------------- */

.post-card { padding: 0.75rem; border-radius: var(--radius); }

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.5rem);
  transition: transform 0.5s ease-out;
}

.post-card:hover img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.15rem 0.6rem 0.5rem; }
.post-card__body h3 { font-size: var(--text-2xl); line-height: 1.25; }
.post-card__body > p { font-size: var(--text-lg); line-height: 1.45; opacity: 0.75; }

.post-card__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; font-size: var(--text-base); opacity: 0.65; }
.post-card__meta img { width: 1.75rem; height: 1.75rem; border-radius: 50%; aspect-ratio: 1; }

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

.cta-band { display: flex; flex-direction: column; align-items: center; gap: 1.15rem; text-align: center; padding-block: 5rem; }
.cta-band h2 { max-width: 22ch; font-size: var(--text-6xl); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band p { max-width: 46ch; font-size: var(--text-lg); line-height: 1.5; opacity: 0.75; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

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

.site-footer { border-radius: var(--radius) var(--radius) 0 0; background: var(--foreground); color: #f8fafc; padding-block: 4rem; }
.footer-top { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { font-size: var(--text-5xl); font-weight: 700; letter-spacing: -0.02em; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }
.footer-nav h3 { font-size: var(--text-base); font-weight: 500; opacity: 0.55; margin-bottom: 1rem; }
.footer-nav ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav a { font-size: var(--text-lg); transition: color 0.2s, opacity 0.2s; }
.footer-nav a:hover { color: var(--accent); }

.footer-legal-bar {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--foreground) 12%, transparent);
  font-size: var(--text-base); opacity: 0.6;
}
.footer-legal-bar div { display: flex; gap: 1.25rem; }

@media (width <= 768px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}

/* The note under the hero button was dimmed to 4.1:1. */
.hero__note { opacity: 0.8; }
