/* ============================================================
   DXB Photo — Design system
   Fine-art gallery minimalism. Warm near-black, bronze-gold accent.
   ============================================================ */

:root {
  --bg: #0d0d0c;
  --bg-raised: #141412;
  --text: #f5f1ea;
  --text-dim: #a8a39a;
  --accent: #b8935a;
  --accent-dim: #8a6d42;
  --line: #2a2a26;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --gutter: clamp(24px, 6vw, 80px);
  --max-w: 1320px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 400; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); }

p { max-width: 62ch; }

::selection { background: var(--accent); color: var(--bg); }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Viewfinder corner-bracket motif ---------- */
.frame {
  position: relative;
}
.frame::before,
.frame::after,
.frame > .fc-tr,
.frame > .fc-bl {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  opacity: 0.85;
}
.frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 12, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.brand em { font-style: italic; color: var(--accent); }
.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14.5px;
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    padding: 40px var(--gutter);
    font-size: 20px;
    gap: 28px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    width: 40px; height: 40px;
    font-size: 18px;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; }
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim);
  margin-top: 24px;
  max-width: 54ch;
}
.hero-meta {
  margin-top: 48px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-dim);
}
.hero-meta strong { display: block; color: var(--text); font-family: var(--serif); font-size: 26px; font-weight: 500; }

/* ---------- Direction cards ---------- */
.directions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 1px;
}
.direction-card {
  background: var(--bg);
  padding: 44px 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.3s ease;
}
.direction-card:hover { background: var(--bg-raised); }
.direction-card .num { font-family: var(--serif); color: var(--accent-dim); font-size: 15px; }
.direction-card h3 { margin-top: 20px; }
.direction-card p { color: var(--text-dim); font-size: 14.5px; margin-top: 10px; }

/* ---------- Section rhythm ---------- */
.section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--text-dim); margin-top: 16px; }

/* ---------- Portfolio grid & filters ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  background: none;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 13.5px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-dim); }
.filter-btn.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-raised);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
  font-size: 13px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 20px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(13,13,12,0.95);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; max-width: 92vw; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 28px; right: 28px;
  background: none; border: 1px solid var(--line);
  color: var(--text); width: 44px; height: 44px;
  cursor: pointer; font-size: 18px;
}

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-portrait { aspect-ratio: 4/5; background: var(--bg-raised); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p { color: var(--text-dim); font-size: 16px; margin-bottom: 20px; }
.about-copy p:first-of-type { color: var(--text); font-size: 19px; font-family: var(--serif); }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; } }

/* ---------- Services / pricing ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card { background: var(--bg); padding: 40px 32px; }
.service-card h3 { margin-bottom: 8px; }
.service-card .price { font-family: var(--serif); color: var(--accent); font-size: 28px; margin: 18px 0; }
.service-card ul { list-style: none; padding: 0; margin: 0; color: var(--text-dim); font-size: 14.5px; }
.service-card li { padding: 8px 0; border-top: 1px solid var(--line); }
.service-card li:first-child { border-top: none; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-details dl { margin: 0; }
.contact-details dt { color: var(--text-dim); font-size: 13px; margin-top: 28px; }
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; }

.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent-dim); }
.field textarea { resize: vertical; min-height: 120px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--text); }
.btn-outline { background: none; color: var(--text); }
.btn-outline:hover { background: var(--accent); color: var(--bg); }

.form-note { font-size: 13.5px; color: var(--text-dim); margin-top: 14px; }
.form-success { color: var(--accent); font-size: 14.5px; margin-top: 14px; display: none; }

@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Admin (shares the same tokens, simpler chrome) ---------- */
.admin-body { background: var(--bg); color: var(--text); font-family: var(--sans); min-height: 100vh; }
.admin-shell { max-width: 980px; margin: 0 auto; padding: 60px var(--gutter); }
.admin-shell h1 { font-size: 30px; margin-bottom: 36px; }
.admin-card { background: var(--bg-raised); border: 1px solid var(--line); padding: 32px; margin-bottom: 28px; }
.admin-card h2 { font-size: 20px; margin-bottom: 20px; }
.admin-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); gap: 16px; }
.admin-row:first-child { border-top: none; }
.admin-row img { width: 64px; height: 64px; object-fit: cover; flex-shrink: 0; }
.admin-row .meta { flex: 1; min-width: 0; }
.admin-row .meta .name { font-size: 14.5px; }
.admin-row .meta .cat { font-size: 12.5px; color: var(--text-dim); }
.admin-flash { padding: 14px 18px; margin-bottom: 24px; font-size: 14px; border: 1px solid var(--accent-dim); color: var(--accent); }
.admin-flash.error { border-color: #a85d5d; color: #d98888; }
.btn-danger { background: none; border: 1px solid #a85d5d; color: #d98888; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.btn-danger:hover { background: #a85d5d; color: var(--bg); }
.admin-logout { font-size: 13px; color: var(--text-dim); }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }

/* Language switch */
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .08em; }
.lang-switch span { color: var(--text-dim); }
.lang-switch a { color: var(--text-dim); }
.lang-switch a.on { color: var(--accent); }
.lang-switch a::after { display: none; }

/* About facts */
.about-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(184,147,90,.25); }
.about-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.about-facts dd { margin: 0; font-family: var(--serif); font-size: 19px; }

/* Client area */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.client-item { background: var(--bg-raised); border: 1px solid rgba(184,147,90,.15); }
.client-item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.client-doc { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--accent); }
.client-meta { padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.client-meta span { color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-meta a { color: var(--accent); }
.admin-row a.btn { flex-shrink: 0; }

/* ===== Typography v4: thin all-caps (Jost) ===== */
:root {
  --serif: 'Jost', 'Futura', 'Century Gothic', sans-serif;
  --sans: 'Jost', 'Futura', 'Century Gothic', sans-serif;
}
body { font-weight: 300; letter-spacing: .01em; }
h1, h2, h3, h4,
.brand, .nav-links a, .btn, .btn-outline, .btn-danger, .filter-btn,
.hero-meta strong, .service-card .price, .direction-card .num,
.contact-details dt, .about-facts dt, .field label, .site-footer {
  text-transform: uppercase;
  font-weight: 200;
  letter-spacing: .14em;
}
h1 { font-weight: 200; letter-spacing: .1em; line-height: 1.12; font-size: clamp(34px, 6vw, 72px); }
h2 { font-weight: 200; letter-spacing: .12em; }
h3 { font-weight: 300; letter-spacing: .14em; font-size: 17px; }
.brand { font-size: 15px; letter-spacing: .22em; font-weight: 300; }
.brand em { font-style: normal; }
.nav-links a { font-size: 12px; font-weight: 300; letter-spacing: .18em; }
.btn, .btn-outline, .btn-danger, .filter-btn { font-size: 12px; font-weight: 400; letter-spacing: .2em; }
.hero-meta strong { font-size: 18px; font-weight: 300; }
.service-card .price { font-size: 24px; font-weight: 200; }
.field label, .site-footer { font-size: 11px; font-weight: 300; }
.about-copy p:first-of-type, .contact-details dd, .about-facts dd { font-family: var(--sans); font-weight: 300; }
.lang-switch { font-weight: 300; }

/* Social icons */
.nav-social { display: flex; gap: 14px; align-items: center; }
.nav-links a.social::after { display: none; }
a.social { color: var(--text-dim); display: inline-flex; transition: color .2s; }
a.social:hover { color: var(--accent); }
.site-footer .wrap { flex-wrap: wrap; gap: 10px 24px; }
h1 { font-weight: 200 !important; }


/* ===== v6 (2026-10): visual homepage, masonry, lightbox nav, booking form ===== */

/* Nav: more items -> burger earlier */
@media (max-width: 1180px) {
  .nav-links {
    position: fixed; inset: 76px 0 0 0; background: var(--bg);
    flex-direction: column; padding: 40px var(--gutter); font-size: 20px; gap: 26px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease; overflow-y: auto;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle {
    display: block; background: none; border: 1px solid var(--line); color: var(--text);
    width: 40px; height: 40px; font-size: 18px; cursor: pointer;
  }
}
@media (min-width: 1181px) {
  .nav-links { gap: clamp(16px, 1.8vw, 30px); align-items: center; }
}
.nav-links a.nav-client { color: var(--accent); }

/* Hero with photos */
.hero-visual { position: relative; overflow: hidden; min-height: 92vh; border-bottom: none; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.03);
}
.hero-slide.on { opacity: 1; }
.hero-visual::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,13,12,.85) 0%, rgba(13,13,12,.25) 45%, rgba(13,13,12,.35) 100%);
}
.hero-visual .hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-sub {
  margin-top: 18px; color: var(--accent); text-transform: uppercase;
  letter-spacing: .3em; font-size: clamp(12px, 1.4vw, 15px); font-weight: 300;
}

/* Category cards with cover photo */
.section-tight { padding: 28px 0 0; border-bottom: none; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.cat-card { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--bg-raised); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7), transparent 55%); }
.cat-card span {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1;
  text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 400;
}

/* Page heads without explanatory text */
.page-head { padding-top: 150px; padding-bottom: 50px; border-bottom: none; }
.page-title { font-size: clamp(34px, 5vw, 56px) !important; }

/* Masonry gallery: every photo in its own proportions, no cropping */
.gallery { display: block; columns: 3 300px; column-gap: 20px; }
.gallery-item {
  display: block; aspect-ratio: auto; margin: 0 0 20px; break-inside: avoid;
  -webkit-column-break-inside: avoid; overflow: hidden;
}
.gallery-item img { width: 100%; height: auto; object-fit: initial; }
.gallery-item .cap { display: none; }
.gallery-empty { column-span: all; }

/* Lightbox navigation */
.lightbox { padding: 40px 70px; touch-action: pan-y; user-select: none; }
.lightbox img { max-height: 86vh; max-width: calc(100vw - 160px); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text); font-size: 54px; font-weight: 200;
  width: 60px; height: 100px; cursor: pointer; opacity: .7; line-height: 1;
}
.lightbox-nav:hover { opacity: 1; color: var(--accent); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--text-dim); }
@media (max-width: 760px) {
  .lightbox { padding: 60px 0; }
  .lightbox img { max-width: 100vw; max-height: 80vh; }
  .lightbox-nav { font-size: 40px; width: 44px; }
}

/* Footer */
.footer-social { display: inline-flex; gap: 16px; }

/* Booking form */
.booking { margin-top: 48px; max-width: 760px; }
.booking[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field input[type="date"], .field input[type="time"] { color-scheme: dark; }
.field-other[hidden] { display: none; }

/* Mobile menu: the nav has backdrop-filter, so give the panel an explicit height */
@media (max-width: 1180px) {
  .nav-links { top: 76px; bottom: auto; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); }
}