/* photo.css — the simple /photo/ pages (tools/pages/build-photo.mjs). Mobile first; tokens from /shared/base.css. */

.ph {
  /* golden hour: warm cream paper, amber light, burnt-honey accent */
  --ivory: #FBF3E7;
  --ivory-2: #F5E4CC;
  --bronze: #8A5A30;                   /* white text on it 5.9:1, on --ivory 5.6:1 */
  --gold: #D1924A;
  --ink-2: #5E4E40;
  --ink-3: #6E5D4E;                    /* 5.2:1 on --ivory, 4.6:1 on --ivory-2 */
  --line: rgba(110, 70, 30, .14);
  --ph-accent: var(--bronze);
  --ph-accent-ink: #fff;
  --ph-top-h: 60px;
  --ph-r: 6px;
  background: var(--ivory);
  font-size: 16.5px;
  line-height: 1.65;
}
@media (prefers-reduced-motion: no-preference) { html:has(.ph) { scroll-behavior: smooth; } }
/* Jost's Cyrillic has no Ukrainian letters (І Ї є і ї Ґ ґ): Ukrainian text uses Montserrat (/shared/fonts/cyrillic.css).
   :root:lang(uk) outranks base.css's :root, and the consent sheet inherits it. */
:root:lang(uk) { --font-sans: "Montserrat", var(--font-latin-sans); }
.ph h1, .ph h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.005em; }
.ph h1 { font-size: clamp(36px, 9.2vw, 68px); line-height: 1.04; }
.ph h2 { font-size: clamp(30px, 6.4vw, 46px); line-height: 1.1; margin-block-end: 18px; }
.ph h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: 0; margin-block-end: 6px; }
.ph p + p { margin-block-start: 12px; }

.ph-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.ph-wrap--narrow { max-width: 760px; }
@media (min-width: 600px) { .ph-wrap { padding-inline: 28px; } }

.ph-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--ivory); }
.ph-skip:focus { top: 8px; }

.ph-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-block-end: 12px; }
:lang(uk) .ph-eyebrow, :lang(ru) .ph-eyebrow { letter-spacing: .08em; }
.ph-lede { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--ink-2); max-width: 60ch; }
.ph-small { font-size: 13px; color: var(--ink-3); margin-block-start: 14px; }
.ph-note { margin-block-start: 22px; color: var(--ink-2); }

/* ---------- buttons ---------- */
.ph-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--ph-r);
  background: var(--ph-accent); color: var(--ph-accent-ink); border: 1px solid var(--ph-accent);
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  cursor: pointer;
}
.ph-btn:hover { background: #6c5240; border-color: #6c5240; }
.ph-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.ph-btn--ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.ph-btn--sm { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.ph-ico { width: 20px; height: 20px; flex: none; }
.ph-link { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--line-strong); font-weight: 500; }
.ph-link:hover { text-decoration-color: currentColor; }
.ph-ctas .ph-link, .ph-more .ph-link { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- top bar ---------- */
.ph-top { position: sticky; top: 0; z-index: 20; background: rgba(251, 243, 231, .94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .ph-top { background: rgba(251, 243, 231, .82); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2); } }
.ph-top__in { display: flex; align-items: center; gap: 12px; height: var(--ph-top-h); max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .ph-top__in { padding-inline: 28px; } }
.ph-brand { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-latin-display); font-size: 22px; font-weight: 500; text-decoration: none; white-space: nowrap; margin-inline-end: auto; }
.ph-top .ph-btn--sm, .ph-langs { flex: none; }
.ph-brand .ph-brand__by { color: var(--gold); }
.ph-brand__long, .ph-brand__by { margin-inline-start: .25em; }
@media (max-width: 559px) { .ph-brand--fit .ph-brand__long { display: none; } }
/* main page language menu: same font and size as the brand */
.ph-lang { position: relative; flex: none; }
.ph-lang summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-inline: 4px; font-family: var(--font-latin-display); font-size: 22px; font-weight: 500; cursor: pointer; list-style: none; white-space: nowrap; }
.ph-lang summary::-webkit-details-marker { display: none; }
.ph-lang summary svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--t) var(--ease); }
.ph-lang[open] summary svg { transform: rotate(-90deg); }
.ph-lang__short { display: none; }
.ph-lang__menu { position: absolute; inset-inline-end: 0; top: 100%; min-width: 180px; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--ph-r); box-shadow: 0 8px 24px rgba(40, 30, 20, .12); }
.ph-lang__menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; font-family: var(--font-latin-display); font-size: 21px; text-decoration: none; border-radius: 4px; }
.ph-lang__menu a:hover { background: var(--ivory-2); }
.ph-lang__menu a[aria-current] { background: var(--ivory-2); color: var(--bronze); }
@media (max-width: 399px) { .ph-lang summary { font-size: 19px; } .ph-lang__long { display: none; } .ph-lang__short { display: inline; } }
.ph-langs { display: flex; gap: 2px; }
.ph-langs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 7px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--ink-3); text-decoration: none; border-radius: 4px; }
.ph-langs a[aria-current] { color: var(--ink); background: var(--ivory-2); }
.ph-langs a:hover { color: var(--ink); }
@media (max-width: 399px) { .ph-top__in { gap: 8px; } .ph-brand { font-size: 19px; } .ph-langs { gap: 0; } .ph-langs a { padding: 0 4px; } .ph-top .ph-btn--sm { padding: 0 12px; } }

/* ---------- hero ---------- */
.ph-hero { position: relative; }
/* phones: a square crop (by the focal point) and the price + button before the promise, so both are in the first screen */
.ph-hero__media .photo-hero { display: block; aspect-ratio: 1 / 1; max-height: 56svh; width: 100%; overflow: hidden; }
@media (max-width: 767px) and (min-aspect-ratio: 3/4) { .ph-hero__media .photo-hero { aspect-ratio: 16 / 10; } }
.photo-hero img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); }
.ph-hero__text { display: flex; flex-direction: column; padding: 22px 16px 34px; }
.ph-hero__text > * { order: 1; }
.ph-hero__text > .ph-promise { order: 2; margin-block-start: 18px; }
.ph-hero__text > .ph-speaks { order: 3; }
.ph-promise { font-size: 17.5px; color: var(--ink-2); margin-block-start: 14px; max-width: 34em; }
.ph-price { display: flex; flex-direction: column; gap: 2px; margin-block-start: 16px; }
.ph-price strong { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.15; }
.ph-price span { font-size: 15px; color: var(--ink-2); }
.ph-price--inline { margin-block: 4px 22px; }
.ph-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-block-start: 18px; }
.ph-ctas .ph-btn { flex: 1 1 100%; }
.ph-speaks { margin-block-start: 18px; font-size: 14.5px; color: var(--ink-3); }

@media (min-width: 768px) {
  .ph-hero { min-height: min(calc(100svh - var(--ph-top-h)), 900px); display: grid; align-items: end; color: #fff; }
  .ph-hero__media { position: absolute; inset: 0; }
  .ph-hero__media .photo-hero { aspect-ratio: auto; height: 100%; }
  .photo-hero img { object-position: var(--fx-wide) var(--fy-wide); }
  .ph-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 12, .62) 0%, rgba(20, 16, 12, .34) 38%, rgba(20, 16, 12, 0) 66%), linear-gradient(0deg, rgba(20, 16, 12, .45) 0%, rgba(20, 16, 12, 0) 45%); }
  .ph-hero__text > * { order: 0 !important; }
  .ph-hero__media .photo-hero { max-height: none; }
  .ph-hero__text { position: relative; max-width: 620px; padding: 48px 28px 56px; margin-inline-start: max(0px, calc((100vw - 1120px) / 2)); }
  .ph-hero .ph-eyebrow, .ph-hero .ph-promise, .ph-hero .ph-price span, .ph-hero .ph-speaks { color: rgba(255, 255, 255, .86); }
  .ph-hero h1, .ph-hero .ph-price strong { text-shadow: 0 1px 24px rgba(0, 0, 0, .25); }
  .ph-hero .ph-link { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
  .ph-ctas .ph-btn { flex: 0 0 auto; }
}

/* ---------- sections ---------- */
.ph-sec { padding-block: 56px; scroll-margin-top: var(--ph-top-h); }
.ph-sec--paper { background: var(--paper); border-block: 1px solid var(--line); }
@media (min-width: 900px) { .ph-sec { padding-block: 88px; } }

.ph-cards, .ph-places, .ph-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ph-cards li, .ph-places li { padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--ph-r); }
.ph-sec--paper .ph-places li { background: var(--ivory); }
/* locations: a faint line drawing of the place along the bottom of each card, behind the text */
.ph-places li { position: relative; overflow: hidden; isolation: isolate; padding-bottom: calc(40% + 8px); }
.ph-place-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 600 / 280; z-index: -1; opacity: .55; pointer-events: none; }
.ph-cards p, .ph-places p, .ph-steps p { color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 600px) { .ph-cards, .ph-places { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ph-cards { grid-template-columns: repeat(3, 1fr); } .ph-places { grid-template-columns: repeat(3, 1fr); } .ph-cards li:last-child:nth-child(3n+1) { grid-column: 2; } }

.ph-steps { counter-reset: s; margin-block-end: 28px; }
.ph-steps li { counter-increment: s; position: relative; padding-inline-start: 58px; min-height: 44px; }
.ph-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--font-latin-display); font-size: 22px; color: var(--bronze); }
@media (min-width: 900px) { .ph-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.ph-steps--small { margin-block: 18px 30px; }
.ph-steps--small li { padding-block-start: 8px; }

/* gallery: 2 columns on phones (the first photo full width), 3 from 900px; one aspect for a calm grid */
.ph-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-block-start: 26px; }
.ph-gal .photo-gal { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; }
.ph-gal .photo-gal:first-child { grid-column: 1 / -1; }
.ph-gal img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .ph-gal { grid-template-columns: repeat(3, 1fr); gap: 10px; } .ph-gal .photo-gal:first-child { grid-column: auto; } }
.ph-more { margin-block-start: 22px; }

/* FAQ */
#faq details { border-bottom: 1px solid var(--line); }
#faq details:first-of-type { border-top: 1px solid var(--line); }
#faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 14px; cursor: pointer; list-style: none; font-weight: 500; font-size: 17px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; flex: none; font-family: var(--font-latin-display); font-size: 28px; line-height: 1; color: var(--bronze); transition: transform var(--t-fast) var(--ease); }
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { padding-block-end: 18px; color: var(--ink-2); max-width: 62ch; }

/* booking */
.ph-book { background: var(--ivory-2); }
.ph-cal { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--ph-r); }
.ph-cal__ph { display: grid; place-items: center; gap: 12px; min-height: 220px; padding: 28px 16px; text-align: center; }
.ph-cal__loading { color: var(--ink-3); }
.ph-cal.is-loading .ph-cal__ph, .ph-cal.is-ready .ph-cal__ph { min-height: 0; padding: 0; }
.ph-cal.is-ready .ph-cal__ph { display: none; }
.ph-cal.is-loading .ph-cal__frame, .ph-cal.is-ready .ph-cal__frame { min-height: 640px; }
.ph-cal.is-loading .ph-cal__ph { padding: 28px 16px 0; }
.ph-cal__frame { width: 100%; overflow: auto; }
.ph-fallback { margin-block-start: 18px; padding: 24px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--ph-r); }
.ph-fallback h3 { font-family: var(--font-display); font-size: 28px; font-weight: 500; margin-block-end: 8px; }
.ph-fallback p { color: var(--ink-2); }
.ph-contacts { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 16px; }
.ph-contacts .ph-btn { flex: 1 1 150px; }
.ph-ask { margin-block-start: 26px; }
.ph-ask p { color: var(--ink-2); }

/* other shoots */
.ph-others { padding-block: 44px; }
.ph-others h2 { font-size: 28px; }
.ph-others ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ph-others a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 500; }
.ph-others a:hover { background: var(--paper); border-color: var(--ink); }
.ph-others a svg, .ph-choice__go svg { width: 16px; height: 16px; flex: none; color: var(--bronze); }
.ph-choice__go { display: inline-flex; align-items: center; gap: 6px; }

/* footer */
.ph-foot { padding-block: 36px 48px; background: var(--night); color: var(--on-night-2); font-size: 14px; }
.ph-foot__brand { font-family: var(--font-latin-display); font-size: 20px; color: var(--on-night); }
.ph-foot__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-block: 14px; }
.ph-foot__links a, .ph-foot__links button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--on-night); text-decoration: none; background: none; border: 0; padding: 0; font-size: 14px; }
.ph-foot__links a:hover, .ph-foot__links button:hover { text-decoration: underline; }
.ph-foot__legal { font-size: 12.5px; line-height: 1.6; }

/* chooser: golden-hour light, calligraphic headings, a short list of what Nika does */
.ph--chooser { background: linear-gradient(180deg, #FCEBD3 0, var(--ivory) 520px); }
.ph-intro { position: relative; overflow: hidden; isolation: isolate; }
.ph .ph-script { font-family: "Great Vibes", var(--font-display); font-weight: 400; letter-spacing: 0; color: #4A2F1C; }
.ph h1.ph-script { font-size: clamp(34px, 8.4vw, 60px); line-height: 1.15; max-width: none; margin-block: 14px 26px; }
.ph h2.ph-choose { font-size: clamp(32px, 7.6vw, 52px); line-height: 1.15; margin: 48px 0 0; }
.ph-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); }
.ph-points strong { font-weight: 500; color: var(--ink); }
.ph-intro h1 { margin-block-end: 14px; }
.ph-choices { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
@media (min-width: 900px) { .ph-choices { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.ph-choice a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.ph-choice .photo-card { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; margin-block-end: 8px; }
.ph-choice img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t) var(--ease); }
.ph-choice a:hover img { transform: scale(1.03); }
.ph-choice__t { font-family: var(--font-display); font-size: 25px; line-height: 1.15; }
.ph-choice__d { font-size: 14.5px; color: var(--ink-2); }
.ph-choice__go { font-size: 14px; font-weight: 500; color: var(--bronze); margin-block-start: 4px; }

/* thanks: one block per language, picked by <html data-l> (set in <head> before paint) */
.ph--thanks main { min-height: 60vh; }
html:not([data-l="uk"]):not([data-l="ru"]) .ph-tx:not([data-l="en"]),
html[data-l="uk"] .ph-tx:not([data-l="uk"]),
html[data-l="ru"] .ph-tx:not([data-l="ru"]) { display: none; }
.ph-tx h1 { margin-block-end: 16px; }
.ph-tx h2 { font-size: 28px; margin-block: 34px 0; }
html:not([data-unpaid]) .ph-unpaid, html[data-unpaid] .ph-paid { display: none; }

/* the Cal.com month view (3 columns) needs ~1150px: give the booking section more room on desktop */
@media (min-width: 1100px) { .ph-book .ph-wrap { max-width: 1280px; } .ph-book .ph-lede, .ph-book .ph-price { max-width: 760px; } }

/* consent sheet (/shared/consent.js) on these pages: Ukrainian and Russian button labels ("НАЛАШТУВАННЯ", "ПРИНЯТЬ ВСЕ")
   are too long for three 12.5px caps columns on a phone, so two columns (accept full width) and less tracking */
.ph .bvc__b { letter-spacing: .06em; }
:root:lang(uk) .ph .bvc__b { letter-spacing: .03em; }
@media (max-width: 480px) { .ph .bvc__row { grid-template-columns: 1fr 1fr; } .ph .bvc__row > :last-child { grid-column: 1 / -1; } }
@media (max-width: 359px) { .ph .bvc__row { grid-template-columns: 1fr; } }
