/* ==========================================================================
   OMNE GROUP — Marbella
   Brand tokens derived from the OMNE wordmark: black ground, ivory letterforms,
   champagne-gold vertex.
   ========================================================================== */

:root {
  /* Ground */
  --ink-900: #000000;
  --ink-800: #070707;
  --ink-700: #0e0e0e;
  --ink-600: #161616;
  --ink-500: #1f1f1f;

  /* Ivory — sampled from the wordmark letterforms (slightly warm white) */
  --ivory: #f7f5f0;
  --ivory-dim: #cdc9c1;
  --muted: #96918a;

  /* Champagne gold — sampled from the V vertex gradient */
  --gold-100: #efe1bc;
  --gold-300: #dcc68c;
  --gold-500: #c9a75f;
  --gold-700: #a17f3e;
  --gold-900: #6e5427;

  --hairline: rgba(201, 167, 95, 0.22);
  --hairline-soft: rgba(247, 245, 240, 0.1);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Cairo", "Noto Kufi Arabic", sans-serif;

  /* Spacing rhythm — 8pt base */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  --measure: 62ch;
  --shell: 1440px;
  --gutter: clamp(20px, 5vw, 88px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 220ms;
  --dur-mid: 480ms;
  --dur-slow: 900ms;

  --z-nav: 100;
  --z-menu: 200;
  --z-float: 90;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink-900);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Visible focus for keyboard users only — never removed outright */
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--gold-700);
  color: var(--ink-900);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 999;
  background: var(--gold-500);
  color: var(--ink-900);
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: 16px;
}

/* Editorial micro-label: uppercase, wide-tracked, gold */
.eyebrow {
  font-family: var(--font-sans);
  font-size: clamp(10px, 0.72vw, 11px);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-500);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-700);
  flex: none;
}

.eyebrow--plain::before {
  display: none;
}

/* Section index numeral, e.g. 01 — */
.section-index {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold-700);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  font-weight: 300;
  line-height: 1.02;
}

.display em,
.headline em,
.hero__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-300);
}

.headline {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.lede {
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: var(--ivory-dim);
  max-width: var(--measure);
  font-weight: 300;
}

.body-text {
  color: var(--muted);
  max-width: var(--measure);
  line-height: 1.8;
}

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

/* The gold vertex from the wordmark, reused as an ornament */
.vertex {
  width: 12px;
  height: 11px;
  flex: none;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, var(--gold-100), var(--gold-700));
}

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 34px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--gold-700);
  color: var(--ivory);
  background: rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-300), var(--gold-700));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-mid) var(--ease-out);
  z-index: -1;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn:hover {
  color: var(--ink-900);
  border-color: var(--gold-300);
}

.btn:hover::after {
  transform: scaleY(1);
}

.btn--solid {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-700));
  color: var(--ink-900);
  border-color: transparent;
}

.btn--solid:hover {
  color: var(--ink-900);
  filter: brightness(1.08);
}

/* Underline link that draws in on hover */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory);
}

.link-underline::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 8px;
  width: 100%;
  height: 1px;
  background: var(--gold-500);
  transform: scaleX(1);
  transform-origin: inline-start;
  transition: transform var(--dur-mid) var(--ease-out);
}

.link-underline:hover::after {
  transform: scaleX(0.42);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 26px var(--gutter);
  transition: background var(--dur-mid) var(--ease-out),
    padding var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: 16px;
  border-bottom-color: var(--hairline);
}

.nav__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

/* Hamburger */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ivory);
  transition: transform var(--dur-mid) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Language switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.lang__btn:hover {
  color: var(--ivory);
}

.lang__btn[aria-pressed="true"] {
  color: var(--gold-500);
}

/* Full-screen menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--ink-900);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px var(--gutter) var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease-out),
    visibility var(--dur-mid) var(--ease-out);
}

.menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 1vh, 10px);
}

.menu__link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.14;
  /* Keeps the tap target ≥44px even at the small end of the type scale */
  padding-block: 6px;
  color: var(--ivory);
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
  width: fit-content;
  opacity: 0;
  transform: translateY(24px);
  transition: color var(--dur-fast) var(--ease-out);
}

.menu[data-open="true"] .menu__link {
  animation: menu-in var(--dur-slow) var(--ease-out) forwards;
}

.menu__link:hover {
  color: var(--gold-300);
}

.menu__num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-700);
}

.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-xl);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.menu__foot a,
.menu__foot span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@keyframes menu-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  /* Bottom padding clears the scroll cue so the CTA never sits under it */
  padding: calc(var(--space-3xl) + 40px) var(--gutter) 132px;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 24s var(--ease-in-out) infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.12);
  }
}

/* Scrim: the headline sits over sunlit white buildings, so this is measured
   against the brightest part of the frame, not the sky. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.22) 26%,
      rgba(0, 0, 0, 0.5) 58%,
      rgba(0, 0, 0, 0.82) 88%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.46) 38%,
      rgba(0, 0, 0, 0.08) 72%,
      transparent 100%
    );
}

.hero__inner {
  display: grid;
  gap: var(--space-lg);
  max-width: 1180px;
}

.hero__title {
  font-size: clamp(3rem, 8.6vw, 8.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md) var(--space-lg);
}

.hero__scroll {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 54px;
  background: linear-gradient(180deg, var(--gold-500), transparent);
  animation: scroll-pulse 2.4s var(--ease-in-out) infinite;
  transform-origin: top;
}

/* On short screens the cue costs more than it gives */
@media (max-height: 700px) {
  .hero__scroll {
    display: none;
  }

  .hero {
    padding-bottom: var(--space-xl);
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ==========================================================================
   Interior page hero (service + article pages)
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: 68svh;
  display: grid;
  align-items: end;
  padding: calc(var(--space-3xl) + 20px) 0 var(--space-2xl);
  isolation: isolate;
  overflow: hidden;
}

.page-hero .shell {
  display: grid;
  gap: var(--space-md);
  max-width: min(var(--shell), 1100px);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Bias upward: several source images carry a wordmark along their bottom edge */
  object-position: 50% 38%;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.42) 34%,
      rgba(0, 0, 0, 0.78) 76%,
      rgba(0, 0, 0, 0.96) 100%
    ),
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.4) 46%,
      transparent 100%
    );
}

/* Journal index has no photographic hero — just type on black */
.page-hero--short {
  min-height: auto;
  padding: calc(var(--space-3xl) + 20px) 0 var(--space-lg);
}

/* ==========================================================================
   Service "what this includes" list
   ========================================================================== */

.incl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.incl__item {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--ivory-dim);
  font-size: 15px;
}

.incl__item .vertex {
  position: relative;
  top: 2px;
  width: 8px;
  height: 7px;
}

/* ==========================================================================
   Other-services grid
   ========================================================================== */

.other-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (min-width: 700px) {
  .other-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.other-link {
  background: var(--ink-900);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 18px var(--space-md);
  font-family: var(--font-display);
  font-size: 1.25rem;
  transition: background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.other-link:hover {
  background: var(--ink-600);
  color: var(--gold-300);
}

/* ==========================================================================
   Article body
   ========================================================================== */

.article-body {
  max-width: 68ch;
  display: grid;
  gap: var(--space-md);
  color: var(--ivory-dim);
  font-size: 17px;
  line-height: 1.85;
}

.draft-note {
  border-inline-start: 2px solid var(--gold-700);
  padding: 14px 18px;
  background: var(--ink-700);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.draft-note strong {
  color: var(--gold-300);
  font-weight: 400;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding-block: clamp(var(--space-2xl), 12vw, var(--space-3xl));
}

.section--tight {
  padding-block: clamp(var(--space-xl), 8vw, var(--space-2xl));
}

.section__head {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  max-width: 900px;
}

/* Two-column editorial split */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--space-lg), 5vw, var(--space-2xl));
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.05fr 1fr;
  }

  .split--reverse .split__media {
    order: -1;
  }
}

.split__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.split__media img,
.split__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}

.split__media:hover img,
.split__media:hover video {
  transform: scale(1.05);
}

.split__body {
  display: grid;
  gap: var(--space-md);
  align-content: center;
}

/* ==========================================================================
   Capability row — the scannable version of what OMNE arranges
   ========================================================================== */

.caps {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-md);
}

.caps__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 6px;
}

.caps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-md);
}

.caps__list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-size: 14px;
  color: var(--ivory-dim);
  transition: color var(--dur-fast) var(--ease-out);
}

.caps__list a:hover {
  color: var(--gold-300);
}

.caps__list .vertex {
  width: 7px;
  height: 6px;
  opacity: 0.75;
  transition: opacity var(--dur-fast) var(--ease-out);
}

.caps__list a:hover .vertex {
  opacity: 1;
}

/* ==========================================================================
   Local-knowledge stat strip
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

@media (min-width: 780px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  background: var(--ink-900);
  padding: var(--space-lg) var(--space-md);
  display: grid;
  gap: 8px;
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1;
  /* Cormorant defaults to old-style figures, which turn "01" into "OI" */
  font-variant-numeric: lining-nums;
  background: linear-gradient(150deg, var(--gold-100), var(--gold-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Services grid — each service carries its own image or clip
   ========================================================================== */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg) var(--space-md);
}

@media (min-width: 640px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.svc-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: var(--space-sm);
  align-content: start;
}

.svc-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-700);
}

.svc-card__media img,
.svc-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.svc-card:hover .svc-card__media img,
.svc-card:hover .svc-card__media video {
  transform: scale(1.05);
}

/* Keeps the card name legible over the brighter frames */
.svc-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.svc-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  line-height: 1.15;
  transition: color var(--dur-fast) var(--ease-out);
}

.svc-card:hover .svc-card__name {
  color: var(--gold-300);
}

.svc-card__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.svc-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.svc-card__cta svg {
  transition: transform var(--dur-mid) var(--ease-out);
}

.svc-card:hover .svc-card__cta svg {
  transform: translateX(6px);
}

[dir="rtl"] .svc-card__cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .svc-card:hover .svc-card__cta svg {
  transform: scaleX(-1) translateX(6px);
}

/* Whole card is the hit area, without nesting interactive elements */
.svc-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  border-top: 1px solid var(--hairline);
}

.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px var(--space-lg);
  align-items: center;
  padding-block: clamp(var(--space-lg), 4vw, var(--space-xl));
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: padding-inline var(--dur-mid) var(--ease-out);
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 90px 1.1fr 1.4fr auto;
  }

  .service:hover {
    padding-inline: 24px;
  }
}

/* Gold wash that sweeps in behind the row on hover */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(201, 167, 95, 0.12),
    rgba(201, 167, 95, 0)
  );
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-out);
  pointer-events: none;
}

.service:hover::before,
.service:focus-within::before {
  opacity: 1;
}

.service__index {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--gold-700);
}

.service__name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.1;
}

.service__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 52ch;
}

.service__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-500);
  white-space: nowrap;
}

.service__cta svg {
  transition: transform var(--dur-mid) var(--ease-out);
}

.service:hover .service__cta svg {
  transform: translateX(6px);
}

[dir="rtl"] .service__cta svg {
  transform: scaleX(-1);
}

[dir="rtl"] .service:hover .service__cta svg {
  transform: scaleX(-1) translateX(6px);
}

/* Make the whole row clickable without nesting interactive elements */
.service__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ==========================================================================
   Journal
   ========================================================================== */

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .journal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post {
  display: grid;
  gap: var(--space-sm);
  position: relative;
}

.post__media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--ink-700);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.post:hover .post__media img {
  transform: scale(1.06);
}

.post__date {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.post__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.22;
  transition: color var(--dur-fast) var(--ease-out);
}

.post:hover .post__title {
  color: var(--gold-300);
}

.post__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* ==========================================================================
   Reel — vertical clips in a horizontally scrolling strip
   ========================================================================== */

.reel {
  position: relative;
}

.reel__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

/* Pause control — autoplaying clips must be stoppable (WCAG 2.2.2) */
.reel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.reel__toggle:hover {
  border-color: var(--gold-700);
  color: var(--gold-300);
}

.reel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 27vw);
  gap: var(--space-sm);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-sm);
  /* Bleed to the viewport edge so the strip reads as a filmstrip */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-900) transparent;
}

@media (min-width: 1100px) {
  .reel__track {
    grid-auto-columns: minmax(260px, 20vw);
  }
}

.reel__track::-webkit-scrollbar {
  height: 3px;
}

.reel__track::-webkit-scrollbar-track {
  background: var(--ink-600);
}

.reel__track::-webkit-scrollbar-thumb {
  background: var(--gold-900);
}

.reel__card {
  position: relative;
  display: block;
  scroll-snap-align: start;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ink-700);
  isolation: isolate;
}

.reel__card video,
.reel__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.reel__card:hover video,
.reel__card:hover img {
  transform: scale(1.04);
}

.reel__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.35) 32%,
    transparent 60%
  );
  pointer-events: none;
}

/* Labels sit at the top: the source clips carry a burned-in OMNE watermark
   across the lower-centre of the frame. */
.reel__meta {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 1;
  padding: var(--space-md);
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.reel__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ivory);
}

.reel__tag {
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.reel__hint {
  margin-top: var(--space-sm);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-900);
}

/* ==========================================================================
   Wide supporting photo on service pages
   ========================================================================== */

.wide-figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.wide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease-out);
}

.wide-figure:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   Inline service-page clips
   ========================================================================== */

.svc-clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-sm);
  max-width: 760px;
}

/* ==========================================================================
   Statement block
   ========================================================================== */

.statement {
  position: relative;
  padding-block: clamp(var(--space-2xl), 14vw, 200px);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}

.statement__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.statement__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
}

.statement__quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3.2rem);
  line-height: 1.24;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* ==========================================================================
   Enquiry form
   ========================================================================== */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.field .req {
  color: var(--gold-500);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  background: var(--ink-700);
  border: 1px solid var(--hairline-soft);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 16px; /* 16px avoids iOS zoom-on-focus */
  font-weight: 300;
  border-radius: 0;
  transition: border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.7;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-500) 50%),
    linear-gradient(135deg, var(--gold-500) 50%, transparent 50%);
  background-position: right 22px center, right 16px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

[dir="rtl"] .field select {
  background-position: left 16px center, left 22px center;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--hairline);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--gold-500);
  background: var(--ink-600);
  outline: none;
}

.field__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.field__error {
  font-size: 12px;
  color: #ff8f7a; /* 4.5:1+ on near-black, readable without relying on hue alone */
  display: none;
  align-items: center;
  gap: 6px;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea {
  border-color: #ff8f7a;
}

.field[data-invalid="true"] .field__error {
  display: flex;
}

.form-status {
  margin-top: var(--space-md);
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  background: var(--ink-700);
  font-size: 14px;
  display: none;
}

.form-status[data-state="success"],
.form-status[data-state="error"] {
  display: block;
}

.form-status[data-state="success"] {
  border-color: var(--gold-500);
  color: var(--gold-100);
}

.form-status[data-state="error"] {
  border-color: #ff8f7a;
  color: #ff8f7a;
}

/* Error summary shown after a failed submit with multiple errors */
.error-summary {
  display: none;
  border: 1px solid #ff8f7a;
  padding: 16px 20px;
  margin-bottom: var(--space-md);
}

.error-summary[data-visible="true"] {
  display: block;
}

.error-summary h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff8f7a;
  margin: 0 0 10px;
}

.error-summary ul {
  margin: 0;
  padding-inline-start: 18px;
  font-size: 14px;
}

.error-summary a {
  color: #ff8f7a;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--hairline);
  /* Extra bottom room so the floating WhatsApp button never covers the legal line */
  padding-block: var(--space-2xl) 108px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 860px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

.footer__title {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--space-md);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory-dim);
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__list a:hover {
  color: var(--gold-300);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.social {
  display: flex;
  gap: 4px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--ivory-dim);
  transition: color var(--dur-fast) var(--ease-out);
}

.social a:hover {
  color: var(--gold-300);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.whatsapp {
  position: fixed;
  inset-inline-end: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: var(--z-float);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--gold-300), var(--gold-700));
  color: var(--ink-900);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  transition: transform var(--dur-fast) var(--ease-out);
}

.whatsapp:hover {
  transform: scale(1.06);
}

.whatsapp:active {
  transform: scale(0.97);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Arabic / RTL
   ========================================================================== */

[lang="ar"] body,
body[lang="ar"],
html[lang="ar"] body {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] .display,
html[lang="ar"] .headline,
html[lang="ar"] .hero__title,
html[lang="ar"] .menu__link,
html[lang="ar"] .service__name,
html[lang="ar"] .post__title,
html[lang="ar"] .statement__quote,
html[lang="ar"] .stat__num {
  font-family: var(--font-ar);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Arabic has no case; uppercase transforms and wide tracking hurt legibility */
html[lang="ar"] .eyebrow,
html[lang="ar"] .btn,
html[lang="ar"] .link-underline,
html[lang="ar"] .stat__label,
html[lang="ar"] .footer__title,
html[lang="ar"] .service__cta,
html[lang="ar"] .post__date,
html[lang="ar"] .field label,
html[lang="ar"] .hero__scroll {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
}

/* Arabic has no true italic; synthetic oblique distorts the script.
   Emphasis is carried by colour and weight instead. */
html[lang="ar"] em {
  font-style: normal;
  font-weight: 700;
}

[dir="rtl"] .eyebrow::before {
  order: 2;
}

/* The side scrim is a physical-direction gradient, so mirror it for RTL */
[dir="rtl"] .hero__media::after,
[dir="rtl"] .page-hero__media::after {
  transform: scaleX(-1);
}

[dir="rtl"] .hero__scroll {
  transform: translateX(50%);
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero__media img,
  .hero__media video {
    animation: none;
  }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .nav,
  .menu,
  .whatsapp,
  .hero__scroll {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
