/* ==========================================================================
   Third River Company (شركة النهر الثالث) — site styles
   Brand: Alwash gold, teal, deep brown, warm cream
   ========================================================================== */

:root {
  --gold: #bc8d36;
  --gold-light: #d9b46a;
  --gold-soft: #f4ead6;
  --teal: #67ab9f;
  --teal-dark: #4a8a7f;
  --brown: #331a15;
  --ink: #16110f;
  --ink-2: #221a17;
  --cream: #eceae3;
  --paper: #f8f6f1;
  --white: #ffffff;
  --text: #2b2420;
  --muted: #6f6660;
  --line: rgba(51, 26, 21, 0.12);

  --font-ar-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-ar-display: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --font-en-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --font-en-display: "Cormorant Garamond", Georgia, serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(22, 17, 15, 0.45);
  --shadow-soft: 0 10px 30px -18px rgba(22, 17, 15, 0.35);
  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-ar-body);
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { font-family: var(--font-en-body); line-height: 1.7; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--brown); }
p { margin: 0 0 1em; }

h1, h2, h3, .display { font-family: var(--font-ar-display); font-weight: 600; }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] .display { font-family: var(--font-en-display); font-weight: 600; letter-spacing: 0.01em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1.2;
  transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(188, 141, 54, .7); }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brown); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(22, 17, 15, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(22, 17, 15, 0.92); box-shadow: 0 10px 30px -20px rgba(0,0,0,.8); }
.site-header .container { display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 8px 12px; color: rgba(255,255,255,.82);
  font-size: 15px; font-weight: 500; border-radius: 8px; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.lang-switch {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(188,141,54,.6);
  color: var(--gold-light); font-size: 14px; font-weight: 600; transition: background .3s, color .3s;
}
.lang-switch:hover { background: var(--gold); color: var(--ink); }
.lang-switch svg { width: 16px; height: 16px; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff;
  align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .35s var(--ease), background-color .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 960px); display: grid; place-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; color: #fff; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("../images/banner-bg.jpeg") center / cover no-repeat;
  transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(22,17,15,.35) 0%, rgba(22,17,15,.85) 70%),
    linear-gradient(180deg, rgba(22,17,15,.55) 0%, rgba(22,17,15,.25) 40%, rgba(22,17,15,.95) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-inner { text-align: center; max-width: 820px; }
.hero-logo {
  display: inline-block; padding: 26px 34px; margin-bottom: 30px; border-radius: 22px;
  background: rgba(255,255,255,.9); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.hero-logo img { width: min(300px, 60vw); height: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
  color: var(--teal); font-weight: 600; font-size: 15px; letter-spacing: .04em;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: .7; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 64px); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }
.hero-lead { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.82); max-width: 640px; margin: 0 auto 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 56px auto 0; max-width: 640px;
  border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
}
.hero-stats div { padding: 18px 10px; background: rgba(22,17,15,.45); }
.hero-stats strong { display: block; font-family: var(--font-ar-display); font-size: 30px; color: var(--gold-light); line-height: 1.2; }
html[lang="en"] .hero-stats strong { font-family: var(--font-en-display); font-size: 36px; }
.hero-stats span { font-size: 14px; color: rgba(255,255,255,.75); }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--gold-light); animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: rgba(255,255,255,.8); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }
.divider { width: 64px; height: 3px; margin: 0 auto 18px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--gold)); }

/* ---------- Categories ---------- */
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.category {
  position: relative; padding: 30px 22px 26px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); text-align: center;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.category:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(188,141,54,.45); }
.category-icon {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center;
  background: var(--gold-soft); transition: background-color .4s;
}
.category:hover .category-icon { background: var(--gold); }
.category-icon img { width: 42px; height: 42px; }
.category h3 { font-size: 22px; margin-bottom: 4px; }
.category .sub { display: block; font-size: 13px; color: var(--teal-dark); font-weight: 600; letter-spacing: .06em; margin-bottom: 12px; }
.category p { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-text .eyebrow { margin-bottom: 10px; }
.about-text .eyebrow::after { display: none; }
.about-text h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.about-text p { color: var(--muted); }
.about-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.about-more > div { overflow: hidden; }
.about-more.is-open { grid-template-rows: 1fr; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
html[dir="rtl"] .about-media::before { inset: 22px 22px -22px -22px; }
.about-badge {
  position: absolute; bottom: -26px; inset-inline-start: -26px; padding: 20px 24px; border-radius: 16px;
  background: var(--ink); color: #fff; box-shadow: var(--shadow); text-align: center;
}
.about-badge strong { display: block; font-family: var(--font-ar-display); font-size: 38px; line-height: 1.1; color: var(--gold-light); }
html[lang="en"] .about-badge strong { font-family: var(--font-en-display); font-size: 44px; }
.about-badge span { font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  padding: 26px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate;
  box-shadow: var(--shadow-soft);
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(22,17,15,0) 30%, rgba(22,17,15,.92) 100%);
}
.service:hover img { transform: scale(1.07); }
.service h3 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.service p { color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 18px; }
.service .link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 600; font-size: 15px;
}
.service .link svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
html[dir="rtl"] .service .link svg { transform: scaleX(-1); }
.service:hover .link svg { transform: translateX(4px); }
html[dir="rtl"] .service:hover .link svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Carpets ---------- */
.catalogs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: clamp(56px, 8vw, 88px); }
.catalog {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--ink);
  box-shadow: var(--shadow-soft); aspect-ratio: 3 / 4;
}
.catalog img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .5s; }
.catalog:hover img { transform: scale(1.05); opacity: .55; }
.catalog-label {
  position: absolute; inset: auto 16px 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; font-size: 15px;
  backdrop-filter: blur(8px);
}
.catalog-label svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.catalog-label small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.sub-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sub-head h3 { font-size: 26px; }
.sub-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 280px; column-gap: 18px; }
.gallery-item {
  position: relative; display: block; width: 100%; margin: 0 0 18px; padding: 0; border: 0; background: var(--cream);
  border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(22,17,15,.55));
  opacity: 0; transition: opacity .4s;
}
.gallery-item .zoom {
  position: absolute; bottom: 14px; inset-inline-end: 14px; z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.gallery-item .zoom svg { width: 18px; height: 18px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after, .gallery-item:hover .zoom { opacity: 1; transform: none; }
.gallery-item[hidden] { display: none; }

/* Uniform grid: every tile the same portrait size */
.gallery.is-uniform { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery.is-uniform .gallery-item { margin: 0; aspect-ratio: 3 / 4; }
.gallery.is-uniform .gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-actions { text-align: center; margin-top: 18px; }

/* ---------- Locations ---------- */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.location {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.location:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.location-media { aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.location-media img { width: 100%; height: 100%; object-fit: cover; }
.location-media.is-contain img { object-fit: contain; padding: 18px; }
.location-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.location-city { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.location-city h3 { font-size: 23px; }
.location-city .pin { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.location-city .pin svg { width: 17px; height: 17px; }
.location-body p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.location-body .area { color: var(--brown); font-weight: 600; display: block; }
.location-body .btn { margin-top: auto; align-self: flex-start; padding: 10px 20px; font-size: 14px; }

/* ---------- Team ---------- */
.team-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow); }
.team-hero img { width: 100%; max-height: 560px; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: border-color .3s, background-color .3s;
}
.member:hover { border-color: rgba(188,141,54,.6); background: rgba(255,255,255,.07); }
.member img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; border: 2px solid var(--gold); }
.member h3 { font-size: 22px; margin-bottom: 2px; }
.member .phone { display: block; direction: ltr; color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 10px; }
html[dir="rtl"] .member .phone { text-align: right; }
.member-actions { display: flex; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .3s, color .3s;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--gold); color: var(--ink); }
.icon-btn.wa:hover { background: #25d366; color: #fff; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.contact-form { padding: clamp(28px, 4vw, 48px); }
.contact-form h3 { font-size: 28px; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--brown); }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font: inherit; font-size: 15px; color: var(--text); transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(188,141,54,.15); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { margin-top: 14px; font-size: 15px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2e7d4f; }
.form-status.is-error { color: #b3261e; }
.contact-form button[disabled] { opacity: .6; cursor: progress; }
html[dir="rtl"] .field input[type="tel"], html[dir="rtl"] .field input[type="email"] { text-align: right; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.contact-map { min-height: 460px; background: var(--cream); }
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 72px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 52px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { line-height: 1.9; max-width: 420px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; font-family: var(--font-ar-display); }
html[lang="en"] .site-footer h4 { font-family: var(--font-en-display); font-size: 21px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-list a { transition: color .25s; }
.footer-list a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 4px; }
.footer-contact .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}
.footer-bottom a { color: var(--gold-light); font-weight: 600; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform .35s var(--ease);
}
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 60px 70px;
  background: rgba(10, 8, 7, .94); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px -30px #000; }
.lightbox button {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background-color .25s, color .25s;
}
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { top: 50%; translate: 0 -50%; left: 14px; }
.lb-next { top: 50%; translate: 0 -50%; right: 14px; }
.lb-count { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: rgba(255,255,255,.7); font-size: 14px; direction: ltr; }

/* ---------- Category page ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 70px; color: #fff; text-align: center; overflow: hidden; isolation: isolate;
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,17,15,.8), rgba(22,17,15,.7)); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 56px); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; justify-content: center; font-size: 14px; color: rgba(255,255,255,.65); margin-bottom: 14px; }
.crumbs a:hover { color: var(--gold-light); }
.cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.cat-nav a {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; background: #fff;
  transition: background-color .25s, color .25s, border-color .25s;
}
.cat-nav a:hover { border-color: var(--gold); color: var(--gold); }
.cat-nav a.is-active { background: var(--brown); border-color: var(--brown); color: #fff; }
.cta-band {
  margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--ink); color: rgba(255,255,255,.8);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-band h3 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.cta-band p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .categories { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .brand img { height: 40px; }
  .nav {
    /* absolute, not fixed: the header's backdrop-filter makes it the containing block */
    position: absolute; top: 100%; inset-inline: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    margin: 0; padding: 24px 20px 40px;
    background: rgba(22,17,15,.98); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s, visibility .35s, transform .35s var(--ease);
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 20px; padding: 16px 6px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav a::after { display: none; }
  .lang-switch { margin-inline-start: auto; }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; margin-inline: auto; width: calc(100% - 26px); }
  .locations, .team { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-map, .contact-map iframe { min-height: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .categories { grid-template-columns: 1fr 1fr; gap: 12px; }
  .category { padding: 22px 14px; }
  .category p { display: none; }
  .category h3 { font-size: 19px; }
  .category-icon { width: 62px; height: 62px; border-radius: 18px; }
  .category-icon img { width: 34px; height: 34px; }
  .categories .category:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr; }
  .service { min-height: 320px; }
  .catalogs { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .gallery { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; border-radius: 10px; }
  .gallery.is-uniform { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .locations, .team { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 12.5px; }
  .hero-logo { padding: 18px 22px; }
  .about-badge { inset-inline-start: -12px; bottom: -20px; padding: 14px 18px; }
  .lightbox { padding: 70px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; translate: none; }
  .sub-head { flex-direction: column; align-items: flex-start; }
  .lang-switch .label { display: none; }
  .fab-wa { width: 52px; height: 52px; bottom: 16px; inset-inline-end: 16px; }
}
