/* =========================================================
   Sabaeek Al-Hadeed Co. — Site Styles
   ========================================================= */

:root {
  --green-900: #08331a;
  --green-800: #0a4423;
  --green-700: #0c5b2d;
  --green-600: #146b38;
  --green-500: #1f8a4c;
  --green-400: #2ea35f;
  --sage: #4a8176;
  --ink: #1b211d;
  --ink-soft: #4b544e;
  --gray-mid: #8a9a91;
  --line: #e2e7e3;
  --paper: #ffffff;
  --paper-alt: #f3f6f4;
  --gold: #c9a227;

  --font-head: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 40, 25, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 40, 25, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 40, 25, 0.18);

  --radius: 16px;
  --radius-sm: 10px;
}

html[dir="rtl"] {
  --font-head: 'Noto Kufi Arabic', 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans Arabic', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--green-900);
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
  background: var(--green-700);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { inset-inline-start: 16px; top: 16px; }

/* ---------- Reveal animation (progressive enhancement: hidden state only applies once JS confirms it can reveal it again) ---------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .photo-zoom-img, .photo-zoom-backdrop { transition-duration: .01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn-primary {
  background: var(--green-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, padding .3s ease;
  padding: 32px 0;
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 19px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  height: 130px;
  width: auto;
  max-width: none;
  transition: height .3s ease;
}
.site-header.scrolled .brand-logo { height: 89px; }

/* Desktop-only nudge: scoped to avoid out-specificity-ing the mobile drawer's
   translateX open/close transform below once the header picks up .scrolled. */
@media (min-width: 1181px) {
  .main-nav,
  .lang-switch {
    transform: translateY(35px);
    transition: transform .3s ease;
  }
  .site-header.scrolled .main-nav,
  .site-header.scrolled .lang-switch { transform: translateY(24px); }

  /* The horizontal desktop nav sits directly on the white header bar, unlike
     the dark mobile drawer below, so it needs its own (dark) link color. */
  .main-nav a:not(.nav-cta) { color: var(--green-900); }
  .main-nav a:not(.nav-cta):hover { background: rgba(10, 68, 35, .08); }
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.12); }
.main-nav a.nav-cta {
  background: var(--green-600);
  margin-inline-start: 6px;
}
.main-nav a.nav-cta:hover { background: var(--green-500); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  flex-shrink: 0;
  z-index: 600;
  position: relative;
}
.lang-switch a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a:hover { color: var(--green-700); }
.lang-switch a.active { background: var(--green-600); color: #fff; }

.nav-toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 54px;
  height: 54px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.nav-toggle span {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--green-900);
  margin: 0 auto;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,51,26,.55) 0%, rgba(8,51,26,.75) 55%, rgba(8,51,26,.95) 100%),
    linear-gradient(100deg, rgba(8,51,26,.85) 0%, rgba(8,51,26,.35) 55%, rgba(8,51,26,.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 170px;
  padding-bottom: 80px;
  max-width: 760px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-400);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero-quote {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  border-inline-start: 3px solid var(--green-400);
  padding-inline-start: 18px;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-badges li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: rgba(255,255,255,.9);
}

/* ---------- Section basics ---------- */
.section {
  padding: 100px 0;
}
.section-alt { background: var(--paper-alt); }

.section-head { max-width: 760px; margin-bottom: 56px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-600);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}
.section-sub { font-size: 16.5px; margin-top: 14px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 64px;
}
.about-text p { font-size: 16.5px; }
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--green-700);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
}

.quality-feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.quality-feature-media { position: relative; min-height: 320px; }
.quality-feature-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.quality-feature-media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.quality-feature-media-pair img { position: static; }
.quality-feature-text {
  background: var(--green-800);
  color: #fff;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quality-feature-text .kicker { color: var(--green-400); }
.quality-feature-text h3 { color: #fff; font-size: 26px; }
.quality-feature-text p { color: rgba(255,255,255,.85); margin-bottom: 0; }

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 8px, transparent 8px 16px);
}
.tl-step {
  position: relative;
  display: flex;
  gap: 28px;
  margin-bottom: 40px;
}
.tl-step:last-child { margin-bottom: 0; }
.tl-marker {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--green-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green-700);
  font-size: 15px;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.tl-marker-featured {
  background: var(--green-600);
  color: #fff;
  width: 64px;
  height: 64px;
}
.tl-card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.tl-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--paper-alt);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tl-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; }
.tl-card h3 { font-size: 19px; margin-bottom: 8px; }
.tl-card p { margin-bottom: 0; font-size: 15px; }

.tl-card-photo { padding: 0; overflow: hidden; }
.tl-card-photo .tl-text { padding: 30px 32px; }
.tl-card-photo .tl-text h3 { font-size: 20px; }
.tl-card-photo .tl-text p:last-child { margin-bottom: 0; }

.tl-photo { position: relative; min-height: 220px; }
.tl-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.tl-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 220px;
}
.tl-photo-pair img { position: static; height: 100%; }

.tl-card-photo:not(.tl-card-wide):not(.tl-card-featured) {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
}
.tl-card-reverse { grid-template-columns: 1.2fr .8fr !important; }
.tl-card-reverse .tl-photo { order: 2; }
.tl-card-reverse .tl-text { order: 1; }

.tl-card-wide .tl-text { padding: 32px 32px 8px; }
.tl-gallery { overflow: hidden; padding: 8px 0 28px; }
.tl-gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 32px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 32px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.tl-gallery-track img {
  scroll-snap-align: start;
  flex: none;
  width: 230px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.tl-gallery-track::-webkit-scrollbar { height: 6px; }
.tl-gallery-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

.tl-step-featured .tl-card { border-color: var(--green-600); }
.tl-card-featured {
  display: block;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  color: #fff;
}
.tl-card-featured .tl-text { padding: 36px 36px 8px; }
.tl-card-featured .kicker { color: var(--green-400); }
.tl-card-featured .tl-text h3 { color: #fff; font-size: 24px; }
.tl-card-featured .tl-text p { color: rgba(255,255,255,.88); }
.tl-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 24px;
}
.tl-gallery-grid img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- Storage ---------- */
.storage-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}
.storage-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 320px;
  position: relative;
}
.storage-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.storage-photo-tall { min-height: 460px; }

/* ---------- Commitment / Safety ---------- */
.commit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.commit-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
}
.commit-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--paper-alt);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.commit-icon svg { width: 30px; height: 30px; stroke: currentColor; fill: none; }
.commit-card h3 { font-size: 20px; }
.commit-card p { margin-bottom: 0; font-size: 15px; }

.goals {
  background: var(--green-800);
  border-radius: var(--radius);
  padding: 44px 40px;
  color: #fff;
}
.goals-title { color: #fff; font-size: 22px; margin-bottom: 22px; }
.goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
.goals-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.9);
}
.goals-list svg {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  stroke: var(--green-400);
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}

/* ---------- Products / sizes ---------- */
.sizes-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.size-card {
  position: relative;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 10px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.size-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.size-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 30px;
  color: var(--green-800);
}
.size-unit { display: block; font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.size-certified { background: #eef7f1; border-color: var(--green-400); }
.size-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  background: var(--green-600);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.sizes-footnote {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---------- Certificates ---------- */
.cert-group-title {
  font-size: 18px;
  margin: 40px 0 20px;
}
.cert-group-title:first-of-type { margin-top: 0; }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cert-grid-6 { grid-template-columns: repeat(6, 1fr); }
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: start;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cert-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}
.cert-card span {
  display: block;
  padding: 12px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Contact ---------- */
.contact-section { background: var(--green-900); color: #fff; }
.contact-section .kicker { color: var(--green-400); }
.contact-section h2 { color: #fff; }
.contact-section .section-sub { color: rgba(255,255,255,.78); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding: 18px;
  transition: background .2s ease, transform .2s ease;
}
.contact-card:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.contact-card-static:hover { transform: none; }
.contact-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; stroke: #fff; }
.contact-text { font-size: 13.5px; color: rgba(255,255,255,.8); line-height: 1.4; }
.contact-text strong { display: block; font-size: 14px; color: #fff; margin-bottom: 2px; }

.social-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.social-row a, .social-static {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--green-600); transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-lg);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.15) contrast(1.05); }

/* ---------- Footer ---------- */
.site-footer { background: #062616; color: rgba(255,255,255,.7); padding: 44px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { height: 40px; width: auto; }
.footer-brand p { margin: 0; font-size: 13px; color: rgba(255,255,255,.6); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 12.5px; color: rgba(255,255,255,.45); width: 100%; text-align: center; padding-top: 24px; }
.footer-credit { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; font-weight: 600; color: var(--green-400); width: 100%; text-align: center; letter-spacing: .03em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 20, 12, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 24px; inset-inline-end: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ---------- Zoomable department photos ---------- */
.zoomable {
  cursor: zoom-in;
  transition: filter .25s ease;
}
.zoomable:hover, .zoomable:focus-visible {
  filter: brightness(1.06);
}

/* ---------- Photo zoom overlay: seamless enlarge, page stays visible + blurred ---------- */
.photo-zoom {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}
.photo-zoom.open,
.photo-zoom.closing {
  pointer-events: auto;
}
.photo-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 26, 16, .38);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  opacity: 0;
  transition: opacity .4s ease;
}
.photo-zoom.open .photo-zoom-backdrop {
  opacity: 1;
}
.photo-zoom.closing .photo-zoom-backdrop {
  opacity: 0;
}
.photo-zoom-img {
  position: fixed;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(4, 20, 12, .4);
  z-index: 901;
  opacity: 0;
  cursor: zoom-out;
  transition:
    top .45s cubic-bezier(.22, .9, .32, 1),
    left .45s cubic-bezier(.22, .9, .32, 1),
    width .45s cubic-bezier(.22, .9, .32, 1),
    height .45s cubic-bezier(.22, .9, .32, 1),
    border-radius .45s ease,
    opacity .3s ease;
}
.photo-zoom.open .photo-zoom-img,
.photo-zoom.closing .photo-zoom-img {
  opacity: 1;
}
.photo-zoom-img.switching { opacity: 0; }

.photo-zoom-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 902;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .25s ease, background .2s ease, transform .2s ease;
}
.photo-zoom.open .photo-zoom-arrow.show {
  opacity: 1;
  pointer-events: auto;
}
.photo-zoom-arrow:hover { background: rgba(255, 255, 255, .28); transform: translateY(-50%) scale(1.06); }
.photo-zoom-arrow svg { width: 24px; height: 24px; stroke: currentColor; }
.photo-zoom-prev { inset-inline-start: 28px; }
.photo-zoom-next { inset-inline-end: 28px; }

.zoomable.zoom-active { outline: 3px solid var(--green-500); outline-offset: 2px; }

/* ---------- RTL (Arabic / Kurdish): connected script reads worse with tracking ---------- */
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .kicker,
html[dir="rtl"] .hero-badges li,
html[dir="rtl"] .size-badge {
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .photo-zoom-arrow { width: 42px; height: 42px; }
  .photo-zoom-prev { inset-inline-start: 10px; }
  .photo-zoom-next { inset-inline-end: 10px; }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 400;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-500); }
.back-to-top svg { width: 20px; height: 20px; stroke: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .quality-feature { grid-template-columns: 1fr; }
  .quality-feature-media { min-height: 240px; }
  .tl-card-photo:not(.tl-card-wide):not(.tl-card-featured) { grid-template-columns: 1fr; }
  .tl-card-reverse { grid-template-columns: 1fr !important; }
  .tl-card-reverse .tl-photo, .tl-card-reverse .tl-text { order: initial; }
  .tl-photo { min-height: 200px; }
  .commit-grid { grid-template-columns: 1fr; }
  .goals-list { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
  .storage-photo-tall { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .sizes-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1180px) {
  .brand-logo { height: 82px; }
  .site-header.scrolled .brand-logo { height: 64px; }
  .main-nav {
    position: fixed;
    top: 0; inset-inline-end: 0;
    height: 100vh;
    width: min(432px, 82vw);
    background: var(--green-900);
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 135px 43px 43px;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  html[dir="rtl"] .main-nav { transform: translateX(-100%); box-shadow: 10px 0 40px rgba(0,0,0,.3); }
  .main-nav.open,
  html[dir="rtl"] .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .main-nav a { padding: 19px 22px; font-size: 22px; }
  .main-nav a.nav-cta { margin-inline-start: 0; text-align: center; margin-top: 14px; }
  .nav-toggle { display: flex; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero-content { padding-top: 150px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .sizes-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid, .cert-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* Logo + language switcher + hamburger don't all fit at once on narrow phones */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .brand-logo { height: 52px; }
  .site-header.scrolled .brand-logo { height: 44px; }
  .lang-switch { padding: 3px; gap: 2px; }
  .lang-switch a { padding: 5px 7px; font-size: 11px; }
}
