/*
  DlyCleaner - Styles
  Palette: teal (#2a9d8f), navy (#264653), cream (#f1faee), yellow-accent (#e9c46a), orange (#f4a261), coral (#e76f51)
  Font: Poppins
*/
:root {
  --bg: #f7fafc; /* light surface */
  --bg-2: #edf2f7;
  --panel: #ffffff;
  --text: #1f2937; /* slate-800 */
  --muted: #6b7280; /* slate-500 */
  --primary: #2a9d8f;
  --primary-2: #2ec4b6;
  --accent: #e9c46a;
  --accent-2: #f4a261;
  --danger: #e76f51;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(42,157,143,0.12), transparent),
              radial-gradient(1000px 600px at 100% 0%, rgba(233,196,106,0.12), transparent),
              linear-gradient(180deg, var(--bg), var(--bg-2));
}
img { max-width: 100%; display: block; border-radius: var(--radius-sm); }
.container { width: min(100%, var(--container)); margin-inline: auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Topbar */
.topbar { border-bottom: 1px solid rgba(0,0,0,0.06); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar .dot { color: var(--muted); margin-inline: 10px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* Header / Nav */
.header { position: sticky; top: 40px; z-index: 40; border-bottom: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); }
.nav { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.3px; }
.logo-mark { display:inline-grid; place-items:center; width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #0b1325; font-weight: 800; box-shadow: 0 6px 20px rgba(46,196,182,0.25); }
.logo-text { font-size: 18px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.1); background: transparent; position: relative; }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease; }
.hamburger span:nth-child(1){ top: 12px; }
.hamburger span:nth-child(2){ top: 20px; }
.hamburger span:nth-child(3){ top: 28px; }
.mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 16px 24px; background: rgba(255,255,255,0.96); border-bottom: 1px solid rgba(0,0,0,0.06); }
.mobile-menu a { color: var(--text); text-decoration: none; }
.mobile-cta { display: flex; gap: 12px; }

/* Buttons */
.btn { --bg: #ffffff; --fg: var(--text); --bd: rgba(0,0,0,0.12); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--bd); color: var(--fg); background: var(--bg); cursor: pointer; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: linear-gradient(135deg, var(--primary), var(--primary-2)); --fg: #0b1325; --bd: transparent; }
.btn-outline { --bg: transparent; --bd: rgba(0,0,0,0.12); }
.btn-ghost { --bg: transparent; --bd: transparent; }
.btn-accent { --bg: linear-gradient(135deg, var(--accent), var(--accent-2)); --fg: #0b1325; border: none; }

/* Hero */
.hero { padding: 80px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 10px; }
.hero p { color: var(--muted); margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero-stats div { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); padding: 12px 14px; border-radius: var(--radius-sm); }
.hero-stats strong { font-size: 18px; display: block; }
.hero-stats span { color: var(--muted); font-size: 12px; }
.hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero-img.primary { grid-column: span 2; height: 420px; }
.hero-img.secondary { height: 200px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); transform: scale(1.02); transition: transform 0.6s ease; }
.hero-img:hover img { transform: scale(1.06); }

/* Motion Words */
.motion-words { display: inline-grid; min-width: 12ch; vertical-align: bottom; position: relative; margin-inline: 10px; }
.motion-words .word { grid-area: 1/1; opacity: 0; transform: translateY(20px) scale(0.98); animation: rotateWords 12s infinite; }
.motion-words .word:nth-child(1) { animation-delay: 0s; }
.motion-words .word:nth-child(2) { animation-delay: 3s; }
.motion-words .word:nth-child(3) { animation-delay: 6s; }
.motion-words .word:nth-child(4) { animation-delay: 9s; }
@keyframes rotateWords {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  5% { opacity: 1; transform: translateY(0) scale(1); }
  25% { opacity: 1; transform: translateY(0) scale(1); }
  30% { opacity: 0; transform: translateY(-15px) scale(0.98); }
  100% { opacity: 0; transform: translateY(-15px) scale(0.98); }
}

/* Sections */
.section { padding: 72px 0; }
.section.alt { background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); }
.section-header { text-align: center; margin-bottom: 28px; }
.section-header h2 { font-size: clamp(24px, 3.6vw, 36px); margin: 0 0 8px; }
.section-header p { color: var(--muted); margin: 0; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: transform 0.25s ease, background 0.25s ease; }
.card:hover { transform: translateY(-4px); background: #f9fafb; }
.card .icon { font-size: 28px; }
.card h3 { margin: 10px 0 6px; }
.card p { color: var(--muted); margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { position: relative; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.step-num { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: #0b1325; font-weight: 800; border-radius: 9px; }
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.price-card .price { font-size: 28px; margin: 0; }
.price-card ul { margin: 10px 0; padding-left: 18px; color: var(--muted); }
.price-card .badge { position: absolute; top: -10px; right: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0b1325; font-weight: 800; padding: 6px 10px; border-radius: 10px; box-shadow: var(--shadow); }
.price-card.featured { border-color: rgba(46,196,182,0.5); background: linear-gradient(180deg, rgba(46,196,182,0.15), rgba(255,255,255,0.6)); transform: translateY(-6px); }

/* Testimonials */
.testimonial-slider { position: relative; overflow: hidden; min-height: 160px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.slide.active { position: relative; opacity: 1; transform: translateX(0); }
.author { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.author img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(0,0,0,0.1); }
.slider-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(0,0,0,0.15); border: none; cursor: pointer; }
.dot.active { background: var(--primary-2); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; filter: saturate(1.05); }
.gallery-grid img:hover { transform: scale(1.03); filter: saturate(1.15) contrast(1.05); }

/* CTA */
.cta { padding: 60px 0; background: radial-gradient(600px 400px at 10% 10%, rgba(42,157,143,0.2), transparent), rgba(0,0,0,0.02); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.cta h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); }
.cta p { margin: 0 0 18px; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; }

/* Footer */
.footer { padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .socials { display: flex; gap: 10px; margin-top: 10px; }
.footer-bottom { margin-top: 24px; border-top: 1px solid rgba(0,0,0,0.06); padding-top: 14px; color: var(--muted); text-align: center; }

/* Modal */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; z-index: 100; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); }
.modal-content { position: relative; z-index: 1; background: #ffffff; border: 1px solid rgba(0,0,0,0.1); border-radius: 16px; width: min(480px, 92%); padding: 22px; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(0,0,0,0.14); background: transparent; color: var(--text); cursor: pointer; }
.auth-form { display: grid; gap: 8px; }
.auth-form input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.16); background: #ffffff; color: var(--text); }
.auth-form .form-msg { color: var(--accent); height: 16px; display: inline-block; margin-top: 6px; }
.auth-form .link { border: none; background: transparent; color: var(--primary-2); cursor: pointer; text-decoration: underline; font: inherit; padding: 0; }

/* Sign-in segmented control */
.signin-switch { 
  display: flex; 
  gap: 6px; 
  padding: 6px; 
  background: #f7fafc; 
  border: 1px solid rgba(0,0,0,0.06); 
  border-radius: 14px; 
  box-shadow: 0 2px 8px rgba(42,157,143,0.06) inset, var(--shadow); 
  width: 100%; 
  max-width: 360px; 
  margin: 0 auto 18px; 
}
.switch-btn {
  flex: 1; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  padding: 10px 12px; 
  border: none; 
  background: transparent; 
  color: var(--muted); 
  border-radius: 10px; 
  font-weight: 600; 
  cursor: pointer; 
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease; 
}
.switch-btn .icon { font-size: 18px; line-height: 1; }
.switch-btn:hover { color: var(--text); background: rgba(42,157,143,0.06); }
.switch-btn[aria-selected="true"] { 
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); 
  color: #0b1325; 
  box-shadow: 0 8px 20px rgba(46,196,182,0.25);
}
/* Improve form inputs focus */
.auth-form input:focus { 
  border-color: var(--primary-2); 
  outline: none; 
  box-shadow: 0 0 0 3px rgba(46,196,182,0.15); 
}

/* Toast */
.toast[hidden] { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #ffffff; color: var(--text); border: 1px solid rgba(0,0,0,0.1); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 120; }

/* Back to top */
.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); background: linear-gradient(180deg, rgba(42,157,143,0.12), rgba(42,157,143,0.02)); color: var(--text); box-shadow: var(--shadow); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.back-to-top.show { opacity: 1; transform: translateY(0); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav { grid-template-columns: auto auto 42px; }
  .nav-links { display: none; }
  .hamburger { display: inline-block; }
  .mobile-menu { display: flex; }
  .hero-stats { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
