/* AJWA BURJ design layer. Loaded after the Tailwind CDN; covers what utilities can't. */
:root {
  --ink: #0b1424;
  --gold: #d5aa45;
  --paper: #f4f3ef;
  --line: rgba(11, 20, 36, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --frame: clamp(0.5rem, 1.1vw, 1rem);
}

html { scroll-padding-top: 6rem; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Type ---------- */
main h1, main h2, main h3, .display { text-wrap: balance; }
main h1, main h2, .display {
  font-weight: 600 !important;
  letter-spacing: -0.038em !important;
}
main h3 { letter-spacing: -0.018em; }
main p { text-wrap: pretty; }
.h-hero { font-size: clamp(2.75rem, 7.2vw, 6.5rem); line-height: 0.98; }
.h-section { font-size: clamp(2.1rem, 4.6vw, 3.75rem); line-height: 1.04; }
.muted-ink { color: #7a808c; }
.h-page { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.02; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 0.8125rem; line-height: 1.1rem; font-weight: 600; color: var(--ink);
}
.chip::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 99px; background: var(--gold); }
.chip-dark { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(10px); }

/* ---------- Floating header ---------- */
.nav-shell {
  background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  transition: box-shadow 0.4s var(--ease), background-color 0.4s;
}
.is-scrolled .nav-shell { background: rgba(255, 255, 255, 0.94); box-shadow: 0 18px 44px -24px rgba(11, 20, 36, 0.4); }
.nav-link { white-space: nowrap; border-radius: 999px; }
.nav-link:hover { background: rgba(11, 20, 36, 0.05); }
.nav-link[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  font-size: 0.9375rem; line-height: 1.25rem; font-weight: 600;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn .material-symbols-outlined { font-size: 1.2rem; transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e3bd61; }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #1c2b47; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-outline { border: 1px solid rgba(11, 20, 36, 0.18); color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.round-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.round-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Framed dark surfaces ---------- */
.frame { margin-left: var(--frame); margin-right: var(--frame); border-radius: clamp(1.25rem, 2.4vw, 2rem); overflow: hidden; }
.surface-ink {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(213, 170, 69, 0.2), transparent 65%),
    radial-gradient(60% 80% at 0% 100%, rgba(62, 99, 160, 0.28), transparent 70%),
    var(--ink);
}
/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(38rem, calc(100svh - 6.5rem), 54rem); background: var(--ink);
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, 0.38) 0%, rgba(11, 20, 36, 0.12) 30%, rgba(11, 20, 36, 0.9) 100%),
    linear-gradient(90deg, rgba(11, 20, 36, 0.62), transparent 65%);
}
.finder {
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(18px);
  border-radius: 1.25rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.finder a { border: 1px solid var(--line); border-radius: 999px; transition: background-color 0.25s, color 0.25s; }
.finder a:hover { background: var(--ink); color: #fff; }

/* Scroll-lit statement */
.statement .word { transition: opacity 0.25s linear; }

/* ---------- Project cards ---------- */
.project-card {
  position: relative; background: #fff; border-radius: 1.75rem; padding: 0.5rem; border: 1px solid var(--line);
  transition: box-shadow 0.5s var(--ease), border-color 0.3s;
}
.project-card:hover { box-shadow: 0 36px 70px -38px rgba(11, 20, 36, 0.45); border-color: rgba(11, 20, 36, 0.18); }
.card-media { position: relative; overflow: hidden; border-radius: 1.35rem; aspect-ratio: 4 / 3; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-card:hover .card-media img { transform: scale(1.05); }
.project-card:hover .card-go { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: rotate(-45deg); }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: 1.75rem; }
.pill-glass {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.75rem; line-height: 1rem; font-weight: 600;
}
.spec {
  display: inline-flex; padding: 0.4rem 0.75rem; border-radius: 999px; background: var(--paper);
  font-size: 0.8125rem; line-height: 1.1rem; font-weight: 500; color: #3b4453;
}
@media (min-width: 1024px) {
  .grid.project-bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid.project-bento > * { grid-column: span 3; }
  .grid.project-bento:not(:has(> .hidden)) > :nth-child(1) { grid-column: span 4; }
  .grid.project-bento:not(:has(> .hidden)) > :nth-child(2) { grid-column: span 2; }
  .grid.project-bento .card-media { aspect-ratio: auto; height: 27rem; }
}

/* ---------- Media tiles & rail ---------- */
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.75rem; background: var(--ink); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 20, 36, 0.05) 35%, rgba(11, 20, 36, 0.9)); }
.tile:hover > img { transform: scale(1.05); }
.rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: none; scroll-snap-align: start; }

.zoom-media img { transition: transform 1.1s var(--ease); }
.zoom-media:hover img { transform: scale(1.05); }

.bento-card { background: #fff; border: 1px solid var(--line); border-radius: 1.75rem; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(11, 20, 36, 0.4); }

.hero-short { min-height: clamp(34rem, 74svh, 44rem); }

/* ---------- Gallery mosaic ---------- */
@media (min-width: 1024px) {
  .grid.mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid.mosaic > * { grid-column: span 4; }
  .grid.mosaic:not(:has(> .hidden)) > :nth-child(1), .grid.mosaic:not(:has(> .hidden)) > :nth-child(7) { grid-column: span 7; }
  .grid.mosaic:not(:has(> .hidden)) > :nth-child(2), .grid.mosaic:not(:has(> .hidden)) > :nth-child(8) { grid-column: span 5; }
  .grid.mosaic:has(> .hidden) > * { grid-column: span 6; }
}

/* ---------- Filter bar & legal text ---------- */
.filter-bar { scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar > button { flex: none; }
.legal h2 { font-size: 1.25rem; line-height: 1.75rem; margin-top: 1.25rem; color: var(--ink); letter-spacing: -0.02em !important; }
.legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.35rem 0; }
.faq summary .material-symbols-outlined { transition: transform 0.35s var(--ease); }
.faq[open] summary .material-symbols-outlined { transform: rotate(45deg); }

/* ---------- Forms ---------- */
.ajwa-enquiry-form label { font-size: 0.8125rem; letter-spacing: 0; }
.ajwa-enquiry-form input:not([type="checkbox"]),
.ajwa-enquiry-form select,
.ajwa-enquiry-form textarea {
  border-radius: 0.9rem !important; background-color: var(--paper) !important;
  border: 1px solid transparent !important; min-height: 3.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.ajwa-enquiry-form input:focus,
.ajwa-enquiry-form select:focus,
.ajwa-enquiry-form textarea:focus {
  background-color: #fff !important; border-color: var(--ink) !important;
  box-shadow: 0 0 0 4px rgba(213, 170, 69, 0.28) !important; outline: none;
}
.ajwa-enquiry-form button[type="submit"], .ajwa-enquiry-form > div:last-child a { border-radius: 999px; min-height: 3.25rem; }

/* ---------- Footer wordmark ---------- */
.wordmark {
  font-size: clamp(3.25rem, 15.5vw, 14rem); line-height: 0.8; font-weight: 700; letter-spacing: -0.06em; white-space: nowrap;
  text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.015));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .rail { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
