@font-face {
  font-family: "Rudaw";
  src: url("../fonts/rudaw-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #070706;
  --paper: #f4f0e7;
  --paper-muted: #b9b2a4;
  --gold: #d8ad42;
  --gold-bright: #f0cc68;
  --line: rgba(240, 204, 104, 0.22);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: radial-gradient(circle at 82% 7%, rgba(180, 131, 28, 0.11), transparent 29rem), var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
html[dir="rtl"] body { font-family: "Rudaw", Tahoma, Arial, sans-serif; line-height: 1.75; }
html[dir="rtl"] .hero-copy h1,
html[dir="rtl"] .section-intro h2,
html[dir="rtl"] .company-copy h2,
html[dir="rtl"] .contact h2 { font-family: "Rudaw", Tahoma, Arial, sans-serif; letter-spacing: 0; }
html[lang="ku"] .hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(3.15rem, 5.8vw, 6.35rem);
  line-height: 1.28;
  letter-spacing: 0;
  word-spacing: 0.08em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem clamp(1.1rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  background: rgba(7, 7, 6, 0.84);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.9rem; width: max-content; }
.brand-mark {
  width: 58px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(240, 204, 104, 0.24));
}
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-copy small { margin-top: 0.25rem; color: var(--paper-muted); font-size: 0.67rem; letter-spacing: 0.08em; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3.3rem); }
.desktop-nav a { position: relative; color: #d8d2c8; font-size: 0.82rem; letter-spacing: 0.08em; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.5rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.language-switcher { display: inline-flex; align-items: center; gap: 0.25rem; }
.language-switcher a {
  min-width: 2.15rem;
  min-height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  color: #a9a294;
  font-size: 0.72rem;
}
.language-switcher a[aria-current="page"] { color: var(--gold-bright); border-color: var(--line); }
.menu-button { display: none; border: 0; background: transparent; color: inherit; padding: 0.5rem; }
.menu-button span:not(.sr-only) { display: block; width: 24px; height: 1px; margin: 5px 0; background: currentColor; }
.mobile-menu { display: none; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-visual { position: relative; min-height: 720px; overflow: hidden; background: #0e0c08; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity 1s ease, transform 7s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(0.86) contrast(1.05); }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 52%, rgba(7,7,6,0.55) 100%), linear-gradient(0deg, rgba(7,7,6,0.74), transparent 42%);
}
.hero-index {
  position: absolute;
  inset: auto 2rem 2rem;
  z-index: 3;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cfc8ba;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}
.hero-index span { display: block; width: 48px; height: 1px; background: var(--gold); }
.hero-index b { font: inherit; }
.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10.5rem clamp(2rem, 5vw, 6.5rem) 8rem;
  background: linear-gradient(150deg, rgba(39,29,8,0.44), transparent 35%);
}
.eyebrow {
  margin: 0 0 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow span { width: 2.6rem; height: 1px; background: currentColor; }
.hero-copy h1 {
  max-width: 9ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 6.8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.hero-body { max-width: 34rem; margin: 2rem 0 0; color: #c6c0b5; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--gold);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { color: #171208; background: var(--gold-bright); }
.button-gold:hover, .button-gold:focus-visible { background: #ffe18b; }
.button-ghost { color: var(--paper); border-color: rgba(255,255,255,0.25); }
.button-ghost:hover, .button-ghost:focus-visible { color: var(--ink); background: var(--paper); }
.hero-legal {
  position: absolute;
  z-index: 4;
  inset: auto clamp(2rem, 5vw, 6.5rem) 2rem auto;
  width: min(40rem, 42vw);
  margin: 0;
  color: #777167;
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7.5rem); }
.section-intro { display: grid; grid-template-columns: 0.58fr 1.42fr; gap: 3rem; align-items: start; }
.section-intro h2, .company-copy h2, .contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.4rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.045em;
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(3.5rem, 7vw, 7rem); border-top: 1px solid var(--line); }
.service-card { min-height: 310px; padding: 2rem 2rem 2.5rem; border-inline-end: 1px solid var(--line); transition: background 200ms ease; }
.service-card:last-child { border-inline-end: 0; }
.service-card:hover { background: rgba(216, 173, 66, 0.055); }
.service-number { margin: 0 0 5rem; color: var(--gold); font-size: 0.72rem; letter-spacing: 0.16em; }
.service-card h3 { margin: 0 0 1rem; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 520; }
.service-card p:last-child { max-width: 28rem; margin: 0; color: var(--paper-muted); }

.company {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(3rem, 8vw, 9rem);
  background: var(--paper);
  color: #191711;
}
.company-monogram {
  align-self: center;
  color: transparent;
  font-family: var(--serif);
  font-size: clamp(9rem, 24vw, 27rem);
  line-height: 0.75;
  letter-spacing: -0.18em;
  -webkit-text-stroke: 1px rgba(125, 89, 14, 0.33);
  user-select: none;
}
.company-monogram span { color: rgba(183, 135, 35, 0.11); -webkit-text-stroke: 0; }
.company-copy { align-self: end; position: relative; z-index: 1; }
.company-copy .eyebrow { color: #8b650f; }
.company-copy > p:last-child { max-width: 42rem; margin: 2rem 0 0; color: #5c574d; font-size: 1.05rem; }
.company-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin: 1rem 0 0; border-top: 1px solid rgba(91,66,12,0.24); }
.company-facts div { padding: 1.3rem 1.5rem 0 0; }
.company-facts dt { color: #7b7365; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.company-facts dd { margin: 0.35rem 0 0; font-size: 1.05rem; font-weight: 650; }

.gallery { background: #0d0d0b; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  margin-top: clamp(3.5rem, 7vw, 7rem);
}
.gallery-item {
  position: relative;
  grid-column: span 6;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: #15140f;
}
.gallery-item-featured { grid-column: span 8; aspect-ratio: 16 / 10; }
.gallery-item:nth-child(2) { grid-column: span 4; aspect-ratio: 4 / 5; }
.gallery-item:nth-child(n+5):not(:last-child) { grid-column: span 4; }
.gallery-item:last-child { grid-column: span 12; aspect-ratio: 16 / 6; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 350ms ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(5,5,4,0.88));
  pointer-events: none;
}
.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  gap: 0.15rem;
  padding: clamp(1rem, 2vw, 1.8rem);
}
.gallery-item figcaption strong { font-size: 1rem; font-weight: 620; }
.gallery-item figcaption span { color: #c0b9ac; font-size: 0.78rem; }
.gallery-item:hover img { transform: scale(1.025); filter: saturate(1.05); }

.contact { position: relative; min-height: 680px; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.contact::before { content: ""; position: absolute; inset: 8% 10% auto auto; width: 30vw; aspect-ratio: 1; border: 1px solid rgba(216,173,66,0.13); border-radius: 50%; }
.contact-kicker { margin: 0 0 1.2rem; color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.contact h2 { max-width: 10ch; }
.contact address { max-width: 43rem; display: grid; gap: 0.45rem; margin-top: 2rem; color: var(--paper-muted); font-style: normal; }
.contact address p { margin: 0 0 0.8rem; }
.contact address a { width: max-content; color: var(--paper); border-bottom: 1px solid rgba(216,173,66,0.45); }
.contact-phone { direction: ltr; unicode-bidi: isolate; text-align: left; }
.contact-orbit {
  position: absolute;
  inset-inline-end: clamp(2rem, 9vw, 10rem);
  width: clamp(150px, 18vw, 230px);
  aspect-ratio: 1;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}
.contact-orbit:hover, .contact-orbit:focus-visible { color: var(--ink); background: var(--gold-bright); transform: rotate(-4deg); }
.contact-orbit span { font-size: 0.85rem; letter-spacing: 0.08em; }
.contact-orbit b { position: absolute; inset: 1.4rem 1.4rem auto auto; font-size: 1.4rem; }
html[dir="rtl"] .contact-orbit b { inset: 1.4rem auto auto 1.4rem; }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem clamp(1.25rem, 6vw, 7.5rem); color: #817a6e; font-size: 0.74rem; letter-spacing: 0.06em; }
.site-footer p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-menu {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    padding: 0 clamp(1.1rem, 4vw, 4.5rem);
    background: rgba(7,7,6,0.97);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.75rem);
    transition: 180ms ease;
  }
  .mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .mobile-menu a { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 58svh; }
  .hero-copy { min-height: 54svh; padding-top: 6rem; }
  .hero-legal { position: static; width: auto; padding: 0 2rem 2rem; }
  .section-intro { grid-template-columns: 1fr; gap: 1rem; }
  .company { grid-template-columns: 0.6fr 1.4fr; }
  .company-facts { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item-featured,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(n+5):not(:last-child),
  .gallery-item:last-child { grid-column: span 6; aspect-ratio: 4 / 3; }
  .gallery-item-featured { grid-column: span 12; aspect-ratio: 16 / 10; }
  .contact-orbit { inset: auto clamp(1.25rem, 6vw, 7.5rem) 4rem auto; }
}

@media (max-width: 680px) {
  .site-header { min-height: 74px; gap: 0.7rem; }
  .brand { gap: 0.55rem; }
  .brand-mark { width: 48px; height: 56px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 0.72rem; }
  .language-switcher a { min-width: 1.85rem; min-height: 1.85rem; }
  .header-actions { gap: 0.35rem; }
  .hero-visual { min-height: 49svh; }
  .hero-copy { min-height: 51svh; padding: 5rem 1.25rem 3.5rem; }
  .hero-copy h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
  html[lang="ku"] .hero-copy h1 { font-size: clamp(2.85rem, 13vw, 4.25rem); line-height: 1.32; }
  .hero-body { margin-top: 1.5rem; }
  .hero-ctas { width: 100%; }
  .button { flex: 1 1 100%; }
  .hero-legal { padding-inline: 1.25rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding-inline: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .service-number { margin-bottom: 2.7rem; }
  .company { grid-template-columns: 1fr; }
  .company-monogram { position: absolute; inset: 5rem auto auto -2rem; opacity: 0.8; }
  .company-copy { margin-top: 12rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item-featured,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(n+5):not(:last-child),
  .gallery-item:last-child { grid-column: 1; aspect-ratio: 4 / 3; }
  .contact { min-height: 760px; justify-content: flex-start; padding-top: 6rem; }
  .contact-orbit { inset: auto auto 4rem 50%; transform: translateX(-50%); }
  .contact-orbit:hover, .contact-orbit:focus-visible { transform: translateX(-50%) rotate(-4deg); }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
