/* ==========================================================================
   Medan Wedding. Editorial wedding photography site.
   Tokens, base, sections.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/fraunces-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/fraunces-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600-normal.woff2") format("woff2");
}

:root {
  --ivory: #f7f3ec;
  --ivory-2: #eee7d9;
  --stone: #cfc6b3;
  --charcoal: #241f1a;
  --charcoal-2: #453d33;
  --taupe: #756a5a;
  --line: rgba(36, 31, 26, 0.14);
  --green: #296049;
  --green-dark: #204c3a;
  --on-dark: #f2efe6;
  --on-dark-muted: #a9a08e;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.4rem + 6vw, 6.25rem);
  --fs-h2: clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;

  --tracking-label: 0.18em;
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 3rem);
  --section-y: clamp(4.5rem, 3rem + 7vw, 9rem);
  --container: 76rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;
  --dur-slow: 900ms;
  --nav-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

p { text-wrap: pretty; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 1rem; top: 1rem; z-index: 200;
  padding: 0.75rem 1rem; background: var(--charcoal); color: var(--ivory);
  text-decoration: none; font-size: var(--fs-small);
  transform: translateY(-150%); transition: transform var(--dur) var(--ease);
}
.skip:focus-visible { transform: translateY(0); }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: var(--fs-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}

.section { padding-block: var(--section-y); }

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.85rem 1.9rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn--solid { background: var(--green); color: #fff; }
.btn--solid:hover { background: var(--green-dark); }
.btn--line { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--line:hover { background: rgba(255,255,255,0.12); }
.btn--dark { border-color: var(--charcoal); color: var(--charcoal); }
.btn--dark:hover { background: var(--charcoal); color: var(--ivory); }

/* Nav ------------------------------------------------------------------------ */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  color: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.nav.stuck {
  background: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  color: var(--charcoal);
  box-shadow: 0 1px 0 var(--line);
}

.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem; }
.brand { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.nav__links { display: none; }
@media (min-width: 58rem) { .nav__links { display: flex; align-items: center; gap: 2rem; } }

.nav__link {
  font-size: var(--fs-small); text-decoration: none; padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav__link:hover { border-color: currentColor; }

.nav__cta { display: none; }
@media (min-width: 58rem) { .nav__cta { display: inline-flex; min-height: 2.75rem; padding: 0.6rem 1.4rem; } }
.nav.stuck .nav__cta { background: var(--green); color: #fff; }
.nav:not(.stuck) .nav__cta { border: 1px solid rgba(255,255,255,0.55); }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; margin-right: -0.5rem;
  background: none; border: 0; cursor: pointer; color: inherit;
}
@media (min-width: 58rem) { .burger { display: none; } }

.burger__bars { position: relative; width: 22px; height: 11px; }
.burger__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease); }
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { bottom: 0; }
.burger[aria-expanded="true"] .burger__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars span:nth-child(2) { transform: translateY(-4.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding: var(--nav-h) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ivory); color: var(--charcoal);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.drawer.open { visibility: visible; opacity: 1; }
@media (min-width: 58rem) { .drawer { display: none; } }

.drawer__link {
  display: block; padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-heading); font-size: clamp(1.5rem, 7vw, 2.25rem); text-decoration: none;
}

/* Hero --------------------------------------------------------------------- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }

.hero__img { position: absolute; inset: -6% -6%; z-index: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,14,0.72) 0%, rgba(20,17,14,0.2) 45%, rgba(20,17,14,0.4) 100%);
}

.hero__content { position: relative; z-index: 1; max-width: 46rem; padding-inline: var(--gutter); text-align: center; color: #fff; }
.hero__eyebrow { color: rgba(242,239,230,0.85); }
.hero__title { color: #fff; font-size: var(--fs-display); margin-block: 1.25rem 1.5rem; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
.hero__title em { font-style: italic; color: #bfe0cd; }
.hero__lead { max-width: 40ch; margin-inline: auto; color: rgba(242,239,230,0.9); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 26rem) { .hero__actions .btn { flex: 1 1 100%; } }

.hero__cue {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 1;
  width: 22px; height: 34px; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 12px;
  transform: translateX(-50%);
}
.hero__cue span { display: block; width: 3px; height: 7px; margin: 6px auto 0; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(8px); opacity: 1; } }

/* Statement band ------------------------------------------------------------ */

.statement { position: relative; min-height: 60svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.statement__img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; background: rgba(20,17,14,0.55); }
.statement__text {
  position: relative; z-index: 1; max-width: 34rem; padding-inline: var(--gutter); text-align: center;
  color: #fff; font-family: var(--font-heading); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 2vw, 2.5rem); line-height: 1.3;
}

/* About ---------------------------------------------------------------------- */

.about { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
@media (min-width: 58rem) { .about { grid-template-columns: 1fr 1.15fr; align-items: center; } }

.about__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--ivory-2); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }

.about__title { font-size: var(--fs-h2); margin-block: 1rem 1.25rem; max-width: 16ch; }
.about__text { color: var(--charcoal-2); max-width: 52ch; }
.about__text + .about__text { margin-top: 1rem; }

.about__list { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 0.65rem; }
.about__list li { padding-left: 1.4rem; position: relative; color: var(--charcoal-2); font-size: var(--fs-small); }
.about__list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* Services -------------------------------------------------------------------- */

.services { background: var(--ivory-2); }

.svc-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 48rem) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--ivory); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}
.svc--featured { border-color: var(--green); box-shadow: 0 20px 45px -30px rgba(41,96,73,0.5); }

.svc__num { font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; color: var(--green); }
.svc__title { font-size: var(--fs-h3); margin-block: 0.6rem 0.75rem; }
.svc__desc { color: var(--taupe); font-size: var(--fs-small); }

.svc__feats { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.svc__feats li { padding-left: 1.3rem; position: relative; font-size: var(--fs-small); color: var(--charcoal-2); }
.svc__feats li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* Gallery ---------------------------------------------------------------------- */

.gallery-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 48rem) { .gallery-head { flex-direction: row; align-items: end; justify-content: space-between; } }
.gallery-note { color: var(--taupe); font-size: var(--fs-small); max-width: 34ch; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 14vw; grid-auto-flow: dense; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 2; }
}

.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--ivory-2);
}
@media (min-width: 48rem) { .gallery-item { aspect-ratio: auto; } }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
@media (hover: hover) { .gallery-item:hover img { transform: scale(1.06); } }

.gallery-item__plus {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(20,17,14,0.55); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
@media (hover: hover) { .gallery-item:hover .gallery-item__plus { opacity: 1; } }

/* Lightbox ---------------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(20,17,14,0.92);
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}
.lightbox.open { visibility: visible; opacity: 1; }
.lightbox img { max-width: min(90vw, 60rem); max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* Location -------------------------------------------------------------------- */

.location { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
@media (min-width: 58rem) { .location { grid-template-columns: 1fr 1.2fr; align-items: center; } }
.location__title { font-size: var(--fs-h2); margin-block: 1rem 1rem; max-width: 14ch; }
.location__text { color: var(--charcoal-2); max-width: 42ch; }
.location__areas { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.location__areas li { padding: 0.4rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-small); }
.map { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.25) contrast(1.05); }

/* Contact ---------------------------------------------------------------------- */

.contact { background: var(--charcoal); color: var(--on-dark); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(41,96,73,0.35), transparent 60%);
}
.contact__inner { position: relative; text-align: center; max-width: 40rem; margin-inline: auto; }
.contact .eyebrow { color: #bfe0cd; }
.contact__title { color: #fff; font-size: var(--fs-h2); margin-block: 1rem 1rem; }
.contact__text { color: var(--on-dark-muted); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
@media (max-width: 26rem) { .contact__actions .btn { flex: 1 1 100%; } }
.contact__meta { margin-top: 2rem; font-size: var(--fs-small); color: var(--on-dark-muted); }

/* Footer ---------------------------------------------------------------------- */

.foot { padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: var(--fs-small); color: var(--taupe); }

/* WhatsApp float --------------------------------------------------------------- */

.wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 8px 22px rgba(37,211,102,0.35);
  transition: transform var(--dur) var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 1.7rem; height: 1.7rem; }

/* ==========================================================================
   Mobile composition. Photography breaks the gutter, meta becomes ruled rows.
   ========================================================================== */

@media (max-width: 47.99rem) {
  .hero__title { max-width: 14ch; }
  .about__media { aspect-ratio: 4 / 4.5; }
  .svc-grid { gap: 1.25rem; }
  .gallery-head { gap: 0.75rem; }
  .gallery-note { max-width: none; padding-top: 1rem; border-top: 1px solid var(--line); }
  .location__areas { gap: 0.5rem; }
  body { padding-bottom: 4.75rem; }
}

/* Sticky booking bar, mobile only ------------------------------------------------ */

.bookbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  display: none; gap: 0.75rem; align-items: center;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(247, 243, 236, 0.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
@media (max-width: 47.99rem) { .bookbar { display: flex; } }
.bookbar.tucked { transform: translateY(110%); opacity: 0; pointer-events: none; }
.bookbar__text { flex: 1; font-size: 0.8125rem; line-height: 1.35; color: var(--taupe); }
.bookbar__text strong { display: block; color: var(--charcoal); font-family: var(--font-heading); font-size: 0.95rem; }
.bookbar .btn { min-height: 2.75rem; padding-inline: 1.15rem; white-space: nowrap; }
