:root {
  --bg: #0d0d0d;
  --bg-2: #151515;
  --panel: #1b1b1b;
  --line: #2b2b2b;
  --text: #ece8df;
  --muted: #a39d90;
  --gold: #d4af5f;
  --gold-2: #b48c3c;
  --light: #f6f3ec;
  --ink: #1a1a1a;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em; margin-bottom: .6rem; padding-inline-start: 34px; position: relative;
}
.eyebrow::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 24px; height: 2px; background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; text-decoration: none; font-weight: 700;
  border: 1.5px solid transparent; transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #111; }
.btn--ghost { border-color: var(--gold); color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: #111; }
.btn--sm { padding: .45rem 1.1rem; font-size: .95rem; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,13,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(13,13,13,.95); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 46px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--text); font-weight: 500; position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform .3s;
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--gold); margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 110px) 0 clamp(56px, 8vw, 100px);
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(212,175,95,.12), transparent 70%),
    radial-gradient(500px 300px at 10% 90%, rgba(212,175,95,.07), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: #cfc9bb; max-width: 560px; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.2rem; }
.hero__badge { display: inline-flex; gap: .9rem; align-items: center; padding: .8rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.hero__badge img { height: 42px; }
.hero__badge strong { display: block; color: var(--gold); font-size: 1.1rem; }
.hero__badge span { color: var(--muted); font-size: .9rem; }
.hero__media { justify-self: center; width: min(100%, calc(100svh - 230px)); min-width: 300px; }
.hero__media img { border-radius: 20px; box-shadow: var(--shadow); border: 1px solid #333; aspect-ratio: 1/1; object-fit: cover; width: 100%; }

/* Stats */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--gold); font-weight: 800; }
.stat i { font-style: normal; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--dark { background: var(--bg-2); }
.section--light { background: var(--light); color: var(--ink); }
.section--light .muted { color: #6b665c; }
.section__head { max-width: 760px; margin-bottom: 2.6rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about__text p { color: #d2ccbf; }
.about__card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.about__crest { width: 72%; margin: 0 auto 1.4rem; filter: invert(1) sepia(.6) saturate(2.2) hue-rotate(5deg) brightness(.9); }
.about__card dl { margin: 0; }
.about__card dl > div { padding: .8rem 0; border-top: 1px solid var(--line); }
.about__card dt { color: var(--gold); font-weight: 700; font-size: .9rem; }
.about__card dd { margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-inline-start: calc(80px + 1.2rem - 1px); top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 2.4rem; padding-bottom: 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: calc(80px + 1.2rem - 8px); top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--gold); }
.timeline__year { font-weight: 800; color: var(--gold); font-size: 1.2rem; text-align: start; }
.timeline h3 { margin-bottom: .25em; }
.timeline p { color: var(--muted); margin: 0; }

.growth { margin-top: 2.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 2vw, 24px); align-items: end; height: 240px; padding-top: 30px; }
.bar { position: relative; height: var(--h); background: linear-gradient(180deg, #f0d48e, var(--gold-2)); border-radius: 8px 8px 0 0; transform-origin: bottom; transform: scaleY(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.growth.is-visible .bar { transform: scaleY(1); }
.bar span { position: absolute; top: -26px; inset-inline: 0; text-align: center; font-size: .82rem; color: var(--text); white-space: nowrap; }
.bar em { position: absolute; bottom: -30px; inset-inline: 0; text-align: center; font-style: normal; color: var(--muted); font-size: .85rem; }
.growth .bars { margin-bottom: 30px; }

/* Services */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; transition: border-color .3s, transform .3s; }
.panel:hover { border-color: rgba(212,175,95,.45); transform: translateY(-3px); }
.panel__icon { color: var(--gold); font-size: .9em; margin-inline-end: .3rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .55rem 0; padding-inline-start: 2rem; position: relative; border-bottom: 1px dashed var(--line); color: #d6d0c3; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: .55rem; color: var(--gold); font-weight: 800; }

.maint { margin-top: 3rem; }
.chips { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; counter-reset: c; }
.chips li { counter-increment: c; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; display: flex; gap: .8rem; align-items: center; transition: border-color .25s, background .25s; }
.chips li::before { content: counter(c, arabic-indic); color: #111; background: var(--gold); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex: none; }
.chips li:hover { border-color: var(--gold); background: #1f1b12; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 3rem; }
.extra { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .3s; }
.extra:hover { transform: translateY(-4px); }
.extra img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.extra > div { padding: 1.4rem 1.5rem 1.6rem; }
.extra p { color: var(--muted); margin: 0; font-size: .97rem; }

/* Products */
.tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab { font: inherit; font-weight: 700; padding: .5rem 1.3rem; border-radius: 999px; border: 1.5px solid #d8d1c2; background: #fff; color: var(--ink); cursor: pointer; transition: .25s; }
.tab:hover { border-color: var(--gold-2); }
.tab.is-active { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e7e1d4; transition: transform .3s, box-shadow .3s, opacity .3s; }
.gallery figure:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.gallery figure.is-hidden { display: none; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: contain; padding: 14px; background: #fff; }
.gallery figcaption { padding: .7rem 1rem; font-weight: 700; border-top: 1px solid #efe9dc; font-size: .97rem; }

/* Quality */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.quality p { color: #d2ccbf; }
.certs { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4rem; }
.certs img { height: 90px; width: auto; background: #fff; border-radius: 12px; padding: 6px; }
.meters { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; }
.meter { display: grid; grid-template-columns: 1fr 1.1fr 48px; gap: 1rem; align-items: center; padding: .55rem 0; }
.meter span { font-weight: 500; font-size: .97rem; }
.meter small { display: block; color: var(--muted); font-size: .78rem; direction: ltr; text-align: right; }
.meter__track { height: 8px; background: #2b2b2b; border-radius: 99px; overflow: hidden; }
.meter__track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), #f0d48e); border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.meters.is-visible .meter__track i { width: var(--v); }
.meter b { color: var(--gold); text-align: end; direction: ltr; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 3.5rem; }
.strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; filter: saturate(.95); transition: transform .4s; }
.strip img:hover { transform: scale(1.03); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.contact__list li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact__list b { display: block; color: var(--gold); font-size: .92rem; }
.contact__list a { text-decoration: none; display: inline-block; padding: .3rem 0; white-space: nowrap; }
.contact__list .sep { color: var(--muted); margin-inline: .35rem; }
.contact__list a:hover { color: var(--gold); }
.ci { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #1f1b12; color: var(--gold); border: 1px solid #3a321f; font-size: 1.1rem; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.4) contrast(1.05); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; text-align: center; background: #090909; }
.footer__logo { height: 120px; width: auto; margin: 0 auto 1rem; }
.footer p { margin: .3rem 0; }

.fab { position: fixed; inset-inline-start: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: var(--gold); color: #111; display: grid; place-items: center; font-size: 1.4rem; text-decoration: none; box-shadow: var(--shadow); z-index: 40; transition: transform .25s; }
.fab:hover { transform: scale(1.08); }
.fab--wa { bottom: 86px; background: #25d366; color: #fff; }

/* Reveal animation (subtle) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .bar, .meter__track i { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar { transform: none; }
  .meter__track i { width: var(--v); }
}

/* Responsive */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
  .hero__cta { margin: 1.4rem 0 1.6rem; }
}

@media (max-width: 960px) {
  .hero__grid, .about, .quality, .contact, .cols { grid-template-columns: 1fr; }
  .hero__media { width: 100%; max-width: 520px; min-width: 0; }
  .extras { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #0d0d0d; border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem;
    clip-path: inset(0 0 100% 0); transition: clip-path .35s ease;
  }
  .nav__links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: .8rem; }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .extras { grid-template-columns: 1fr; }
  .strip { gap: 10px; }
  .timeline::before { inset-inline-start: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; padding-inline-start: 30px; }
  .timeline li::before { inset-inline-start: 0; }
  .meter { grid-template-columns: 1fr 44px; }
  .meter__track { grid-column: 1 / -1; grid-row: 2; }
  .bar span { font-size: .68rem; }
  .bars { gap: 6px; }
  .contact__list .sep { display: none; }
  .contact__list a { display: block; text-align: right; }
  .contact__list br { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nav__brand img { height: 38px; }
}
@media (max-width: 380px) {
  .bar span { font-size: .62rem; white-space: normal; line-height: 1.15; top: -30px; }
  .bars { padding-top: 38px; }
  .bars { gap: 4px; }
  .stat { padding: 1.5rem .5rem; }
}
