/* ============================================================
   Car Wash Template — Stylesheet (colors come from config.js via CSS vars)
   ============================================================ */
:root {
  --blue-900: #0b2545;
  --blue-700: #14457b;
  --blue-500: #0ea5e9;
  --blue-400: #38bdf8;
  --cyan: #06b6d4;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f1f7fc;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px rgba(15, 23, 42, .1);
  --shadow-lg: 0 24px 60px rgba(14, 116, 144, .18);
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1160px;
  --t: .25s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name { font-family: 'Poppins', sans-serif; line-height: 1.15; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
  color: #fff; box-shadow: 0 10px 24px rgba(14, 165, 233, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(14, 165, 233, .45); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .26); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue-700); border-color: var(--blue-500); }
.btn-outline:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: box-shadow var(--t), border-color var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.3rem; }
.brand-icon { font-size: 1.5rem; }
.brand-accent { color: var(--blue-500); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-weight: 500; color: var(--slate); position: relative; padding: .25rem 0; transition: color var(--t); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue-500); transition: width var(--t);
}
.nav-links a:hover { color: var(--blue-700); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }

.lang-switch { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: none; background: transparent; cursor: pointer; font-weight: 700; font-size: .82rem;
  padding: .35rem .7rem; border-radius: 999px; color: var(--muted); transition: var(--t);
}
.lang-btn.active { background: var(--blue-500); color: #fff; box-shadow: var(--shadow-sm); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(56, 189, 248, .55), transparent 60%),
    linear-gradient(140deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--cyan) 120%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, .12) 0, transparent 12%),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, .1) 0, transparent 14%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, .08) 0, transparent 16%);
  pointer-events: none;
}
.hero-content { position: relative; padding: 120px 22px 80px; max-width: 760px; }
.hero-eyebrow { font-weight: 600; letter-spacing: .03em; color: var(--blue-400); margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; margin-bottom: 1.2rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, .9); max-width: 600px; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Poppins'; font-size: 2.1rem; font-weight: 800; }
.stat-num small { font-size: 1rem; font-weight: 600; }
.stat-label { color: rgba(255, 255, 255, .8); font-size: .9rem; }

/* ---------- Features ---------- */
.features { margin-top: -60px; position: relative; z-index: 5; padding-bottom: 20px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); transition: transform var(--t), box-shadow var(--t);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2rem; display: block; margin-bottom: .7rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3.2rem; }
.section-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .8rem; color: var(--blue-500); margin-bottom: .6rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: .8rem; }
.section-desc { color: var(--muted); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue-400); }
.service-emoji {
  width: 64px; height: 64px; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(6, 182, 212, .12));
  border-radius: 18px; margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--muted); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: stretch; }
.price-card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-featured {
  border: 2px solid var(--blue-500);
  background: linear-gradient(180deg, #fff, #f5fbff);
  box-shadow: var(--shadow-lg); transform: scale(1.03);
}
.price-featured:hover { transform: scale(1.03) translateY(-6px); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan)); color: #fff;
  font-size: .78rem; font-weight: 700; padding: .35rem 1rem; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 1.25rem; color: var(--blue-700); margin-bottom: .4rem; }
.price-tag { font-family: 'Poppins'; font-size: 3rem; font-weight: 800; line-height: 1; }
.price-tag .currency { font-size: 1.4rem; vertical-align: super; color: var(--muted); }
.price-per { color: var(--muted); margin-bottom: 1.4rem; }
.price-list { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.8rem; flex: 1; }
.price-list li { color: var(--slate); font-size: .95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-media { position: relative; }
.about-img {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); display: grid; place-items: center; font-size: 5rem;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan)); box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute; bottom: -24px; right: -16px; background: #fff; border-radius: var(--radius);
  padding: 1rem 1.3rem; box-shadow: var(--shadow); text-align: center;
}
.about-badge-num { display: block; font-family: 'Poppins'; font-weight: 800; font-size: 1.6rem; color: var(--blue-500); }
.about-badge-label { font-size: .82rem; color: var(--muted); }
.about-text .section-title { margin-bottom: 1.1rem; }
.about-text p { color: var(--slate); margin-bottom: 1rem; }
.about-list { list-style: none; display: grid; gap: .55rem; margin: 1.4rem 0 1.8rem; }
.about-list li { color: var(--slate); font-weight: 500; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gallery-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  font-size: 3rem; background: var(--g, #ccc); position: relative; overflow: hidden; cursor: pointer;
  transition: transform var(--t);
}
.gallery-item::after {
  content: '🔍'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(11, 37, 69, .55); opacity: 0; transition: opacity var(--t);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; box-shadow: var(--shadow-sm);
}
.stars { color: #f59e0b; letter-spacing: .15em; margin-bottom: .8rem; }
.review-card blockquote { color: var(--slate); font-style: italic; margin-bottom: 1.2rem; }
.review-card figcaption { display: flex; align-items: center; gap: .75rem; font-size: .9rem; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Poppins'; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--cyan));
}
.review-card small { color: var(--muted); }

/* ---------- Contact ---------- */
.section-contact {
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(56, 189, 248, .25), transparent 60%),
    linear-gradient(150deg, var(--blue-900), var(--blue-700));
  color: #fff;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: start; }
.section-contact .section-eyebrow { color: var(--blue-400); }
.section-contact .section-title { margin-bottom: .8rem; }
.contact-info > p { color: rgba(255, 255, 255, .85); margin-bottom: 1.8rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list .ci { font-size: 1.3rem; }
.contact-list strong { font-family: 'Poppins'; }
.contact-list a:hover { color: var(--blue-400); }

.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-lg);
}
.contact-form h3 { margin-bottom: 1.2rem; font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: block; margin-bottom: 1rem; font-size: .9rem; font-weight: 600; color: var(--slate); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; margin-top: .35rem; padding: .75rem .9rem; font-family: inherit; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
.contact-form textarea { resize: vertical; }
.form-success { margin-top: 1rem; color: #047857; font-weight: 600; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.footer-tag { font-size: .92rem; max-width: 260px; margin-bottom: 1.2rem; }
.site-footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-grid a { display: inline-block; color: #cbd5e1; padding: .25rem 0; transition: color var(--t); }
.footer-grid > div > a { display: block; }
.footer-grid a:hover { color: var(--blue-400); }
.socials { display: flex; gap: .6rem; font-size: 1.3rem; }
.socials a { padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px; text-align: center; font-size: .88rem; color: #94a3b8; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .gallery-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-6px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-badge { right: 16px; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 22px;
    box-shadow: var(--shadow); transform: translateY(-150%); transition: transform var(--t); z-index: 90;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .hamburger { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .hero-stats { gap: 1.6rem; }
}
@media (max-width: 520px) {
  .features-grid, .services-grid, .gallery-grid, .reviews-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
