/* ============================================
   Lilli's Fotografie — Stylesheet
   ============================================ */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-var.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/jost-var.woff2") format("woff2");
}

:root {
  --cream: #faf5ee;
  --cream-alt: #f2e9dc;
  --white: #fffdfa;
  --ink: #362c26;
  --ink-soft: #6f6259;
  --ink-faint: #9c9089;
  --gold: #a9835c;
  --gold-dark: #8a6944;
  --lilac: #b6a0c9;
  --lilac-dark: #8f76a8;
  --border: rgba(54, 44, 38, 0.12);
  --shadow: 0 20px 45px -20px rgba(54, 44, 38, 0.35);
  --shadow-soft: 0 10px 30px -18px rgba(54, 44, 38, 0.3);
  --radius: 4px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-style: italic; }
h3 { font-size: 1.35rem; font-style: italic; }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.8em 1.4em;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6vw;
}

.section-eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--gold-dark);
  margin-bottom: 0.9em;
  font-weight: 500;
}
.section-eyebrow.center { text-align: center; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95em 2.1em;
  border-radius: var(--radius);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.6em 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo { height: 58px; width: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.2em;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.primary-nav a {
  position: relative;
  padding: 0.3em 0;
  color: var(--ink);
}
.primary-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.primary-nav a:not(.nav-cta):hover::after { right: 0; }

.primary-nav a.nav-cta {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
  padding: 0.55em 1.3em;
  border-radius: var(--radius);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.nav-cta::after { display: none; }
.primary-nav a.nav-cta:hover {
  background: var(--ink);
  color: var(--white) !important;
  border-color: var(--ink);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.nav-social .social-icon {
  width: 32px;
  height: 32px;
  border: none;
  color: var(--ink-soft);
}
.nav-social .social-icon svg { width: 16px; height: 16px; }
.nav-social .social-icon:hover {
  color: var(--gold-dark);
  border: none;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4em;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  transform: scale(1.03);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35,28,24,0.55) 0%, rgba(35,28,24,0.35) 35%, rgba(35,28,24,0.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6vw 9vh;
  width: 100%;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: var(--lilac);
  margin-bottom: 1em;
  font-weight: 500;
}
.hero h1 { color: var(--white); margin-bottom: 0.25em; }
.hero-tagline {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 1em; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn-ghost:hover { border-color: var(--white); color: var(--white); }

.scroll-hint {
  position: absolute;
  bottom: 2.4em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; }
}

/* ---------- About ---------- */
.about { padding: 9em 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5vw;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-photo {
  margin: 0;
}
.about-text h2 { margin-bottom: 0.6em; }
.about-text p { font-size: 1.05rem; }

/* ---------- Services ---------- */
.services {
  background: var(--cream-alt);
  padding: 9em 0;
}
.services h2 { margin-bottom: 1.4em; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.4em;
}
.service-card {
  text-align: center;
  padding: 2.2em 1.4em;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--cream-alt);
  color: var(--gold-dark);
  margin-bottom: 1em;
}
.service-card:nth-child(3) .service-icon { color: var(--lilac-dark); }
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 0.4em; }
.service-card p { font-size: 0.94rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { padding: 9em 0; }
.gallery h2 { margin-bottom: 1.4em; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9em;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: none;
  background: var(--cream-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(54,44,38,0) 55%, rgba(54,44,38,0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

/* ---------- Contact ---------- */
.contact {
  background: var(--ink);
  color: var(--white);
  padding: 9em 0;
  text-align: center;
}
.contact-inner { max-width: 640px; }
.contact h2 { color: var(--white); }
.contact .section-eyebrow { color: var(--lilac); }
.contact-text {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  margin-bottom: 1.8em;
}
.contact-actions {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2em;
}
.contact .btn-primary { background: var(--gold); }
.contact .btn-primary:hover { background: var(--lilac-dark); }
.contact .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); }
.contact .btn-ghost:hover { border-color: var(--white); }
.social-icons {
  display: flex;
  gap: 0.9em;
  justify-content: center;
  margin-bottom: 1.8em;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.social-icon svg { width: 19px; height: 19px; }
.social-icon:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.contact-location {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-alt);
  padding: 3em 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5em;
  flex-wrap: wrap;
}
.footer-logo { height: 40px; width: auto; opacity: 0.9; }
.footer-nav { display: flex; gap: 1.6em; font-size: 0.85rem; }
.footer-nav a { color: var(--ink-soft); }
.footer-nav a:hover { color: var(--gold-dark); }
.footer-copy { margin: 0; font-size: 0.8rem; color: var(--ink-faint); }

.footer-social {
  margin-bottom: 0;
  gap: 0.7em;
}
.footer-social .social-icon {
  width: 36px;
  height: 36px;
  border-color: var(--border);
  color: var(--ink-soft);
}
.footer-social .social-icon svg { width: 16px; height: 16px; }
.footer-social .social-icon:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(24, 19, 16, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 88vh;
  text-align: center;
}
.lightbox-figure img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  margin: 0 auto;
}
.lightbox-figure figcaption {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 1em;
  letter-spacing: 0.03em;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4em 0.6em;
  transition: opacity 0.2s ease;
  opacity: 0.75;
}
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 1.2em; right: 1.2em; font-size: 2.2rem; }
.lightbox-prev { left: 0.6em; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next { right: 0.6em; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6em;
    padding: 2em 2.2em;
    box-shadow: -20px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .nav-cta { order: 5; }
  .nav-social { order: 6; margin-top: 0.6em; }

  .hero {
    min-height: calc(100vh - 80px);
    min-height: calc(100svh - 80px);
  }
  .hero-content { padding-bottom: 5vh; }
  .eyebrow { margin-bottom: 0.6em; }
  .hero-tagline { margin-bottom: 1.1em; }
  .about, .services, .gallery, .contact { padding: 6em 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6em; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

@media (max-width: 420px) {
  .brand-logo { height: 46px; }
  .hero {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
  }
  .hero-content { padding-bottom: calc(4vh + 50px); }
  .hero-tagline { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 0.7em; }
  .hero-actions .btn { text-align: center; }
  .scroll-hint { bottom: 0.5em; }
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 7em 6vw 8em;
}
.legal-page h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 0.3em;
}
.legal-page .section-eyebrow { margin-bottom: 0.6em; }
.legal-page h2 {
  font-style: normal;
  font-size: 1.35rem;
  margin-top: 1.8em;
}
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.98rem; }
.legal-page ul { padding-left: 1.2em; }
.legal-page a.inline-link {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-page .back-link {
  display: inline-block;
  margin-bottom: 2.5em;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.legal-page .back-link:hover { color: var(--gold-dark); }
