/* Redfern Bathroom Installations - Clean Spa Portfolio */
:root {
  --primary: #0d7377;
  --primary-dark: #0a5d61;
  --accent: #14b8a6;
  --accent-light: #5eead4;
  --bg: #ffffff;
  --bg-alt: #f0fdfa;
  --bg-warm: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(13, 115, 119, 0.08);
  --shadow-hover: rgba(13, 115, 119, 0.15);
  --success: #10b981;
  --error: #ef4444;
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-card: 0 2px 8px var(--shadow);
  --shadow-card-hover: 0 8px 24px var(--shadow-hover);
  --shadow-nav: 0 2px 12px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', system-ui, sans-serif;
  margin: 0 0 1rem;
  line-height: 1.2;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Nav */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--white);
  z-index: 100;
  box-shadow: var(--shadow-nav);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.wordmark small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}
.phone-pill:hover {
  background: var(--white);
  color: var(--primary);
}
.mobile-nav { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-alt) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(20, 184, 166, 0.4); }
  50% { box-shadow: 0 0 20px rgba(20, 184, 166, 0.6); }
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--shadow-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-ghost:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}
.trust-badges {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light);
}
.trust-badges span { display: flex; align-items: center; gap: 0.35rem; }
.hero-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* Sections */
section { padding: 5rem 0; }
.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}
.bg-alt { background: var(--bg-alt); }
.bg-warm { background: var(--bg-warm); }

/* Stats */
.stats {
  background: var(--primary);
  color: var(--white);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-light);
}
.stat-label { font-size: 1rem; opacity: 0.95; }

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-light);
}

/* Service cards */
.service-card {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.36) 100%);
  z-index: 0;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-light);
}
.service-card > * { position: relative; z-index: 1; }
.service-card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  color: var(--accent-light);
}
.service-card h3 { color: #fff; margin-bottom: 0.5rem; font-size: 1.25rem; }
.service-card p { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }

/* About */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}
.about-quote {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

/* Gallery */
.gallery h2 { color: var(--text); }
.gallery__footer {
  text-align: center;
  margin-top: 2rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 0;
  background: transparent;
}
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 115, 119, 0.45) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.gallery-item::after {
  content: 'View';
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--primary);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-card-hover);
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Reviews */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid transparent;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent-light);
}
.review-quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.review-stars { color: #f59e0b; margin-bottom: 0.75rem; font-size: 1.1rem; }
.review-author { font-weight: 600; color: var(--primary-dark); }
.review-location { color: var(--text-light); font-size: 0.9rem; }

/* Coverage */
.coverage-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.coverage-list li {
  background: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
  font-weight: 500;
  color: var(--primary-dark);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h3 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-light); margin-bottom: 1.25rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.contact-detail a { color: var(--primary); font-weight: 500; }
.hours { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* Form */
.contact-form { position: relative; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.08);
}
.form-error { color: var(--error); font-size: 0.9rem; margin-bottom: 1rem; }
.honeypot { position: absolute; left: -9999px; }
.success-banner, .error-banner {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.success-banner { background: var(--success); }
.error-banner { background: var(--error); }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox__content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: none;
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__close:hover { background: var(--accent); color: var(--white); transform: scale(1.05); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 310;
}
.lightbox__nav:hover { background: var(--primary); color: var(--white); transform: translateY(-50%) scale(1.08); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}
.footer-col p, .footer-col a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-social {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary);
  color: var(--white);
  padding: 0.875rem;
  text-align: center;
  font-weight: 600;
  z-index: 150;
}
.sticky-call a { color: var(--white); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Reveal animations */
.reveal {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-images { order: -1; max-width: 500px; margin: 0 auto 2rem; }
}
@media (max-width: 900px) {
  .phone-pill { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
  .nav-links > li:not(:last-child) { display: none; }
  .hamburger { display: flex; }
  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow-nav);
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-nav.open { display: flex !important; }
  .mobile-nav a { color: var(--text); font-weight: 500; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .hero h1 { font-size: 2.25rem; }
}
@media (max-width: 768px) {
  .sticky-call { display: block; }
  body { padding-bottom: 60px; }
  section { padding: 3.5rem 0; }
  .hero { padding-top: 7rem; }
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .cards-grid, .gallery-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}



/* Before & After Section */
.section--before-after { background: var(--bg-alt); }
.section--before-after .section__header { text-align: center; }
.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

/* Before/after slider */
.ba-slider {
  --ba-position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  user-select: none;
  touch-action: pan-y;
  background: var(--dark);
}

.ba-slider__base,
.ba-slider__reveal {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-slider__base img,
.ba-slider__reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__reveal {
  clip-path: inset(0 calc(100% - var(--ba-position)) 0 0);
  z-index: 2;
  will-change: clip-path;
}

.ba-slider__handle {
  position: absolute;
  top: 50%;
  left: var(--ba-position);
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: ew-resize;
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(13, 115, 119, 0.25), var(--shadow-md);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  will-change: left;
}

.ba-slider__handle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 100vh;
  background: var(--primary);
  transform: translate(-50%, -50%);
  z-index: -1;
}

.ba-slider__handle:hover,
.ba-slider__handle:focus-visible {
  background: var(--primary);
  color: var(--white);
  transform: translate(-50%, -50%) scale(1.05);
}

.ba-slider__handle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ba-slider__label {
  position: absolute;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 4;
}

.ba-slider__label--base {
  right: 1rem;
  background: rgba(26, 26, 26, 0.85);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.ba-slider__label--reveal {
  left: 1rem;
  background: var(--primary);
  color: var(--white);
}

@media (max-width: 900px) {
  .before-after-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ba-slider__handle { width: 48px; height: 48px; }
  .ba-slider__handle svg { width: 16px; height: 16px; }
}
