/* Al Amir Home — Hero redesign design system */

:root {
  --brand-orange: #FF682F;
  --brand-orange-soft: oklch(0.72 0.18 38);
  --brand-orange-dim: oklch(0.55 0.15 38);

  --warm-ink: #0f0c0a;
  --warm-ink-2: #1a1411;
  --warm-ink-3: #2a211b;
  --warm-line: rgba(255, 245, 230, 0.12);
  --warm-line-strong: rgba(255, 245, 230, 0.28);

  --cream: #f5efe4;
  --cream-2: #ebe4d4;
  --cream-3: #e0d6c0;
  --paper: #faf6ee;
  --ink: #15110e;
  --ink-2: #4a3f33;
  --ink-3: #8a7a66;

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

/* ── Variation Container ─────────────────────────────────────── */
.alamir-page {
  width: 1440px;
  font-family: var(--font-sans);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Display type ─────────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.display em {
  font-style: italic;
  font-weight: 400;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}

.body-lg {
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-orange {
  background: var(--brand-orange);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(255, 104, 47, 0.5);
}
.btn-orange:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(255, 104, 47, 0.7); }

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.12); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 17, 14, 0.18);
}
.btn-ghost-light:hover { background: rgba(20, 17, 14, 0.05); }

.btn-solid-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid-dark:hover { transform: translateY(-1px); background: #000; }

.btn .arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  align-items: center;
  justify-content: center;
  transition: transform .25s ease, background .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-orange .arrow { background: rgba(255,255,255,0.22); }
.btn-ghost-light .arrow { background: var(--ink); color: var(--paper); }

/* ── Nav (shared base) ────────────────────────────────────────── */
.alamir-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
}
.alamir-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.alamir-nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.alamir-nav-logo .wm {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.alamir-nav-logo .wm .name {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.alamir-nav-logo .wm .tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 3px;
  opacity: 0.7;
}
.alamir-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.alamir-nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity .2s;
}
.alamir-nav-links a:hover { opacity: 1; }
.alamir-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* light/dark nav variants */
.alamir-nav.on-dark { color: rgba(255,255,255,0.85); }
.alamir-nav.on-dark .alamir-nav-links a { color: rgba(255,255,255,0.7); }
.alamir-nav.on-dark .alamir-nav-links a:hover { color: #fff; }
.alamir-nav.on-light { color: var(--ink); }
.alamir-nav.on-light .alamir-nav-links a { color: var(--ink-2); }
.alamir-nav.on-light .alamir-nav-links a:hover { color: var(--ink); }

.locale-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.locale-pill.dark {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.14);
}
.locale-pill.light {
  background: rgba(20,17,14,0.05);
  color: var(--ink-2);
  border: 1px solid rgba(20,17,14,0.12);
}
.locale-pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-orange);
}

/* ── Reusable section bits ────────────────────────────────────── */
.section { padding: 120px 56px; }
.section.tight { padding: 80px 56px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 72px;
}
.section-head .left h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 18px 0 0 0;
}
.section-head .left h2 em { font-style: italic; }
.section-head .right { max-width: 360px; font-size: 14px; line-height: 1.6; opacity: 0.7; }

/* ── Index counter ───────────────────────────────────────────── */
.idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 500;
  opacity: 0.5;
}

/* ── Image slot defaults inside artboard ─────────────────────── */
image-slot {
  display: block;
}

/* Subtle pulse for the live status pill */
@keyframes alamirPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.pulse-dot {
  animation: alamirPulse 2s ease-in-out infinite;
}

/* Underline link */
.ul-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding-bottom: 4px;
  color: inherit;
}
.ul-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  opacity: 0.4;
  transition: opacity .2s;
}
.ul-link:hover::after { opacity: 1; }

/* ── Marquee ──────────────────────────────────────────────────── */
@keyframes alamirMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: alamirMarquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 48px;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 56px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.marquee-item .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand-orange);
  flex-shrink: 0;
}

/* ── Stat ─────────────────────────────────────────────────────── */
.stat .n {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat .n em { font-style: italic; }
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: 0.65;
}

/* ── Cards ────────────────────────────────────────────────────── */
.svc-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  transition: transform .35s ease;
}
.svc-card:hover { transform: translateY(-4px); }
.svc-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  opacity: 0.5;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.svc-card h3 em { font-style: italic; }
.svc-card p {
  font-size: 13px;
  line-height: 1.55;
  opacity: 0.65;
  margin: 14px 0 0 0;
}
.svc-card .arrow-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .25s, color .25s;
}

/* ── Project tile ─────────────────────────────────────────────── */
.proj-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.proj-tile image-slot {
  width: 100%;
  height: 100%;
}
.proj-tile .meta {
  position: absolute;
  left: 24px; bottom: 24px;
  color: #fff;
  z-index: 2;
}
.proj-tile .meta .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.proj-tile .meta .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.proj-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
  z-index: 1;
}

/* ── Footer ──────────────────────────────────────────────────── */
.alamir-footer {
  background: var(--warm-ink);
  color: rgba(255,245,230,0.7);
  padding: 80px 56px 40px;
}
.alamir-footer h3 {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--cream);
  margin: 0 0 60px 0;
}
.alamir-footer h3 em { font-style: italic; }
.alamir-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-top: 0;
}
.alamir-footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,245,230,0.5);
  margin: 0 0 18px 0;
}
.alamir-footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,245,230,0.85);
  text-decoration: none;
  padding: 6px 0;
  transition: color .2s;
}
.alamir-footer-col a:hover { color: var(--brand-orange); }

/* Footer map embed */
.footer-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 245, 230, 0.04);
  border: 1px solid rgba(255, 245, 230, 0.1);
  margin-top: 4px;
}
.footer-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.82) hue-rotate(180deg);
}
.footer-visit { max-width: 280px; }
.alamir-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--warm-line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,245,230,0.45);
}
