/* ============================================================
   MAISON ATLAS — client site styles
   (brand logo + language switch styles live in styles.css, shared)
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: oklch(0.165 0.012 65 / 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 0.92rem; color: var(--muted); font-weight: 500; transition: color .15s, transform .15s; position: relative; white-space: nowrap; }
.site-nav a:hover { color: var(--text); transform: translateY(-1px); }
.site-nav a::before { content: ""; position: absolute; height: 1px; inset-inline: 0; bottom: -8px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; opacity: .8; }
.site-nav a:hover::before, .site-nav a.active::before { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.admin-link { font-size: 0.85rem; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-link:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg image-slot { width: 100% !important; height: 100% !important; display: block; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, oklch(0.165 0.012 65 / 0.55) 0%, oklch(0.165 0.012 65 / 0.35) 40%, oklch(0.165 0.012 65 / 0.92) 100%),
    radial-gradient(120% 80% at 20% 10%, transparent, oklch(0.165 0.012 65 / 0.5));
}
.hero-inner { position: relative; z-index: 2; }

/* classic (centered) */
.hero.classic .hero-inner { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 80px; max-width: 920px; }
.hero.classic .hero-title { font-size: clamp(3rem, 7vw, 5.6rem); }

/* split */
.hero.split .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; min-height: 84vh; padding: 100px 0 80px; }
.hero.split .hero-photo { position: relative; height: 60vh; min-height: 440px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }
.hero.split .hero-photo image-slot { width: 100% !important; height: 100% !important; }
.hero.split .hero-title { font-size: clamp(2.8rem, 5vw, 4.6rem); }
.hero.split .hero-scrim { display: none; }
.hero.split .hero-bg { display: none; }

/* minimal */
.hero.minimal .hero-inner { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 70px; max-width: 1000px; }
.hero.minimal .hero-scrim { background: linear-gradient(120deg, var(--bg) 55%, transparent); }
.hero.minimal .hero-bg { left: 55%; opacity: 0.5; }
.hero.minimal .hero-title { font-size: clamp(3rem, 6.5vw, 5.2rem); }

.hero-title { line-height: 1.02; color: var(--text); margin: 22px 0 0; white-space: pre-line; }
.hero-title em { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 560px; margin-top: 26px; line-height: 1.6; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 56px; margin-top: 56px; padding-top: 34px; border-top: 1px solid var(--border-soft); }
.stat .stat-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; }
.stat .stat-lbl { font-size: 0.82rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ---------- Section heads ---------- */
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-top: 14px; color: var(--text); }
.sec-sub { font-size: 1.06rem; color: var(--muted); margin-top: 14px; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  position: relative; padding: 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, background .25s;
  overflow: hidden; text-align: start;
}
.svc-card:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--surface-2); box-shadow: 0 18px 42px oklch(0 0 0 / 0.18); }
.svc-card .svc-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 13px; border: 1px solid var(--border);
  font-size: 1.4rem; color: var(--accent); margin-bottom: 22px;
  background: oklch(0.81 0.078 80 / 0.08);
}
.svc-card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--text); }
.svc-card p { color: var(--muted); margin-top: 10px; font-size: 0.97rem; line-height: 1.55; }
.svc-card .svc-req {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent); opacity: 0; transform: translateY(4px);
  transition: opacity .25s, transform .25s;
}
.svc-card:hover .svc-req { opacity: 1; transform: none; }
[dir="rtl"] .svc-card .svc-req svg { transform: scaleX(-1); }

.svc-card.span2 { grid-column: span 1; }

/* ---------- Fleet ---------- */
.fleet-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 34px; }
.fleet-tab {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border);
  font-size: 0.88rem; font-weight: 600; color: var(--muted); transition: all .18s;
}
.fleet-tab:hover { color: var(--text); border-color: var(--accent); }
.fleet-tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.veh-card {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border-soft); transition: transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.veh-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 42px oklch(0 0 0 / 0.18); }
.veh-photo { position: relative; }
.veh-class {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  padding: 4px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: oklch(0.165 0.012 65 / 0.7); color: var(--accent); backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}
[dir="rtl"] .veh-class { left: auto; right: 12px; }
.veh-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.veh-body h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--text); }
.veh-body .veh-desc { color: var(--faint); font-size: 0.85rem; margin-top: 3px; }
.veh-specs { display: flex; gap: 18px; margin: 16px 0; color: var(--muted); font-size: 0.88rem; }
.veh-specs .spec { display: inline-flex; align-items: center; gap: 7px; }
.veh-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.veh-price { line-height: 1.1; }
.veh-price .from { font-size: 0.72rem; color: var(--faint); display: block; }
.veh-price .amt { font-family: var(--font-display); font-size: 1.5rem; color: var(--text); }
.veh-price .per { font-size: 0.78rem; color: var(--muted); }

/* ---------- Request form ---------- */
.book-section { background: var(--bg-2); border-top: 1px solid var(--border-soft); }
.book-card {
  max-width: 760px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 40px; box-shadow: var(--shadow-2);
}
.steps { display: flex; gap: 8px; margin-bottom: 30px; }
.step-pip { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.step-pip .bar { height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.step-pip.active .bar, .step-pip.done .bar { background: var(--accent); }
.step-pip .lbl { font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 600; transition: color .3s; }
.step-pip.active .lbl { color: var(--accent); }
.step-pip.done .lbl { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.form-err { color: var(--st-refused); font-size: 0.78rem; }

/* service / vehicle chooser chips */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  text-align: start; padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-2); transition: all .18s;
  display: flex; align-items: center; gap: 14px;
}
.choice:hover { border-color: var(--accent); }
.choice.sel { border-color: var(--accent); background: oklch(0.81 0.078 80 / 0.08); }
.choice .ch-ic { font-size: 1.3rem; color: var(--accent); width: 30px; text-align: center; flex: none; }
.choice .ch-t { font-weight: 600; color: var(--text); font-size: 0.98rem; }
.choice .ch-d { font-size: 0.8rem; color: var(--faint); }

/* confirmation */
.confirm { text-align: center; padding: 20px 10px; }
.confirm .seal {
  width: 80px; height: 80px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; color: var(--accent);
  border: 1.5px solid var(--accent); background: oklch(0.81 0.078 80 / 0.08);
}
.confirm h2 { font-family: var(--font-display); font-size: 2.4rem; color: var(--text); }
.confirm .ref {
  display: inline-block; margin: 18px 0; padding: 12px 26px; border-radius: var(--r-md);
  background: var(--bg-2); border: 1px dashed var(--accent);
  font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.12em; color: var(--accent);
}
.confirm .ref-lbl { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.confirm p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.confirm .confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; background: var(--bg-2); position: relative; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-tag { font-family: var(--font-display); font-size: 1.5rem; color: var(--muted); max-width: 320px; margin-top: 16px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--border-soft); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
  .hero.split .hero-grid { grid-template-columns: 1fr; }
  .hero.split .hero-photo { height: 38vh; min-height: 300px; order: -1; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .site-nav { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr; }
  .form-grid, .choice-grid { grid-template-columns: 1fr; }
  .book-card { padding: 24px; }
  .hero-stats { gap: 14px 32px; }
  .stat .stat-num { font-size: 2rem; }
  .brand-sub { display: none; }
}
