/* ==========================================================
   Rihan Global Group — stylesheet
   ========================================================== */
:root {
  --ink: #0b1520;
  --ink-2: #13212f;
  --ink-3: #1c2e40;
  --steel: #8c9aa8;
  --silver: #d5dce3;
  --paper: #f4f6f8;
  --white: #ffffff;
  --accent: #d71f2a;
  --accent-dark: #a8141d;
  --accent-bright: #ff3d47;
  --text: #1d2733;
  --muted: #5d6b79;
  --line: #e1e6eb;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(11, 21, 32, .35);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
svg { fill: currentColor; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .95em 1.7em;
  font: 600 .95rem/1 var(--body);
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: .7em 1.3em; font-size: .88rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .8rem/1 var(--body);
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: var(--silver); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; }
.topbar__links { display: flex; gap: 1.6rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45em; transition: color .2s; }
.topbar__links a:hover { color: var(--accent); }
.topbar__links svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11,21,32,.25); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.logo__mark { width: 42px; height: 42px; color: var(--accent); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text strong { font: 800 1.6rem/1 var(--head); letter-spacing: .08em; }
.logo__text small { font: 600 .68rem/1 var(--body); letter-spacing: .32em; color: var(--muted); margin-top: .25rem; }
.logo--light { color: var(--white); }
.logo--light .logo__text small { color: var(--steel); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { font-weight: 500; font-size: .95rem; position: relative; padding: .3em 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s, opacity .3s; }
.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: clamp(620px, calc(100vh - var(--header-h) - 36px), 920px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: zoom 18s ease-out forwards; }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,15,23,.92) 0%, rgba(8,15,23,.7) 45%, rgba(8,15,23,.15) 100%),
    linear-gradient(0deg, rgba(8,15,23,.85) 0%, transparent 40%);
}
.hero__content { padding: 7rem 0 3rem; max-width: 1200px; }
.hero__title { font-size: clamp(2.8rem, 6.4vw, 5.6rem); font-weight: 800; text-transform: uppercase; max-width: 16ch; margin-bottom: .35em; }
.hero__title span { color: var(--accent); }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 560px; color: #d6dee6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero__features {
  list-style: none; margin: 0 0 2.5rem; padding: 1.6rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero__features li { display: flex; flex-direction: column; }
.hero__features strong { font: 700 1.9rem/1.1 var(--head); color: var(--white); }
.hero__features span { font-size: .85rem; color: var(--steel); }

/* ---------- Marquee ---------- */
.marquee { background: var(--accent); color: var(--white); overflow: hidden; padding: 1rem 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee__track span {
  font: 700 1.5rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em;
  padding: 0 2rem; display: inline-flex; align-items: center; gap: 2rem; white-space: nowrap;
}
.marquee__track span::after { content: "◆"; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section__title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; text-transform: uppercase; color: var(--ink); }
.section__sub { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 12-12-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -1.5rem; bottom: 2rem;
  background: var(--ink); color: var(--white);
  padding: 1.4rem 1.6rem; border-radius: var(--radius); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.about__badge strong { display: block; font: 800 2.6rem/1 var(--head); color: var(--accent); }
.about__badge span { font-size: .85rem; color: var(--silver); }
.about__text p { color: var(--muted); }

/* ---------- Products ---------- */
.products { background: var(--paper); }
.products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.product {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.product:hover .product__media img { transform: scale(1.06); }
.product__chip {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(11,21,32,.85); color: var(--white); backdrop-filter: blur(4px);
  font: 600 .75rem/1 var(--body); letter-spacing: .06em;
  padding: .55em .9em; border-radius: 999px;
}
.product__body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 1.9rem; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.product__body > p { color: var(--muted); }
.specs { list-style: none; padding: 0; margin: .4rem 0 1.6rem; border-top: 1px solid var(--line); }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs li span:first-child { color: var(--muted); }
.specs li span:last-child { font-weight: 600; text-align: right; color: var(--ink); }
.product .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.process .section__title { color: var(--white); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.step {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--ink-3);
  transition: border-color .3s, transform .3s;
}
.step:hover { border-color: var(--accent); transform: translateY(-4px); }
.step__num { font: 800 3.2rem/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--accent-bright); display: block; margin-bottom: 1rem; }
.step h3 { font-size: 1.5rem; text-transform: uppercase; }
.step p { color: var(--steel); font-size: .93rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.6rem; right: -1.1rem; width: .7rem; height: .7rem;
  border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); z-index: 1;
}

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text > p { color: var(--muted); }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.logistics { background: var(--paper); }

.features { display: grid; gap: 1.3rem; margin-top: 1.8rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature svg { flex: none; width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: #fde4e5; color: var(--accent); }
.feature h4 { font-size: 1.3rem; text-transform: uppercase; margin-bottom: .2em; color: var(--ink); }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(5rem, 11vw, 8.5rem) 0; color: var(--white); overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,15,23,.95) 0%, rgba(8,15,23,.75) 50%, rgba(8,15,23,.2) 100%); }
.cta__inner { max-width: 1200px; }
.cta h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; text-transform: uppercase; max-width: 16ch; }
.cta p { color: #d6dee6; max-width: 480px; margin-bottom: 2rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__list svg { flex: none; width: 48px; height: 48px; padding: 13px; border-radius: 50%; background: var(--ink); color: var(--accent); }
.contact__list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact__list a, .contact__list p { font-weight: 600; color: var(--ink); margin: 0; }
.contact__list a:hover { color: var(--accent); }

.form { background: var(--paper); padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 .95rem var(--body); color: var(--text);
  padding: .85em 1em; border: 1px solid #cdd5dd; border-radius: 10px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(215,31,42,.18); }
.form .is-invalid { border-color: #d64545; }
.form__note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.3em; }
.form__note.is-error { color: #d64545; }
.form__note.is-ok { color: #1f8a4c; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--steel); padding: 4.5rem 0 0; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__about { margin-top: 1.2rem; max-width: 300px; }
.footer h4 { font-size: 1.25rem; text-transform: uppercase; color: var(--white); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--ink-3); margin-top: 3.5rem; padding: 1.4rem 0; font-size: .82rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

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

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .topbar__tag { display: none; }
  .topbar__inner { justify-content: center; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: .5rem 20px 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1rem; }

  .hero__features { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .split, .contact__grid, .products__grid { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .about__badge { right: 1rem; }
}

@media (max-width: 560px) {
  .topbar__links { gap: 1rem; font-size: .75rem; }
  .hero__content { padding-top: 4.5rem; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .product__body { padding: 1.4rem; }
  .product .btn { align-self: stretch; }
}

/* Brighter red on dark backgrounds for contrast */
.hero .eyebrow, .process .eyebrow, .hero__title span { color: var(--accent-bright); }

/* Map + address */
.map { margin-top: 2rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.footer__address { max-width: 300px; font-size: .85rem; }
