/* Caribbean Boudoir — public site styles */
:root {
  --ink: #16100f;
  --ink-2: #221816;
  --plum: #3a1f2b;
  --gold: #d8b48a;
  --gold-d: #a97f52;
  --sand: #f7f1ea;
  --sand-2: #efe5da;
  --cream: #fffaf5;
  --text: #2b2120;
  --muted: #7d6c66;
  --line: #e2d5c7;
  --coral: #c56f5b;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  color: var(--text); background: var(--sand); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 400; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 400; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.plain { list-style: none; margin: 0; padding: 0; }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .32em; font-size: .74rem;
  font-weight: 400; color: var(--gold-d); margin-bottom: 1.1em;
}
.eyebrow a { color: inherit; }
.lede { font-size: 1.15rem; color: inherit; opacity: .85; max-width: 620px; margin-inline: auto; }
.big { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.55; color: var(--text); }
.pill { display: inline-block; border: 1px solid currentColor; border-radius: 99px; padding: 4px 16px; font-size: .85rem; letter-spacing: .06em; opacity: .9; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--sans); font-size: .82rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  padding: 15px 30px; border: 1px solid var(--ink); color: var(--ink); background: transparent;
  border-radius: var(--radius); cursor: pointer; transition: all .25s ease;
}
.btn:hover { background: var(--ink); color: var(--sand); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e6c7a2; border-color: #e6c7a2; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.link-arrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--gold); padding-bottom: 3px; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(22,16,15,.96); backdrop-filter: blur(10px);
  transition: background .35s, box-shadow .35s;
}
.has-hero .site-header:not(.scrolled):not(.open) { background: linear-gradient(rgba(10,6,6,.55), transparent); backdrop-filter: none; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(216,180,138,.15); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 34px; }
.site-nav a {
  color: rgba(255,255,255,.82); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; border-bottom-color: var(--gold); }
.site-nav a.nav-giveaway { color: var(--gold); }
.nav-toggle { display: none; }

@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .brand img { height: 40px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .nav-toggle span:not(.sr) { display: block; height: 1.5px; background: #fff; transition: transform .3s; }
  .open .nav-toggle span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
  .open .nav-toggle span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; background: var(--ink); flex-direction: column; gap: 0;
    padding: 24px 24px 40px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
  }
  .open .site-nav { transform: none; }
  .site-nav a { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1.9rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-nav a:hover, .site-nav a.is-active { border-bottom-color: rgba(255,255,255,.08); color: var(--gold); }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; padding: calc(var(--header-h) + 60px) 0 110px; overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 30%, rgba(216,180,138,.35), transparent 60%),
    radial-gradient(ellipse 60% 60% at 15% 90%, rgba(197,111,91,.35), transparent 65%),
    linear-gradient(160deg, #2c1820 0%, #16100f 70%);
}
.hero-photo { background: var(--ink); }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; background: var(--hero) center 30% / cover no-repeat;
  animation: heroZoom 18s ease-out forwards;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,6,6,.15) 0%, rgba(10,6,6,.25) 45%, rgba(10,6,6,.82) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1200px; }
.hero h1 { max-width: 14ch; margin-bottom: .35em; }
.hero .eyebrow { color: var(--gold); }
.hero .lede { margin-inline: 0; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.scroll-cue {
  position: absolute; z-index: 1; left: 50%; bottom: 28px; width: 1px; height: 54px; background: rgba(255,255,255,.35); overflow: hidden;
}
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold); animation: cue 2.2s infinite; }
@keyframes cue { to { top: 100%; } }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.ribbon { display: block; background: var(--gold); color: var(--ink); text-align: center; padding: 14px 0; font-size: .95rem; letter-spacing: .03em; }
.ribbon:hover { background: #e6c7a2; color: var(--ink); }

/* Sections */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section.tight { padding-top: clamp(40px, 6vw, 70px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.intro { background: var(--cream); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-top: 70px; }
.pillar { border-top: 1px solid var(--line); padding-top: 26px; }
.pillar-num { font-family: var(--serif); font-style: italic; color: var(--gold-d); font-size: 1.2rem; }
.pillar h3 { margin-top: 8px; }
.pillar p { color: var(--muted); margin: 0; }

/* Photo mosaic (home) */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mosaic .tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand-2); border-radius: var(--radius); }
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, opacity .4s; }
.mosaic a.tile:hover img { transform: scale(1.04); }

.ph { display: grid; place-items: center; color: rgba(255,255,255,.7); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.ph-0 { background: linear-gradient(150deg, #3a1f2b, #8b5a4a 70%, #d8b48a); }
.ph-1 { background: linear-gradient(200deg, #22161a, #5b3644 60%, #c56f5b); }
.ph-2 { background: linear-gradient(170deg, #d8b48a, #9a6a55 55%, #2c1820); }
.mosaic-empty .tile { min-height: 200px; }

/* Steps */
.steps-section { background: var(--ink); color: var(--sand); }
.steps-section .eyebrow { color: var(--gold); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.steps li { counter-increment: s; position: relative; padding-top: 70px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 3.2rem; line-height: 1; color: var(--gold); opacity: .8;
}
.steps li p { color: rgba(247,241,234,.7); margin: 0; }

.cta-band {
  padding: clamp(70px, 9vw, 110px) 0; color: #fff;
  background: radial-gradient(ellipse at 50% 120%, rgba(216,180,138,.35), transparent 60%), linear-gradient(135deg, #3a1f2b, #1c1214);
}
.cta-band p { opacity: .8; }
.cta-band .btn { margin-top: 10px; }

/* Inner page heading */
.page-head {
  background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(216,180,138,.18), transparent 60%), var(--ink);
  color: var(--sand); padding: calc(var(--header-h) + clamp(50px, 8vw, 100px)) 0 clamp(50px, 7vw, 90px);
}
.page-head .eyebrow { color: var(--gold); }
.page-head h1 { margin-bottom: .3em; }
.page-head .pill { margin-top: 8px; color: var(--gold); }

/* Albums */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.album-card { color: var(--text); display: block; }
.album-cover { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.album-card:hover .album-cover img { transform: scale(1.04); }
.album-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 16px; }
.album-meta h2 { font-size: 1.6rem; margin: 0; }
.album-meta span { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.album-card.is-placeholder { opacity: .85; }

/* Masonry (album page) */
.masonry { columns: 3 300px; column-gap: 14px; }
.m-item { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.m-item img { width: 100%; transition: transform .8s, opacity .3s; }
.m-item:hover img { transform: scale(1.03); }
.album-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 60px; }
.album-pills a { border: 1px solid var(--line); border-radius: 99px; padding: 6px 18px; color: var(--text); font-size: .9rem; }
.album-pills a:hover { border-color: var(--gold); }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.form-aside h2 { font-size: 2rem; }
.form-aside h3 { font-size: 1.3rem; margin-top: 1.4em; }
.mini-steps { padding-left: 1.2em; margin: 0 0 1.5em; }
.mini-steps li { margin-bottom: .5em; }
.contact-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list h3 { font-family: var(--sans); font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; font-weight: 400; }
.contact-list p { margin: 0; }
.contact-list a { font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 4vw, 46px); box-shadow: 0 30px 60px -40px rgba(58,31,43,.35); }
.narrow-card { max-width: 640px; margin-inline: auto; }
.form { display: grid; gap: 20px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 7px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-d); box-shadow: 0 0 0 3px rgba(216,180,138,.3); }
.form textarea { resize: vertical; min-height: 120px; }
.form label.check { display: flex; gap: 12px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--text); cursor: pointer; }
.check input { width: 19px; height: 19px; margin-top: 3px; accent-color: var(--gold-d); flex: none; }
.fine { font-size: .82rem; color: var(--muted); text-align: center; margin: 0; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .95rem; }
.notice-error { background: #fbecea; border: 1px solid #ecc3bb; color: #8a2f22; }
.notice-success { background: #eef6ee; border: 1px solid #c4dfc4; color: #2c5a2c; }
.success-state { text-align: center; padding: 30px 0; }
.success-state h2 { font-size: 2.4rem; }
.terms { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.terms summary { cursor: pointer; color: var(--text); }

/* Drop zone */
.dropzone { position: relative; border: 1.5px dashed var(--gold); border-radius: 6px; background: #fff; padding: 26px 20px; text-align: center; transition: background .2s; }
.dropzone.drag { background: #fbf3ea; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dz-label { text-transform: none !important; letter-spacing: 0 !important; font-size: .95rem !important; color: var(--text) !important; pointer-events: none; }
.dz-label strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.dz-label span { color: var(--muted); font-size: .85rem; }
.dz-previews { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.dz-previews:empty { display: none; }
.dz-previews figure { margin: 0; width: 84px; position: relative; z-index: 2; }
.dz-previews img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; }
.dz-previews figcaption { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-previews .bad img { outline: 2px solid var(--coral); }
.dz-msg { width: 100%; color: #8a2f22; font-size: .85rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247,241,234,.75); padding: 80px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.site-footer h3 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .25em; color: var(--gold); font-weight: 400; margin-bottom: 16px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(247,241,234,.85); }
.site-footer a:hover { color: var(--gold); }
.site-footer .muted { color: rgba(247,241,234,.55); }
.footer-base { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding-top: 24px; font-size: .8rem; color: rgba(247,241,234,.45); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(12,8,8,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lb.on { opacity: 1; pointer-events: auto; }
.lb img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2rem; width: 60px; height: 60px; opacity: .75; font-family: var(--serif); }
.lb button:hover { opacity: 1; color: var(--gold); }
.lb .lb-close { top: 12px; right: 12px; }
.lb .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: .2em; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .albums { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1200px, 100% - 36px); }
  .pillars, .form-layout, .footer-grid { grid-template-columns: 1fr; }
  .pillars { gap: 30px; margin-top: 50px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .masonry { columns: 2; column-gap: 8px; }
  .m-item { margin-bottom: 8px; }
  .row2 { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero { padding-bottom: 90px; }
  .lb img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb .lb-prev, .lb .lb-next { top: auto; bottom: 6px; transform: none; }
  .form-aside { order: 2; }
}
@media (max-width: 520px) {
  .albums { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
