/* ============================================================
   Lea Dubaj MUAH — standalone landing page
   Fonts: Fraunces + Manrope (SIL OFL), self-hosted, latin subset
   No external/online resources.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg:        #f4ece3;
  --bg-deep:   #ece0d3;
  --ink:       #2a211d;
  --ink-soft:  #6a5b51;
  --line:      #d8c8b8;
  --accent:    #a85a40;   /* terracotta */
  --accent-2:  #8a6b52;   /* warm taupe */
  --gold:      #b89668;
  --card:      #fbf6f0;
  --shadow:    18px 24px 60px -28px rgba(58, 38, 28, .45);
  --maxw:      1180px;
  --ease:      cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle paper grain via layered gradients */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(184,150,104,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(168,90,64,.12), transparent 60%);
}

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

h1,h2,h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }

a { color: inherit; }

.eyebrow {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-block;
}

/* ---------------- Header ---------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px,4vw,48px);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(244,236,227,.86);
  backdrop-filter: blur(10px);
  padding-top: 12px; padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  letter-spacing: .01em;
  text-decoration: none;
  display: flex; align-items: baseline; gap: .5ch;
  color: var(--ink);
  mix-blend-mode: normal;
}
.brand span { color: var(--accent); font-style: italic; }
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav a { color: #fbf2e9; }
.site-header:not(.scrolled) .brand span { color: #f0c9a8; }

.nav { display: flex; align-items: center; gap: clamp(14px,2.5vw,34px); }
.nav a {
  text-decoration: none; font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  position: relative; padding: 4px 0; color: var(--ink);
  transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav a:hover::after { width: 100%; }
.nav .ig { display: inline-flex; }
.nav .ig svg { width: 20px; height: 20px; display: block; }

/* ---------------- Hero carousel ---------------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; }
.carousel { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.slide.active { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,20,16,.55) 0%, rgba(30,20,16,.18) 35%, rgba(30,20,16,.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(20px,5vw,72px) clamp(56px,9vh,120px);
  max-width: var(--maxw); margin: 0 auto;
}
.hero .eyebrow { color: #f0c9a8; }
.hero h1 {
  color: #fdf6ee;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  margin: .15em 0 .35em;
  max-width: 16ch;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: #f1cba9; }
.hero p.kicker { color: #f3e7da; max-width: 46ch; font-size: 1.05rem; margin: 0; opacity: .95; }

/* carousel controls */
.dots { position: absolute; z-index: 3; bottom: 34px; right: clamp(20px,5vw,72px); display: flex; gap: 10px; }
.dots button {
  width: 34px; height: 4px; border: 0; padding: 0; cursor: pointer; border-radius: 2px;
  background: rgba(255,255,255,.35); transition: background .3s;
}
.dots button.active { background: #f1cba9; }
.car-arrows { position: absolute; z-index: 3; bottom: 30px; left: clamp(20px,5vw,72px); display: flex; gap: 10px; }
.car-arrows button {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4);
  color: #fff; display: grid; place-items: center; transition: background .25s, transform .25s;
  backdrop-filter: blur(4px);
}
.car-arrows button:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.car-arrows svg { width: 18px; height: 18px; }

/* scroll cue */
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: #fce9d8; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; opacity: .85;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue .bar { width: 1px; height: 34px; background: linear-gradient(#fce9d8, transparent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%{transform:scaleY(.3);transform-origin:top} 50%{transform:scaleY(1)} 100%{transform:scaleY(.3);transform-origin:bottom} }

/* ---------------- Section scaffolding ---------------- */
section { position: relative; z-index: 1; }
.section { padding: clamp(80px,12vh,150px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px,6vh,72px); }
.section-head h2 { font-size: clamp(2rem,5vw,3.6rem); margin: .25em 0 0; }

/* ---------------- About ---------------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px,6vw,90px); align-items: center; }
.about-copy p { color: var(--ink); font-size: 1.12rem; margin: 0 0 1.1em; }
.about-copy p .lead { }
.about-copy .first { font-family:"Fraunces",serif; font-size: clamp(1.4rem,2.4vw,1.9rem); line-height:1.35; color: var(--ink); }
.about-copy a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.about-copy a:hover { color: var(--ink); border-color: var(--ink); }
.about-figure { position: relative; }
.about-figure .frame {
  aspect-ratio: 4/5; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.about-figure .tag {
  position: absolute; bottom: -22px; left: -22px; background: var(--accent); color: #fff;
  font-family: "Fraunces", serif; font-style: italic; padding: 14px 22px; border-radius: 3px;
  font-size: 1.1rem; box-shadow: 0 14px 30px -14px rgba(168,90,64,.7);
}
.about-figure::before {
  content:""; position:absolute; inset: 18px -18px -18px 18px; border:1px solid var(--gold); border-radius:4px; z-index:-1;
}

/* ---------------- Work ---------------- */
.work { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%); }
.services { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.service {
  background: var(--card); border-radius: 5px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: 22px 34px 70px -26px rgba(58,38,28,.55); }
.service .ph { aspect-ratio: 4/5; background-size: cover; background-position: center; }
.service .body { padding: 26px 26px 30px; }
.service .num { font-family:"Fraunces",serif; font-style:italic; color: var(--gold); font-size:1rem; }
.service h3 { font-size: 1.7rem; margin: 6px 0 10px; }
.service p { margin: 0; color: var(--ink-soft); }

/* gallery strip */
.gallery { margin-top: clamp(44px,7vh,80px); }
.gallery h3 { font-size: clamp(1.5rem,3vw,2.2rem); margin: 0 0 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-grid .gitem { display:block; width:100%; aspect-ratio: 3/4; border:0; padding:0; margin:0; background:none; cursor:zoom-in; border-radius:4px; overflow:hidden; position:relative; box-shadow: var(--shadow); }
.gallery-grid .gph { position:absolute; inset:0; background-size:cover; background-position:center; transition: transform .8s var(--ease); }
.gallery-grid .gitem:hover .gph { transform: scale(1.06); }
.gallery-grid .gitem:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,13,10,.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; cursor: zoom-out;
  transition: opacity .35s var(--ease), visibility .35s var(--ease);
  padding: 4vmin;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: 92vw; max-height: 92vh; object-fit: contain;
  border-radius: 4px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
  transform: scale(.96); transition: transform .35s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 22px; right: 28px; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.9rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .25s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

/* ---------------- Contact ---------------- */
.contact { background: var(--ink); color: #f6ede3; }
.contact .eyebrow { color: var(--gold); }
.contact .section-head h2 { color: #fbf3ea; }
.contact .section-head p { color: #cdbcab; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px,6vw,90px); align-items: start; }
.contact-aside p { color: #cbbaa9; }
.contact-aside .ig-link {
  display:inline-flex; align-items:center; gap:10px; margin-top:14px; text-decoration:none;
  color:#f6ede3; border:1px solid rgba(246,237,227,.3); padding:12px 18px; border-radius:40px;
  transition: background .25s, border-color .25s;
}
.contact-aside .ig-link:hover { background: rgba(246,237,227,.08); border-color: rgba(246,237,227,.6); }
.contact-aside .ig-link svg { width:18px; height:18px; }

form .field { margin-bottom: 20px; position: relative; }
form label { display:block; font-size:.74rem; text-transform:uppercase; letter-spacing:.16em; font-weight:700; color:#bfae9d; margin-bottom:8px; }
form input[type=text], form input[type=email], form textarea {
  width:100%; background: rgba(255,255,255,.04); border:1px solid rgba(246,237,227,.18);
  color:#f6ede3; font:inherit; padding:14px 16px; border-radius:4px; outline:none;
  transition: border-color .25s, background .25s;
}
form textarea { min-height: 150px; resize: vertical; }
form input:focus, form textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.07); }
form input::placeholder, form textarea::placeholder { color:#8d8073; }

.file-field input[type=file] { position:absolute; width:1px; height:1px; opacity:0; }
.file-label {
  display:inline-flex; align-items:center; gap:10px; cursor:pointer;
  border:1px dashed rgba(246,237,227,.3); padding:13px 18px; border-radius:4px; color:#cbbaa9;
  font-size:.92rem; transition: border-color .25s, color .25s;
}
.file-label:hover { border-color: var(--gold); color:#f6ede3; }
.file-label svg { width:18px; height:18px; }
.file-name { margin-left:12px; font-size:.85rem; color:var(--gold); }

.btn-send {
  appearance:none; border:0; cursor:pointer; font:inherit; font-weight:700;
  letter-spacing:.06em; background: var(--accent); color:#fff;
  padding:16px 34px; border-radius:40px; font-size:.95rem;
  display:inline-flex; align-items:center; gap:10px;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  box-shadow: 0 16px 30px -16px rgba(168,90,64,.8);
}
.btn-send:hover { transform: translateY(-2px); background:#bb6549; }
.btn-send:disabled { opacity:.6; cursor:default; transform:none; }
.btn-send svg { width:18px; height:18px; }

.form-status { margin-top:16px; font-size:.95rem; min-height:1.2em; }
.form-status.ok { color:#9fd6a0; }
.form-status.err { color:#e8a08c; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color:#bfae9d; padding: 40px 0 56px; border-top:1px solid rgba(246,237,227,.12); }
.footer-row { display:flex; flex-wrap:wrap; gap:18px; align-items:center; justify-content:space-between; }
.footer-row a { color:#f6ede3; text-decoration:none; }
.footer-row a:hover { color: var(--gold); }
.footer-brand { font-family:"Fraunces",serif; font-size:1.2rem; color:#f6ede3; }

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity:0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1{transition-delay:.08s}.reveal.d2{transition-delay:.16s}.reveal.d3{transition-delay:.24s}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity:1; transform:none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .about-figure { order:-1; max-width:440px; }
  .nav a:not(.ig) { display:none; }
}
@media (max-width: 520px) {
  body { font-size:16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .dots { right: 16px; } .car-arrows{ left:16px; }
}
