/* Riviera Pools & Spas — Coastal Noir theme */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Jost:wght@400;500;600&display=swap');

:root {
  --bg: #262019;
  --bg-alt: #201b15;
  --panel: #322b22;
  --panel-border: #4a4030;
  --text: #f4f0e8;
  --text-dim: #cfc6b6;
  --text-mute: #9b9184;
  --gold: #d9b872;
  --gold-dim: rgba(217, 184, 114, 0.14);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, Segoe UI, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #e8cf9a; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; font-size: 14px; font-weight: 600; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; font-family: var(--sans);
}
.btn-gold { background: var(--gold); color: #1c1712; }
.btn-gold:hover { background: #e8cf9a; color: #1c1712; }
.btn-outline { border-color: rgba(244,240,232,0.4); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-light { background: #f4f0e8; color: #1c1712; }
.btn-light:hover { background: #fff; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 88px; border-bottom: 1px solid var(--panel-border);
  background: rgba(38,32,25,0.92); backdrop-filter: blur(6px);
}
.site-nav .wrap { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; color: var(--text); }
.logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links a.active { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-size: 14px; color: var(--text-dim); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 88px; left: 0; right: 0; background: var(--bg); flex-direction: column; gap: 0; border-bottom: 1px solid var(--panel-border); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 24px; border-top: 1px solid var(--panel-border); }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero { position: relative; height: 82vh; min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-collage { position: absolute; inset: 0; }
.hero-collage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: heroFade 30s infinite;
}
.hero-collage img:nth-child(1) { animation-delay: 0s; }
.hero-collage img:nth-child(2) { animation-delay: 5s; }
.hero-collage img:nth-child(3) { animation-delay: 10s; }
.hero-collage img:nth-child(4) { animation-delay: 15s; }
.hero-collage img:nth-child(5) { animation-delay: 20s; }
.hero-collage img:nth-child(6) { animation-delay: 25s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  12%  { opacity: 1; }
  17%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-collage img { animation: none; opacity: 0; }
  .hero-collage img:first-child { opacity: 1; }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0.55) 0%, rgba(20,17,13,0.35) 40%, rgba(20,17,13,0.75) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 0 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-content h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.05; color: var(--text); }
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-content p { font-size: 18px; color: #e9e3d6; margin: 0; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; border: 1px solid rgba(217,184,114,0.5); border-radius: 999px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* Page header (non-home pages) */
.page-header { padding: 72px 24px 56px; text-align: center; border-bottom: 1px solid var(--panel-border); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-header h1 { font-size: clamp(34px, 5vw, 50px); }
.page-header p { max-width: 620px; color: var(--text-dim); margin: 0; font-size: 16px; line-height: 1.6; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
.section-head { text-align: center; display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }

/* Trust bar */
.trust-bar { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; padding: 32px 24px; border-bottom: 1px solid var(--panel-border); font-family: var(--serif); font-size: 18px; color: var(--text-mute); }
.trust-bar .eyebrow { font-family: var(--sans); }

/* Cards grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 4px; padding: 34px;
  display: flex; flex-direction: column; gap: 14px;
}
.card .icon { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-dim); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.card h3 { font-size: 21px; }
.card p { font-size: 15px; color: var(--text-dim); line-height: 1.6; margin: 0; }

/* Testimonial cards */
.quote-card { background: var(--panel); border-left: 3px solid var(--gold); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.quote-card p { font-style: italic; font-size: 16px; line-height: 1.6; color: #e6e0d3; margin: 0; }
.quote-card .name { font-weight: 600; font-size: 14px; color: var(--gold); }

/* Masonry reviews */
.masonry { column-count: 3; column-gap: 22px; }
.masonry .quote-card { break-inside: avoid; margin-bottom: 22px; }
@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 640px) { .masonry { column-count: 1; } }
.badge { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.badge-google { background: rgba(217,184,114,0.14); color: var(--gold); }
.badge-facebook { background: rgba(114,150,217,0.16); color: #8fb0e8; }
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

/* Service-area chips */
.chip-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.chip { display: flex; align-items: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--panel-border); border-radius: 999px; font-size: 14px; }

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gallery-tile { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: var(--panel); }
.gallery-tile img, .gallery-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gallery-tile.tall { grid-row: span 2; }
.gallery-tile.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-filter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 30px 24px 6px; }
.filter-pill { padding: 9px 20px; border: 1px solid var(--panel-border); border-radius: 999px; font-size: 13px; color: var(--text-dim); cursor: pointer; background: transparent; font-family: var(--sans); }
.filter-pill.active { background: var(--gold); color: #1c1712; border-color: var(--gold); }
.play-badge { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.play-badge .pill { display: flex; align-items: center; gap: 10px; padding: 13px 24px; background: rgba(244,240,232,0.92); border-radius: 999px; color: #1c1712; font-weight: 600; font-size: 14px; }
@media (max-width: 880px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .gallery-tile.wide { grid-column: span 2; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-tile.tall, .gallery-tile.wide { grid-column: span 1; grid-row: span 1; aspect-ratio: 4/3; } }

/* CTA banner */
.cta-banner {
  margin: 0 auto; max-width: var(--max); padding: 48px 56px; border-radius: 8px;
  background: linear-gradient(120deg, #4a3a20, #2c2419);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 27px; color: var(--text); }
.cta-banner p { font-size: 15px; color: #ece5d6; margin: 6px 0 0; max-width: 480px; line-height: 1.5; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Financing */
.financing-panel { display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.financing-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 20px; }
.financing-copy p { color: var(--text-dim); line-height: 1.7; font-size: 15.5px; margin: 0; }
.financing-media { flex: 1 1 380px; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.financing-media img { width: 100%; height: 100%; object-fit: cover; }
.fact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.fact-list .fact { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: #e6e0d3; }

/* Steps */
.step-num { font-family: var(--serif); font-size: 30px; color: var(--gold); }

/* Process timeline */
.process-steps { display: flex; flex-direction: column; }
.process-step { display: grid; grid-template-columns: 96px 1fr; gap: 36px; padding: 44px 0; border-bottom: 1px solid var(--panel-border); }
.process-step:first-child { padding-top: 0; }
.process-step:last-child { border-bottom: none; padding-bottom: 0; }
.process-num-col { display: flex; flex-direction: column; align-items: center; }
.process-num {
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--panel-border);
  background: var(--panel); display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; color: var(--gold); flex-shrink: 0;
}
.process-line { flex: 1; width: 1px; background: var(--panel-border); margin: 10px 0; min-height: 24px; }
.process-body { display: flex; flex-direction: column; gap: 16px; }
.process-body .eyebrow { display: block; }
.process-body h3 { font-size: 25px; margin-top: 2px; }
.process-body > p { color: var(--text-dim); font-size: 15.5px; line-height: 1.7; margin: 0; max-width: 640px; }
.process-content { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.process-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.process-media { flex: 0 1 320px; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .process-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .process-num { width: 48px; height: 48px; font-size: 19px; }
  .process-body h3 { font-size: 21px; }
}

/* Process closing banner */
.process-finale {
  position: relative; border-radius: 10px; overflow: hidden; min-height: 320px;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.process-finale img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.process-finale::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,13,0.35), rgba(20,17,13,0.82)); }
.process-finale-content { position: relative; z-index: 2; max-width: 560px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.process-finale-content h2 { font-size: clamp(28px, 4vw, 38px); color: var(--text); }
.process-finale-content p { color: #ece5d6; font-size: 16px; line-height: 1.6; margin: 0; }

/* Contact / form */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 6px; padding: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; color: var(--text-dim); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--panel-border); border-radius: 3px; color: var(--text);
  padding: 12px 14px; font-family: var(--sans); font-size: 14px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--gold); border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 22px; height: fit-content; }
.contact-info-card .row { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-card .row .icon { flex-shrink: 0; color: var(--gold); }
.contact-info-card .row div { font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.contact-info-card .row strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.form-note { font-size: 12px; color: var(--text-mute); margin-top: 10px; }
.honeypot { position: absolute; left: -9999px; }

/* Footer */
footer { border-top: 1px solid var(--panel-border); padding: 56px 24px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-col.brand { max-width: 320px; }
.footer-col .head { font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-mute); }
.footer-col p { color: var(--text-mute); font-size: 14px; line-height: 1.6; margin: 0; }
.social-row { display: flex; gap: 16px; font-size: 13px; }
.footer-bottom { border-top: 1px solid var(--panel-border); padding: 18px 0; font-size: 12px; color: var(--text-mute); text-align: center; }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
