/* Modern Design System */
:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --primary:#059669;
  --primary-600:#047857;
  --primary-50:#ecfdf5;
  --accent:#10b981;
  --accent-light:#d1fae5;
  --surface:#f8fafc;
  --surface-alt:#f1f5f9;
  --border:#e2e8f0;
  --border-light:#f1f5f9;
  --shadow-sm:0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl:0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Force light theme regardless of device/OS preferences */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#ffffff;
    --text:#0f172a;
    --muted:#475569;
  }
  body{background:#ffffff;color:#0f172a}
}

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

.container{
  width:min(1200px, 94%);
  margin-inline:auto;
  padding-inline:20px;
}

/* Enhanced Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid var(--border-light);
  box-shadow:var(--shadow-sm);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 0;
}
.brand{
  font-weight:900;
  color:var(--primary);
  text-decoration:none;
  font-size:24px;
  letter-spacing:-0.025em;
}
.nav-links{
  display:flex;
  gap:32px;
  align-items:center;
}
.nav-links a{
  color:var(--text);
  text-decoration:none;
  font-weight:500;
  font-size:15px;
  transition:color 0.2s ease;
  position:relative;
}
.nav-links a:hover{
  color:var(--primary);
}
.nav-links a::after{
  content:'';
  position:absolute;
  bottom:-4px;
  left:0;
  width:0;
  height:2px;
  background:var(--primary);
  transition:width 0.2s ease;
}
.nav-links a:hover::after{
  width:100%;
}
.nav-links a.active{
  color:var(--primary);
  font-weight:600;
}
.nav-links a.active::after{
  width:100%;
}
.nav-toggle{display:none;background:none;border:0;font-size:24px;cursor:pointer}

/* Modern Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-radius:12px;
  padding:12px 24px;
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  transition:all 0.2s ease;
  border:2px solid transparent;
  cursor:pointer;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:var(--shadow);
}
.btn-primary:hover{
  background:var(--primary-600);
  transform:translateY(-1px);
  box-shadow:var(--shadow-lg);
}
.btn-ghost{
  border-color:var(--border);
  color:var(--text);
  background:transparent;
}
.btn-ghost:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:var(--primary-50);
}

/* Nav CTA Button */
.btn-cta{
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  border:0;
  border-radius:9999px;
  box-shadow:var(--shadow);
}
.btn-cta:hover{
  transform:translateY(-1px);
  box-shadow:var(--shadow-lg);
  filter:saturate(1.05);
}
.btn-cta:focus-visible{
  outline:none;
  box-shadow:0 0 0 4px var(--primary-50), var(--shadow-lg);
}
.nav-links a.btn-cta{color:#fff}
.nav-links a.btn-cta:hover{color:#fff}
/* Keep CTA readable even when it becomes the active link at bottom */
.nav-links a.btn-cta.active{color:#fff}
.nav-links .btn-cta::after{display:none}

/* Hero Section */
.hero{
  background:linear-gradient(135deg, var(--primary-50) 0%, #fff 50%, var(--surface) 100%);
  padding:0;
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23059669" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events:none;
}
.hero-inner{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:60px;
  align-items:center;
  position:relative;
  z-index:1;
}
.hero h1{
  font-size:clamp(2.5rem, 5vw, 4rem);
  line-height:1.1;
  margin:0 0 20px;
  font-weight:800;
  letter-spacing:-0.025em;
  background:linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p{
  margin:0 0 24px;
  color:var(--muted);
  font-size:18px;
  line-height:1.6;
}
.cta{
  display:flex;
  gap:16px;
  margin:32px 0;
  flex-wrap:wrap;
}
.rating{
  margin:16px 0 0;
  color:#f59e0b;
  font-weight:700;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.badges{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:24px 0 0;
  padding:0;
  list-style:none;
}
.badges li{
  background:var(--surface);
  border:1px solid var(--border);
  padding:8px 16px;
  border-radius:20px;
  font-size:14px;
  font-weight:500;
  color:var(--muted);
  transition:all 0.2s ease;
}
.badges li:hover{
  background:var(--primary-50);
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-1px);
}

/* Hero Media */
.hero-media{
  display:flex;
  justify-content:center;
  align-items:center;
}
.hero-fade{
  position:relative;
  width:100%;
  max-width:500px;
  aspect-ratio:4/3;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-xl);
  border:4px solid #fff;
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-img.show{
  opacity:1;
}

/* Sections */
.section{
  padding:80px 0;
  min-height:100vh;
  display:flex;
  align-items:center;
}
.section.alt{
  background:var(--surface-alt);
}
.section h2{
  font-size:clamp(2rem, 4vw, 3rem);
  margin:0 0 16px;
  font-weight:800;
  letter-spacing:-0.025em;
  color:var(--text);
}
.section-intro{
  color:var(--muted);
  margin:0 0 48px;
  font-size:18px;
  max-width:600px;
}

/* Grid System */
.grid{
  display:grid;
  gap:24px;
}
.services-grid{
  grid-template-columns:repeat(2, 1fr);
  gap:32px;
}

/* Enhanced Cards */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  transition:all 0.3s 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));
  transform:scaleX(0);
  transition:transform 0.3s ease;
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}
.card:hover::before{
  transform:scaleX(1);
}
.card h3{
  margin:0 0 12px;
  font-size:20px;
  font-weight:700;
  color:var(--text);
}
.card p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* Steps */
.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:32px;
  list-style:none;
  margin:0;
  padding:0;
}
.steps li{
  display:flex;
  gap:20px;
  align-items:flex-start;
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  transition:all 0.3s ease;
  position:relative;
}
.steps li:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}
.step-num{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  font-weight:800;
  font-size:18px;
  flex-shrink:0;
}
.steps h4{
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
  color:var(--text);
}
.steps p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* About Section */
.about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.about-card{
  background:#fff;
  border:1px solid var(--border);
  padding:40px;
  border-radius:20px;
  box-shadow:var(--shadow-lg);
  text-align:center;
  font-size:18px;
  font-weight:600;
  color:var(--primary);
}
.checklist{
  list-style:none;
  padding:0;
  margin:24px 0 0;
  display:grid;
  gap:12px;
}
.checklist li{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:500;
}
.checklist li::before{
  content:"✓";
  display:flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--primary-50);
  color:var(--primary);
  font-weight:800;
  font-size:12px;
}

/* Testimonials */
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(350px, 1fr));
  gap:32px;
}
.testimonial-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:32px;
  transition:all 0.3s ease;
  position:relative;
  overflow:hidden;
}
.testimonial-card::before{
  content:'"';
  position:absolute;
  top:16px;
  right:24px;
  font-size:64px;
  color:var(--primary-50);
  font-family:serif;
  line-height:1;
}
.testimonial-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}
.stars{
  margin-bottom:16px;
  font-size:18px;
}
.testimonial-card p{
  margin:0 0 20px;
  color:var(--text);
  line-height:1.6;
  font-style:italic;
}
.testimonial-author{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.testimonial-author strong{
  color:var(--text);
  font-size:16px;
}
.testimonial-author span{
  color:var(--muted);
  font-size:14px;
}

/* Before & After */
.ba-pair{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-bottom:32px;
}
.ba-figure{
  margin:0;
  display:grid;
  gap:12px;
}
.ba-figure img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:16px;
  border:2px solid var(--border);
  transition:all 0.3s ease;
  box-shadow:var(--shadow);
}
.ba-figure:hover img{
  transform:scale(1.02);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}
.ba-figure figcaption{
  font-weight:600;
  color:var(--muted);
  text-align:center;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:0.05em;
}

/* Enhanced Form */
.form{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:40px;
  box-shadow:var(--shadow-lg);
  max-width:800px;
  margin:0 auto;
}
.form-grid{
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
label{
  display:grid;
  gap:8px;
  font-weight:600;
  color:var(--text);
}
label.full{
  grid-column:1/-1;
}
input,select,textarea{
  width:100%;
  padding:16px;
  border:2px solid var(--border);
  border-radius:12px;
  font:inherit;
  font-size:15px;
  transition:all 0.2s ease;
  background:#fff;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-50);
}
.form-actions{
  display:flex;
  gap:16px;
  align-items:center;
  margin-top:32px;
  flex-wrap:wrap;
}
#form-status{
  color:var(--muted);
  font-size:14px;
}

/* Footer */
.site-footer{
  border-top:1px solid var(--border);
  padding:40px 0 20px;
  background:var(--surface-alt);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:20px;
}
.footer-brand{
  font-weight:900;
  font-size:20px;
  color:var(--primary);
}
.footer-info{
  display:flex;
  gap:24px;
  align-items:center;
  color:var(--muted);
}
.footer-info a{
  color:var(--primary);
  text-decoration:none;
  font-weight:500;
  transition:color 0.2s ease;
}
.footer-info a:hover{
  color:var(--primary-600);
}
.footer-links{
  display:flex;
  gap:24px;
}
.footer-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:500;
  transition:color 0.2s ease;
}
.footer-links a:hover{
  color:var(--primary);
}
.tiny{
  padding-top:20px;
  color:var(--muted);
  text-align:center;
  border-top:1px solid var(--border);
}

/* Scroll Reveal */
.reveal{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.show{
  opacity:1;
  transform:none;
}

/* Loading animation */
body:not(.loaded) .reveal{
  opacity:0;
  transform:none;
}
body.loaded .reveal{
  transition-delay:0.2s;
}

/* Modal Popup */
.modal{
  display:none;
  position:fixed;
  z-index:9999;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  backdrop-filter:blur(8px);
  animation:fadeIn 0.3s ease;
}
.modal.show{
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal-content{
  background:#fff;
  border-radius:24px;
  padding:48px;
  max-width:480px;
  width:90%;
  text-align:center;
  box-shadow:var(--shadow-xl);
  transform:scale(0.9);
  animation:modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border:2px solid var(--border-light);
}
.modal-icon{
  font-size:64px;
  margin-bottom:24px;
  animation:bounce 0.6s ease;
}
.modal-content h3{
  margin:0 0 16px;
  font-size:28px;
  font-weight:800;
  color:var(--text);
  letter-spacing:-0.025em;
}
.modal-content p{
  margin:0 0 32px;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.modal-content .btn{
  width:100%;
  justify-content:center;
}

@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}
@keyframes modalSlideUp{
  from{
    transform:scale(0.9) translateY(20px);
    opacity:0;
  }
  to{
    transform:scale(1) translateY(0);
    opacity:1;
  }
}
@keyframes bounce{
  0%, 100%{transform:scale(1)}
  50%{transform:scale(1.1)}
}

/* Responsive Design */
@media (max-width: 1024px){
  .hero-inner{grid-template-columns:1fr;gap:40px}
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr}
  .about{grid-template-columns:1fr;gap:40px}
  .ba-pair{grid-template-columns:1fr;gap:16px}
}

@media (max-width: 768px){
  .nav-links{
    display:none;
    position:absolute;
    right:20px;
    top:100%;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:16px;
    flex-direction:column;
    min-width:200px;
    box-shadow:var(--shadow-lg);
  }
  .nav-links.show{display:flex}
  .nav-toggle{display:block}
  .services-grid{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .cta{flex-direction:column;align-items:stretch}
  .footer-inner{flex-direction:column;text-align:center;gap:16px}
  .footer-info{flex-direction:column;gap:8px}
  .footer-links{justify-content:center}
  .section{padding:60px 0}
  .hero h1{font-size:2.5rem}
  .hero p{font-size:16px}
  .nav-links .btn-cta{width:100%;justify-content:center}
}

