/* ALROSHN Decor: static preview. Showroom mode: materials first, proof of execution second.
   Palette: cream dominant, deep green for text/buttons/one section, gold for fine accents only. */
:root {
  --cream: #F6F1E7;
  --cream-2: #EDE5D6;
  --green: #173B34;
  --gold: #B8924A;
  --ink: #1A1A17;
  --muted: #55554E;
  --border: rgba(23, 59, 52, .18);
  --radius: 2px;
  --gutter: 20px;
  --bar-h: 72px;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.i18n-pending body { visibility: hidden; }
body { margin: 0; background: var(--cream); color: var(--green); font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif; font-weight: 400; font-size: 16px; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
figure, ul, ol, h1, h2, h3, p { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 500; line-height: 1.3; color: var(--green); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }
.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 { position: fixed; z-index: 1000; inset-inline-start: -200vw; top: 8px; padding: 12px 18px; background: var(--green); color: var(--cream); border-radius: var(--radius); }
.skip-link:focus { inset-inline-start: 12px; }
.container { width: calc(100% - var(--gutter) * 2); max-width: 1280px; margin-inline: auto; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 22px; border-radius: var(--radius); border: 1px solid var(--green); font: inherit; font-weight: 500; font-size: 16px; line-height: 1.3; text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--green); color: var(--cream); }
.btn--primary { position: relative; isolation: isolate; overflow: hidden; }
.btn--primary:hover { background: #0F2D27; }
.btn--outline { background: transparent; color: var(--green); }
.btn--outline:hover { background: rgba(23, 59, 52, .07); }
.btn--large { min-height: 54px; padding-inline: 28px; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 500; color: var(--green); text-decoration: none; border-bottom: 1px solid transparent; }
.text-link:hover { border-bottom-color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid var(--border); }
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(23,59,52,.08); }
.scroll-progress { position: fixed; z-index: 120; top: 0; inset-inline: 0; height: 2px; background: var(--gold); pointer-events: none; transform-origin: 100% 50%; }
html[dir="ltr"] .scroll-progress { transform-origin: 0% 50%; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: calc(var(--header-h) - 1px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 48px; }
.brand-mark { width: 38px; height: auto; aspect-ratio: 324 / 372; }
.brand-name { font-weight: 500; font-size: 18px; color: var(--green); white-space: nowrap; }
.main-nav { display: none; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; justify-content: center; border-bottom: 1px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding-inline: 10px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; font-weight: 500; font-size: 15px; color: var(--green); }
.lang-switch:hover { border-color: var(--green); }
.btn--header { display: none; min-height: 48px; }

/* Full-bleed hero: image first on phones, photograph at inline-end on desktop. */
.hero-grid { display: grid; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin: -24px 16px 0; padding: 24px; background: var(--cream); }
.hero-kicker { font-size: 18px; font-weight: 500; color: var(--green); line-height: 1.5; }
.hero-rule { display: block; width: 72px; height: 2px; background: var(--gold); margin-block: 10px 14px; transform-origin: 100% 50%; }
html[dir="ltr"] .hero-rule { transform-origin: 0% 50%; }
.hero h1 { font-size: 42px; line-height: 1.2; letter-spacing: 0; }
.hero-line { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--green); max-width: 34ch; }
.hero-actions { margin-top: 18px; }
.hero-rating { margin-top: 4px; font-size: 14px; color: var(--muted); }
.rating-link { display: inline-block; padding-block: 12px; line-height: 1.5; color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.rating-link:hover { color: var(--green); border-bottom-color: var(--gold); }
.hero-photo { grid-row: 1; min-width: 0; }
.hero-photo-frame { overflow: hidden; }
.hero-photo-outline { display: none; }
.hero-photo img { width: 100%; height: 340px; object-fit: cover; object-position: center; }

/* Shared section typography. */
.section { padding-block: 56px; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 32px; line-height: 1.35; }
.section-line { margin-top: 16px; }

/* Specimens sit directly on green; every enquiry action is permanently visible. */
.materials-section { padding-block: 48px; background: var(--green); color: var(--cream); }
.materials-section > .container { width: 100%; }
.materials-intro { padding-inline: var(--gutter); }
.materials-intro h2 { color: var(--cream); max-width: 10ch; }
.materials-description { margin-top: 16px; max-width: 32ch; }
.materials-hint { margin-top: 12px; font-size: 14px; }
.materials-wrap { min-width: 0; }
.materials-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-block: 4px 8px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; overscroll-behavior-x: contain; }
.materials-section :focus-visible { outline-color: var(--cream); outline-offset: -3px; }
.material-card { flex: 0 0 304px; min-width: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.material-card figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.material-card img { width: 100%; height: 100%; object-fit: cover; }
.material-card h3 { font-size: 20px; margin-top: 14px; line-height: 1.45; color: var(--cream); }
.material-ask { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 4px; font-weight: 500; font-size: 16px; color: var(--cream); text-decoration: none; }
.material-ask:hover, .material-ask:focus-visible { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Principal execution image, then two supporting photographs at their native ratios. */
.execution-section { padding-block: 56px; }
.execution-section .section-line { font-size: 28px; line-height: 1.35; max-width: 760px; color: var(--green); }
.execution-section .section-line::before { content: ''; display: block; width: 64px; height: 2px; margin-block: 20px; background: var(--gold); }
.exec-grid { display: grid; gap: 28px; align-items: start; }
.exec-fig { min-width: 0; }
.exec-frame { overflow: hidden; border-radius: var(--radius); background: var(--cream-2); aspect-ratio: 945 / 795; }
.exec-fig--tall .exec-frame { aspect-ratio: 350 / 390; }
.exec-fig:last-child .exec-frame { aspect-ratio: 928 / 517; }
.exec-frame img { width: 100%; height: 100%; object-fit: cover; }
.exec-parallax { width: 100%; height: 100%; }
.exec-fig figcaption { margin-top: 10px; font-size: 16px; color: var(--green); line-height: 1.75; }

/* Published service lists: one rule per group, small numbers, gold markers. */
.services-section { padding-block: 48px; background: var(--cream-2); }
.services-grid { display: grid; gap: 32px; }
.service-group { position: relative; padding-top: 17px; }
.service-rule { position: absolute; top: 0; inset-inline: 0; height: 1px; background: var(--gold); }
.service-number { display: block; width: max-content; font-size: 24px; line-height: 1.3; direction: ltr; margin-bottom: 12px; }
.service-group h3 { font-size: 23px; line-height: 1.35; }
.service-group ul { display: grid; gap: 8px; margin-top: 20px; }
.service-group li { position: relative; padding-inline-start: 18px; line-height: 1.75; }
.service-group li::before { content: ''; position: absolute; inset-inline-start: 0; top: .8em; width: 5px; height: 5px; background: var(--gold); }
.services-action { margin-top: 32px; }

/* Location: photo first, contact details second, a collapsed map disclosure. */
.contact-layout { display: grid; gap: 28px; align-items: start; }
.contact-details { min-width: 0; }
.contact-details h3 { font-size: 18px; margin-bottom: 4px; }
.contact-details address { font-size: 16px; margin-bottom: 22px; }
.hours-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hours-heading span { font-size: 14px; color: var(--muted); }
.opening-chip { display: inline-flex; align-items: center; gap: 10px; margin-block: 8px 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; line-height: 1.5; background: #FBF8F1; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2E7D5B; flex: none; }
.opening-chip.is-closed .status-dot { background: var(--gold); }
.hours-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.hours-table th, .hours-table td { padding: 12px 0; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; font-weight: 400; font-size: 16px; }
.hours-table th { font-weight: 500; }
.hours-table td span { display: block; }
.hours-table td { text-align: end; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--green); font-weight: 500; }
.hours-table tr.is-today th { border-inline-start: 2px solid var(--gold); padding-inline-start: 12px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-actions .btn { margin-bottom: 8px; }
.contact-actions .text-link { font-size: 16px; }
.contact-actions .text-link bdi { direction: ltr; unicode-bidi: isolate; }
.contact-visuals { margin-top: 20px; }
.shopfront img { width: 100%; height: auto; aspect-ratio: 1150 / 770; object-fit: cover; border-radius: var(--radius); }
.shopfront-frame { overflow: hidden; border-radius: var(--radius); }
.shopfront figcaption { margin-top: 8px; font-size: 16px; color: var(--green); }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.map-toggle { min-height: 48px; }
.map-card { width: 100%; height: 280px; margin-top: 16px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--cream-2); }
.map-card iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 34px 28px; }
.footer-top { display: grid; gap: 22px; }
.footer-brand { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.footer-logo { width: 88px; height: auto; flex: none; }
.footer-names { display: flex; flex-direction: column; gap: 2px; }
.footer-names strong { font-weight: 500; font-size: 17px; color: var(--green); }
.footer-names span { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--green); border-bottom: 1px solid transparent; }
.footer-links a:hover { border-bottom-color: var(--gold); }
.footer-links small { font-size: 14px; font-weight: 400; color: var(--muted); }
.footer-bottom { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 14px; color: var(--muted); line-height: 1.7; }

.mobile-actions { display: none; }

/* ---------- Phones and tablets: fixed contact bar ---------- */
@media (max-width: 1023px) {
  .site-footer { padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom)); }
  .mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; z-index: 110; bottom: 0; inset-inline: 0; background: var(--cream); border-top: 1px solid var(--border); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
  .mobile-actions .btn { min-height: 52px; padding: 8px 12px; }
}
@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand-name { font-size: 16px; }
  .header-inner { gap: 8px; }
}

/* Desktop ratios divide the available width after the specified gaps. */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 72px; }
  body { font-size: 18px; }
  .main-nav { display: flex; }
  .btn--header { display: inline-flex; }
  .brand-mark { width: 42px; }
  .brand-name { font-size: 20px; }
  .hero-grid { grid-template-columns: 44fr 56fr; min-height: clamp(560px, 72svh, 760px); }
  .hero-copy { justify-content: center; margin: 0; padding: clamp(48px, 4.45vw, 64px); }
  .hero h1 { font-size: clamp(64px, calc(5.77vw + 4.92px), 88px); }
  .hero-kicker { font-size: 21px; }
  .hero-line { font-size: 18px; margin-top: 16px; }
  .hero-actions { margin-top: 26px; }
  .hero-photo { grid-column: 2; grid-row: 1; position: relative; }
  .hero-photo-frame { position: absolute; inset: 0; }
  .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 48px; line-height: 1.3; }
  .materials-section { padding-block: 80px; }
  .materials-section > .container { width: calc(100% - var(--gutter) * 2); display: grid; grid-template-columns: 30fr 70fr; gap: 40px; }
  .materials-intro { padding: 0; margin: 0; }
  .materials-description { max-width: 28ch; }
  .materials-strip { overflow: visible; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
  .materials-hint { display: none; }
  .material-ask { transition: transform .2s ease; }
  .material-card:hover .material-ask, .material-card:focus-within .material-ask { transform: translateY(-2px); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px; }
  .execution-section { padding-block: 96px; }
  .execution-section .section-line { font-size: 40px; }
  .exec-grid { grid-template-columns: 58fr 42fr; column-gap: 32px; row-gap: 28px; }
  .exec-fig--tall { grid-row: span 2; }
  .exec-fig--tall .exec-frame { aspect-ratio: 680 / 720; }
  .services-section { padding-block: 72px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .service-group h3 { font-size: 28px; }
  .contact-section { padding-block: 80px; }
  .contact-layout { grid-template-columns: 42fr 58fr; gap: 48px; }
  .contact-details h3 { font-size: 20px; }
  .contact-details address { font-size: 18px; }
  .footer-top { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .footer-links { justify-content: flex-end; }
  .footer-logo { width: 100px; }
}
/* Short windows expand with content: no fixed hero height or clipped text. */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: 44fr 56fr; }
  .hero-copy { grid-row: 1; margin: 0; padding: 32px; justify-content: center; }
  .hero-photo { grid-column: 2; grid-row: 1; position: relative; }
  .hero-photo-frame { position: absolute; inset: 0; }
  .hero-photo img { position: absolute; inset: 0; height: 100%; }
  .exec-grid { grid-template-columns: 58fr 42fr; column-gap: 28px; }
  .exec-fig--tall { grid-row: span 2; }
  .exec-fig--tall .exec-frame { aspect-ratio: 680 / 720; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 42fr 58fr; gap: 28px; }
}
@media (hover: none) { .material-ask { transition: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Footer contact chips with icons (r1) */
.footer-links { gap: 10px; align-items: center; }
.footer-links a { gap: 10px; min-height: 48px; padding: 6px 16px 6px 6px; border: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 999px; background: #FBF8F1; color: var(--green); transition: border-color .2s, transform .2s; }
html[dir="rtl"] .footer-links a { padding: 6px 6px 6px 16px; }
.footer-links a:hover, .footer-links a:focus-visible { border-color: var(--gold); transform: translateY(-1px); }
.fl-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #F6F1E7; flex: none; }
.fl-ico .icon { width: 18px; height: 18px; }
.footer-links small { margin-inline-start: -2px; }
@media (prefers-reduced-motion: reduce) { .footer-links a { transition: none; } .footer-links a:hover { transform: none; } }

/* r3: contained hero on wide screens; the photo no longer bleeds or upscales */
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 56px; max-width: 1280px; margin-inline: auto; padding: 48px 48px 56px; min-height: 0; align-items: center; }
  .hero-copy { padding: 0; }
  .hero-photo { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; justify-self: end; }
  .hero-photo { isolation: isolate; }
  .hero-photo-frame { z-index: 1; border-radius: 4px; }
  .hero-photo-outline { display: block; position: absolute; inset-inline-start: -14px; inset-inline-end: 14px; top: 14px; bottom: -14px; border: 1px solid #B8924A; pointer-events: none; }
  .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 4px; }
}

/* Fine-pointer details stay subtle; reduced motion keeps the static presentation. */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary { transition: transform .25s ease; }
  .btn--primary::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.16) 50%, transparent 75%); transform: translateX(-140%); transition: transform .7s ease; }
  .btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px); }
  .btn--primary:hover::before { transform: translateX(140%); }
}
@media (min-width: 1024px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .material-card img { transition: transform .6s ease; }
  .material-card:hover img { transform: scale(1.05); }
  .material-ask .icon { transition: transform .3s ease; }
  .material-card:hover .material-ask .icon { transform: translateX(-3px); }
  html[dir="rtl"] .material-card:hover .material-ask .icon { transform: translateX(3px); }
}
