/* ============================================================================
   Railway City Pools & Spas — rcpas-dev rebuild v1
   Light, fresh, pool-water aesthetic. Opposite of the OAL dark theme.
   ============================================================================ */

:root {
  /* Palette */
  --water-deep: #0e6b7c;          /* primary — deep pool water */
  --water-mid: #2ca0b8;            /* mid teal — accents */
  --water-light: #c8ebf0;          /* light teal — subtle backgrounds */
  --sun: #e8a853;                  /* warm sunset amber — CTA */
  --sun-bright: #f2c273;           /* hover state */
  --cream: #faf8f4;                /* background */
  --cream-soft: #f3efe6;           /* softer alt background */
  --slate: #1a2930;                /* primary text */
  --slate-muted: #516068;          /* muted text */
  --line: #e3dfd4;                 /* hairlines */

  /* Type */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(14, 107, 124, 0.08);
  --shadow-md: 0 8px 28px rgba(14, 107, 124, 0.12);
  --shadow-lg: 0 24px 60px rgba(14, 107, 124, 0.18);

  /* Layout */
  --max-width: 1200px;
  --section-pad: 6rem 0;
}

@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 0;
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--water-deep); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--sun); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img {
  height: 48px;
  width: auto;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--slate-muted);
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--water-deep); }
.nav-cta {
  background: var(--sun);
  color: var(--slate) !important;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 200ms ease, transform 180ms ease;
}
.nav-cta:hover { background: var(--sun-bright); transform: translateY(-1px); }

@media (max-width: 768px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .brand-text span { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(14, 107, 124, 0.42) 0%, rgba(14, 107, 124, 0.62) 100%), url("/images/home-hero.jpg");
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: var(--cream);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  background: rgba(14, 107, 124, 0.75);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 16ch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero h1 span {
  color: var(--sun-bright);
  font-style: italic;
  font-weight: 700;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--cream);
  opacity: 0.95;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 1rem 1.8rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--sun);
  color: var(--slate);
  box-shadow: 0 8px 24px rgba(232, 168, 83, 0.4);
}
.btn-primary:hover {
  background: var(--sun-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(232, 168, 83, 0.5);
  color: var(--slate);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 2px solid rgba(250, 248, 244, 0.7);
}
.btn-ghost:hover {
  background: rgba(250, 248, 244, 0.15);
  border-color: var(--cream);
  color: var(--cream);
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: var(--section-pad); }
.section-alt { background: var(--cream-soft); }

.section-head {
  max-width: 44rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--water-deep);
  margin-bottom: 0.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--slate);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.section-head h2 span {
  color: var(--water-deep);
  font-style: italic;
}
.section-lede {
  font-size: 1.1rem;
  color: var(--slate-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Services grid ───────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--water-mid);
}
.service-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--water-light);
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}
.service-card:hover .service-card-image img {
  transform: scale(1.04);
}
.service-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--slate);
}
.service-card p {
  color: var(--slate-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
  flex: 1;
}
.service-card .link {
  color: var(--water-deep);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ── Gallery ─────────────────────────────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Masonry-ish sizing: 4 wide + 3 tall alternating */
.gallery-item:nth-child(1) { grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery-item:nth-child(2) { grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-item:nth-child(4) { grid-column: span 4; }
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 6; aspect-ratio: 16 / 9; }
.gallery-item:nth-child(7) { grid-column: span 6; aspect-ratio: 16 / 9; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item { grid-column: span 1 !important; aspect-ratio: 4 / 3 !important; }
}

/* ── Service area ────────────────────────────────────────────────────────── */

.area {
  background: linear-gradient(135deg, var(--water-deep) 0%, var(--water-mid) 100%);
  color: var(--cream);
  text-align: center;
  padding: 5rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 0 1.5rem;
  max-width: calc(var(--max-width) - 3rem);
  margin-left: auto;
  margin-right: auto;
}
.area .eyebrow { color: var(--sun-bright); }
.area h2 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}
.area p {
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  opacity: 0.95;
}
.area-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.area-stat { text-align: center; }
.area-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--sun-bright);
  line-height: 1;
}
.area-stat-label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* ── Testimonial ─────────────────────────────────────────────────────────── */

.testimonial {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  color: var(--slate);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.testimonial-quote::before { content: "“"; font-size: 1.5em; color: var(--water-mid); vertical-align: -0.25em; margin-right: 0.2em; }
.testimonial-quote::after  { content: "”"; font-size: 1.5em; color: var(--water-mid); vertical-align: -0.25em; margin-left: 0.1em; }
.testimonial-author {
  font-weight: 600;
  color: var(--slate);
}
.testimonial-role {
  display: block;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--slate-muted);
  margin-top: 0.25rem;
}

/* ── Contact CTA ─────────────────────────────────────────────────────────── */

.contact-cta {
  background: var(--slate);
  color: var(--cream);
  text-align: center;
  padding: 5rem 1.5rem;
  border-radius: var(--radius-lg);
  max-width: calc(var(--max-width) - 3rem);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(44, 160, 184, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(232, 168, 83, 0.1) 0%, transparent 60%);
  pointer-events: none;
}
.contact-cta > * { position: relative; }
.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--cream);
  margin: 0 0 1rem;
}
.contact-cta p {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.88;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  font-weight: 500;
  font-size: 1rem;
}
.contact-item svg {
  color: var(--sun-bright);
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer {
  background: var(--cream-soft);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--line);
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
}
.footer-brand-col img { height: 56px; margin-bottom: 1rem; }
.footer-brand-col p {
  color: var(--slate-muted);
  max-width: 24rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-muted);
  margin: 0 0 1rem;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  color: var(--slate);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--water-deep); }

.footer-meta {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--slate-muted);
}
.footer-meta a { color: var(--slate-muted); }
.footer-meta a:hover { color: var(--water-deep); }

/* ── Dev badge (small indicator this is the rebuild) ─────────────────────── */

.dev-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(14, 107, 124, 0.92);
  color: var(--cream);
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 99;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(4px);
}
