/* ═══════════════════════════════════════════════════════════════════
   Al Riyah Al Hamra — one-page site
   Tokens measured from the original Framer build.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --green:       #006838;
  --green-light: #078249;
  --green-deep:  #005630;
  --mint:        #edffe3;
  --ink:         #141414;
  --muted:       #636363;
  --off-white:   #fafafa;
  --white:       #ffffff;
  --line:        rgba(20, 20, 20, .1);

  --serif: "Hedvig Letters Serif", Georgia, serif;
  --sans:  Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1140px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

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

/* Anchor clicks are animated in JS; this covers hash-on-load and keyboard focus. */
html { scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -.05em;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
}
h1 { font-size: 56px; line-height: 70px; letter-spacing: -.03em; }
h2 { font-size: 45px; line-height: 1.35; letter-spacing: -.03em; }
h3 { font-size: 20px; line-height: 1.4; letter-spacing: -.03em; }

p { margin: 0; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── Buttons ─────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  letter-spacing: -.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

.btn__icon {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 50%;
  display: inline-block;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat,
    var(--white);
}
.btn--white .btn__icon {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat,
    var(--green);
}

.link-plain { font-weight: 500; letter-spacing: -.03em; }
.link-plain:hover { text-decoration: underline; }

/* ── Navbar ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__wordmark {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav__inner { position: relative; }
.nav__menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(20, 20, 20, .05); }

.nav__link {
  position: relative;
  font-size: 15px;
  letter-spacing: -.02em;
  transition: color .25s ease;
}
.nav__link:hover { color: var(--green); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.nav__link.is-active { color: var(--green); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__menu-cta { display: none; }
.nav__burger { display: none; }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero-wrap { padding: 16px 0 0; }

.hero {
  position: relative;
  min-height: 576px;
  padding: 118px 0 0 40px;
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; max-width: 660px; padding-bottom: 96px; }
.hero h1 { color: var(--white); max-width: 640px; margin-bottom: 22px; }
.hero__sub {
  max-width: 470px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .92);
}
.hero__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero__figure { position: absolute; right: 0; bottom: 0; z-index: 1; }
.hero__figure img { width: 450px; height: auto; }

.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 15px;
}
.rating__stars { letter-spacing: 2px; font-size: 15px; }
.rating--dark { justify-content: center; color: var(--ink); }

/* ── Sections ────────────────────────────────────────────────────── */

.section { padding: 110px 0; }
.section--alt { background: var(--off-white); }

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green);
  font-size: 15px;
  letter-spacing: -.02em;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow--light { color: var(--white); justify-content: flex-start; }

.section__title {
  max-width: 620px;
  margin: 18px auto 0;
  text-align: center;
}
.section__title--narrow { max-width: 460px; }

.section__sub {
  max-width: 480px;
  margin: 20px auto 0;
  color: var(--muted);
  text-align: center;
}

/* ── Why choose us ───────────────────────────────────────────────── */

/* Outer mint panel with two white cards sitting on top of it. */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 56px auto 0;
  padding: 5px 5px 60px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(237, 255, 227, .35), var(--mint));
}
.why__card {
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(0, 104, 56, .05);
}
.why__item { padding: 18px 0; }
.why__heading {
  position: relative;
  margin-bottom: 8px;
  padding-left: 34px;
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.why__heading::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px 12px no-repeat,
    var(--green);
}
.why__item p { padding-left: 34px; color: var(--muted); font-size: 15px; }

/* ── Product carousel ────────────────────────────────────────────── */

/* Centre-focused loop. Cards are absolutely stacked and driven by a
   --offset custom property set in JS (0 = active, ±1 = the peeking sides). */
.carousel {
  --card-w: 580px;
  --card-h: 400px;
  --step: 502px;      /* centre-to-centre distance, measured from the original */
  --side-scale: .59;
  position: relative;
  margin-top: 56px;
  height: var(--card-h);
  overflow: hidden;
}
.carousel__track { position: relative; height: 100%; }

.pcard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--card-w);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(var(--offset, 0) * var(--step))) scale(var(--side-scale));
  transition: transform .45s cubic-bezier(.4, 0, .2, 1), opacity .45s ease;
}
.pcard.is-near { opacity: .55; pointer-events: auto; cursor: pointer; }
.pcard.is-active { transform: translateX(0) scale(1); opacity: 1; z-index: 2; }
.pcard img { width: 100%; height: var(--card-h); object-fit: cover; display: block; }
.pcard__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
}
.pcard__body h3 { font-family: var(--sans); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.pcard__body p { font-size: 15px; color: rgba(255, 255, 255, .9); }

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px; height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  transition: background .18s ease;
}
.carousel__btn:hover { background: var(--green-deep); }
.carousel__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 17px 17px no-repeat;
}
.carousel__btn--prev { left: calc(50% - 310px); }
.carousel__btn--prev::before { transform: rotate(180deg); }
.carousel__btn--next { right: calc(50% - 310px); }

/* ── Testimonial ─────────────────────────────────────────────────── */

.testimonial { text-align: center; }
.testimonial__quote {
  max-width: 600px;
  margin: 22px auto 34px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.35;
  letter-spacing: -.03em;
}
.testimonial__person { display: flex; justify-content: center; }
.testimonial__name { font-size: 19px; }
.testimonial__tags { margin-top: 6px; }
.testimonial__tags span {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  font-size: 13px;
}

/* ── Impact ──────────────────────────────────────────────────────── */

.impact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
}
.impact__img { width: 100%; max-width: 390px; height: auto; margin-inline: auto; }
.impact__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
.impact__col--left { justify-items: end; }
.impact__col--right { justify-items: start; }

.stat {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
  font-size: 15px;
}
.stat__value {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  white-space: nowrap;
}
.stat::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 1px;
  background: var(--line);
}
.impact__col--left .stat::after { left: 100%; }
.impact__col--right .stat::after { right: 100%; }

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq { max-width: 550px; margin: 56px auto 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  letter-spacing: -.03em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq__icon {
  width: 26px; height: 26px;
  flex: none;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat,
    var(--green);
  transition: transform .25s ease;
}
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(180deg); }

.faq__a { overflow: hidden; height: 0; transition: height .28s ease; }
.faq__a p { padding: 0 40px 24px 0; color: var(--muted); font-size: 15px; }

/* ── Contact ─────────────────────────────────────────────────────── */

.contact { background: var(--green); color: var(--white); padding: 90px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 530px; gap: 60px; align-items: center; }
.contact__title { margin: 18px 0 30px; color: var(--white); max-width: 460px; }

.contact__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 572px;
  margin-bottom: 32px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.contact__label {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.contact__detail a,
.contact__detail address {
  font-size: 14px;
  line-height: 21px;
  color: var(--white);
  font-style: normal;
}
.contact__detail a:hover { text-decoration: underline; }
.contact__image img { width: 100%; height: auto; border-radius: var(--radius-lg); }

.form { display: grid; gap: 16px; max-width: 572px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--white);
  font: inherit;
  letter-spacing: -.03em;
}
.form__field::placeholder { color: rgba(255, 255, 255, .72); }
.form__field:focus { outline: 2px solid rgba(255, 255, 255, .5); outline-offset: 1px; }
.form__field option { color: var(--ink); }
.form textarea.form__field { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { min-height: 20px; font-size: 14px; color: rgba(255, 255, 255, .85); }

/* ── Footer ──────────────────────────────────────────────────────── */

.footer { padding: 80px 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__tagline { margin-top: 20px; max-width: 300px; color: var(--muted); font-size: 15px; }
.footer__col { display: grid; align-content: start; gap: 12px; font-size: 15px; color: var(--muted); }
.footer__address { font-style: normal; line-height: 24px; }
.footer__heading { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   Motion
   Deliberate decision: this site does NOT honour prefers-reduced-motion.
   The client asked for the animations to play for every visitor, so there
   is no reduced-motion override here. Scrolling is animated from JS for
   the same reason — browsers suppress CSS smooth scrolling under that
   setting, which would otherwise make every anchor click an instant jump.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Load curtain ────────────────────────────────────────────────── */

.curtain {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: var(--green);
  transition: opacity .6s ease, visibility .6s ease;
}
.curtain__mark {
  width: 110px;
  height: 110px;
  /* the mark is brand-green; flip it to white to read on the green ground */
  filter: brightness(0) invert(1);
  animation: curtain-pulse 1.6s ease-in-out infinite;
}
@keyframes curtain-pulse {
  0%, 100% { opacity: .78; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.02); }
}

html.is-loading, html.is-loading body { overflow: hidden; }
html.is-loaded .curtain { opacity: 0; visibility: hidden; }
/* No JS: never leave a green sheet covering the page. */
html:not(.js) .curtain { display: none; }

/* ── Hero intro sequence ─────────────────────────────────────────── */

html.js .hero__in {
  opacity: 0;
  transform: translateY(26px);
}
html.is-loaded .hero__in {
  opacity: 1;
  transform: none;
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 90ms + 120ms),
              transform .8s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 90ms + 120ms);
}

/* ── Scroll reveal ───────────────────────────────────────────────── */
/* Hidden state lives in CSS behind html.js so it can never flash, and a
   visitor without JS gets the page fully visible. Items reveal as a group:
   the observer marks the container, the children stagger off --i. */

html.js [data-reveal-item] {
  opacity: 0;
  transform: translateY(28px);
}
html.js [data-reveal].is-visible [data-reveal-item],
html.js [data-reveal-item].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 80ms),
              transform .7s cubic-bezier(.22, .61, .36, 1) calc(var(--i, 0) * 80ms);
}

/* ── Tablet ──────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
  h1 { font-size: 46px; line-height: 1.15; }
  h2 { font-size: 38px; }

  .hero { padding: 48px 32px 0; min-height: 0; }
  .hero__copy { max-width: none; padding-bottom: 32px; }
  .hero h1, .hero__sub { max-width: none; }
  .hero__figure { position: static; display: flex; justify-content: center; }
  .hero__figure img { width: min(420px, 80%); }

  .carousel { --card-w: min(520px, 78vw); --card-h: 360px; --step: calc(var(--card-w) * .865); }
  .carousel__btn--prev { left: 16px; }
  .carousel__btn--next { right: 16px; }

  .why { max-width: none; }
  .impact { grid-template-columns: 1fr; }
  .impact__col { grid-auto-flow: row; justify-items: center !important; gap: 16px; }
  .impact__col--left { margin-bottom: 24px; }
  .stat::after { display: none; }

  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__burger {
    display: grid;
    gap: 5px;
    width: 42px; height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: none;
    cursor: pointer;
  }
  .nav__burger span {
    display: block;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .22s ease, opacity .22s ease;
  }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: grid;
    gap: 4px;
    padding: 16px 24px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav__menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link { padding: 10px 0; font-size: 17px; }
  .nav__menu-cta { display: inline-flex; justify-self: start; margin-top: 8px; }
}

/* ── Mobile ──────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  h1 { font-size: 36px; }
  h2, .section__title { font-size: 30px; }

  .section { padding: 72px 0; }
  .hero { padding: 36px 20px 0; }
  .hero__actions { gap: 16px; }

  .why { grid-template-columns: 1fr; padding: 5px 5px 32px; margin-top: 36px; }
  .why__card { padding: 18px 22px; }
  .carousel { --card-w: 86vw; --card-h: 320px; --side-scale: .8; }
  .testimonial__quote { font-size: 26px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__details { grid-template-columns: 1fr; gap: 18px; }
  .contact { padding: 64px 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .nav__wordmark { font-size: 16px; }
}
