/* ==========================================================================
   PEARL DRY CLEANER — DESIGN SYSTEM
   Edit the variables below to change colors/fonts across the whole site.
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #0B5ED7;
  --color-primary-dark: #084BB0;
  --color-sky: #38BDF8;
  --color-emerald: #10B981;
  --color-ink: #1E293B;
  --color-ink-soft: #475569;
  --color-bg: #F8FAFC;
  --color-white: #FFFFFF;
  --color-border: #E2E8F0;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-w: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --header-h: 76px;
}

/* -------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; }
p { margin: 0; line-height: 1.7; color: var(--color-ink-soft); }
button { font-family: inherit; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--color-primary); }
.btn-ghost { background: transparent; color: var(--color-ink-soft); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* -------------------------------- Scroll progress -------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-sky));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* -------------------------------- Cookie banner -------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  z-index: 900;
  display: none;
  gap: 14px;
  flex-direction: column;
}
.cookie-banner.show { display: flex; animation: slideUp 0.4s ease; }
.cookie-banner p { font-size: 14px; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 21px; color: var(--color-ink); }
.logo-sub { font-size: 10px; letter-spacing: 2px; color: var(--color-ink-soft); font-weight: 600; }

.main-nav { display: flex; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--color-ink-soft); transition: color 0.2s ease; position: relative; }
.main-nav a:hover { color: var(--color-primary); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--color-primary); transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.header-phone svg path { transition: stroke 0.2s ease; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }

/* -------------------------------- Eyebrow -------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.eyebrow--dark { color: var(--color-ink-soft); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-emerald); flex-shrink: 0; }

/* -------------------------------- Hero -------------------------------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.12;
  color: var(--color-ink);
  letter-spacing: -0.5px;
}
.hero-title em {
  font-style: italic;
  color: var(--color-primary);
  font-weight: 500;
}
.hero-desc {
  margin-top: 24px;
  font-size: 17px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-art { position: relative; }
.garment-illustration {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.6);
  animation: floatY 5s ease-in-out infinite;
}
.floating-card--top { top: -18px; left: -18px; }
.floating-card--bottom { bottom: -22px; right: -18px; animation-delay: 1.2s; }
.fc-number { display: block; font-family: var(--font-display); font-size: 26px; color: var(--color-ink); }
.fc-number--sm { font-size: 20px; }
.fc-label { display: block; font-size: 10.5px; letter-spacing: 1px; font-weight: 700; color: var(--color-ink-soft); margin-top: 2px; }
.fc-stars { color: #F5A623; font-size: 13px; letter-spacing: 2px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* -------------------------------- Stats strip -------------------------------- */
.stats-strip {
  background: var(--color-ink);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-white);
}
.stat-label { display: block; margin-top: 6px; font-size: 13px; color: #94A3B8; font-weight: 500; }

/* -------------------------------- Sections -------------------------------- */
.section { padding: 110px 0; }
.section--tint { background: var(--color-white); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title {
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.section-desc { margin-top: 20px; font-size: 16.5px; max-width: 520px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-frame { position: relative; }
.about-badge {
  position: absolute;
  left: -20px; bottom: 30px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.about-badge strong { font-family: var(--font-display); font-size: 17px; }
.about-badge span { font-size: 12px; color: var(--color-ink-soft); }
.about-list { margin: 26px 0 32px; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; color: var(--color-ink-soft); }
.check { color: var(--color-emerald); font-weight: 700; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(11, 94, 215, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--color-primary);
  font-family: var(--font-display);
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }

/* -------------------------------- Footer -------------------------------- */
.site-footer { background: var(--color-ink); color: #CBD5E1; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { margin-top: 12px; font-size: 14px; color: #94A3B8; }
.footer-brand .logo-name { color: var(--color-white); font-size: 20px; }
.footer-brand .logo-sub { color: #94A3B8; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--color-white); font-size: 14px; margin-bottom: 4px; }
.footer-col a, .footer-col span { font-size: 14px; color: #94A3B8; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-white); }
.footer-bottom { padding: 24px; text-align: center; font-size: 13px; color: #64748B; }

/* -------------------------------- Floating action buttons -------------------------------- */
.fab {
  position: fixed;
  right: 26px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  z-index: 400;
  transition: transform 0.25s ease;
}
.fab:hover { transform: scale(1.08); }
.fab-call { bottom: 26px; background: var(--color-primary); }
.fab-whatsapp { bottom: 90px; background: var(--color-emerald); }
.fab-top {
  bottom: 154px; background: var(--color-white);
  border: 1px solid var(--color-border);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-top.show { opacity: 1; pointer-events: auto; }

/* -------------------------------- Reveal animation -------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------- Responsive -------------------------------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 72px; }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .floating-card { padding: 12px 14px; }
  .floating-card--top { top: -12px; left: -10px; }
  .floating-card--bottom { bottom: -14px; right: -10px; }
  .fab { width: 46px; height: 46px; right: 16px; }
  .fab-call { bottom: 16px; }
  .fab-whatsapp { bottom: 72px; }
  .fab-top { bottom: 128px; }
}

/* Mobile nav dropdown (JS toggles .open on mainNav) */
@media (max-width: 960px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--color-white);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
    gap: 18px;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
