/* =====================================================================
   LIFTED — Custom Balloon Arches
   ---------------------------------------------------------------------
   BRAND COLORS live here. To match Rayna's real brand, change the hex
   values in :root below. Everything on the site updates automatically.
   (Drop the official hex codes in assets/brand/colors.txt for reference.)
   ===================================================================== */

:root {
  /* ---- Brand palette (matched to the Lifted logo: pink + orange) ---- */
  --brand-dark:    #43303a;   /* deep plum — body text & footer */
  --brand-primary: #ef6f1e;   /* Lifted orange — buttons & CTAs */
  --brand-primary-dark: #d65f12; /* darker orange — button hover */
  --brand-accent:  #f19ec4;   /* Lifted pink — highlights & decorative accents */
  --brand-light:   #fdf1f5;   /* pale pink — page background */
  --brand-muted:   #9c8791;   /* muted mauve-grey — secondary text */
  --white:         #ffffff;

  /* ---- Derived ---- */
  --ink:        var(--brand-dark);
  --bg:         var(--brand-light);
  --shadow-sm:  0 4px 14px rgba(43, 36, 49, .08);
  --shadow-md:  0 14px 40px rgba(43, 36, 49, .14);
  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --ease:       cubic-bezier(.22, .61, .36, 1);

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .3px; }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section__head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--brand-primary);
  margin-bottom: .9rem;
}
.section__title { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--ink); }
.section__intro { margin-top: 1.1rem; color: var(--brand-muted); font-size: 1.08rem; max-width: 60ch; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .95rem 1.9rem;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn--primary { background: var(--brand-primary); color: var(--white); box-shadow: 0 10px 24px rgba(239, 111, 30, .35); }
.btn--primary:hover { background: var(--brand-primary-dark); transform: translateY(-3px); box-shadow: 0 16px 34px rgba(239, 111, 30, .45); }
.btn--ghost { background: rgba(255,255,255,.12); color: var(--white); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.9); color: var(--ink); transform: translateY(-3px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--brand-primary); }
.btn--outline:hover { background: var(--brand-primary); color: var(--white); transform: translateY(-3px); }

/* ===================== Nav ===================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 241, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(43, 36, 49, .06);
  transition: box-shadow .3s var(--ease);
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo { height: 42px; width: auto; }
.nav__wordmark { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; letter-spacing: .5px; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav__link {
  font-size: .92rem; font-weight: 400; letter-spacing: .04em;
  position: relative; color: var(--ink); padding-block: .3rem;
  transition: color .25s var(--ease);
}
.nav__link:not(.nav__ig)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--brand-primary); transition: width .3s var(--ease);
}
.nav__link:not(.nav__ig):hover::after { width: 100%; }
.nav__link:hover { color: var(--brand-primary); }
.nav__ig { color: var(--ink); display: inline-flex; }
.nav__ig:hover { color: var(--brand-primary); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero__media {
  position: absolute; inset: 0;
  /* The photo layers on TOP of a gradient. If arch-01.jpg isn't present
     yet, the elegant gradient below simply shows through — no broken image. */
  background-image:
    url("../assets/gallery/arch-01.jpg"),
    linear-gradient(135deg, #f9c0da 0%, #f19ec4 45%, #f5a15c 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,36,49,.35) 0%, rgba(43,36,49,.25) 40%, rgba(43,36,49,.62) 100%);
}
.hero__content { position: relative; z-index: 2; color: var(--white); max-width: 780px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .34em; font-size: .78rem; font-weight: 500;
  color: #f2e4d8; margin-bottom: 1.2rem;
}
.hero__title { font-size: clamp(2.8rem, 8vw, 5.6rem); color: var(--white); text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero__title em { color: #ffd6e8; font-weight: 500; }
.hero__lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 300; max-width: 52ch; color: #f6efe9; }
.hero__actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span {
  display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative;
}
.hero__scroll span::after {
  content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: rgba(255,255,255,.9); border-radius: 2px;
  animation: scrollDot 1.6s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ===================== Gallery ===================== */
.gallery {
  columns: 3 280px;
  column-gap: 1.25rem;
}
.gallery__item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: #eadfe3;
}
.gallery__item img {
  width: 100%; height: auto; display: block;
  transition: transform .6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem .9rem;
  color: var(--white); font-family: var(--serif); font-size: 1.25rem;
  background: linear-gradient(180deg, transparent, rgba(43,36,49,.72));
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* Elegant placeholder when a photo isn't present yet (JS adds .is-empty) */
.gallery__item.is-empty { aspect-ratio: 4 / 5; }
.gallery__item.is-empty img { display: none; }
.gallery__item.is-empty::before {
  content: "🎈"; font-size: 2.4rem; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: .5;
}
.gallery__item.is-empty::after {
  content: ""; position: absolute; inset: 0; z-index: -0;
}
.gallery__item.is-empty:nth-child(3n+1) { background: linear-gradient(135deg,#e9d3d8,#cf9fab); }
.gallery__item.is-empty:nth-child(3n+2) { background: linear-gradient(135deg,#efe2cf,#d9bd8f); }
.gallery__item.is-empty:nth-child(3n+3) { background: linear-gradient(135deg,#dcd0dd,#b39cc0); }
.gallery__item.is-empty figcaption { opacity: 1; transform: none; background: linear-gradient(180deg, transparent, rgba(43,36,49,.55)); }

/* ===================== About Rayna ===================== */
.about { background: var(--white); }
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about__portrait { position: relative; }
.about__portrait img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5; object-fit: cover;
  background: linear-gradient(135deg,#e9d3d8,#b76e79);
}
.about__portrait::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 1.5px solid var(--brand-accent); border-radius: var(--radius-lg);
}
.about__bio { margin-top: 1.4rem; display: grid; gap: 1rem; color: #4a4150; font-size: 1.08rem; }
.about__bio[data-placeholder="true"] { position: relative; }
.about__ig { margin-top: 2rem; }

/* ===================== Contact ===================== */
.contact { background: var(--brand-light); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__intro { position: sticky; top: 100px; }
.contact__dm { margin-top: 1.4rem; color: var(--brand-muted); }
.contact__dm a { color: var(--brand-primary); font-weight: 500; border-bottom: 1px solid currentColor; }

.contact__formwrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-md);
}
.form { display: grid; gap: 1.15rem; }
.form__row { display: grid; gap: .45rem; }
.form__label { font-size: .82rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.form__label span { color: var(--brand-primary); }
.form__input {
  font-family: var(--sans); font-size: 1rem; font-weight: 300; color: var(--ink);
  padding: .85rem 1rem;
  border: 1.5px solid #e4dad2;
  border-radius: 10px;
  background: #fdfbf9;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  width: 100%;
}
.form__input::placeholder { color: #b9afb3; }
.form__input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(239,111,30,.15); }
textarea.form__input { resize: vertical; min-height: 120px; }
.form__submit { justify-content: center; margin-top: .3rem; }
.form__note { font-size: .82rem; color: var(--brand-muted); }
.form__note span { color: var(--brand-primary); }
.form__hp { position: absolute; left: -9999px; }

.form__success { text-align: center; padding: 2.5rem 1rem; animation: fadeUp .5s var(--ease); }
.form__success-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
  background: var(--brand-primary); color: #fff; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.form__success h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.form__success p { color: var(--brand-muted); max-width: 34ch; margin-inline: auto; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ===================== Footer ===================== */
.footer { background: var(--brand-dark); color: #e8e0e6; padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.footer__logo { height: 40px; filter: brightness(0) invert(1); opacity: .95; }
.footer__wordmark { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.footer__tag { margin-top: .8rem; color: #b7acb6; font-size: .95rem; }
.footer__links { display: flex; flex-direction: column; gap: .7rem; }
.footer__links a { color: #d9cfd7; font-size: .95rem; width: fit-content; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--brand-accent); }
.footer__copy { grid-column: 1 / -1; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #9b8fa0; }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 22, 33, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vw;
  animation: fadeIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: 90vw; max-height: 88vh; text-align: center; }
.lightbox__figure img { max-width: 100%; max-height: 82vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox__figure figcaption { color: #f2e9e2; font-family: var(--serif); font-size: 1.3rem; margin-top: 1rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .25s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 20px; right: 24px; }
.lightbox__prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 2vw; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== Scroll-reveal ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== Responsive ===================== */
@media (max-width: 860px) {
  .about__grid, .contact__grid, .footer__inner { grid-template-columns: 1fr; }
  .about__portrait { max-width: 440px; margin-inline: auto; }
  .contact__intro { position: static; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--brand-light);
    padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
    border-bottom: 1px solid rgba(43,36,49,.08);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { width: 100%; padding-block: .85rem; font-size: 1.05rem; border-bottom: 1px solid rgba(43,36,49,.06); }
  .nav__ig { padding-top: 1rem; }
}

@media (max-width: 520px) {
  .gallery { columns: 1; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
