/* =====================================================================
   SAYFAYA — Mobile Car Detailing
   Design system / shared stylesheet
   Brand: deep navy + golden yellow. Clean, professional, energetic.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --navy:        #20385A;   /* logo wordmark navy */
  --navy-deep:   #152844;   /* darker sections */
  --navy-black:  #0C1A2E;   /* hero / footer */
  --gold:        #F5B81C;   /* primary accent */
  --gold-bright: #FBCD21;   /* highlight */
  --gold-deep:   #E0A40D;

  /* Neutrals (cool-tinted) */
  --white:   #FFFFFF;
  --paper:   #F6F8FB;   /* light section bg */
  --paper-2: #EEF2F7;
  --line:    #E1E7F0;   /* hairlines */

  /* Text */
  --ink:     #15233C;
  --body:    #41506B;
  --muted:   #74829B;
  --on-dark: #E8EDF5;
  --on-dark-muted: #9DAAC2;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,32,58,.06), 0 2px 8px rgba(16,32,58,.05);
  --shadow:    0 6px 18px rgba(16,32,58,.08), 0 2px 6px rgba(16,32,58,.05);
  --shadow-lg: 0 24px 60px -18px rgba(16,32,58,.28), 0 8px 24px -12px rgba(16,32,58,.18);
  --shadow-gold: 0 14px 30px -10px rgba(245,184,28,.5);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--ink);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ---------- Type helpers ---------- */
.display {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--body); line-height: 1.55; }

.eyebrow {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 9px;
  background: var(--gold);
  /* angled "speed bar" motif from the logo */
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
  display: inline-block;
}
.eyebrow--ondark { color: var(--gold-bright); }
.eyebrow--center { justify-content: center; }

.text-gold { color: var(--gold-deep); }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--navy-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  padding: 15px 28px;
  border-radius: 100px;
  background: var(--bg);
  color: var(--fg);
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--navy-black); }
.btn--gold:hover { background: var(--gold-bright); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-lg); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); background: transparent; transform: translateY(-2px); }
.btn--ghost-light {
  background: rgba(255,255,255,.06);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28);
}
.btn--ghost-light:hover { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.btn--lg { padding: 18px 34px; font-size: 1.05rem; }
.btn--sm { padding: 11px 20px; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 100px;
  transition: background .2s, color .2s;
  position: relative;
}
.nav-links a:hover { background: var(--paper-2); }
.nav-links a.active { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-phone {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem;
  color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.nav-phone svg { width: 17px; height: 17px; color: var(--gold-deep); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.hamburger span + span { margin-top: 6px; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 78px 0 auto 0; z-index: 55;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 18px 28px 26px; box-shadow: var(--shadow-lg);
  transform: translateY(-120%); transition: transform .35s var(--ease);
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.05rem;
  padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.82rem;
  padding: 8px 15px; border-radius: 100px;
  background: var(--paper-2); color: var(--ink);
}
.pill--ghost { background: rgba(255,255,255,.08); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.pill svg { width: 15px; height: 15px; }

/* rating stars */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Image slots / placeholders ---------- */
/* Empty state reads as an intentional, branded "photo goes here" frame.
   Once the user drops an image it covers this entirely. */
image-slot {
  display: block; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(32,56,90,.06) 0 13px, rgba(32,56,90,.11) 13px 26px),
    linear-gradient(160deg, #eef2f8, #e3e9f2);
  box-shadow: inset 0 0 0 1px rgba(32,56,90,.08);
}
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #1c3252, #0e1f38);
  color: rgba(255,255,255,.55);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-black); color: var(--on-dark); padding: 80px 0 34px; }
.site-footer a { color: var(--on-dark-muted); transition: color .2s; }
.site-footer a:hover { color: var(--gold-bright); }
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-logo { height: 38px; margin-bottom: 20px; }
.foot-col h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.96rem; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.85rem; color: var(--on-dark-muted); gap: 16px; flex-wrap: wrap; }
.foot-social { display: flex; gap: 10px; }
.foot-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: var(--on-dark);
}
.foot-social a:hover { background: var(--gold); color: var(--navy-black); }
.foot-social svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
/* Content is visible by default; only hidden once JS confirms it can reveal it
   (script.js adds .js-reveal to <html>). Guarantees no blank page if the
   IntersectionObserver never fires, JS is off, or in print/PDF. */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal { opacity: 0; transform: translateY(26px); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Speed-bar divider motif ---------- */
.speedbar { display: inline-flex; gap: 6px; }
.speedbar i {
  width: 34px; height: 7px; background: var(--gold);
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
}
.speedbar i:nth-child(2) { width: 22px; opacity: .7; }
.speedbar i:nth-child(3) { width: 12px; opacity: .45; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 26px; }
.flex { display: flex; }
.eq { display: flex; flex-direction: column; height: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav-links, .nav-phone { display: none; }
  .hamburger { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}
