:root {
  --navy: #21415d;
  --navy-deep: #172f45;
  --red: #ed1c24;
  --red-dark: #c8141b;
  --ink: #1d2a36;
  --muted: #5d6b78;
  --line: #e3e7eb;
  --tint: #f5f2ed;
  --white: #fff;
  --radius: 22px;
  --corner: 0 0 0 56px; /* brochure signature: one big rounded corner */
  --shadow: 0 18px 50px -20px rgba(23, 47, 69, .35);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .95em 1.7em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem var(--display); text-decoration: none; cursor: pointer;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 25px -10px rgba(237, 28, 36, .7); }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--sm { padding: .6em 1.25em; font-size: .92rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .85rem var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}
.eyebrow--light { color: rgba(255,255,255,.85); }
.dot { width: 14px; height: 14px; background: var(--red); border-radius: 4px; display: inline-block; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.is-scrolled { padding: 10px 0; }
/* Frosted bar lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the bar. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.nav.is-scrolled::before { opacity: 1; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: block; position: relative; height: 62px; width: 82px; }
.nav__logo { height: 100%; width: auto; position: absolute; inset: 0; transition: opacity .3s; }
.nav__logo--dark { opacity: 0; }
.nav.is-scrolled .nav__logo--light { opacity: 0; }
.nav.is-scrolled .nav__logo--dark { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: #fff; text-decoration: none; font: 500 .98rem var(--display); position: relative; }
.nav.is-scrolled .nav__links a:not(.btn) { color: var(--navy); }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--red); transition: width .25s;
}
.nav__links a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }
.nav.is-scrolled .nav__toggle span { background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; padding-top: 110px;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23,47,69,.94) 0%, rgba(23,47,69,.78) 42%, rgba(23,47,69,.2) 75%, rgba(23,47,69,.05) 100%),
    linear-gradient(0deg, rgba(23,47,69,.7), transparent 40%);
}
.hero__content { position: relative; z-index: 1; padding-bottom: 150px; }
.hero__title {
  color: #fff; font-weight: 300; font-size: clamp(2.1rem, min(6.6vw, 8.6vh), 5.6rem); line-height: 1.02; margin-bottom: .35em;
}
.hero__title strong { font-weight: 800; }
.hero__title strong::after { content: ""; display: inline-block; width: .16em; height: .16em; background: var(--red); border-radius: .03em; margin-left: .06em; }
.hero__lead { max-width: 520px; font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__ar { font-family: "Noto Kufi Arabic", sans-serif; margin-top: 2.2rem; color: rgba(255,255,255,.6); font-size: 1rem; text-align: left; }
.hero__strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.hero__strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255,255,255,.1); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18); border-bottom: 0;
  border-radius: 28px 28px 0 0; overflow: hidden;
}
.hero__strip-inner div { padding: 22px 26px; border-right: 1px solid rgba(255,255,255,.14); }
.hero__strip-inner div:last-child { border-right: 0; }
.hero__strip-inner b { display: block; font: 700 1.8rem var(--display); }
.hero__strip-inner span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--navy {
  background: var(--navy-deep); color: #fff;
  background-image: radial-gradient(circle at 85% 10%, rgba(237,28,36,.18), transparent 35%), radial-gradient(circle at 0% 100%, rgba(255,255,255,.06), transparent 40%);
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--row h2 { margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__text p { color: var(--muted); font-size: 1.08rem; }
.why {
  background: var(--navy); color: #fff; padding: 44px; border-radius: var(--radius) var(--radius) var(--radius) 70px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.why::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
  border: 30px solid rgba(255,255,255,.05); border-radius: 50%;
}
.why h3 { color: #fff; font-size: 1.6rem; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why__list li { display: flex; gap: 14px; align-items: center; font: 500 1.05rem var(--display); }
.why__list i { font-style: normal; color: var(--red); background: rgba(255,255,255,.1); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex: none; }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; padding: 34px 32px 36px; border-radius: var(--radius) var(--radius) var(--radius) 56px;
  border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__num {
  font: 700 .9rem var(--display); color: var(--red); display: inline-block; margin-bottom: 18px;
  padding: 6px 12px; background: rgba(237,28,36,.08); border-radius: 8px;
}
.card p { color: var(--muted); margin: 0; }
.card--navy { background: var(--navy); border-color: var(--navy); }
.card--navy h3 { color: #fff; }
.card--navy p { color: rgba(255,255,255,.78); }
.card--navy .card__num { background: rgba(255,255,255,.12); color: #fff; }

/* Finishes */
.tabs { display: flex; gap: 6px; background: var(--tint); padding: 6px; border-radius: 999px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; padding: .65em 1.4em; border-radius: 999px; cursor: pointer;
  font: 600 .95rem var(--display); color: var(--navy); transition: .2s;
}
.tab.is-active { background: var(--navy); color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px; }
.swatch { margin: 0; animation: fadeUp .45s both; }
.swatch img {
  aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; border-radius: 4px 4px 4px 42px;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); transition: transform .3s;
}
.swatch:hover img { transform: scale(1.04); }
.swatch figcaption { font: 600 .8rem var(--display); letter-spacing: .06em; color: var(--navy); text-align: center; margin-top: 10px; }
.swatches__note { margin-top: 28px; color: var(--muted); font-size: .9rem; text-align: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Divisions */
.divisions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.division {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius) var(--radius) var(--radius) 56px; padding: 32px 28px; position: relative;
  transition: background .3s, transform .3s;
}
.division:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.division p { color: rgba(255,255,255,.72); font-size: .97rem; }
.division ul { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 8px; }
.division li { font-size: .95rem; padding-left: 20px; position: relative; color: rgba(255,255,255,.92); }
.division li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
.division--ai { background: linear-gradient(160deg, rgba(237,28,36,.22), rgba(255,255,255,.04)); border-color: rgba(237,28,36,.45); }
.division--ai .btn { margin-top: 20px; }
.badge { position: absolute; top: 20px; right: 20px; background: var(--red); color: #fff; font: 700 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* Quote */
.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote__intro p { color: var(--muted); font-size: 1.08rem; }
.quote__points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.quote__points li { display: flex; align-items: center; gap: 12px; font: 500 1.02rem var(--display); color: var(--navy); }
.quote__points li::before { content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; }
.form {
  background: #fff; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius) var(--radius) var(--radius) 70px;
  box-shadow: var(--shadow); display: grid; gap: 18px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font: 600 .9rem var(--display); color: var(--navy); }
.form label em { font-weight: 400; color: var(--muted); font-style: normal; }
.form input, .form select, .form textarea {
  font: 400 1rem var(--body); color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fbfbfc;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(33,65,93,.12); background: #fff; }
.form .is-invalid { border-color: var(--red); }
.form__error { color: var(--red); font-size: .92rem; margin: 0; min-height: 1em; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 70px); align-items: stretch; }
.contact dl { margin: 10px 0 28px; display: grid; grid-template-columns: auto 1fr; gap: 14px 26px; }
.contact dt { font: 600 .82rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); padding-top: 3px; }
.contact dd { margin: 0; font-size: 1.08rem; }
.contact dd a { text-decoration: none; color: var(--navy); font-weight: 700; }
.contact dd a:hover { color: var(--red); }
.contact__tag { font: 600 1.05rem var(--display); color: var(--navy); border-left: 4px solid var(--red); padding-left: 16px; }
.contact__map { border-radius: var(--radius) var(--radius) var(--radius) 70px; overflow: hidden; min-height: 380px; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Footer */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 56px 0 40px; text-align: center; border-top: 6px solid var(--red); }
.footer__inner { display: grid; justify-items: center; gap: 6px; }
.footer__logo { height: 90px; width: auto; margin-bottom: 14px; }
.footer p { margin: 0; }
.footer__copy { font-size: .85rem; opacity: .7; margin-top: 10px !important; }

/* ---------- Floating buttons ---------- */
.fab {
  position: fixed; right: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer; color: #fff;
  box-shadow: 0 12px 28px -8px rgba(0,0,0,.4); transition: transform .2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }
.fab--wa { bottom: 94px; background: #25d366; }
body.chat-open .fab--wa { display: none; }
.fab--chat { bottom: 24px; background: var(--red); }
.fab--chat::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: pulse 2.4s infinite; }
.fab--chat[aria-expanded="true"]::after { display: none; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.fab--chat .ico-close, .fab--chat[aria-expanded="true"] .ico-open { display: none; }
.fab--chat[aria-expanded="true"] .ico-close { display: block; }

/* ---------- Chat ---------- */
.chat {
  position: fixed; right: 22px; bottom: 96px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 130px));
  background: #fff; border-radius: 24px; box-shadow: 0 30px 70px -20px rgba(23,47,69,.55);
  display: flex; flex-direction: column; overflow: hidden; animation: chatIn .28s ease-out;
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.chat__head { background: var(--navy); color: #fff; display: flex; gap: 12px; align-items: center; padding: 16px 18px; }
.chat__avatar { width: 42px; height: 42px; border-radius: 12px; background: #fff; padding: 4px; }
.chat__head strong { display: block; font-family: var(--display); }
.chat__head > div { flex: 1; }
.chat__close { display: none; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; place-items: center; }
.chat__close svg { width: 20px; height: 20px; }
.chat__head span { font-size: .8rem; opacity: .8; display: flex; align-items: center; gap: 6px; }
.online { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.chat__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #f6f7f9; }
.msg { max-width: 85%; padding: 11px 15px; border-radius: 18px; font-size: .95rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg--bot { background: #fff; color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.msg--user { background: var(--navy); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg a { color: var(--red); font-weight: 700; }
.msg--typing { display: flex; gap: 4px; }
.msg--typing i { width: 7px; height: 7px; background: #9aa6b2; border-radius: 50%; animation: blink 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .2s; }
.msg--typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips button {
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px;
  padding: 7px 13px; font: 600 .82rem var(--display); cursor: pointer; transition: .2s;
}
.chips button:hover { background: var(--navy); color: #fff; }
.chat__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__input input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font: 400 16px var(--body); }
.chat__input input:focus { outline: 0; border-color: var(--navy); }
.chat__input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat__input button svg { width: 20px; height: 20px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { gap: 20px; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .divisions { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--navy-deep);
    flex-direction: column; align-items: flex-start; padding: 100px 32px; gap: 22px;
    transform: translateX(100%); transition: transform .35s ease;
  }
  .nav__links.is-open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.3); }
  .nav__links a:not(.btn), .nav.is-scrolled .nav__links a:not(.btn) { color: #fff; font-size: 1.2rem; }
  .nav__toggle { position: relative; z-index: 2; }
  .nav__toggle[aria-expanded="true"] span, .nav.is-scrolled .nav__toggle[aria-expanded="true"] span { background: #fff; }
  .nav__links { height: 100vh; height: 100dvh; overflow-y: auto; z-index: 1; }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,22,34,.55); z-index: 40; }
  body.menu-open .fab { display: none; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about, .quote, .contact__grid { grid-template-columns: 1fr; }
  .hero { justify-content: flex-end; min-height: 100svh; }
  .hero__strip { position: relative; }
  .hero__content { padding-bottom: 36px; }
  .section__head { margin-bottom: 36px; }
  .hero__strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hero__strip-inner div:nth-child(2) { border-right: 0; }
  .hero__strip-inner div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .eyebrow { letter-spacing: .1em; font-size: .78rem; }
  .hero__lead { font-size: 1.02rem; }
  .hero__ar { margin-top: 1.4rem; }
  .card, .division { padding: 28px 24px; }
  .contact dl { grid-template-columns: 1fr; gap: 4px; }
  .contact dd { margin-bottom: 12px; }
  .footer__logo { height: 72px; }
  .products, .divisions, .form__row { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .why { padding: 32px 26px; }
  .tabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .tab { padding: .65em .4em; }
  .nav__brand { height: 52px; width: 69px; }
  .hero__strip-inner div { padding: 16px 18px; }
  .hero__strip-inner b { font-size: 1.4rem; }
  .fab { right: 16px; width: 54px; height: 54px; }
  .fab--wa { bottom: 84px; }
  .fab--chat { bottom: 18px; }
  /* Phones: full-screen chat sized to the visible area above the keyboard */
  .chat {
    inset: auto 0 auto 0; top: var(--vv-top, 0px); width: 100%; height: var(--vv-height, 100dvh);
    border-radius: 0; animation: none;
  }
  .chat__head { padding-top: max(16px, env(safe-area-inset-top)); }
  .chat__input { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat__close { display: grid; }
  body.chat-open { overflow: hidden; }
  body.chat-open .fab { display: none; }
  .form__actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 380px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__strip-inner span { font-size: .8rem; }
  .swatches { gap: 12px; }
  .swatch figcaption { font-size: .7rem; letter-spacing: .02em; }
}
/* short landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 90px; }
  .hero__ar { display: none; }
  .chat { height: calc(100svh - 40px); bottom: 20px; right: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
