/* ==========================================================================
   Lamec Wedding — "Gece davetiyesi"
   The site reads like an evening invitation, in the same black-and-gold palette
   as the wedding pages of lamechotel.com: night background, ivory type and
   champagne gold for the few things that should catch the eye.
   Cormorant Garamond sets the invitation voice; Figtree carries everything practical.
   Legacy names are kept as roles so the rules stay readable:
   --porcelain = page background, --ivy = strong ink, --rose = accent, --powder = raised card.
   ========================================================================== */

:root {
  color-scheme: dark;
  --night: #14111a;
  --night-2: #1d1925;
  --night-3: #0d0b11;
  --ivory: #f4eee3;
  --ivory-muted: #b9b0a3;
  --champagne: #d1b272;

  --porcelain: var(--night);
  --porcelain-2: var(--night-2);
  --ivy: var(--ivory);
  --leaf: var(--champagne);
  --rose: var(--champagne);
  --rose-deep: var(--champagne);
  --powder: var(--night-2);
  --gold: #b99a5e;
  --text: var(--ivory);
  --muted: var(--ivory-muted);
  --line: rgba(244, 238, 227, 0.13);
  --line-light: rgba(244, 238, 227, 0.13);
  --error: #e8907f;

  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-sm: 0.9rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.15rem, 0.9vw + 0.9rem, 1.35rem);
  --fs-h3: clamp(1.45rem, 1vw + 1.1rem, 1.85rem);
  --fs-h2: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem);
  --fs-display: clamp(2.6rem, 3.8vw + 1rem, 5.2rem);

  --gutter: clamp(18px, 4vw, 56px);
  --max: 1280px;
  --header-h: 80px;
  --space: clamp(80px, 10vw, 160px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--porcelain); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.65; font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
main { display: block; outline: none; }
::selection { background: var(--champagne); color: var(--night); }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; }
.band :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--champagne); color: var(--night); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.block { padding-block: var(--space); }
.block--tight { padding-top: clamp(32px, 4vw, 56px); }
/* two plain sections share one gap; a section next to a coloured one keeps its own space */
.block:not(.band):not(.tint):not(.rsvp) + .block:not(.band):not(.tint):not(.rsvp) { padding-top: 0; }

/* ---------- type ---------- */
.serif, .h2, .h3, .display { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.display { font-size: var(--fs-display); line-height: 1.02; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; max-width: 18ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.muted { color: var(--muted); }
.head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.head--split .h2 { max-width: 20ch; }
@media (max-width: 700px) { .head--split { grid-template-columns: 1fr; } }

.prose { max-width: 66ch; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin-top: 2em; }
.prose h2 { font-size: 1.8rem; }
.prose h3 { font-size: 1.35rem; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--rose); }
.prose a:not(.btn) { color: var(--rose-deep); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.prose--article { font-size: 1.1rem; line-height: 1.75; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0.7em 1.6em; border: 1px solid transparent; border-radius: 999px;
  font-weight: 500; font-size: 0.98rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn--rose { background: var(--champagne); color: var(--night); }
.btn--rose:hover { background: var(--ivory); }
.btn--line { border-color: rgba(244, 238, 227, 0.45); color: var(--ivory); background: transparent; }
.btn--line:hover { border-color: var(--ivory); background: var(--ivory); color: var(--night); }
.btn--small { min-height: 42px; padding: 0.5em 1.2em; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.link { color: var(--rose-deep); font-weight: 500; text-decoration: underline; text-decoration-color: currentColor; }
.link:hover { color: var(--ivory); }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 0.2em; }

/* thin gold rule with a lozenge, the one ornament on the site (invitation and RSVP cards) */
.rule { display: flex; align-items: center; gap: 12px; width: min(220px, 60%); margin-inline: auto; color: var(--gold); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.rule span { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--porcelain); transition: box-shadow 0.3s, transform 0.35s var(--ease); }
.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.brand { flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav-main { margin-left: auto; }
.nav-main > ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav-main a { display: block; padding: 10px 0; font-size: 0.97rem; text-decoration: none; white-space: nowrap; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--rose-deep); }
.nav-main a[aria-current="page"] { text-decoration: underline; }
.nav-main__has-sub { position: relative; }
.nav-main__has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.nav-sub {
  position: absolute; left: -24px; top: 100%; min-width: 230px; padding: 12px 0;
  background: var(--porcelain); border: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-main__has-sub:hover .nav-sub, .nav-main__has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { padding: 8px 24px; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.header-phone .icon { color: var(--rose-deep); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; }
.menu-toggle__bars, .menu-toggle__bars::before { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-toggle__bars { top: 18px; }
.menu-toggle__bars::before { content: ""; left: 0; right: 0; top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(-90deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 45; display: flex; flex-direction: column; gap: 32px;
  padding: 24px var(--gutter) 40px; background: var(--porcelain); overflow-y: auto; opacity: 0; transition: opacity 0.3s;
}
.mobile-nav.is-open { opacity: 1; }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav a { display: block; padding: 6px 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 7vw, 2.3rem); line-height: 1.25; text-decoration: none; }
.mobile-nav nav a[aria-current="page"] { color: var(--rose-deep); }
.mobile-nav__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.is-menu-open { overflow: hidden; }
@media (max-width: 1180px) {
  .nav-main { display: none; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1320px) { .header-phone span { display: none; } }
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 26px; }
  .header-actions .btn, .header-phone { display: none; }
}

/* ---------- home: the invitation ---------- */
.invite { padding-block: clamp(20px, 3vw, 40px) var(--space); }
.invite__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
.invite__photo { position: relative; aspect-ratio: 4 / 5.2; max-height: calc(100svh - var(--header-h) - 60px); width: 100%; overflow: hidden; }
.invite__photo img { width: 100%; height: 100%; object-fit: cover; }
.invite__card {
  position: relative; z-index: 1; margin-left: -12%; padding: clamp(40px, 5.5vw, 88px) clamp(28px, 5vw, 80px);
  background: var(--powder); text-align: center;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.invite__card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(209, 178, 114, 0.5); pointer-events: none; }
.invite__host { display: block; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); color: var(--leaf); }
.invite__title { margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 3.6vw + 1rem, 5.2rem); line-height: 1; letter-spacing: 0.005em; }
.invite__title .l { display: block; white-space: nowrap; }
.invite__text { max-width: 36ch; margin: 28px auto 0; color: var(--ivory-muted); font-size: var(--fs-lead); line-height: 1.5; }
.invite .rule { margin-top: 32px; }
.invite__details { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px clamp(20px, 3vw, 40px); margin-top: 28px; }
.invite__details dt { font-size: 0.85rem; color: var(--muted); }
.invite__details dd { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; }
.invite .actions { justify-content: center; }
/* one orchestrated entrance: the invitation lines arrive in order */
@media (prefers-reduced-motion: no-preference) {
  .invite__card > * { animation: arrive 0.7s var(--ease) both; }
  .invite__card > :nth-child(2) { animation-delay: 0.06s; }
  .invite__card > :nth-child(3) { animation-delay: 0.14s; }
  .invite__card > :nth-child(4) { animation-delay: 0.2s; }
  .invite__card > :nth-child(5) { animation-delay: 0.26s; }
  .invite__card > :nth-child(6) { animation-delay: 0.32s; }
  .invite__photo img { animation: settle 2.4s var(--ease) both; }
}
@keyframes arrive { from { transform: translateY(14px); } }
@keyframes settle { from { transform: scale(1.06); } }
@media (max-width: 900px) {
  .invite__grid { grid-template-columns: 1fr; }
  .invite__photo { aspect-ratio: 4 / 3.4; max-height: none; }
  .invite__card { margin: -56px 12px 0; }
  .invite__details { grid-template-columns: 1fr; }
}

/* ---------- intro ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: end; }
.intro .prose { margin-top: 28px; color: var(--muted); }
.intro__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .intro__grid { grid-template-columns: 1fr; } }

/* ---------- events as typographic rows ---------- */
.events { border-top: 1px solid var(--line); }
.event-row { border-bottom: 1px solid var(--line); }
.event-row a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) 120px; gap: 24px; align-items: center;
  padding: clamp(20px, 2.4vw, 32px) 0; text-decoration: none;
}
.event-row__name { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.2vw, 4.2rem); line-height: 1; letter-spacing: 0.005em; transition: color 0.25s; }
.event-row__text { color: var(--muted); }
.event-row__text strong { display: block; font-weight: 500; color: var(--ivy); }
.event-row__thumb { aspect-ratio: 4 / 5; overflow: hidden; }
.event-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-row a:hover .event-row__name { color: var(--rose-deep); }
@media (max-width: 760px) {
  .event-row a { grid-template-columns: minmax(0, 1fr) 84px; gap: 6px 16px; }
  .event-row__text { grid-column: 1; }
  .event-row__thumb { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- ivy band ---------- */
.band { background: var(--night-3); color: var(--ivory); }
.band .lead, .band .muted { color: var(--ivory-muted); }
.band .link { color: var(--champagne); }
.band .link:hover { color: #fff; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.services li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.services h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.25; }
.services h3 a { text-decoration: none; }
.services h3 a:hover { color: var(--champagne); text-decoration: underline; }
.services p { color: var(--ivory-muted); }
.band .more { margin-top: 40px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .services li { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- gallery reel (horizontal) ---------- */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 26vw, 360px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--leaf) transparent; }
.reel li { scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; background: var(--porcelain-2); }
.reel a, .reel img { display: block; width: 100%; height: 100%; }
.reel img { object-fit: cover; }
.reel-wrap { padding-left: max(var(--gutter), (100vw - var(--max)) / 2 + var(--gutter)); }

/* ---------- stay ---------- */
.stay__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.stay__photo { aspect-ratio: 16 / 10; overflow: hidden; }
.stay__photo img { width: 100%; height: 100%; object-fit: cover; }
.stay .prose { margin-top: 24px; color: var(--muted); }
.stay__fact { margin-top: 28px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
@media (max-width: 900px) { .stay__grid { grid-template-columns: 1fr; } }

/* ---------- plan (a real sequence, so it is numbered) ---------- */
.tint { background: var(--porcelain-2); }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.timeline li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--gold); }
.timeline li::before { content: counter(step); display: block; font-family: var(--serif); font-weight: 500; font-size: 3rem; line-height: 1; color: var(--rose); margin-bottom: 18px; }
.timeline h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.timeline p { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* ---------- local ---------- */
.local__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.local .prose { color: var(--muted); }
.areas { color: var(--ivy); }
@media (max-width: 900px) { .local__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.faq__grid .link { display: inline-block; margin-top: 16px; }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { position: relative; display: block; padding: 22px 48px 22px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.35; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before, .accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--rose-deep); transition: transform 0.3s var(--ease); }
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0); }
.accordion details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }
.accordion--article summary { font-size: 1.15rem; padding-block: 18px; }
.accordion--article details p { font-size: 1rem; }
.faq-groups { display: grid; gap: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- guides ---------- */
.guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.guides a { display: grid; gap: 10px; text-decoration: none; padding-top: 20px; border-top: 1px solid var(--gold); }
.guides span { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; line-height: 1.3; }
.guides small { color: var(--rose-deep); font-size: 0.92rem; }
.guides a:hover span { text-decoration: underline; text-decoration-thickness: 1px; }
@media (max-width: 900px) { .guides { grid-template-columns: 1fr; } }

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.post-card a { display: block; text-decoration: none; }
.post-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--porcelain-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__title { margin-top: 20px; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.25; }
.post-card a:hover .post-card__title { color: var(--rose-deep); }
.post-card__desc { margin-top: 8px; color: var(--muted); }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

/* ---------- RSVP card (quote form) ---------- */
.rsvp { background: var(--night-3); }
.rsvp__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rsvp__aside .lead { margin-top: 20px; }
.rsvp__aside ul { display: grid; gap: 12px; margin-top: 32px; justify-items: start; }
.rsvp__card { position: relative; padding: clamp(32px, 5vw, 64px); background: var(--powder); }
.rsvp__card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(209, 178, 114, 0.5); pointer-events: none; }
.rsvp__card > * { position: relative; }
.rsvp__title { text-align: center; font-family: var(--serif); font-weight: 500; font-style: italic; font-size: 1.6rem; }
.rsvp__card .rule { margin: 16px auto 32px; }
@media (max-width: 900px) { .rsvp__grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.field { display: grid; gap: 4px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: var(--fs-sm); color: var(--muted); }
.field em { font-style: normal; opacity: 0.8; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 8px 0; background: transparent; border: 0; border-bottom: 1px solid rgba(244, 238, 227, 0.32); border-radius: 0;
  font-size: 1.05rem; transition: border-color 0.2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select option { background: var(--night-2); color: var(--ivory); }
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; padding-right: 24px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--rose-deep); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-bottom-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-sm); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; font-size: var(--fs-sm); color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--rose-deep); }
.check a:not(.btn) { color: var(--rose-deep); }
.check.is-invalid { color: var(--error); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.form-actions .btn--solid { background: var(--champagne); color: var(--night); }
.form-actions .btn--solid:hover { background: var(--ivory); }
.form-status { font-size: 0.97rem; }
.form-status.is-ok { color: var(--champagne); font-weight: 500; }
.form-status.is-error { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- inner page head: title beside a framed photo ---------- */
.page-head { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.page-head--plain .page-head__grid { grid-template-columns: minmax(0, 1fr); }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-display); line-height: 1.05; letter-spacing: 0.005em; max-width: 16ch; overflow-wrap: break-word; }
.page-head--plain h1 { max-width: 20ch; }
.page-head--long h1 { font-size: clamp(2.2rem, 1.8vw + 1.5rem, 3.5rem); line-height: 1.12; max-width: 24ch; }
.page-head--long .page-head__photo { aspect-ratio: 4 / 3; }
.page-head .lead { margin-top: 24px; }
.page-head__photo { position: relative; aspect-ratio: 4 / 5; }
.page-head__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); }
.page-head__photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
/* breadcrumb: kept for navigation and SEO, but quiet - no underlines, small, muted */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 28px; font-size: 0.8rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--rose-deep); }
.crumbs span[aria-hidden] { width: 4px; height: 4px; overflow: hidden; color: transparent; background: var(--gold); transform: rotate(45deg); }
.crumbs [aria-current] { color: var(--ivy); }
.page-head__spec { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 32px; }
.page-head__spec dt { font-size: 0.85rem; color: var(--muted); }
.page-head__spec dd { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
@media (max-width: 900px) {
  .page-head__grid { grid-template-columns: 1fr; }
  .page-head__photo { aspect-ratio: 4 / 3; margin-right: 18px; }
}

/* ---------- event page ---------- */
.highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.highlights li { padding: 22px 0; border-top: 1px solid var(--line); }
.highlights h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }
.highlights p { margin-top: 6px; color: var(--muted); }
@media (max-width: 760px) { .highlights { grid-template-columns: 1fr; } }

/* ---------- services: pinned photo + index beside the scrolling list ---------- */
.catalog { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); }
.catalog__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.catalog__frame { position: relative; height: min(60vh, 600px); }
.catalog__frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--gold); }
.catalog__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.catalog__frame img.is-active { opacity: 1; }
.catalog__index { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 40px; font-size: var(--fs-sm); }
.catalog__index a { color: var(--muted); text-decoration: none; }
.catalog__index a:hover, .catalog__index a[aria-current="true"] { color: var(--rose-deep); text-decoration: underline; }
.catalog__item { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.catalog__item:first-child { border-top: 0; padding-top: 0; }
.catalog__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.8vw + 1.2rem, 2.8rem); line-height: 1.12; }
.catalog__item .lead { margin-top: 16px; color: var(--ivy); }
.catalog__item p:not(.lead) { margin-top: 14px; color: var(--muted); max-width: 58ch; }
.catalog__photo { display: none; }
@media (max-width: 900px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .catalog__aside { display: none; }
  .catalog__photo { display: block; aspect-ratio: 4 / 3; margin-bottom: 24px; overflow: hidden; }
  .catalog__photo img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---------- about: editorial story, photo collage, reasons ---------- */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 112px); padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.story:first-child { border-top: 0; padding-top: 0; }
.story .prose p:first-child { font-size: var(--fs-lead); color: var(--ivy); }
.story .prose p + p { margin-top: 1em; color: var(--muted); }
.collage { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(14px, 2vw, 28px); margin-block: clamp(24px, 4vw, 56px); }
.collage figure { position: relative; overflow: hidden; }
.collage figure:first-child { grid-row: span 2; }
.collage figure:not(:first-child) { aspect-ratio: 4 / 3; }
.collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); margin-top: clamp(32px, 4vw, 56px); }
.reasons li { padding-top: 22px; border-top: 1px solid var(--gold); }
.reasons h3 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; }
.reasons p { margin-top: 12px; color: var(--muted); }
@media (max-width: 800px) {
  .story, .collage, .reasons { grid-template-columns: minmax(0, 1fr); }
  .collage figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
}
}

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line-light); }
.facts dd { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.facts dt { margin-top: 6px; color: var(--ivory-muted); font-size: 0.95rem; }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 32px; }
.filters button { padding: 6px 0; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--muted); font-size: 1rem; }
.filters button:hover { color: var(--ivy); }
.filters button[aria-pressed="true"] { color: var(--ivy); border-bottom-color: var(--rose-deep); }
.masonry { columns: 3 280px; column-gap: 14px; }
.masonry__item { break-inside: avoid; margin-bottom: 14px; overflow: hidden; background: var(--porcelain-2); }
.masonry__item a { display: block; }
.masonry__item img { width: 100%; }
.masonry__item.is-hidden { display: none; }
@media (max-width: 700px) { .masonry { columns: 2; column-gap: 8px; } .masonry__item { margin-bottom: 8px; } }

/* ---------- contact ---------- */
.contact-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.contact-list > div { padding-top: 18px; border-top: 1px solid var(--gold); }
.contact-list dt { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }
.contact-list dd { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.4; }
.contact-list dd + dd { margin-top: 6px; font-family: var(--sans); font-size: 0.98rem; }
.contact-list a { text-decoration: none; }
.contact-list a:not(.btn):hover { color: var(--rose-deep); text-decoration: underline; }
@media (max-width: 1000px) { .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contact-list { grid-template-columns: 1fr; } }

/* ---------- location ---------- */
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.location .lead { margin-top: 18px; }
.location__address { margin-top: 24px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.45; }
.location__address + .link { display: inline-block; margin-top: 12px; }
.location h3 { margin-top: 40px; font-size: 1rem; font-weight: 600; }
.distances { margin-top: 8px; }
.distances div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.distances dd { font-variant-numeric: tabular-nums; color: var(--leaf); white-space: nowrap; }
.location__map { position: relative; min-height: 440px; background: var(--porcelain-2); overflow: hidden; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.6); }
.location__map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; padding: 24px; text-align: center; }
.location__map-consent p { max-width: 36ch; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .location__grid { grid-template-columns: 1fr; } .location__map { min-height: 320px; } }

/* ---------- policy / article ---------- */
.article__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); }
.article__aside { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 12px; }
.article__aside h2 { font-size: 1rem; font-weight: 600; margin-top: 16px; }
.doc-list a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 0.97rem; }
.doc-list a:not(.btn):hover { color: var(--rose-deep); }
.doc-list--large a { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; padding: 18px 0; }
.post-meta { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .article__grid { grid-template-columns: minmax(0, 1fr); } .article__aside { position: static; } }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(64px, 10vw, 160px); text-align: center; }
.notfound p.serif { font-size: clamp(5rem, 16vw, 12rem); line-height: 0.9; color: var(--rose); }
.notfound h1 { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); }
.notfound .lead { margin: 16px auto 0; }
.notfound .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--night-3); color: rgba(244, 238, 227, 0.8); font-size: 0.97rem; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--champagne); text-decoration: underline; }
.site-footer__invite { padding-block: clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line-light); text-align: center; }
.site-footer__invite p { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.1; color: var(--ivory); max-width: 20ch; margin-inline: auto; }
.site-footer__invite .actions { justify-content: center; }
.site-footer__invite .btn--rose:hover { background: var(--ivory); color: var(--night); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 24px; }
.site-footer address { line-height: 1.6; }
.site-footer__contact { margin-top: 14px; }
.site-footer h2 { margin-bottom: 14px; font-size: 0.95rem; font-weight: 600; color: var(--champagne); }
.site-footer__col li { padding: 4px 0; }
.site-footer .muted { color: rgba(244, 238, 227, 0.55); }
.social { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px 30px; border-top: 1px solid var(--line-light); font-size: var(--fs-sm); color: rgba(244, 238, 227, 0.55); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 24px; }
.credit { display: inline-flex; align-items: center; gap: 8px; }
.credit__mark { width: 10px; height: 10px; background: #ffe600; /* Bitek brand yellow */ }
.credit__name { font-weight: 600; color: var(--ivory); }
@media (max-width: 1000px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

.icon { flex-shrink: 0; }
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}
.has-cookie-bar .whatsapp-fab { bottom: 150px; }
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
    background: var(--porcelain); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; text-decoration: none; font-size: 0.95rem; }
  .mobile-cta a + a { border-left: 1px solid var(--line); }
  .mobile-cta .icon { color: var(--rose-deep); }
  .mobile-cta .mobile-cta__main { background: var(--champagne); color: var(--night); font-weight: 500; }
  .whatsapp-fab { display: none; }
  .site-footer { padding-bottom: 60px; }
  .cookie-bar { bottom: 72px; }
}

/* ---------- cookies & dialog ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center;
  max-width: 1100px; margin-inline: auto; padding: 20px 24px; background: var(--night-2); color: var(--ivory); border: 1px solid var(--line); font-size: 0.9rem; line-height: 1.55;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar a:not(.btn) { color: var(--champagne); }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-bar .btn { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.875rem; }
.cookie-bar .btn--solid { background: var(--champagne); color: var(--night); }
.cookie-bar .btn--solid:hover { background: var(--ivory); }
@media (max-width: 900px) { .cookie-bar { grid-template-columns: 1fr; } }
.dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 1px solid var(--line); background: var(--night-2); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45); }
.dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.dialog .form { padding: clamp(24px, 4vw, 44px); }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog__head h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); }
.dialog__close { width: 44px; height: 44px; margin: -8px -8px 0 0; background: none; border: 0; font-size: 1.8rem; line-height: 1; }
.dialog .btn--solid { background: var(--champagne); color: var(--night); }
.cookie-group { padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-group:first-of-type { margin-top: 16px; border-top: 1px solid var(--line); }
.cookie-group__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cookie-group__title { font-weight: 500; }
.cookie-group p { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); }
.switch { cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; flex-shrink: 0; width: 46px; height: 26px; border-radius: 999px; background: var(--night-3); border: 1px solid var(--line); transition: background-color 0.25s; }
.switch__ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--ivory); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.25s var(--ease); }
.switch input:checked + .switch__ui { background: var(--leaf); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--rose-deep); outline-offset: 2px; }

/* ---------- lightbox ---------- */
.glightbox-clean .gslide-description { background: var(--night-2); }
.glightbox-clean .gdesc-inner { padding: 14px 20px; }
.glightbox-clean .gslide-desc { color: var(--ivory); font-family: var(--sans); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
