:root {
  --gold: #d4a000;
  --gold-dark: #b38700;
  --gold-soft: #f6e7b0;
  --ink: #111111;
  --ink-2: #1c1c1c;
  --ink-3: #2a2a2a;
  --paper: #faf7ef;
  --text: #1a1a1a;
  --muted: #5c5547;
  --light: #f3efe4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .18);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.8;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .85em 1.8em; font-size: 1.05rem; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e6b100; }
.btn--dark { background: var(--ink); color: var(--gold); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--gold); }

.eyebrow {
  display: inline-block; margin-bottom: .6em; font-weight: 700; font-size: .95rem;
  color: var(--gold); letter-spacing: .02em;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: currentColor; vertical-align: middle; margin-inline-end: .5em; }
.eyebrow--dark { color: var(--ink); }

/* Header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(17, 17, 17, .92); backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--gold);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { width: 56px; height: auto; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-size: 1.3rem; color: var(--gold); }
.brand__text small { font-size: .78rem; opacity: .85; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #eee; text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:not(.btn):hover { color: var(--gold); }
.nav__cta { color: var(--ink) !important; padding: .5em 1.1em; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 3px; background: var(--gold); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden; padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 45%, rgba(10,10,10,.25) 100%);
}
.hero__content { max-width: 1180px; padding-block: 4rem; }
.hero h1 { font-size: clamp(2.2rem, 6.5vw, 4.4rem); margin-bottom: .4em; }
.hero h1 br + * , .hero h1 { text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.hero__lead { max-width: 620px; font-size: clamp(1rem, 2.2vw, 1.2rem); opacity: .95; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--dark { background: var(--ink); color: var(--light); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--gold { background: var(--gold); color: var(--ink); }
.section__head { max-width: 720px; margin-bottom: 2.5rem; }
.subhead { margin: 3rem 0 1.2rem; font-size: 1.5rem; font-weight: 900; }
.subhead--light { color: #fff; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { margin: 0; position: relative; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 4px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.stats {
  margin-top: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1rem; text-align: center;
  border-bottom: 4px solid var(--gold);
}
.stat b { display: block; font-size: 2.4rem; color: var(--gold); line-height: 1.1; }
.stat b[data-count]::after { content: "+"; }
.stat span { font-size: .95rem; opacity: .9; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--ink-2); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #333; transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.2rem 1.3rem 1.4rem; }
.card h3 { color: var(--gold) !important; }
.card p { margin: 0; color: #cfc8b8; font-size: .97rem; }

/* Crusher */
.crusher { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.crusher3d {
  position: relative; aspect-ratio: 3/4; width: 100%; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--ink);
  background: radial-gradient(120% 80% at 50% 30%, #3a3324 0%, #1a1814 55%, #0d0d0d 100%);
}
.crusher3d__poster { width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.crusher3d__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; opacity: 0; transition: opacity .6s; }
.crusher3d__canvas:active { cursor: grabbing; }
.crusher3d.is-ready .crusher3d__canvas { opacity: 1; }
.crusher3d.is-ready .crusher3d__poster { opacity: 0; }
.crusher3d__badge, .crusher3d__hint {
  position: absolute; z-index: 1; pointer-events: none; font-weight: 700; border-radius: 999px; padding: .25em .9em;
  opacity: 0; transition: opacity .5s;
}
.crusher3d.is-ready .crusher3d__badge, .crusher3d.is-ready .crusher3d__hint { opacity: 1; }
.crusher3d__badge { top: 14px; inset-inline-start: 14px; background: var(--gold); color: var(--ink); font-size: .85rem; direction: ltr; }
.crusher3d__hint { bottom: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: .85rem; white-space: nowrap; }
.crusher3d.is-ready .crusher3d__hint.is-hidden { opacity: 0; }
.lead { font-size: 1.15rem; font-weight: 600; }
.tabs { display: inline-flex; background: rgba(0,0,0,.12); padding: 4px; border-radius: 999px; margin: .5rem 0 1rem; }
.tab {
  font: inherit; font-weight: 700; border: 0; background: transparent; padding: .45em 1.5em; border-radius: 999px; cursor: pointer; color: var(--ink);
}
.tab.is-active { background: var(--ink); color: var(--gold); }
.tabpanel { background: rgba(255,255,255,.35); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.4rem; }
.tabpanel p { margin: 0; }

.uses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.uses li { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.2rem; font-weight: 600; display: flex; flex-direction: column; gap: .4rem; }
.uses .ico { font-size: 1.8rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { background: var(--gold-soft); border-radius: var(--radius); padding: 1.2rem 1.3rem; border-inline-start: 5px solid var(--ink); }
.feature b { display: block; font-size: 1.1rem; margin-bottom: .3rem; }
.feature p { margin: 0; font-size: .96rem; color: #3b3427; }

/* Supplies */
.supplies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.supply { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.07); border-top: 5px solid var(--gold); }
.supply img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.supply h3 { margin: 1rem 1.2rem .3rem; }
.supply p { margin: 0 1.2rem 1.3rem; color: var(--muted); font-size: .96rem; }

/* Projects */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid #333; }
.projects-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.projects-table th { background: var(--gold); color: var(--ink); text-align: start; padding: .9rem 1rem; font-weight: 900; }
.projects-table td { padding: .8rem 1rem; border-top: 1px solid #2c2c2c; }
.projects-table tbody tr:nth-child(even) { background: var(--ink-2); }
.projects-table tbody tr:hover { background: #2a2410; }
.projects-table td:first-child { font-weight: 700; color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 10px; cursor: zoom-in; transition: transform .2s, filter .2s; filter: saturate(.9); }
.gallery img:hover { transform: scale(1.03); filter: none; }

/* Quote form */
.quote { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: var(--ink); padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: .35rem; color: var(--gold); font-weight: 700; font-size: .95rem; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff; border: 2px solid transparent;
  border-radius: 10px; padding: .6em .8em; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form__error { color: #ffb4a8; margin: 0; font-weight: 600; }
.form__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.form .btn--dark { background: var(--gold); color: var(--ink); }
.form .btn--outline { border-color: var(--gold); color: var(--gold); }
.form .btn--outline:hover { background: var(--gold); color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 1.2rem; }
.contact__list li { display: flex; flex-direction: column; gap: .2rem; }
.contact__list span { color: var(--gold); font-weight: 700; font-size: .9rem; }
.contact__list a { text-decoration: none; font-size: 1.15rem; font-weight: 600; width: fit-content; }
.contact__list a:hover { color: var(--gold); }
.contact__list p { margin: 0; }
.social { display: flex; gap: .7rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; justify-content: center; padding: .5em 1.1em; border: 2px solid var(--gold); color: var(--gold); border-radius: 999px; text-decoration: none; font-weight: 700; }
.social a:hover { background: var(--gold); color: var(--ink); }
.contact__map { min-height: 360px; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--gold); }
.contact__map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.3); }

/* Footer */
.footer { background: #000; color: #aaa; padding: 1.5rem 0; border-top: 3px solid var(--gold); font-size: .92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.brand--footer { color: #ddd; }
.brand--footer img { width: 48px; }

/* WhatsApp float */
.wa-float {
  position: fixed; bottom: 20px; left: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 10px; }
.lightbox__close { position: absolute; top: 12px; left: 16px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .supplies, .uses { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 1rem; }
  .nav a { font-size: .9rem; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: .5rem 16px 1.2rem; border-bottom: 3px solid var(--gold);
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid #2a2a2a; font-size: 1.05rem; }
  .nav__cta { margin-top: .8rem; border-bottom: 0 !important; }
  .about, .crusher, .quote, .contact { grid-template-columns: 1fr; }
  .crusher3d { aspect-ratio: 4/3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards, .features, .supplies, .uses { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .brand__text small { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .about__media::before { display: none; }
}
