/* ============================================================
   Vision Line Auto — Design System CSS
   Obsidian + Gold, editorial serif + clean sans, RTL-ready
   ============================================================ */

:root {
  /* Colors — derived from the logo */
  --obsidian: #0b0a08;
  --obsidian-2: #090806;
  --ink: #15120e;
  --ink-2: #1e1a14;
  --ink-line: #2a251c;
  --gold: #d4a64a;
  --gold-bright: #f0c878;
  --gold-deep: #9c7024;
  --chrome: #c6cbd1;
  --porcelain: #f3eee2;
  --porcelain-dim: #c9c2b2;
  --porcelain-faint: #948c78;
  --danger: #d9694f;

  /* Type */
  --font-display: "Instrument Serif", "Amiri", serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", -apple-system, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.75rem, 1.4rem + 1.5vw, 2.25rem);
  --fs-xl: clamp(2.25rem, 1.7rem + 2.5vw, 3.25rem);
  --fs-2xl: clamp(3rem, 2rem + 4.5vw, 4.75rem);
  --fs-3xl: clamp(3.5rem, 2rem + 7vw, 6.5rem);

  /* Space */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4.5rem;
  --sp-7: 6rem;
  --sp-8: 9rem;

  --radius-sm: 2px;
  --radius-md: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
  --border-hair: 1px solid rgba(212, 166, 74, 0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--obsidian);
  color: var(--porcelain);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* Visible focus for keyboard nav */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-5); } }

/* ---------- Large screens: laptop → desktop → TV / 4K ---------- */
@media (min-width: 1600px) {
  :root { --container: 1400px; }
  html { font-size: 17.5px; }
}
@media (min-width: 2000px) {
  :root { --container: 1600px; --fs-3xl: clamp(4.5rem, 2rem + 8vw, 8rem); }
  html { font-size: 19px; }
  .service-icon { width: 64px; height: 64px; }
  .brand img { height: 128px; }
  .footer-brand img { height: 128px; }
}
@media (min-width: 2800px) {
  /* very large / TV-class displays viewed from a distance */
  :root { --container: 1900px; }
  html { font-size: 22px; }
  .whatsapp-float { width: 70px; height: 70px; }
  .whatsapp-float svg { width: 32px; height: 32px; }
}

.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;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: var(--sp-2);
  background: var(--gold); color: var(--obsidian); padding: 0.75rem 1.25rem;
  z-index: 999; border-radius: var(--radius-sm); font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
[dir="rtl"] .eyebrow::before { order: 2; }

/* ---------- The Gold Thread (signature motif) ---------- */
.thread {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}
[dir="rtl"] .thread { transform-origin: right center; }
.thread.in-view { transform: scaleX(1); }
.thread::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 6px; height: 6px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(45deg);
}

.section-divider {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px) { .section-divider { padding-inline: var(--sp-5); } }

/* corner-bracket frame for photos (echoes the crest linework) */
.framed {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.framed picture { display: block; width: 100%; height: 100%; }
.framed img { width: 100%; height: 100%; object-fit: cover; }
.framed::before, .framed::after,
.framed .corner-tl, .framed .corner-br {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--gold);
  z-index: 2;
  pointer-events: none;
}
.framed::before {
  top: 10px; left: 10px;
  border-top: 1.5px solid var(--gold);
  border-left: 1.5px solid var(--gold);
}
.framed::after {
  bottom: 10px; right: 10px;
  border-bottom: 1.5px solid var(--gold);
  border-right: 1.5px solid var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95rem 1.9rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  min-height: 44px;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--obsidian);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 24px -12px rgba(212,166,74,0.55);
}
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline {
  border-color: rgba(212,166,74,0.5);
  color: var(--porcelain);
  background: rgba(212,166,74,0.06);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(212,166,74,0.12); }
.btn-ghost {
  color: var(--porcelain-dim);
}
.btn-ghost:hover { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--sp-2);
  background: rgba(11,10,8,0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(11,10,8,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,166,74,0.18);
  padding-block: 0.7rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.brand-group { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand-mark { display: block; line-height: 0; }
.brand img { height: 112px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.brand-word strong {
  font-family: var(--font-display);
  font-size: 1.32rem;
  letter-spacing: 0.02em;
  color: var(--porcelain);
  white-space: nowrap;
}
.brand-word span {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: var(--sp-4); }
  .main-nav a {
    position: relative;
    font-size: var(--fs-sm);
    color: var(--porcelain-dim);
    padding-block: 0.3rem;
    transition: color 0.25s var(--ease);
  }
  .main-nav a::after {
    content: "";
    position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
  }
  .main-nav a:hover { color: var(--porcelain); }
  .main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
}

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.lang-switch {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: var(--fs-xs); letter-spacing: 0.08em;
  border: 1px solid rgba(212,166,74,0.35);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
}
.lang-switch a { padding: 0.15rem 0.4rem; color: var(--porcelain-faint); border-radius: 2px; }
.lang-switch a.active { color: var(--obsidian); background: var(--gold); }
.lang-switch a:hover:not(.active) { color: var(--gold-bright); }

.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 8px;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--porcelain); transition: all 0.3s var(--ease); }
@media (min-width: 992px) { .hamburger { display: none; } }

/* Below desktop nav breakpoint the header has no room for the scrolled-state
   CTA button once brand + lang-switch + hamburger are all present -- it was
   pushing the hamburger itself off-screen. Hide it on mobile/tablet; the
   WhatsApp button and the "Contact" link in the mobile drawer cover the same need. */
@media (max-width: 991.98px) {
  #headerCta { display: none !important; }
}

/* On the narrowest phones, even without the CTA, brand + lang-switch +
   hamburger were still ~20px too wide for the viewport. Tighten spacing so
   the hamburger never gets pushed off-screen. */
@media (max-width: 479.98px) {
  .header-inner { gap: 0.6rem; padding-inline: 1rem; }
  .header-actions { gap: 0.6rem; }
}
@media (max-width: 374.98px) {
  .brand-word span { display: none; }
  .brand img { height: 78px; }
  .footer-brand img { height: 78px; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--obsidian);
  display: flex; flex-direction: column;
  padding: 6rem var(--sp-3) var(--sp-3);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ink-line);
  color: var(--porcelain);
}
@media (min-width: 992px) { .mobile-nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: var(--sp-6);
  overflow: hidden;
  background: var(--obsidian);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(212,166,74,0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%, rgba(212,166,74,0.08), transparent 60%),
    linear-gradient(180deg, var(--obsidian-2) 0%, var(--obsidian) 55%, var(--ink) 130%);
}
.hero-bg .grain {
  position: absolute; inset: 0; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
.hero-bg .weave {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(212,166,74,0.05) 0px, rgba(212,166,74,0.05) 1px, transparent 1px, transparent 90px),
    repeating-linear-gradient(25deg, rgba(198,203,209,0.035) 0px, rgba(198,203,209,0.035) 1px, transparent 1px, transparent 120px);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
}
.hero-eyebrow { opacity: 0; transform: translateY(10px); animation: rise 0.8s var(--ease) 0.15s forwards; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-3xl);
  line-height: 1.03;
  color: var(--porcelain);
  margin-block: var(--sp-3) var(--sp-2);
  opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease) 0.35s forwards;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .thread-lead {
  width: 180px;
  opacity: 0;
  animation: fadein 0.6s var(--ease) 0.9s forwards;
}
.hero-lede {
  font-size: var(--fs-md);
  color: var(--porcelain-dim);
  max-width: 60ch;
  margin-block: var(--sp-3) var(--sp-4);
  opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) 0.55s forwards;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) 0.72s forwards;
}
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: var(--border-hair);
  opacity: 0; transform: translateY(14px); animation: rise 0.9s var(--ease) 0.9s forwards;
}
.hero-badge { display: flex; align-items: center; gap: 0.6rem; }
.hero-badge svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.hero-badge span { font-size: var(--fs-xs); color: var(--porcelain-dim); letter-spacing: 0.02em; max-width: 16ch; }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes fadein { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero h1, .hero-lede, .hero-ctas, .hero-badges, .hero .thread-lead { animation: none !important; opacity: 1 !important; transform: none !important; }
}

.scroll-cue {
  position: absolute; bottom: var(--sp-3); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--porcelain-faint); font-size: var(--fs-xs); letter-spacing: 0.15em;
  opacity: 0; animation: fadein 1s var(--ease) 1.3s forwards;
}
.scroll-cue .line { width: 1px; height: 32px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(1); opacity: 0.6; } 50% { transform: scaleY(0.5); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue { animation: fadein 0.5s forwards; } .scroll-cue .line { animation: none; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.27s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.38s; }
/* Photo reveal: gentle fade + soft zoom-out as real photos enter the viewport.
   Applied to the .framed wrapper (not the img) so it never fights the
   existing hover-zoom transform on the img itself. */
.photo-reveal {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
}
.photo-reveal.in-view { opacity: 1; transform: scale(1); }
.gallery-item:nth-child(2) .photo-reveal.in-view { transition-delay: 0.08s; }
.gallery-item:nth-child(3) .photo-reveal.in-view { transition-delay: 0.16s; }
.gallery-item:nth-child(4) .photo-reveal.in-view { transition-delay: 0.24s; }
.gallery-item:nth-child(5) .photo-reveal.in-view { transition-delay: 0.32s; }
.gallery-item:nth-child(6) .photo-reveal.in-view { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .photo-reveal { opacity: 1 !important; transform: none !important; transition-delay: 0s !important; }
}

/* ---------- Section basics ---------- */
section { position: relative; padding-block: var(--sp-7); }
.section-head { max-width: 640px; margin-bottom: var(--sp-5); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xl);
  color: var(--porcelain);
  margin-top: var(--sp-2);
  line-height: 1.1;
}
.section-head p { color: var(--porcelain-dim); margin-top: var(--sp-2); font-size: var(--fs-md); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head.centered .eyebrow { justify-content: center; }

.bg-ink { background: var(--ink); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: var(--border-hair);
}
@media (min-width: 860px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  padding: var(--sp-5) var(--sp-3);
  border-bottom: var(--border-hair);
  border-inline-end: none;
  position: relative;
  transition: background 0.35s var(--ease);
}
@media (min-width: 860px) {
  .service-card { border-inline-end: var(--border-hair); }
  .service-card:last-child { border-inline-end: none; }
}
.service-card:hover { background: rgba(212,166,74,0.035); }
.service-photo { aspect-ratio: 4/5; margin-bottom: var(--sp-4); border: var(--border-hair); }
.service-photo img { filter: saturate(0.92); }
.service-card:hover .service-photo img { transform: scale(1.045); }

/* Orbit dot: a small gold ball travelling once around the inside edge of
   each service frame — a quiet, continuous accent echoing "Le Filet d'Or". */
.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 6px 1px rgba(240, 200, 120, 0.65);
  top: 0;
  left: 0;
  animation: orbit-frame 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.service-card:nth-child(2) .orbit-dot { animation-delay: -2.6s; }
.service-card:nth-child(3) .orbit-dot { animation-delay: -5.2s; }
@keyframes orbit-frame {
  0%   { top: 0; left: 0; }
  25%  { top: 0; left: calc(100% - 6px); }
  50%  { top: calc(100% - 6px); left: calc(100% - 6px); }
  75%  { top: calc(100% - 6px); left: 0; }
  100% { top: 0; left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-dot { display: none; }
}
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(212,166,74,0.4);
  border-radius: 50%;
  margin-bottom: var(--sp-3);
  margin-top: calc(var(--sp-4) * -1 - 28px);
  position: relative;
  z-index: 3;
  background: var(--obsidian);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover .service-icon { border-color: var(--gold); transform: rotate(6deg); }
.service-icon svg { width: 26px; height: 26px; color: var(--gold); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--porcelain);
  margin-bottom: 0.9rem;
}
.service-card p { color: var(--porcelain-dim); font-size: var(--fs-sm); margin-bottom: 1.1rem; }
.service-card p + p { margin-top: -0.6rem; }
.service-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.service-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
[dir="rtl"] .service-link svg { transform: scaleX(-1); }
.service-card:hover .service-link svg { transform: translateX(4px); }
[dir="rtl"] .service-card:hover .service-link svg { transform: scaleX(-1) translateX(4px); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.about-media { position: relative; }
.about-media .framed { aspect-ratio: 4/5; border: var(--border-hair); }
.about-media .framed.float {
  position: absolute; width: 55%; aspect-ratio: 4/5;
  bottom: -10%; inset-inline-start: -12%;
  border: 3px solid var(--obsidian);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.about-text .lede { font-size: var(--fs-md); color: var(--porcelain); margin-block: var(--sp-2) var(--sp-3); font-family: var(--font-display); font-size: 1.6rem; line-height: 1.35; }
.about-list { display: grid; gap: var(--sp-2); margin-block: var(--sp-4); }
.about-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--porcelain-dim); font-size: var(--fs-sm); }
.about-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.stat-row { display: flex; gap: var(--sp-5); margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: var(--border-hair); }
.stat b { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold-bright); display: block; font-weight: 400; }
.stat span { font-size: var(--fs-xs); color: var(--porcelain-dim); letter-spacing: 0.04em; }

/* ---------- Gallery (contact-sheet strip) ---------- */
.gallery-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--sp-3);
  margin-inline: calc(var(--sp-3) * -1);
  padding-inline: var(--sp-3);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
@media (min-width: 640px) { .gallery-strip { grid-auto-columns: 46%; } }
@media (min-width: 992px) { .gallery-strip { grid-auto-columns: 30%; margin-inline: calc(var(--sp-5) * -1); padding-inline: var(--sp-5); } }
.gallery-item { scroll-snap-align: start; }
.gallery-item .framed { aspect-ratio: 3/4; border: var(--border-hair); }
.gallery-item .cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.15em 0.6em; padding-top: 0.7rem; font-size: var(--fs-xs); color: var(--porcelain-faint); letter-spacing: 0.04em; }
.gallery-item .cap b { color: var(--gold); font-weight: 600; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  padding: var(--sp-4);
  border: var(--border-hair);
  background: var(--ink);
  position: relative;
}
.testi-quote { font-family: var(--font-display); font-size: 2.6rem; color: var(--gold); line-height: 0.5; display: block; margin-bottom: 1rem; }
.testi-card p.body { color: var(--porcelain-dim); font-size: var(--fs-sm); margin-bottom: var(--sp-3); min-height: 4.5em; }
.testi-person { display: flex; align-items: center; gap: 0.8rem; padding-top: var(--sp-2); border-top: 1px solid var(--ink-line); }
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  display: flex; align-items: center; justify-content: center;
  color: var(--obsidian); font-weight: 700; font-size: 0.85rem;
  font-family: var(--font-display);
}
.testi-person b { display: block; font-size: var(--fs-sm); color: var(--porcelain); font-weight: 600; }
.testi-person span { font-size: var(--fs-xs); color: var(--porcelain-faint); }
.testi-source { display: flex; align-items: center; gap: 0.4rem; }
.testi-note {
  margin-top: var(--sp-4); text-align: center; font-size: var(--fs-xs); color: var(--porcelain-faint);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: var(--sp-6); } }
.contact-rows { display: grid; gap: 0; margin-top: var(--sp-4); border-top: var(--border-hair); }
.contact-row {
  display: flex; align-items: center; gap: var(--sp-2);
  padding-block: var(--sp-2);
  border-bottom: var(--border-hair);
  color: var(--porcelain);
  transition: padding-inline-start 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-row:hover { color: var(--gold-bright); padding-inline-start: 0.4rem; }
.contact-row svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.contact-row .label { font-size: var(--fs-xs); color: var(--porcelain-faint); letter-spacing: 0.08em; text-transform: uppercase; display: block; }
.contact-row .value { font-size: var(--fs-base); }
.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: var(--border-hair); border-radius: 50%; color: var(--gold);
  transition: all 0.25s var(--ease);
}
.social-btn:hover { background: var(--gold); color: var(--obsidian); }
.social-btn svg { width: 19px; height: 19px; }

.map-frame { border: var(--border-hair); position: relative; min-height: 320px; background: var(--ink); }
.map-frame iframe { width: 100%; height: 320px; border: 0; filter: grayscale(0.35) invert(0.92) contrast(0.9); display: block; }
@media (min-width: 992px) { .map-frame iframe { height: 100%; min-height: 420px; } .map-frame { min-height: 420px; } }
.map-placeholder {
  width: 100%; height: 100%; min-height: 320px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(212,166,74,0.10), transparent 55%),
    repeating-linear-gradient(115deg, rgba(212,166,74,0.05) 0px, rgba(212,166,74,0.05) 1px, transparent 1px, transparent 70px);
  border: none; color: var(--porcelain-dim); text-align: center; padding: var(--sp-3);
  transition: background 0.3s var(--ease);
}
.map-placeholder:hover { background-color: rgba(212,166,74,0.04); }
.map-placeholder svg { width: 34px; height: 34px; color: var(--gold); }
.map-placeholder span { font-family: var(--font-display); font-size: 1.2rem; color: var(--porcelain); }
.map-placeholder small { font-size: var(--fs-xs); color: var(--porcelain-faint); max-width: 32ch; }
.map-placeholder small a { color: var(--gold); text-decoration: underline; }

.contact-form { display: grid; gap: var(--sp-2); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--porcelain-dim); text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--ink);
  border: 1px solid var(--ink-line);
  color: var(--porcelain);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s var(--ease);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: var(--fs-xs); color: var(--porcelain-faint); margin-top: 0.3rem; }
.form-status { font-size: var(--fs-sm); margin-top: 0.6rem; min-height: 1.4em; }
.form-status[data-state="ok"] { color: #8fce9c; }
.form-status[data-state="err"] { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian-2); border-top: var(--border-hair); padding-block: var(--sp-6) var(--sp-4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: var(--sp-2); }
.footer-brand img { height: 112px; margin-bottom: 0; }
.footer-brand p { color: var(--porcelain-faint); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; color: var(--porcelain); margin-bottom: var(--sp-2); }
.footer-col a, .footer-col p { display: block; color: var(--porcelain-dim); font-size: var(--fs-sm); padding-block: 0.35rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--ink-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2);
  font-size: var(--fs-xs); color: var(--porcelain-faint);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--sp-3);
  inset-inline-end: var(--sp-3);
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px -10px rgba(212,166,74,0.6);
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 27px; height: 27px; color: var(--obsidian); position: relative; z-index: 2; }
.whatsapp-float::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.6;
  animation: sonar 2.6s ease-out infinite;
}
@keyframes sonar {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ============================================================
   Motion layer — "the site is alive"
   All continuous/idle motion here is gated by prefers-reduced-motion
   ============================================================ */

/* Scroll progress thread, spanning the very top of the viewport */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}
[dir="rtl"] .scroll-progress { transform-origin: right center; }

/* Shimmering gold gradient text (hero emphasis word) */
.hero h1 em {
  background-size: 220% 100%;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Logo shine sweep */
.brand-mark { position: relative; overflow: hidden; }
.brand img { position: relative; }
.brand-mark::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(240,200,120,0.28), transparent);
  transform: skewX(-20deg);
  animation: shine 7s ease-in-out infinite;
  animation-delay: 2s;
  pointer-events: none;
}
@keyframes shine {
  0%, 15% { left: -60%; }
  35%, 100% { left: 130%; }
}

/* Hero cursor spotlight (desktop, mouse-reactive) */
.hero-bg .spotlight {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(212,166,74,0.10), transparent 60%);
  transition: background 0.3s ease-out;
}

/* Continuous light travelling along section dividers */
.thread { overflow: visible; }
.thread::before {
  content: "";
  position: absolute; top: 0; left: 0; height: 100%; width: 26%;
  background: linear-gradient(90deg, transparent, rgba(240,200,120,0.9), transparent);
  opacity: 0;
  animation: travel 4.5s ease-in-out infinite;
  animation-delay: 1.4s;
}
.thread.in-view::before { opacity: 0.9; }
@keyframes travel {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(420%); }
}

/* Idle breathing ring on service icons + hero badge icons */
.service-icon { position: relative; }
.service-icon::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(212,166,74,0.35);
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.5; }
  50% { transform: scale(1.06); opacity: 0; }
}

/* Magnetic buttons (JS sets --mx/--my via inline transform); shine sweep on hover */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::before {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -75%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
}
.btn:hover::before { left: 125%; }

/* Service card tilt (JS-driven transform), smoothed by transition */
.service-card { transition: background 0.35s var(--ease), transform 0.35s var(--ease); transform-style: preserve-3d; will-change: transform; }

/* Gallery image hover zoom + drag cue */
.framed img { transition: transform 0.7s var(--ease); }
.gallery-item:hover .framed img { transform: scale(1.07); }
.about-media .framed img { transition: transform 0.7s var(--ease); }
.about-media:hover .framed img { transform: scale(1.04); }

.gallery-hint {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); color: var(--porcelain-faint); letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}
.gallery-hint svg { width: 15px; height: 15px; color: var(--gold); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
[dir="rtl"] .gallery-hint svg { animation-name: nudge-rtl; }
@keyframes nudge-rtl {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}

/* Testimonial card lift */
.testi-card { transition: transform 0.4s var(--ease), border-color 0.4s var(--ease); }
.testi-card:hover { transform: translateY(-6px); border-color: rgba(212,166,74,0.55); }

/* Nav link underline idle shimmer removed in favor of hover-only (kept sober) */

@media (prefers-reduced-motion: reduce) {
  .hero h1 em { animation: none; }
  .brand-mark::after { display: none; }
  .hero-bg .spotlight { display: none; }
  .thread::before { display: none; }
  .service-icon::after { display: none; }
  .btn::before { display: none; }
  .gallery-hint svg { animation: none; }
  .whatsapp-float::before { display: none; }
  .service-card, .testi-card { transition: none; }
}
@media (hover: none) {
  /* touch devices: drop hover-only micro interactions that need a pointer */
  .service-card { transform: none !important; }
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed; z-index: 300;
  left: var(--sp-2); right: var(--sp-2); bottom: var(--sp-2);
  max-width: 560px;
  margin-inline: auto;
  background: var(--ink);
  border: var(--border-hair);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.7);
  padding: var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-2);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); opacity: 1; }
.cookie-banner p { font-size: var(--fs-sm); color: var(--porcelain-dim); margin: 0; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cookie-banner .btn { padding: 0.7rem 1.3rem; font-size: var(--fs-xs); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: opacity 0.3s ease; transform: none; } }

/* ---------- Legal pages (cookie policy) ---------- */
.legal-page { padding-top: 9rem; padding-bottom: var(--sp-7); }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.legal-page h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--gold-bright); margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.legal-page p, .legal-page li { color: var(--porcelain-dim); font-size: var(--fs-base); line-height: 1.75; }
.legal-page ul { display: grid; gap: 0.6rem; margin-top: var(--sp-2); }
.legal-page li { display: flex; gap: 0.7rem; }
.legal-page li::before { content: "—"; color: var(--gold); flex-shrink: 0; }
.legal-page .updated { font-size: var(--fs-xs); color: var(--porcelain-faint); letter-spacing: 0.04em; margin-bottom: var(--sp-4); }
.legal-page table { width: 100%; border-collapse: collapse; margin-top: var(--sp-2); font-size: var(--fs-sm); }
.legal-page th, .legal-page td { text-align: start; padding: 0.8rem; border-bottom: 1px solid var(--ink-line); color: var(--porcelain-dim); }
.legal-page th { color: var(--gold); font-weight: 600; font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.legal-page .back-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: var(--sp-4); color: var(--gold); font-size: var(--fs-sm); }

/* ---------- Utility ---------- */
.italic { font-style: italic; }
.text-gold { color: var(--gold); }
.mt-0 { margin-top: 0; }
