/* ===== Design tokens ===== */
:root {
  --bg: #faf6f0;          /* milky beige */
  --ink: #3d2c20;         /* dark brown */
  --muted: #9b8979;       /* soft brown */
  --line: #e9ddcf;
  --accent: #3d2c20;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --text: 1rem;          /* paragraphs on Price / Terms (16px) */
  --text-list: 0.875rem; /* bullet lists on Price / Terms (14px) */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.125rem;   /* larger base text (~18px) */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Header / nav ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  margin: 0;
  padding: 0;
}

/* Language switcher: UA | EN */
.lang-switch { display: flex; align-items: center; }
.lang-switch button {
  background: none;
  border: 0;
  padding: 0.15rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.lang-switch button:last-child { padding-right: 0; }
.lang-switch button + button { border-left: 1px solid var(--line); }
.lang-switch button:hover,
.lang-switch button[aria-pressed="true"] { color: var(--ink); }

.nav-links a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: clamp(60vh, 75vh, 90vh);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keep the face and helmet in frame: wide screens crop top/bottom, phones crop the sides. */
  object-position: 65% 14%;
  /* Fallback tone while the photo loads */
  background: linear-gradient(135deg, #d9d4cc 0%, #b6a89a 50%, #8f8273 100%);
}
.hero-caption {
  position: absolute;
  left: var(--pad);
  bottom: clamp(1.5rem, 5vw, 3.5rem);
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-caption h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin: 0;
  line-height: 1;
}
.hero-caption p {
  margin: 0.5rem 0 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ===== Home: the whole page fits one screen, no scrolling =====
   Header, buttons and footer take their natural height; the photo fills the rest. */
.home {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* mobile: excludes the browser toolbar */
}
.home main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.home .hero {
  flex: 1;
  min-height: 0;
  height: auto;
}
.home-actions {
  padding: clamp(1.25rem, 3.5vh, 2.25rem) var(--pad);
}
.home-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.home-intro { display: none; } /* phones: the caption sits on the photo instead */
/* Phones: caption + buttons sit on the bottom of the photo, buttons as frosted glass */
@media (max-width: 720px) {
  .home-intro { display: block; text-align: center; margin-bottom: 1rem; }
  .home-intro h1 { display: none; } /* the name is already in the header */
  .home-intro p {
    margin: 0;
    color: #fff;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  }
  .home main { position: relative; }
  /* raise the photo a little: the image box starts 6% above the frame (the photo fills the
     phone screen by height, so it can only move up by growing slightly) */
  .home .hero-img { top: -6%; height: 106%; object-position: 65% 0; }
  .home-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 4.5rem var(--pad) clamp(0.9rem, 2.5vh, 1.25rem);
    /* soft shade at the bottom of the photo so the white buttons always read */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
  }
  .home-buttons .btn {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .home-buttons .btn:hover { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
}

/* Wide screens: the photo runs the full height of the left half (no footer under it);
   name + caption + buttons and the footer share the right half */
@media (min-width: 721px) {
  .home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .home .site-header { grid-column: 1 / -1; }
  .home main { display: contents; }
  .home .hero { grid-column: 1; grid-row: 2 / 4; }
  .home .site-footer { grid-column: 2; grid-row: 3; }
  .home .hero-img { object-position: 65% 22%; } /* photo raised a little */
  .home-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.25rem;
    text-align: center;
  }
  .home-intro { display: block; }
  .home-intro h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 1;
    margin: 0;
  }
  .home-intro p {
    margin: 0.9rem 0 0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--muted);
  }
}

/* ===== Sections ===== */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-align: center;
  margin: 0 0 2.5rem;
}

.gallery-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
}

/* ===== Gallery ===== */
.gallery {
  columns: 3 280px;
  column-gap: 1rem;
}
.gallery figure {
  margin: 0 0 1rem;
  break-inside: avoid;
  overflow: hidden;
  cursor: pointer;
}
.gallery figure img,
.gallery .ph {
  width: 100%;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.gallery figure:hover img,
.gallery figure:hover .ph { transform: scale(1.04); }

/* Placeholder tiles (gradient blocks until real photos are added) */
.gallery .ph {
  height: var(--h, 320px);
  background: linear-gradient(135deg, var(--c1), var(--c2));
}

/* ===== Generic page ===== */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--pad);
  font-size: var(--text); /* Price / Terms text a bit smaller than the 18px site base */
}
.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15; /* no big gap when the title wraps on phones */
  text-wrap: balance;
  margin: 0 0 0.75rem;
  text-align: center;
}
.page-intro {
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 3rem;
}

/* ===== Price ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.price-card {
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}
.price-card.featured {
  border-color: var(--ink);
}
.price-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}
.price-amount {
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 1.5rem;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.price-card li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.price-card li:last-child { border-bottom: 0; }

/* ===== Price (detailed packages) ===== */
.price-card.detailed {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.price-card.detailed h2 {
  margin: 0;
}
.price-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
}
.tier {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.tier .tier-label { color: var(--muted); }
.tier .tier-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  white-space: nowrap;
}
.formats {
  margin-top: clamp(3rem, 8vw, 5rem);
}
.formats .price-card ul { margin-bottom: 0; }
/* pin the shots line to the card bottom so it sits level in both cards */
.formats .includes { margin-top: auto; }
.card-intro { margin: 0; }
.includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.includes li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: var(--text-list);
}
.includes li::before {
  content: "";
  position: absolute;
  left: 0;
  /* centre the dot on the first text line: li top padding + half the line box */
  top: calc(0.4rem + 0.875em - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.excludes {
  margin: auto 0 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}

/* ===== Prose (Info & Conditions) ===== */
.prose { max-width: 60ch; margin: 0 auto; }
.prose p { margin: 0 0 1.4rem; }
.prose .lead { color: var(--ink); } /* same size as the other paragraphs */
.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem; /* same as the Price card headings */
  line-height: 1.2;
  margin: 2.5rem 0 1rem;
}
.prose ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.prose ul li { position: relative; padding-left: 1.4rem; font-size: var(--text-list); } /* same as the Price lists */
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.875em - 2.5px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.prose .sign-off {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}
.social-icons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  margin-top: 0;
}
.social-icons a {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.social-icons a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.social-icons svg { width: 20px; height: 20px; }
.divider { width: 48px; height: 1px; background: var(--line); border: 0; margin: 2.5rem auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}
.about-photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #cfc7bb, #9a8e7d);
  /* background-image: url("images/portrait.jpg"); */
  background-size: cover;
  background-position: center;
}
.about-text p { margin: 0 0 1.25rem; max-width: 34rem; }

/* ===== Contact ===== */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.contact .section-title { text-align: left; grid-column: 1 / -1; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
}
.field input:focus,
.field textarea:focus { outline: 1px solid var(--ink); }
.form-status { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.contact-details { color: var(--muted); }
.contact-details a:hover { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.1rem var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.site-footer p { margin: 0; }

/* Instagram / Telegram: icon + bold, dark text so they stand out on every page */
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--muted); }
.footer-icon { width: 16px; height: 16px; flex: none; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .site-header { padding: 0.7rem var(--pad); } /* thinner bar on phones: more room for the photo */
  .brand { font-size: 1.3rem; }
  .nav-toggle { display: flex; }
  .lang-switch { order: -1; } /* stays visible next to the menu button */
  .lang-switch button:last-child { padding-right: 0.55rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links a { display: block; padding: 1rem var(--pad); }
  .about-grid,
  .contact { grid-template-columns: 1fr; }
}
