:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Limestone + oak + Mosspa purple */
  --color-bg: #f4efe6;
  --color-surface: #faf7f1;
  --color-surface-2: #fffdf9;
  --color-surface-offset: #ebe4d6;
  --color-surface-deep: #2a2133;
  --color-divider: oklch(0.3 0.02 80 / 0.12);
  --color-border: oklch(0.3 0.02 80 / 0.18);
  --color-text: #27241e;
  --color-text-muted: #675f52;
  --color-text-faint: #9a9284;
  --color-text-inverse: #f7f3ea;
  --color-primary: #5a2d82;
  --color-primary-hover: #4a2470;
  --color-primary-active: #3b1c5a;
  --color-primary-highlight: #ece3f5;
  --color-wood: #8a6440;
  --color-success: #3d6b26;
  --color-error: #a3332f;

  --radius-sm: 0.25rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1.25rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.3 0.03 70 / 0.08);
  --shadow-md: 0 6px 18px oklch(0.3 0.03 70 / 0.1);
  --shadow-lg: 0 18px 40px oklch(0.3 0.03 70 / 0.14);
  --content-wide: 1240px;
  --gutter: clamp(var(--space-5), 4vw, var(--space-12));
  --header-h: 72px;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}
html[lang='ar'] {
  --font-display: 'IBM Plex Sans Arabic', 'Switzer', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Switzer', sans-serif;
}
html { scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body { font-family: var(--font-body); }
a { color: inherit; }

.container { width: 100%; max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; inset-inline-start: var(--space-4); top: -100px; background: var(--color-primary); color: var(--color-text-inverse); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); z-index: 100; }
.skip-link:focus { top: var(--space-3); }

/* ---------- Typography ---------- */
.display, h1.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
html[lang='ar'] .display { letter-spacing: 0; line-height: 1.25; font-weight: 600; }
.h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; }
html[lang='ar'] .h2 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
.h3 { font-size: var(--text-lg); font-weight: 600; line-height: 1.25; }
.eyebrow { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-wood); }
html[lang='ar'] .eyebrow { letter-spacing: 0; text-transform: none; font-size: var(--text-sm); }
.lede { font-size: var(--text-base); color: var(--color-text-muted); max-width: 58ch; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }
.xs { font-size: var(--text-xs); }

/* ---------- Icons ---------- */
svg.ico { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 48px; padding: var(--space-3) var(--space-6); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-primary:active { background: var(--color-primary-active); }
.btn-ghost { border-color: var(--color-border); color: var(--color-text); background: transparent; }
.btn-ghost:hover { background: var(--color-surface-offset); }
.btn-light { background: var(--color-surface-2); color: var(--color-text); }
.btn-light:hover { background: var(--color-surface-offset); }
.btn-outline-light { border-color: oklch(1 0 0 / 0.5); color: var(--color-text-inverse); }
.btn-outline-light:hover { background: oklch(1 0 0 / 0.12); }
.btn-sm { min-height: 44px; padding: var(--space-2) var(--space-5); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); text-decoration: none; min-height: 44px; }
.link-arrow:hover { color: var(--color-primary-hover); text-decoration: underline; text-underline-offset: 4px; }
html[dir='rtl'] .flip { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: oklch(from var(--color-bg) l c h / 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--color-divider); }
.site-header .container { display: flex; align-items: center; gap: var(--space-6); height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.wordmark img { width: 200px; height: auto; display: block; }
@media (max-width: 560px) { .wordmark img { width: 150px; } }
.nav { display: flex; gap: var(--space-1); margin-inline-start: auto; }
.nav a { font-size: var(--text-sm); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); color: var(--color-text-muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--color-text); background: var(--color-surface-offset); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.lang { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 3px; }
.lang a { font-size: var(--text-xs); font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: var(--radius-full); color: var(--color-text-muted); min-width: 36px; text-align: center; }
.lang a[aria-current='true'] { background: var(--color-text); color: var(--color-text-inverse); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-md); }
.menu-btn svg { width: 24px; height: 24px; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .mobile-nav { display: block; position: fixed; inset: var(--header-h) 0 auto 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); padding: var(--space-4) var(--gutter) var(--space-6); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 200ms ease, transform 200ms ease, visibility 200ms; }
  .mobile-nav.open { opacity: 1; transform: none; visibility: visible; }
  .mobile-nav a:not(.btn) { display: block; padding: var(--space-3) 0; font-size: var(--text-base); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
  .mobile-nav .btn { margin-top: var(--space-4); }
}
@media (max-width: 560px) { .header-actions .btn-quote { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--color-text-inverse); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, oklch(0.2 0.03 310 / 0.78) 0%, oklch(0.2 0.03 310 / 0.5) 42%, oklch(0.2 0.03 310 / 0.05) 75%), linear-gradient(0deg, oklch(0.18 0.03 310 / 0.55) 0%, transparent 40%); }
html[dir='rtl'] .hero::before { background: linear-gradient(270deg, oklch(0.2 0.03 310 / 0.78) 0%, oklch(0.2 0.03 310 / 0.5) 42%, oklch(0.2 0.03 310 / 0.05) 75%), linear-gradient(0deg, oklch(0.18 0.03 310 / 0.55) 0%, transparent 40%); }
.hero .container { padding-block: var(--space-24) clamp(var(--space-10), 6vw, var(--space-20)); }
.hero .eyebrow { color: #dccbef; }
.hero h1 { font-size: var(--text-3xl); max-width: 15ch; margin-block: var(--space-4) var(--space-5); }
.hero p { font-size: var(--text-base); max-width: 50ch; color: oklch(0.95 0.01 85 / 0.88); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-sub { position: relative; min-height: 56vh; }
.hero-sub h1 { font-size: var(--text-2xl); max-width: 20ch; }

/* ---------- Proof strip ---------- */
.proof { background: var(--color-surface-deep); color: var(--color-text-inverse); }
.proof ul { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.proof li { padding: var(--space-6) var(--space-4); border-inline-start: 1px solid oklch(1 0 0 / 0.12); display: flex; flex-direction: column; gap: 2px; }
.proof li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.proof b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; line-height: 1.1; }
.proof span { font-size: var(--text-xs); color: oklch(0.92 0.01 85 / 0.72); }
@media (max-width: 860px) {
  .proof ul { grid-template-columns: repeat(2, 1fr); }
  .proof li { border-inline-start: 0; border-top: 1px solid oklch(1 0 0 / 0.12); padding-inline: 0; }
  .proof li:nth-child(-n+2) { border-top: 0; }
  .proof li:last-child { grid-column: 1 / -1; }
  .proof b { font-size: var(--text-lg); }
  .proof li { padding-inline-end: var(--space-3); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section-tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }
.section-alt { background: var(--color-surface); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin-bottom: clamp(var(--space-8), 4vw, var(--space-12)); flex-wrap: wrap; }
.section-head > div { max-width: 640px; }
.section-head .h2 { margin-top: var(--space-3); }
.section-head .lede { margin-top: var(--space-4); }

/* Services – asymmetric */
.services { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: var(--space-5); }
.svc { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface-2); border: 1px solid var(--color-divider); display: flex; flex-direction: column; }
.svc img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.svc-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.svc-feature { grid-row: span 2; color: var(--color-text-inverse); min-height: 560px; justify-content: flex-end; }
.svc-feature img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; z-index: 0; }
.svc-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, oklch(0.18 0.03 310 / 0.86) 0%, oklch(0.18 0.03 310 / 0.25) 55%, transparent 80%); z-index: 1; }
.svc-feature .svc-body { position: relative; z-index: 2; padding: var(--space-8); flex: 0; }
.svc-feature .eyebrow { color: #dccbef; }
.svc-feature p { color: oklch(0.95 0.01 85 / 0.86); }
.svc-feature .h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.svc .tick-list { margin-top: var(--space-2); }
.svc-row { flex-direction: row; }
.svc-row img { width: 42%; aspect-ratio: auto; height: 100%; min-height: 240px; }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .svc-feature { grid-row: auto; min-height: 480px; }
  .svc-row { flex-direction: column; }
  .svc-row img { width: 100%; min-height: 0; aspect-ratio: 16/10; height: auto; }
}

.tick-list { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.tick-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.tick-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--color-primary); }
.svc-feature .tick-list svg { color: #c4a8ea; }

/* Product categories */
.cat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-5); }
.cat { grid-column: span 3; text-decoration: none; display: flex; flex-direction: column; gap: var(--space-3); }
.cat-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-offset); aspect-ratio: 3/2; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.cat h3 { font-size: var(--text-lg); font-weight: 600; }
.cat p { font-size: var(--text-sm); color: var(--color-text-muted); }
.cat .count { font-size: var(--text-xs); color: var(--color-text-faint); white-space: nowrap; }
@media (max-width: 1000px) { .cat { grid-column: span 6; } }
@media (max-width: 520px) { .cat { grid-column: 1 / -1; } }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--color-border); }
.process li { padding: var(--space-6) var(--space-5) var(--space-6) 0; position: relative; counter-increment: step; }
html[dir='rtl'] .process li { padding: var(--space-6) 0 var(--space-6) var(--space-5); }
.process li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-wood); margin-bottom: var(--space-3); }
.process li::after { content: ''; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--color-primary); }
.process h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-2); }
.process p { font-size: var(--text-sm); color: var(--color-text-muted); }
.process .dur { display: inline-block; margin-top: var(--space-3); font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); background: var(--color-primary-highlight); padding: 2px 10px; border-radius: var(--radius-full); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; border-top: 0; border-inline-start: 1px solid var(--color-border); }
  .process li, html[dir='rtl'] .process li { padding: 0 0 var(--space-8) var(--space-8); }
  html[dir='rtl'] .process li { padding: 0 var(--space-8) var(--space-8) 0; }
  .process li::after { top: 6px; inset-inline-start: -5px; }
}

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.project { background: var(--color-surface-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-divider); display: flex; flex-direction: column; }
.project img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.project-body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.project .tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.tag { font-size: var(--text-xs); padding: 3px 10px; border-radius: var(--radius-full); background: var(--color-surface-offset); color: var(--color-text-muted); }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 6vw, var(--space-20)); align-items: center; }
.split-img { border-radius: var(--radius-xl); overflow: hidden; }
.split-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.reasons { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
.reason { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--color-divider); }
.reason svg { width: 22px; height: 22px; color: var(--color-primary); margin-top: 2px; }
.reason h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-1); }
.reason p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-img img { aspect-ratio: 4/3; } }

/* Export facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-border); border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface-2); }
.fact { padding: var(--space-6); border-inline-end: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.fact:nth-child(3n) { border-inline-end: 0; }
.fact:nth-last-child(-n+3) { border-bottom: 0; }
.fact dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-faint); font-weight: 600; }
html[lang='ar'] .fact dt { text-transform: none; letter-spacing: 0; }
.fact dd { font-size: var(--text-base); font-weight: 600; margin-top: var(--space-2); }
.fact dd small { display: block; font-weight: 400; font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { border-inline-end: 1px solid var(--color-divider) !important; border-bottom: 1px solid var(--color-divider) !important; }
  .fact:nth-child(2n) { border-inline-end: 0 !important; }
  .fact:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-inline-end: 0 !important; border-bottom: 1px solid var(--color-divider) !important; }
  .fact:last-child { border-bottom: 0 !important; }
}

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-5) 0; font-size: var(--text-base); font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms ease; color: var(--color-text-muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5); color: var(--color-text-muted); font-size: var(--text-sm); }

/* CTA band */
.cta-band { background: var(--color-surface-deep); color: var(--color-text-inverse); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-16)); display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.cta-band .h2 { color: var(--color-text-inverse); }
.cta-band .lede { color: oklch(0.92 0.01 85 / 0.78); margin-top: var(--space-4); }
.cta-band .contact-lines { margin-top: var(--space-8); display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.cta-band .contact-lines a { display: inline-flex; gap: var(--space-3); align-items: center; text-decoration: none; min-height: 44px; }
.cta-band .contact-lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-band .contact-lines svg { width: 20px; height: 20px; color: #c4a8ea; }
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--text-sm); font-weight: 600; }
.field .opt { font-weight: 400; color: var(--color-text-faint); }
.input, .field select, .field textarea, .field input:not([type='radio']):not([type='checkbox']):not([type='file']) { width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); font-size: var(--text-base); color: var(--color-text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.field .err { font-size: var(--text-xs); color: var(--color-error); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--color-error); }
.on-dark .field label { color: var(--color-text-inverse); }
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { background: oklch(1 0 0 / 0.06) !important; border-color: oklch(1 0 0 / 0.22) !important; color: var(--color-text-inverse) !important; }
.on-dark .field input::placeholder, .on-dark .field textarea::placeholder { color: oklch(0.9 0.01 85 / 0.5); }
.on-dark .field select option { color: var(--color-text); }
.on-dark .field .err { color: #f0a9a2; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.form-success { display: none; grid-column: 1 / -1; padding: var(--space-6); border-radius: var(--radius-lg); background: var(--color-primary-highlight); color: var(--color-primary-active); }
.on-dark .form-success { background: oklch(1 0 0 / 0.08); color: var(--color-text-inverse); }
.form-success.show { display: block; animation: fadeUp 400ms cubic-bezier(0.16, 1, 0.3, 1); }
.form-success h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.file-drop { border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); background: var(--color-surface-2); display: flex; gap: var(--space-4); align-items: center; font-size: var(--text-sm); color: var(--color-text-muted); }
.file-drop svg { width: 24px; height: 24px; color: var(--color-primary); flex: none; }
.file-drop input { font-size: var(--text-sm); max-width: 100%; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Footer */
.site-footer { background: #1f1826; color: oklch(0.92 0.01 85 / 0.78); padding-block: var(--space-16) var(--space-8); margin-top: clamp(var(--space-16), 8vw, var(--space-24)); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-10); }
.site-footer a.wordmark { display: inline-flex; }
.site-footer .wordmark img { width: 200px; }
.site-footer h3 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: oklch(0.92 0.01 85 / 0.5); margin-bottom: var(--space-4); font-weight: 600; }
html[lang='ar'] .site-footer h3 { text-transform: none; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: var(--space-2); }
.site-footer a { text-decoration: none; display: inline-block; padding-block: 4px; }
.site-footer a:hover { color: var(--color-text-inverse); text-decoration: underline; text-underline-offset: 4px; }
.footer-base { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid oklch(1 0 0 / 0.1); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: oklch(0.92 0.01 85 / 0.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.wa-float { position: fixed; inset-inline-end: var(--space-5); bottom: var(--space-5); z-index: 60; display: inline-flex; align-items: center; gap: var(--space-2); background: #1f7a4a; color: #fff; text-decoration: none; padding: var(--space-3) var(--space-5) var(--space-3) var(--space-4); border-radius: var(--radius-full); box-shadow: var(--shadow-lg); font-size: var(--text-sm); font-weight: 600; min-height: 52px; }
.wa-float:hover { background: #17633b; }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: var(--space-3); width: 56px; height: 56px; justify-content: center; } }

/* Breadcrumb */
.crumbs { font-size: var(--text-xs); color: var(--color-text-muted); padding-block: var(--space-5); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs li:not(:last-child)::after { content: '/'; margin-inline-start: var(--space-2); color: var(--color-text-faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; padding-bottom: var(--space-16); }
.gallery-main { border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface-offset); aspect-ratio: 4/3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); }
.thumbs button { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; border: 2px solid transparent; padding: 0; }
.thumbs button[aria-pressed='true'] { border-color: var(--color-primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: calc(var(--header-h) + var(--space-6)); display: flex; flex-direction: column; gap: var(--space-5); }
.pdp-info h1 { font-size: var(--text-2xl); }
.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.badge { font-size: var(--text-xs); font-weight: 600; padding: 4px 12px; border-radius: var(--radius-full); background: var(--color-primary-highlight); color: var(--color-primary-active); }
.opt-group { border: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.opt-group legend { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); }
.opt-group legend span { font-weight: 400; color: var(--color-text-muted); }
.seg { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); background: var(--color-surface-2); transition: background var(--transition-interactive), border-color var(--transition-interactive); }
.seg input:checked + span { border-color: var(--color-primary); background: var(--color-primary-highlight); color: var(--color-primary-active); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.swatches { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--color-surface-2); box-shadow: 0 0 0 1px var(--color-border); }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--color-primary); }
.swatches input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface-2); }
.qty button { width: 44px; height: 44px; font-size: 1.25rem; }
.qty input { width: 56px; text-align: center; border: 0; background: transparent; font-size: var(--text-base); font-weight: 600; min-height: 44px; }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.pdp-actions .btn-primary { grid-column: 1 / -1; }
.note { font-size: var(--text-xs); color: var(--color-text-muted); display: flex; gap: var(--space-2); align-items: center; }
.note svg { width: 16px; height: 16px; color: var(--color-primary); flex: none; }
.toast-inline { font-size: var(--text-sm); background: var(--color-primary-highlight); color: var(--color-primary-active); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); display: none; align-items: center; justify-content: space-between; gap: var(--space-3); }
.toast-inline.show { display: flex; animation: fadeUp 300ms ease; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); }
.spec { width: 100%; font-size: var(--text-sm); }
.spec caption { text-align: start; font-size: var(--text-lg); font-weight: 600; padding-bottom: var(--space-4); }
.spec th, .spec td { text-align: start; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.spec th { font-weight: 500; color: var(--color-text-muted); width: 45%; padding-inline-end: var(--space-4); }
.spec td { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .pdp, .spec-grid { grid-template-columns: 1fr; } .pdp-info { position: static; } }

/* Packages */
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.package { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.package.featured { background: var(--color-surface-deep); color: var(--color-text-inverse); border-color: transparent; }
.package.featured .muted { color: oklch(0.92 0.01 85 / 0.7); }
.package.featured .tick-list svg { color: #c4a8ea; }
.package h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.package .btn { margin-top: auto; }
@media (max-width: 960px) { .packages { grid-template-columns: 1fr; } }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.aud { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 340px; color: var(--color-text-inverse); display: flex; align-items: flex-end; isolation: isolate; }
.aud img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.aud::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, oklch(0.18 0.03 310 / 0.85), transparent 65%); }
.aud div { padding: var(--space-6); }
.aud h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-1); }
.aud p { font-size: var(--text-sm); color: oklch(0.95 0.01 85 / 0.85); }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } .aud { min-height: 260px; } }

.scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-10); list-style: none; }
.scope li { display: flex; gap: var(--space-3); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm); }
.scope li b { display: block; font-size: var(--text-base); margin-bottom: 2px; }
.scope svg { width: 20px; height: 20px; color: var(--color-primary); flex: none; margin-top: 3px; }
@media (max-width: 700px) { .scope { grid-template-columns: 1fr; } }

/* Quote page */
.quote-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; padding-bottom: var(--space-16); }
.tabs { display: inline-flex; padding: 4px; border-radius: var(--radius-full); background: var(--color-surface-offset); margin-bottom: var(--space-8); }
.tabs button { min-height: 44px; padding: var(--space-2) var(--space-5); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); }
.tabs button[aria-selected='true'] { background: var(--color-surface-2); color: var(--color-text); box-shadow: var(--shadow-sm); }
.panel[hidden] { display: none; }
.quote-list { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-6); }
.quote-list h2 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-3); }
.ql-item { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-4); align-items: center; padding-block: var(--space-3); border-top: 1px solid var(--color-divider); }
.ql-item img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.ql-item b { font-size: var(--text-sm); display: block; }
.ql-item span { font-size: var(--text-xs); color: var(--color-text-muted); }
.ql-remove { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text-muted); }
.ql-remove:hover { background: var(--color-surface-offset); color: var(--color-error); }
.ql-remove svg { width: 18px; height: 18px; }
.ql-empty { font-size: var(--text-sm); color: var(--color-text-muted); padding-top: var(--space-2); }
.aside-card { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-4); }
.aside-card h2 { font-size: var(--text-lg); font-weight: 600; }
.contact-row { display: flex; gap: var(--space-3); align-items: center; text-decoration: none; padding: var(--space-3); border-radius: var(--radius-md); border: 1px solid var(--color-divider); min-height: 56px; }
.contact-row:hover { background: var(--color-surface-offset); }
.contact-row svg { width: 22px; height: 22px; color: var(--color-primary); flex: none; }
.contact-row b { display: block; font-size: var(--text-sm); }
.contact-row span { font-size: var(--text-xs); color: var(--color-text-muted); }
.steps-mini { list-style: none; display: grid; gap: var(--space-3); counter-reset: s; font-size: var(--text-sm); }
.steps-mini li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); }
.steps-mini li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary-highlight); color: var(--color-primary-active); font-weight: 700; font-size: var(--text-xs); display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }

.page-head { padding-block: var(--space-12) var(--space-10); }
.page-head h1 { font-size: var(--text-2xl); margin-top: var(--space-3); max-width: 22ch; }
.page-head .lede { margin-top: var(--space-4); }

/* Reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Turnkey salon showcase ---------- */
.turnkey { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-6); align-items: stretch; }
.tk-img { position: relative; border-radius: var(--radius-xl); overflow: hidden; min-height: 440px; margin: 0; background: var(--color-surface-offset); }
.tk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tk-img figcaption { position: absolute; inset-inline-start: var(--space-4); bottom: var(--space-4); background: oklch(1 0 0 / 0.9); color: var(--color-text); font-size: var(--text-xs); font-weight: 600; padding: var(--space-2) var(--space-3); border-radius: var(--radius-full); }
.zones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.zone { background: var(--color-surface-2); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-5); }
.zone .num { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em; color: var(--color-primary); }
.zone h3 { font-size: var(--text-base); font-weight: 600; margin-top: var(--space-2); line-height: 1.3; }
.zone ul { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: 6px; font-size: var(--text-sm); color: var(--color-text-muted); }
.zone li { display: flex; gap: var(--space-2); align-items: baseline; }
.zone li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); opacity: 0.55; flex: none; transform: translateY(-2px); }
.tk-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-10); }
.tk-steps li { display: flex; gap: var(--space-4); padding-top: var(--space-5); border-top: 2px solid var(--color-primary); }
.tk-steps svg.ico { width: 24px; height: 24px; color: var(--color-primary); margin-top: 2px; }
.tk-steps h3 { font-size: var(--text-base); font-weight: 600; }
.tk-steps p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 4px; }
.tk-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-8); }
@media (max-width: 960px) { .turnkey { grid-template-columns: 1fr; } .tk-img { min-height: 0; aspect-ratio: 3/2; } .tk-steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .zones { grid-template-columns: 1fr; } }
html[lang='ar'] .zone .num { letter-spacing: 0; }

/* --- Update: form send options, mobile hero legibility, floating button clearance --- */
.send-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.send-actions .btn-outline { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.send-actions .btn-outline:hover { background: oklch(0.5 0.1 310 / 0.1); }
.on-dark .send-actions .btn-primary { background: #fff; color: var(--color-primary-active); }
.send-edit { margin-top: var(--space-4); background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: var(--text-sm); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .8; }
.send-edit:hover { opacity: 1; }
@media (max-width: 700px) {
  .hero::before { background: linear-gradient(0deg, oklch(0.18 0.03 310 / 0.82) 0%, oklch(0.2 0.03 310 / 0.62) 55%, oklch(0.2 0.03 310 / 0.4) 100%); }
  .hero .eyebrow { color: #fff; text-shadow: 0 1px 8px oklch(0.15 0.03 310 / 0.6); }
}
.site-footer { padding-bottom: 5.5rem; }
@media (max-width: 700px) {
  html[dir='rtl'] .hero::before { background: linear-gradient(0deg, oklch(0.18 0.03 310 / 0.82) 0%, oklch(0.2 0.03 310 / 0.62) 55%, oklch(0.2 0.03 310 / 0.4) 100%); }
}
