/* ============================================================
   Hochzeits Manu Faktur — Botanical Artisan Studio
   Light editorial · ivory / sage / terracotta · Cormorant + Mulish
   ============================================================ */

:root {
  /* palette */
  --paper:      #fdfbf6;
  --ivory:      #f7f3ec;
  --bone:       #efe8db;
  --sage:       #8a967a;
  --olive:      #54603f;
  --rose:       #cf9aa0;
  --rose-soft:  #e7c8cb;
  --terracotta: #b9683f;
  --terra-soft: #d99977;
  --ink:        #4a4038;
  --muted:      #8a7d6f;
  --line:       #ddd2c0;

  /* type */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-soft: 0 18px 50px -28px rgba(74, 64, 56, .35);
  --shadow-card: 0 14px 40px -26px rgba(74, 64, 56, .45);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { width: min(var(--maxw), 100% - 2.8rem); margin-inline: auto; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

/* ---------- shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 0 0 1.1rem;
}
.eyebrow-mark { width: 14px; height: 19px; color: var(--sage); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 1.3rem;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--terracotta); }

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0;
}

.section-header { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 3.6rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  min-height: 44px;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--olive);
  border-color: var(--line);
}
.btn-lg { padding: 1.05rem 2rem; font-size: .85rem; }
.btn-icon { width: 18px; height: 18px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { background: #a85b34; transform: translateY(-2px); }
  .btn-ghost:hover { background: var(--bone); border-color: var(--sage); transform: translateY(-2px); }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 243, 236, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(var(--maxw), 100% - 2.8rem);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 500; letter-spacing: .005em;
  color: var(--ink);
}
.nav-mark { width: 16px; height: 22px; color: var(--sage); flex: none; }
.nav-brand-text { white-space: nowrap; }
.nav-brand-accent { font-style: italic; color: var(--terracotta); padding: 0 .12em; }

.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 2rem;
  margin: 0; padding: 0;
}
.nav-link {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink);
  position: relative; padding: .3rem 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--terracotta); transition: width .3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .65rem 1.3rem; border-radius: 999px;
  border: 1px solid var(--terracotta); color: var(--terracotta);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-cta:hover { background: var(--terracotta); color: var(--paper); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1.6px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 80% at 92% 0%, var(--bone) 0%, transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--ivory) 100%);
  overflow: hidden;
}
.hero-inner {
  width: min(var(--maxw), 100% - 2.8rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy { max-width: 36rem; }
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.9rem, 8vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.015em;
  margin: 0 0 1.6rem;
  color: var(--ink);
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--terracotta); }
.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero-blob {
  position: absolute; z-index: 0;
  width: 86%; aspect-ratio: 1/1.12;
  left: -6%; top: 8%;
  background: var(--sage);
  opacity: .9;
  border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
}
.hero-frame {
  position: relative; z-index: 1;
  margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 50% 50% 50% 50% / 8% 8% 8% 8%;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: var(--shadow-card);
  transform: rotate(1.4deg);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: relative; z-index: 1;
  margin: 1.1rem 0 0; text-align: right;
  font-family: var(--display); font-style: italic;
  font-size: 1.05rem; color: var(--olive);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--ivory); }
.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.4rem, 6vw, 5rem);
  align-items: center;
}
.about-photos { position: relative; display: grid; gap: 1.2rem; }
.about-photo {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-card); background: var(--bone);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-tall { aspect-ratio: 3/4; }
.about-photo-wide {
  aspect-ratio: 5/4;
  width: 78%; margin-left: auto;
  margin-top: -3.5rem; position: relative;
  border: 4px solid var(--paper);
}
.about-lead {
  font-family: var(--display); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  line-height: 1.3; color: var(--olive);
  margin: 0 0 1.4rem;
}
.about-text p { margin: 0 0 1.1rem; color: var(--ink); }
.about-stats {
  display: flex; gap: 2.6rem; margin: 2rem 0;
  padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-stats .stat { margin: 0; }
.stat-num {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1;
  color: var(--terracotta); margin: 0;
}
.stat-label {
  margin: .35rem 0 0; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--paper); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
}
.service-card {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 1.6rem 2rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service-no {
  position: absolute; top: 1.2rem; right: 1.3rem;
  font-family: var(--display); font-style: italic;
  font-size: 1.5rem; color: var(--rose); opacity: .8;
}
.service-icon {
  width: 46px; height: 46px; color: var(--olive);
  margin-bottom: 1.4rem;
}
.service-name {
  font-family: var(--display); font-weight: 500;
  font-size: 1.5rem; line-height: 1.15; margin: 0 0 .7rem; color: var(--ink);
}
.service-desc { font-size: .94rem; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--sage); }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--ivory); }
.gallery-grid {
  columns: 4 200px;
  column-gap: 1.1rem;
}
.gallery-item {
  display: block; width: 100%; margin: 0 0 1.1rem;
  padding: 0; border: none; background: var(--bone);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  break-inside: avoid;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery-item img {
  width: 100%; height: auto; object-fit: cover;
  transition: transform .6s var(--ease), filter .35s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
  .gallery-item:hover img { transform: scale(1.05); }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(48, 42, 36, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: clamp(1rem, 5vw, 3rem);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-figure { margin: 0; max-width: min(560px, 92vw); max-height: 86vh; }
.lightbox-img {
  width: 100%; height: 100%; max-height: 86vh; object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  background: var(--bone);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(247,243,236,.12);
  color: var(--paper); border: 1px solid rgba(247,243,236,.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; transition: background .25s var(--ease);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(247,243,236,.28); }
.lightbox-close { top: 1.4rem; right: 1.4rem; width: 48px; height: 48px; font-size: 1.9rem; line-height: 1; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.lightbox-prev { left: clamp(.6rem, 3vw, 2rem); }
.lightbox-next { right: clamp(.6rem, 3vw, 2rem); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--olive); color: var(--ivory); }
.contact .eyebrow { color: var(--rose-soft); }
.contact .eyebrow-mark { color: var(--rose-soft); }
.contact .section-title { color: var(--paper); }
.contact .section-title em { color: var(--rose-soft); }
.contact-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.4rem, 6vw, 5rem); align-items: center;
}
.contact-text { color: rgba(247,243,236,.82); max-width: 44ch; margin: 0 0 2rem; }
.contact-details { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: .9rem; font-size: 1.02rem; }
.contact-mark { width: 22px; height: 22px; color: var(--rose-soft); flex: none; }
.contact-link { border-bottom: 1px solid rgba(231,200,203,.5); padding-bottom: 1px; }
.contact-link:hover { border-bottom-color: var(--rose-soft); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.contact .btn-ghost { color: var(--ivory); border-color: rgba(247,243,236,.4); }
.contact .btn-ghost:hover { background: rgba(247,243,236,.12); border-color: var(--ivory); }

.contact-visual { position: relative; justify-self: center; width: 100%; max-width: 380px; }
.contact-blob {
  position: absolute; z-index: 0;
  width: 88%; aspect-ratio: 1/1.1; right: -5%; top: -6%;
  background: var(--rose); opacity: .55;
  border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%;
}
.contact-frame {
  position: relative; z-index: 1; margin: 0;
  aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius);
  border: 5px solid var(--ivory);
  box-shadow: var(--shadow-card);
  transform: rotate(-1.6deg);
}
.contact-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--ivory); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  align-items: start; padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(247,243,236,.14);
}
.footer-mark { width: 16px; height: 22px; color: var(--sage); margin-bottom: .7rem; }
.footer-logo { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 500; margin-bottom: .5rem; }
.footer-tagline { color: rgba(247,243,236,.6); font-size: .92rem; margin: 0; max-width: 32ch; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-link { font-size: .88rem; color: rgba(247,243,236,.78); letter-spacing: .04em; transition: color .2s var(--ease); }
.footer-link:hover { color: var(--terra-soft); }
.footer-social { justify-self: end; }
.footer-ig {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9rem; color: rgba(247,243,236,.85);
  border: 1px solid rgba(247,243,236,.22); border-radius: 999px;
  padding: .55rem 1.1rem; transition: border-color .25s var(--ease), color .25s var(--ease);
}
.footer-ig svg { width: 18px; height: 18px; }
.footer-ig:hover { border-color: var(--terra-soft); color: var(--terra-soft); }
.footer-bottom { padding-top: 1.6rem; }
.footer-bottom p { margin: 0; font-size: .82rem; color: rgba(247,243,236,.5); }
.footer-bottom a { border-bottom: 1px solid rgba(247,243,236,.3); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(247,243,236,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: none;
}
.mobile-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; min-height: 50px;
  background: var(--terracotta); color: var(--paper);
  font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 999px;
}
.mobile-cta-btn svg { width: 18px; height: 18px; }

/* ============================================================
   ENTRANCE ANIMATIONS (reduced-motion safe — content visible by default)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 3 180px; }
}

@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-menu {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper);
    padding: 1rem 1.4rem 1.8rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
  .nav-menu li { width: 100%; border-bottom: 1px solid var(--bone); }
  .nav-menu li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-link { display: block; padding: 1rem 0; font-size: .9rem; }
  .nav-cta { display: inline-flex; }

  .hero { padding-top: 6.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-copy { max-width: none; }
  .hero-visual { max-width: 340px; margin-inline: auto; order: -1; }
  .hero-caption { text-align: center; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photos { order: 2; max-width: 440px; }
  .about-photo-wide { width: 70%; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-visual { order: -1; max-width: 320px; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-social { justify-self: start; }

  .mobile-cta { display: block; }
  body { padding-bottom: 72px; }
}

@media (max-width: 460px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 2 140px; column-gap: .7rem; }
  .gallery-item { margin-bottom: .7rem; }
  .about-stats { gap: 1.8rem; }
  .nav-brand { font-size: 1.2rem; }
}
