/* ============================================================
   LUXDAY — home and service pages
   Norell's structure (a hero with the wordmark, two-tone headings,
   rounded image cards, a dark index list, quiet ruled tables) set
   over the site film in black, ivory and gold, right to left.
   The film, header, footer and contact band live in chrome.css.
   ============================================================ */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--lx-font-ar);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--lx-gold); outline-offset: 3px; }
::selection { color: var(--lx-ink); background: var(--lx-gold); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--lx-font-ar);
  font-weight: 500;
  letter-spacing: 0; /* Safari splits joined Arabic letters when tracked */
  line-height: 1.3;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--lx-maxw);
  margin: 0 auto;
  padding: 0 var(--lx-gutter);
}

/* Every band of content is a layer of smoke over the film. */
.block {
  padding: clamp(72px, 9vw, 136px) 0;
  background: var(--lx-smoke);
}

.block-light { background: var(--lx-smoke-light); }
.block-deep { background: var(--lx-smoke-deep); }

.lat { font-family: var(--lx-font-lat); }

/* two-tone heading, Norell's "Projects we're / proud of" */
.duo {
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.22;
}

.duo span { display: block; color: var(--lx-muted); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head > p {
  max-width: 36ch;
  color: var(--lx-soft);
  font-size: 16px;
  line-height: 1.9;
}

.lead {
  max-width: 58ch;
  color: var(--lx-soft);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.95;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 15px/1 var(--lx-font-ar);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid { color: var(--lx-ink); background: var(--lx-ivory); }
.btn-solid:hover { background: #fff; }
.btn-ghost { color: var(--lx-text); border-color: var(--lx-line-strong); background: rgba(12, 10, 12, 0.3); }
.btn-ghost:hover { border-color: var(--lx-text); }
.btn-wa svg { width: 18px; height: 18px; fill: #1a8d4f; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font: 500 15px/1.4 var(--lx-font-ar);
  text-decoration: none;
}

.text-link:hover { color: var(--lx-gold); }

/* ---------------- home hero: the film, unframed ---------------- */

.hero {
  position: relative;
  height: calc(100svh - var(--lx-header-h) - 62px);
  min-height: 480px;
  max-height: 980px;
  color: var(--lx-text);
}

/* light shade only where words sit: the film stays clear in the middle */
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 12, 0.42) 0%, rgba(12, 10, 12, 0) 32%),
    linear-gradient(0deg, rgba(12, 10, 12, 0.46) 0%, rgba(12, 10, 12, 0) 40%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: clamp(26px, 4vw, 56px);
  right: var(--lx-gutter);
  max-width: min(460px, 78%);
  text-shadow: 0 1px 18px rgba(12, 10, 12, 0.45);
}

.hero-kicker {
  margin-bottom: 10px;
  color: rgba(242, 238, 230, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.hero-copy p.hero-line {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.45;
}

.hero h1 {
  position: absolute;
  z-index: 1;
  inset: auto var(--lx-gutter) clamp(4px, 1vw, 16px);
  margin: 0;
  font: 700 clamp(72px, 15.6vw, 236px)/0.8 var(--lx-font-lat);
  letter-spacing: -0.05em;
  direction: ltr;
  text-align: center;
  color: rgba(250, 248, 243, 0.94);
  text-shadow: 0 2px 30px rgba(12, 10, 12, 0.2);
  pointer-events: none;
}

.hero h1 .lx-sr { letter-spacing: 0; }

.hero-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 28px;
  min-height: 62px;
  padding: 14px var(--lx-gutter);
  color: var(--lx-text);
  background: var(--lx-smoke-light);
  border-top: 1px solid var(--lx-line);
  font-size: 13px;
  line-height: 1.6;
}

.hero-bar a { text-decoration: none; }
.hero-bar a:hover { color: var(--lx-gold); }
.hero-bar .socials { display: flex; gap: 14px; }

.scroll-cue { display: inline-flex; align-items: center; gap: 6px; }
.scroll-cue svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

@media (max-width: 820px) {
  .hero { height: calc(100svh - var(--lx-header-h) - 58px); }
  .hero-bar { min-height: 58px; }
  .hero-bar .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .hero-copy { max-width: calc(100% - 32px); }
  .hero-copy p.hero-line { font-size: 22px; }
}

/* ---------------- home: intro ---------------- */

.intro { background: linear-gradient(180deg, var(--lx-smoke-light), var(--lx-smoke) 45%); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px clamp(32px, 6vw, 110px);
  align-items: start;
}

.intro-grid h2 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.45; }
.intro-grid h2 .lat { font-weight: 700; }
.intro-grid .lead { color: var(--lx-text); font-size: clamp(17px, 1.5vw, 21px); }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--lx-muted);
  font-size: 14px;
  list-style: none;
}

.fact-row strong { color: var(--lx-text); font-weight: 500; }

@media (max-width: 820px) {
  .intro-grid { grid-template-columns: 1fr; }
}

/* ---------------- home: three service cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  color: inherit;
  background: rgba(12, 10, 12, 0.42);
  text-decoration: none;
  transition: border-color 0.25s ease;
}

.card:hover { border-color: var(--lx-line-strong); }

.card-a { grid-column: span 7; }
.card-b { grid-column: span 5; }
.card-c { grid-column: span 12; }

.card-media {
  position: relative;
  overflow: hidden;
  background: #1f1a20;
}

.card-a .card-media,
.card-b .card-media { height: clamp(280px, 32vw, 480px); }
.card-c .card-media { height: clamp(260px, 30vw, 460px); }

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--lx-ease);
}

.card:hover .card-media img { transform: scale(1.035); }

.card-no {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--lx-ink);
  background: rgba(250, 248, 243, 0.9);
  font: 600 12px/1 var(--lx-font-lat);
}

.card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 24px;
  padding: 20px 20px 22px;
}

.card-body h3 { font-size: clamp(22px, 2vw, 30px); }
.card-body p { grid-column: 1; color: var(--lx-soft); font-size: 15px; line-height: 1.8; }

.card-body .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

@media (max-width: 900px) {
  .card-a, .card-b, .card-c { grid-column: span 12; }
  .card-a .card-media, .card-b .card-media, .card-c .card-media { height: auto; aspect-ratio: 4 / 3; }
  .card-body { grid-template-columns: 1fr; }
  .card-body .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---------------- home: selected works (index list) ---------------- */

.works-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.works-list { margin: 0; padding: 0; list-style: none; }

.works-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--lx-line);
  color: var(--lx-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.works-list li:first-child .works-item { border-top: 1px solid var(--lx-line); }

.works-item strong {
  font: 500 clamp(26px, 3.4vw, 48px)/1.25 var(--lx-font-ar);
}

.works-item strong sup {
  margin-inline-start: 6px;
  color: var(--lx-gold);
  font: 500 0.36em/1 var(--lx-font-lat);
  vertical-align: super;
}

.works-item small {
  grid-column: 1;
  color: var(--lx-muted);
  font-size: 14px;
}

.works-item .lx-arrow { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; }

.works-item:hover,
.works-item:focus-visible,
.works-item.is-active { color: var(--lx-text); }

.works-item-thumb { display: none; }

.works-preview {
  position: sticky;
  top: calc(var(--lx-header-h) + 32px);
}

.works-preview figure { margin: 0; }

.works-preview .preview-frame {
  display: grid;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-width: 340px;
  place-items: center;
  border-radius: var(--lx-radius);
  background: #1f1a20;
}

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

/* A work with no image of its own gets its real cover title, set in type. */
.type-cover {
  display: grid;
  width: 100%;
  height: 100%;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(216, 185, 131, 0.22), transparent 60%),
    #1f1a20;
}

.type-cover strong { color: var(--lx-text); font: 600 clamp(24px, 2.4vw, 32px)/1.3 var(--lx-font-ar); }
.type-cover small { color: var(--lx-gold); font: 500 13px/1.4 var(--lx-font-ar); }

.works-preview figcaption { max-width: 340px; margin-top: 16px; }
.works-preview figcaption span { display: block; color: var(--lx-gold); font-size: 13px; }
.works-preview figcaption p { margin-top: 6px; color: var(--lx-soft); font-size: 16px; line-height: 1.8; }

.works-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
}

@media (max-width: 820px) {
  .works-grid { grid-template-columns: 1fr; }
  .works-preview { display: none; }
  .works-item { grid-template-columns: 76px minmax(0, 1fr) auto; color: var(--lx-text); }
  .works-item-thumb {
    display: block;
    grid-row: 1 / span 2;
    width: 76px;
    height: 100px;
    overflow: hidden;
    border-radius: 7px;
    background: #1f1a20;
  }
  .works-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .works-item-thumb .type-cover { padding: 6px; }
  .works-item-thumb .type-cover strong { font-size: 13px; }
  .works-item-thumb .type-cover small { display: none; }
  .works-item small { grid-column: 2; }
  .works-item .lx-arrow { grid-column: 3; }
}

/* ---------------- home: about ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px clamp(32px, 7vw, 120px);
  align-items: end;
}

.about-grid h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.35; }
.about-grid h2 span { color: var(--lx-muted); }
.about-grid .lead { color: var(--lx-text); }
.about-grid .text-link { margin-top: 24px; }

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------------- section pages: head ---------------- */

.page-head {
  padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 4vw, 56px);
  background: linear-gradient(180deg, var(--lx-smoke-light), var(--lx-smoke));
}

.page-head h1 {
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.18;
  text-shadow: 0 1px 20px rgba(12, 10, 12, 0.3);
}

.page-head h1 span { color: var(--lx-muted); }

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 24px clamp(32px, 6vw, 100px);
  align-items: end;
}

.page-head .lead { color: var(--lx-text); }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--lx-line-strong);
  border-radius: 999px;
  background: rgba(12, 10, 12, 0.34);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.jump a:hover { border-color: var(--lx-text); background: rgba(12, 10, 12, 0.55); }
.jump a b { color: var(--lx-gold); font: 600 11px/1 var(--lx-font-lat); }

/* a band of smoke that carries a page's main content */
.band { padding: 8px 0 clamp(24px, 3vw, 40px); background: var(--lx-smoke); }

.page-banner {
  overflow: hidden;
  height: clamp(240px, 38vw, 560px);
  border-radius: var(--lx-radius);
  background: #1f1a20;
}

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

@media (max-width: 820px) {
  .page-head-grid { grid-template-columns: 1fr; }
}

/* ---------------- photography: one block per service ---------------- */

.svc {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px clamp(32px, 6vw, 100px);
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--lx-line);
}

.page-banner + .svc { margin-top: clamp(40px, 5vw, 72px); }

.svc-no {
  display: block;
  margin-bottom: 14px;
  color: var(--lx-gold);
  font: 600 13px/1 var(--lx-font-lat);
}

.svc h2 { font-size: clamp(28px, 3.2vw, 44px); }
.svc .lead { margin-top: 16px; }

.svc-list {
  display: grid;
  gap: 0;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.svc-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--lx-line);
  font-size: 15px;
}

.svc-list li::before {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--lx-gold);
  content: "";
}

.svc-works h3 {
  margin-bottom: 16px;
  color: var(--lx-muted);
  font-size: 14px;
  font-weight: 500;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tile-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--lx-radius);
  background: #1f1a20;
}

.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--lx-ease); }
.tile:hover .tile-media img { transform: scale(1.04); }

.tile-play {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--lx-ink);
  background: rgba(250, 248, 243, 0.92);
}

.tile-play svg { width: 12px; height: 12px; fill: currentColor; transform: scaleX(-1); }

.tile strong { margin-top: 12px; font-size: 17px; font-weight: 500; }
.tile small { color: var(--lx-muted); font-size: 13px; }

.empty-note {
  padding: 22px;
  border: 1px dashed var(--lx-line-strong);
  border-radius: var(--lx-radius);
  color: var(--lx-soft);
  background: rgba(12, 10, 12, 0.3);
  font-size: 15px;
  line-height: 1.9;
}

.empty-note a { color: var(--lx-text); }

@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- how it works ---------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 26px 24px 28px;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  background: var(--lx-glass);
  counter-increment: step;
}

.steps li::before {
  display: block;
  margin-bottom: 26px;
  color: var(--lx-gold);
  font: 600 13px/1 var(--lx-font-lat);
  content: "0" counter(step);
}

.steps strong { display: block; font-size: 19px; font-weight: 500; }
.steps p { margin-top: 8px; color: var(--lx-soft); font-size: 15px; line-height: 1.85; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------------- tours ---------------- */

.types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.type {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--lx-line);
  border-radius: var(--lx-radius);
  background: var(--lx-glass);
}

.type h3 { font-size: 22px; }
.type p { flex: 1; margin-top: 10px; color: var(--lx-soft); font-size: 15px; line-height: 1.85; }
.type .example { margin-top: 16px; font-size: 14px; }
.type .example a { color: var(--lx-text); text-underline-offset: 3px; }
.type .btn { align-self: start; margin-top: 22px; }

@media (max-width: 900px) {
  .types { grid-template-columns: 1fr; }
}

.city {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 32px;
  padding: 30px 0;
  border-top: 1px solid var(--lx-line);
}

.city:last-child { border-bottom: 1px solid var(--lx-line); }

.city-coord { color: var(--lx-muted); font: 500 12px/1.5 var(--lx-font-lat); direction: ltr; text-align: right; }
.city h3 { font-size: clamp(30px, 3.4vw, 46px); }
.city p { color: var(--lx-soft); font-size: 15px; line-height: 1.9; }
.city p a { color: var(--lx-gold); text-underline-offset: 3px; }

@media (max-width: 900px) {
  .city { grid-template-columns: 1fr; gap: 10px; }
  .city .btn { justify-self: start; margin-top: 8px; }
}

/* ---------------- reveal ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--lx-ease), transform 0.9s var(--lx-ease);
}

.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card-media img, .tile-media img { transition: none; }
}
