/* Base */
:root {
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2e7d32; /* green */
  --primary-600: #256628;
  --accent: #0ea5e9; /* subtle blue */
  --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: 70px;
  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);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; gap: 16px; align-items: center; }
.nav-link { color: var(--text); padding: 8px 10px; border-radius: 8px; }
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
}
.nav-link.cta:hover {
  background: var(--primary-600);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 125, 50, 0);
  }
}

.nav-toggle { display: none; font-size: 24px; background: transparent; border: none; cursor: pointer; }

/* Hero */
.hero {
  padding: 100px 0 160px;
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.50), rgba(244,247,247,0.50)),
    url('Images/brother_cleaning.png') center 15%/cover no-repeat;
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center; }
.hero-content h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
.subhead { color: #000; font-size: 18px; margin: 0 0 20px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { color: #000; margin-top: 10px; font-size: 14px; }
.hero-figure { box-shadow: var(--shadow); border-radius: 16px; overflow: hidden; background: var(--surface); }
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: transform .05s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); text-decoration: none; }
.btn-secondary { background: #fff; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--bg); 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: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}
.muted { color: var(--muted); }

/* 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: linear-gradient(90deg, var(--primary), var(--accent));
}

.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;
}

.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: linear-gradient(90deg, var(--primary), var(--accent));
}

.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; }

/* 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: linear-gradient(90deg, var(--primary), var(--accent));
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.comparison-pair {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.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: linear-gradient(90deg, #d32f2f, #f44336);
  z-index: 1;
}

.gallery-item.after::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  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: 240px;
  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(211, 47, 47, 0.8);
}

.after-label {
  background: rgba(46, 125, 50, 0.8);
}

.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: linear-gradient(90deg, var(--primary), var(--accent));
}

.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: linear-gradient(90deg, var(--primary), var(--accent));
}
.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(46, 125, 50, 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(46, 125, 50, 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(--primary), var(--accent));
  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-inner { grid-template-columns: 1fr; text-align: center; }
  .card-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: 1000px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    right: 4%;
    top: 60px;
    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: 200px;
    z-index: 1001;
  }
  .nav.open { display: flex; }
  .nav-link {
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 8px;
    text-align: center;
  }
  .nav-link.cta {
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
  }
  
  .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%; }
  .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; }
}


