/* ==========================================================================
   Rota Mekke — base: tokens, reset, typography, header, footer, shared bits
   ========================================================================== */
:root {
  --night: #0b100e;
  --night-2: #121916;
  --night-3: #1b2420;
  --sand: #f2ece1;
  --sand-2: #e9e0cf;
  --stone: #d4c7ae;
  --ink: #17140f;
  --ink-2: #463f33;
  --muted: #6b6456;
  --muted-d: #a79f8f;
  --gold: #c9a45c;
  --gold-2: #e8d29d;
  --gold-ink: #7a5e27;
  --line: rgba(23, 20, 15, .14);
  --line-d: rgba(242, 236, 225, .14);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --arabic: "Amiri", "Geeza Pro", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --r: 20px;
  --wrap: min(1320px, calc(100% - 2 * clamp(20px, 4vw, 56px)));
  /* 8-point star lattice (khatam) */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c9a45c' stroke-width='.8'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3Cpath d='M0 0l20 20M80 0L60 20M0 80l20-20M80 80L60 60M40 0v11.7M40 80V68.3M0 40h11.7M80 40H68.3'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--sand); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--night); border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.display { font: 400 clamp(52px, 9.2vw, 148px)/.9 var(--serif); letter-spacing: -.035em; }
.h2 { font: 400 clamp(40px, 5.6vw, 84px)/.95 var(--serif); letter-spacing: -.03em; }
.h3 { font: 400 clamp(26px, 2.4vw, 36px)/1.05 var(--serif); letter-spacing: -.015em; }
.display i, .h2 i, .h3 i { font-style: italic; color: var(--gold); }
.on-sand .h2 i, .on-sand .h3 i { color: var(--gold-ink); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.on-night .lead { color: var(--muted-d); }
.ar { font-family: var(--arabic); direction: rtl; }

/* Airport-signage gate label: [A1] Hizmetler */
.gate { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gate b { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 5px; background: var(--ink); color: var(--gold-2); font-weight: 500; letter-spacing: .06em; }
.on-night .gate { color: var(--muted-d); }
.on-night .gate b { background: var(--gold); color: var(--night); }

.on-night { background: var(--night); color: var(--sand); }
.on-sand { background: var(--sand); color: var(--ink); }
.section { padding-block: clamp(88px, 12vw, 168px); position: relative; }
.section__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head .gate { grid-column: 1 / -1; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--ink); --fg: var(--sand); display: inline-flex; align-items: center; gap: 14px; height: 54px; padding: 0 8px 0 24px; border: 0; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 500; font-size: 15px; white-space: nowrap; transition: transform .3s var(--ease), background .3s; }
.btn__i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: var(--bg); overflow: hidden; }
.btn__i svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .btn__i svg { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: scale(.97); }
.btn--gold { --bg: var(--gold); --fg: var(--night); }
.btn--gold:hover { --bg: var(--gold-2); }
.btn--light { --bg: var(--sand); --fg: var(--night); }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; padding-right: 24px; }
.btn--ghost:hover { background: rgba(201, 164, 92, .12); }
.btn--sm { height: 44px; padding-left: 18px; font-size: 14px; }
.btn--sm .btn__i { width: 30px; height: 30px; }
.link { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.hdr { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.hdr__bar { pointer-events: auto; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(11, 16, 14, .55); color: var(--sand); border: 1px solid rgba(242, 236, 225, .1); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); transition: background .4s, box-shadow .4s; }
.hdr.is-scrolled .hdr__bar { background: rgba(11, 16, 14, .86); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; filter: invert(78%) sepia(24%) saturate(700%) hue-rotate(356deg) brightness(92%); }
.brand__w { display: flex; flex-direction: column; line-height: 1; }
.brand__w strong { font: 600 15px/1 var(--sans); letter-spacing: .22em; }
.brand__w small { margin-top: 4px; font: 500 9px/1 var(--mono); letter-spacing: .5em; color: var(--gold); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 9px 14px; border-radius: 999px; font-size: 14px; color: rgba(242, 236, 225, .72); transition: color .25s, background .25s; }
.nav a:hover { color: var(--sand); background: rgba(242, 236, 225, .07); }
.nav a[aria-current="page"] { color: var(--night); background: var(--sand); }
.hdr__cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sand); color: var(--night); }
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Page hero (sub pages) ---------- */
.phero { position: relative; padding: clamp(150px, 20vw, 230px) 0 clamp(64px, 8vw, 110px); overflow: hidden; background: var(--night); color: var(--sand); isolation: isolate; }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pattern) 0 0 / 80px; opacity: .07; mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%); }
.phero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.phero .display { font-size: clamp(52px, 8vw, 128px); margin-top: 28px; }
.phero__side { display: grid; gap: 24px; justify-items: start; }
.phero__ar { position: absolute; right: -2vw; bottom: -.28em; z-index: -1; font: 400 clamp(160px, 26vw, 400px)/1 var(--arabic); color: rgba(201, 164, 92, .07); pointer-events: none; white-space: nowrap; }

/* ---------- Kiswa band (gold on black, like the Kaaba's hizam) ---------- */
.kiswa { position: relative; overflow: hidden; background: #070a09; color: var(--gold); border-block: 1px solid rgba(201, 164, 92, .35); }
.kiswa::before, .kiswa::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 10px); opacity: .45; }
.kiswa::before { top: 6px; } .kiswa::after { bottom: 6px; }
.kiswa__track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.kiswa__track span { display: flex; align-items: center; gap: 40px; padding: 26px 20px; font: 400 clamp(26px, 3vw, 40px)/1 var(--arabic); white-space: nowrap; }
.kiswa__track em { font: italic 400 clamp(20px, 2vw, 28px)/1 var(--serif); color: var(--gold-2); }
.kiswa__track i { width: 14px; height: 14px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 4px #070a09, 0 0 0 5px var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: hidden; background: var(--night); color: var(--sand); padding: clamp(80px, 10vw, 140px) 0 28px; isolation: isolate; }
.ftr__cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-bottom: 72px; border-bottom: 1px solid var(--line-d); }
.ftr__cta .h2 { font-size: clamp(48px, 7vw, 112px); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px 0; }
.ftr__grid h4 { margin-bottom: 18px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-d); }
.ftr__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__grid li a { color: rgba(242, 236, 225, .8); transition: color .2s; }
.ftr__grid li a:hover { color: var(--gold); }
.ftr__grid p { color: var(--muted-d); max-width: 32ch; margin-top: 18px; font-size: 15px; }
.ftr__word { font: 400 clamp(90px, 22vw, 360px)/.78 var(--serif); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, .35); text-align: center; user-select: none; margin: 10px 0 30px; white-space: nowrap; }
.ftr__word i { color: rgba(201, 164, 92, .12); -webkit-text-stroke: 0; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted-d); text-transform: uppercase; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 600; font-size: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transition: transform .35s var(--ease); }
.wa-float:hover { transform: translateY(-3px); }
.wa-float span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--night); color: var(--gold); }
.wa-float svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js [data-split].is-in .w > span { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: block; }
  .nav.is-open { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 2px; padding: 12px; border-radius: 28px; background: rgba(11, 16, 14, .96); border: 1px solid var(--line-d); backdrop-filter: blur(20px); }
  .nav.is-open a { padding: 16px 18px; font: 400 28px/1 var(--serif); }
  .hdr__bar { position: relative; }
  .section__head, .phero__grid, .ftr__cta { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ftr__grid { grid-template-columns: 1fr; }
  .wa-float { padding-right: 8px; } .wa-float b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span { opacity: 1; transform: none; }
}
