/* Base */
:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #67c9e8;
  --primary-600: #3aa9cf;
  --logo-red: #d85a1c;
  --logo-red-600: #b94712;
  --accent: #67c9e8;
  --section-gradient: linear-gradient(90deg, var(--logo-red), var(--primary));
  --border: #e5e7eb;
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 88px;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(2, 6, 23, 0.08);
}

.site-header .container {
  width: min(1380px, 96%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-link {
  color: var(--text);
  padding: 10px 9px;
  border-radius: 10px;
  white-space: nowrap;
  display: inline-block;
  font-size: 0.9rem;
}
.nav-link,
.dropdown-toggle {
  font: inherit;
}
.dropdown-toggle {
  border: none;
  background: transparent;
}
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  padding: 11px 14px;
  font-weight: 800;
  font-size: 0.92rem;
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(103, 201, 232, 0.72);
}
.nav-link.cta:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary));
  animation: none;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  margin-top: 6px;
  display: none;
  flex-direction: column;
  z-index: 1002;
}
.dropdown.open .dropdown-menu { display: flex; }
.dropdown-menu .nav-link { padding: 10px 12px; border-radius: 8px; }
.dropdown-menu .nav-link:hover { background: var(--bg); }

@keyframes pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(103, 201, 232, 0.72);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 0 10px rgba(103, 201, 232, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(103, 201, 232, 0);
  }
}

@keyframes clover-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.nav-toggle {
  display: none;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
}

/* Hero */
.hero {
  padding: 72px 0 108px;
  min-height: 620px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(249,250,251,0.52)),
    url('Images/1brother_cleaning.png') center 18%/cover no-repeat;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.hero-content {
  max-width: 620px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
.hero-content h1 { font-size: 42px; line-height: 1.05; margin: 0 0 14px; }
.subhead { color: var(--text); font-size: 18px; margin: 0 0 22px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: var(--muted); margin-top: 14px; font-size: 14px; }
.hero-figure {
  margin-left: auto;
  max-width: 320px;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.hero-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  animation: clover-bounce 3.4s ease-in-out infinite;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.18));
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .05s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  box-shadow: 0 12px 24px rgba(58, 169, 207, 0.24);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--primary));
  text-decoration: none;
}
.btn-secondary {
  background: linear-gradient(135deg, var(--logo-red), var(--logo-red-600));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 24px rgba(216, 90, 28, 0.2);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, var(--logo-red-600), var(--logo-red));
  text-decoration: none;
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); }
.section-title {
  font-size: 32px;
  margin: 0 0 24px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 72px;
  height: 3px;
  background: var(--section-gradient);
  border-radius: 2px;
}
.muted { color: var(--muted); }

/* Areas CTA - prominent call-out for towns not listed */
.areas-cta {
  max-width: fit-content;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin: 36px auto 0;
  margin-bottom: 0;
  padding: 14px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.areas-cta a {
  font-weight: 800;
}

/* Enhanced section spacing */
.section p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 16px;
}

.section p:last-child {
  margin-bottom: 0;
}

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--section-gradient);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.testimonial-card {
  margin: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-style: normal;
}

.testimonial-card p {
  margin: 0 0 16px;
  line-height: 1.7;
  color: var(--text);
  font-size: 15px;
}

.testimonial-card footer {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-style: normal;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.benefit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--section-gradient);
}

.benefit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.1);
}

.benefit-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.benefit span:last-child {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.pill-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: #fff; border: 1px solid var(--border); padding: 10px 14px; border-radius: 999px; }

/* Small utility list for towns */
.mini-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 8px; 
  color: var(--muted);
}

/* Areas grid: three columns on desktop */
.areas-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

/* Problem Lists */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.problem-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.problem-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.problem-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--section-gradient);
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.96fr) minmax(0, 1.04fr);
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

.gallery-video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.gallery-video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--section-gradient);
}

.gallery-video-copy {
  margin-bottom: 16px;
}

.gallery-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--logo-red);
}

.gallery-video-copy h3 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.1;
}

.gallery-video-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.gallery-video {
  width: 100%;
  display: block;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
  min-height: 280px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 0;
}

.comparison-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.gallery-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.gallery-item.before::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-gradient);
  z-index: 1;
}

.gallery-item.after::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-gradient);
  z-index: 1;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.before-label {
  background: rgba(216, 90, 28, 0.86);
}

.after-label {
  background: rgba(58, 169, 207, 0.88);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.profile {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-gradient);
}

.profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.12);
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.1);
}

.profile h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
}

.profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Contact */
.contact-form {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--section-gradient);
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
label { font-weight: 600; }
input, textarea { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid var(--border); font: inherit; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.inline-cta { font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.reef-logo { width: 24px; height: 24px; object-fit: contain; margin-left: 6px; vertical-align: middle; }
/* Enhanced Form Actions */
.form-actions { 
  display: flex; 
  justify-content: center; 
  margin-top: 24px; 
}

.btn-contact {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border: none;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(58, 169, 207, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 169, 207, 0.4);
  background: linear-gradient(135deg, var(--primary-600), var(--primary));
}

.btn-contact:hover::before {
  left: 100%;
}

.btn-contact:active {
  transform: translateY(0);
}

.credit { display: flex; align-items: center; gap: 6px; }

/* Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.3);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
}

.modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--logo-red), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  margin: 0 auto 20px;
  font-weight: bold;
}

.modal-content h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; background-position: center 12%; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: none; }
  .hero-figure { margin: 0 auto; max-width: 240px; }
  .gallery-layout { grid-template-columns: 1fr; }
  .gallery-video-card { padding: 24px; }
  .gallery-video { min-height: 220px; }
  .card-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .before-after-grid { grid-template-columns: 1fr; gap: 20px; }
  .profile-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .hero-content h1 { font-size: 36px; }
}

@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    right: 2.5%;
    top: 72px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    min-width: min(320px, 92vw);
    z-index: 1001;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    text-align: left;
  }
  .brand-logo { width: 44px; height: 44px; }
  /* Mobile dropdown in flow */
  .dropdown-menu { position: relative; top: 0; right: auto; box-shadow: none; border: none; padding: 0; margin: 0; display: none; min-width: 100%; }
  .dropdown.open .dropdown-menu { display: flex; }
  .nav-link.cta {
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }
  
  .section { padding: 48px 0; }
  .section-title { font-size: 24px; margin-bottom: 20px; }
  .hero-content h1 { font-size: 32px; }
  .subhead { font-size: 16px; }
  .actions { justify-content: center; }
  .benefits { grid-template-columns: 1fr; gap: 10px; }
  .before-after-grid { grid-template-columns: 1fr; }
  .comparison-pair { gap: 12px; }
  .profile { grid-template-columns: 1fr; text-align: center; }
  .avatar { margin: 0 auto; width: 120px; height: 120px; }
  .card { padding: 20px; }
  .contact-form { padding: 20px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
  .container { width: 95%; }
  .site-header .container { width: 95%; }
  body { padding-top: 82px; }
  .hero-content h1 { font-size: 28px; }
  .section-title { font-size: 22px; }
  .btn { padding: 10px 14px; font-size: 14px; }
  .benefit { padding: 12px 14px; }
  .card { padding: 16px; }
  .contact-form { padding: 16px; }
  .avatar { width: 100px; height: 100px; }
  .areas-cta { font-size: 1.2rem; padding: 12px 18px; }
  .gallery-item img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .nav-link.cta {
    animation: none;
  }
}
