@font-face {
  font-family: 'Cayuse';
  src: url('FONT/Cayuse.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&family=Source+Code+Pro:wght@700&display=swap');

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── ROOT TOKENS ────────────────────────────────────────── */
:root {
  --dark: #272727;
  --gray: #939191;
  --accent: #ff6600;
  --footer-bg: #c2bab1;
  --font-mono: 'Courier Prime', monospace;
  --font-code: 'Source Code Pro', monospace;

  /* 12-column grid: offset 10px, gutter 10px, col-width ≈ 109px */
  --left-margin:  129px;  /* col 2 start */
  --right-margin:  10px;  /* grid right offset (gallery/images extend to here) */
  --right-content: 129px; /* mirror of left margin for text/nav/footer */

  /* Named column starts for precision alignment */
  --col3:  248px;
  --col4:  367px;
  --col7:  725px;
  --col8:  844px;
  --col9:  963px;
  --col11: 1202px;
}

/* ─── BASE TYPOGRAPHY & RENDERING ───────────────────────── */
html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.3;
  min-width: 1024px;

  /* Font smoothing — biggest visual improvement on Mac/Retina */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Optical kerning and ligatures */
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

a {
  color: inherit;
  text-decoration: none;
  /* Smooth color transitions on links */
  transition: color 0.18s ease, opacity 0.18s ease;
}

img {
  display: block;
  max-width: 100%;
  /* Sharper image rendering on high-DPI screens */
  image-rendering: -webkit-optimize-contrast;
}

/* Custom text selection */
::selection {
  background: var(--accent);
  color: #fff;
}
::-moz-selection {
  background: var(--accent);
  color: #fff;
}

/* Minimal scrollbar — thin and subtle */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--dark); }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ─── FLOWER ─────────────────────────────────────────────── */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}
.flower {
  width: 152px;
  height: auto;
  animation: spin 12s linear infinite;
  flex-shrink: 0;
  /* GPU-accelerated animation */
  will-change: transform;
  backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .flower { animation: none; }
}

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  height: 310px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.site-header.light { background: #fff; color: var(--dark); }
.site-header.dark  { background: var(--dark); color: #fff; }

.header-topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px var(--right-content) 0 var(--left-margin);
}

.site-name {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header.light .site-name { color: var(--dark); }
.site-header.dark  .site-name { color: #fff; }

.site-nav { font-size: 13px; color: var(--gray); letter-spacing: 0.06em; }
.site-nav a { color: var(--gray); }
.site-nav a:hover { color: inherit; }
.site-nav a.active { color: var(--accent); }
.site-nav span { color: var(--gray); margin: 0 16px; }

.header-body {
  display: flex;
  align-items: flex-start;
  padding: 0 var(--right-margin) 0 52px;
  margin-top: 35px;
  gap: 0;
  flex: 1;
}

.flower-col {
  width: 195px;
  flex-shrink: 0;
}

.title-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 165px;
}

.page-title {
  font-family: 'Cayuse', serif;
  font-weight: normal;
  font-size: 100px;
  line-height: 1;
  letter-spacing: -0.01em;
  /* Better rendering for display type */
  text-rendering: geometricPrecision;
}
.site-header.light .page-title { color: var(--dark); }
.site-header.dark  .page-title { color: #fff; }

.header-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-right: 0;
}

.services-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.time-col {
  display: flex;
  align-items: flex-start; /* Dubai top-aligns with the date — both at same y in Figma */
  gap: 12px;
  flex-shrink: 0;
  padding-right: var(--right-content);
  font-variant-numeric: tabular-nums;
}

.dubai-label {
  font-size: 13px;
  color: var(--gray);
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.dubai-clock {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: var(--dark);
  padding: 48px var(--right-margin) 32px var(--left-margin);
}
.footer-inner {
  display: grid;
  /* Figma: col2-6 (596px), col7-8 (238px), col9-10 (239px), col11-12 (rest) */
  grid-template-columns: 596px 238px 239px 1fr;
  gap: 0;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-col p, .footer-col a {
  font-size: 13px;
  color: var(--dark);
  display: block;
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.footer-col a:hover { opacity: 0.6; }
.footer-bottom {
  margin-top: 48px;
  font-size: 13px;
  color: var(--dark);
  opacity: 0.6;
  letter-spacing: 0.06em;
}
