/* Valley Pools & Spas — light, elegant sample site */
:root {
  --navy: #12182A;
  --blue: #286ED2;
  --blue-hover: #1F5BB8;
  --silver: #EBF0F5;
  --mist: #F4F6F9;
  --fog: #EEF1F6;
  --line: #E3E7EE;
  --ink: #12182A;
  --body: #3E4757;
  --muted: #6A7384;
  --white: #ffffff;
  --header-h: 84px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 6px;
  --max: 1180px;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  z-index: 200;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(12px);
}

.container {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: 1px solid transparent;
  border-radius: 4px; padding: 13px 26px;
  font-weight: 500; font-size: 0.875rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: #1C2438; border-color: #1C2438; }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-accent { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-accent:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-header { padding: 10px 18px; font-size: 0.75rem; }
.btn-full { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 52px; width: auto; }
.nav-desktop {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto; margin-right: 12px;
}
.nav-desktop a {
  color: var(--navy); font-size: 0.9rem; font-weight: 450;
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.menu-toggle {
  display: none; width: 42px; height: 42px;
  border: 0; background: transparent; padding: 0; position: relative;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 1.5px; background: var(--navy);
  border-radius: 2px; position: absolute; left: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
body.nav-open .menu-toggle span { background: transparent; }
body.nav-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--white); z-index: 40;
  padding: 16px 28px 32px; overflow-y: auto;
  border-top: 1px solid var(--line);
}
body.nav-open .nav-mobile { display: block; }
body.nav-open { overflow: hidden; }
.nav-mobile a {
  display: block; width: 100%; text-align: left;
  padding: 16px 4px; font-size: 1.125rem; font-weight: 450;
  color: var(--navy); background: none; border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0;
}
.nav-mobile .btn-accent {
  margin-top: 24px; text-align: center; border-radius: 4px;
  border-bottom: 0; padding: 14px 24px;
  background: var(--blue); color: var(--white); border-color: var(--blue);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem;
}

/* Hero */
.hero { padding: 56px 0 0; background: var(--white); }
.hero-copy { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.hero h1 {
  margin: 0 0 8px;
  line-height: 0;
}
.hero-logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); margin: 8px 0 20px;
}
.hero-lead {
  color: var(--body); font-size: 1.125rem; line-height: 1.7;
  max-width: 38em; margin: 0 auto 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-photo {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  overflow: hidden; border-radius: 4px;
}
.hero-photo img {
  width: 100%; height: min(68vh, 640px);
  object-fit: cover; object-position: center 85%;
}

/* Shared sections */
section { scroll-margin-top: calc(var(--header-h) + 16px); }
.section { padding: 112px 0; }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 3.15rem); margin-bottom: 16px; }
.section-head p { color: var(--body); font-size: 1.0625rem; }

.rule {
  width: 40px; height: 1px; background: var(--navy);
  margin: 0 auto 28px; border: 0; opacity: 0.45;
}
.rule-left { margin: 0 0 22px; }


/* Inline text links */
.text-link {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(40, 110, 210, 0.35);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.text-link:hover {
  color: var(--blue-hover);
  text-decoration-color: var(--blue-hover);
}

/* Services */
.cards-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.cards-5 .card:nth-child(1),
.cards-5 .card:nth-child(2),
.cards-5 .card:nth-child(3) { grid-column: span 2; }
.cards-5 .card:nth-child(4) { grid-column: 2 / span 2; }
.cards-5 .card:nth-child(5) { grid-column: 4 / span 2; }
.card-photo {
  height: 200px; overflow: hidden;
  background: var(--fog);
}
.card-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  transition: transform 0.5s ease;
}
.card:hover .card-photo img { transform: scale(1.04); }
.card-body { padding: 22px 22px 24px; }
.card h3 {
  font-size: 1.45rem; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Owners */
.owners {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: stretch;
}
.owners-photo {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 560px;
}
.owners-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 70%;
}
.owner-item + .owner-item {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.owner-num {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 8px;
}
.owner-item h3 { font-size: 1.55rem; margin-bottom: 8px; }
.owner-item p { color: var(--muted); }

/* Brands */
.brands-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-bottom: 40px;
}
.brand-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
}
.brand-card img {
  width: 100%; height: 320px;
  object-fit: cover; object-position: center 55%;
}
.brand-card img.brand-photo-product { object-position: center center; }
.brand-card img.brand-photo-hayward { object-position: 65% 45%; }
.brand-card img.brand-photo-poolcorp { object-position: center 42%; }
.brand-card .brand-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.brand-kicker {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.brand-card h3 { font-size: 1.7rem; margin-bottom: 10px; font-style: normal; }
.brand-card p { color: var(--muted); }

a.brand-card {
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.brand-card:hover {
  border-color: rgba(40, 110, 210, 0.45);
  box-shadow: 0 10px 28px rgba(18, 24, 42, 0.06);
}
a.brand-card:hover img { transform: scale(1.03); }
.brand-card img { transition: transform 0.5s ease; }
.brand-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 18px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue);
}
a.brand-card:hover .brand-cta { color: var(--blue-hover); }


.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 40px 36px;
}
.quote-panel h3 { font-size: 2rem; margin-bottom: 8px; }
.quote-panel > p { color: var(--muted); margin-bottom: 28px; }

/* Forms */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], select, textarea {
  width: 100%; background: var(--white); color: var(--ink);
  border: 1px solid #D5DAE3; border-radius: 4px;
  padding: 12px 14px; outline: none;
  transition: border-color 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #9AA3B2; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2312182A' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 110px; resize: vertical; }
.form-note { margin-top: 14px; font-size: 0.9rem; color: var(--blue); display: none; }
.form-note.show { display: block; }
.form-actions { margin-top: 6px; }

/* Booking embed */
.section-head .btn { margin-top: 8px; }
.embed-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
}
.book-iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  background: var(--white);
}


/* Reviews */
.reviews-source { margin-top: 12px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  margin: 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
}
.review-card .stars {
  color: #C4A35A;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  line-height: 1;
  margin-bottom: 14px;
}
.review-card blockquote { margin: 0; flex: 1; }
.review-card blockquote p {
  font-family: var(--serif);
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
}
.review-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.review-source {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 72px; align-items: start;
}
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--body); margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.stat {
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem; font-weight: 500;
  color: var(--navy); letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 8px;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}
.contact-card {
  padding: 8px 36px 8px 0;
  border-right: 1px solid var(--line);
}
.contact-card:last-child { border-right: 0; padding-right: 0; padding-left: 36px; }
.contact-card:nth-child(2) { padding-left: 36px; }
.contact-card h3 {
  font-family: var(--sans);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px; font-weight: 600;
}
.contact-card a, .contact-card p {
  font-family: var(--serif);
  color: var(--navy); font-size: 1.5rem; font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.3;
}
.contact-card a:hover { color: var(--blue); }
.contact-card .sub {
  display: block; margin-top: 8px;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 400;
  color: var(--muted); letter-spacing: 0; line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--navy);
  padding: 36px 0 28px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand img { height: 42px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: rgba(235,240,245,0.72); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--silver); }
.footer-meta {
  width: 100%; margin-top: 4px;
  color: rgba(235,240,245,0.42); font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 980px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .logo-link img { height: 46px; }
  .cards-5 { grid-template-columns: 1fr 1fr; }
  .cards-5 .card:nth-child(n) { grid-column: auto; }
  .owners, .brands-grid, .about-grid, .contact-grid, .reviews-grid { grid-template-columns: 1fr; }
  .owners { gap: 36px; }
  .owners-photo { min-height: 360px; }
  .contact-card, .contact-card:last-child, .contact-card:nth-child(2) {
    border-right: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }
  .contact-card:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .hero { padding: 48px 0 0; }
  .hero-photo img { height: min(52vh, 420px); }
  .section { padding: 88px 0; }
  .stats { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { width: calc(100% - 36px); }
  .section { padding: 72px 0; }
  .cards-5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-copy { margin-bottom: 32px; }
  .hero-logo { width: min(100%, 340px); }
  .hero-lead { font-size: 1.02rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-photo { width: calc(100% - 20px); }
  .hero-photo img { height: 280px; }
  .btn-header { padding: 9px 14px; font-size: 0.7rem; }
  .logo-link img { height: 40px; }
  .quote-panel { padding: 24px 18px 20px; }
  .card-photo { height: 200px; }
  .brand-card img { height: 260px; }
  .review-card { padding: 22px 20px 20px; }
  .owners-photo { min-height: 260px; }
  .stat { padding: 22px 16px 22px 0; }
  .stat b { font-size: 2rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-card a, .contact-card p { font-size: 1.3rem; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-photo img { transition: none; }
}

.about-photo { order: 3; grid-column: 1 / -1; margin: 8px 0 0; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px rgba(15,30,60,.12); }
.about-photo img { width: 100%; height: 420px; object-fit: cover; display: block; }
@media (max-width: 760px) { .about-photo img { height: 240px; } }
