/* ==========================================================
   VšĮ „Augimas per fotografiją" — fotoaugimas.com
   Shared stylesheet for all pages.
   Palette taken from the logo: ink black, moss/olive leaves,
   warm paper.
   ========================================================== */

:root {
  --paper:   #F6F4EE;
  --surface: #FFFFFF;
  --ink:     #17160F;
  --muted:   #6C6757;
  --line:    #DFDACC;
  --moss:    #666A3E;
  --moss-sf: #EDEBDD;

  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --wide: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:   #14130D;
    --surface: #1D1B14;
    --ink:     #EDE9DC;
    --muted:   #9A9483;
    --line:    #322E23;
    --moss:    #A9AE74;
    --moss-sf: #232418;
  }
}
:root[data-theme="dark"] {
  --paper:   #14130D;
  --surface: #1D1B14;
  --ink:     #EDE9DC;
  --muted:   #9A9483;
  --line:    #322E23;
  --moss:    #A9AE74;
  --moss-sf: #232418;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--moss); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

.wrap  { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }
.col   { width: 100%; max-width: var(--measure); margin-inline: auto; }

/* ---------- small caps label ---------- */

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0;
}

/* ---------- nav ---------- */

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.nav-brand span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 9rem;
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--moss); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--moss); }

@media (max-width: 46rem) {
  .nav .wrap { flex-direction: column; align-items: flex-start; padding-top: 0.9rem; padding-bottom: 0.9rem; gap: 0.7rem; }
  .nav-links { gap: 1.1rem; }
  .nav-brand span { max-width: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--moss);
  border-radius: 2px;
}
.btn-solid { background: var(--moss); color: var(--paper); }
.btn-solid:hover { filter: brightness(1.12); }
.btn-line { color: var(--ink); border-color: var(--line); background: transparent; }
.btn-line:hover { border-color: var(--moss); color: var(--moss); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- hero ---------- */

.hero { position: relative; background: #0D0D0A; color: #F3F1E7; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.42;
}
.hero-inner {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}
.hero-logo { width: clamp(8.5rem, 22vw, 13.5rem); margin: 0 auto 2.2rem; }
.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin: 0 auto 1.4rem;
  max-width: 20ch;
  text-wrap: balance;
}
.hero .tagline {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #B9BE84;
  margin: 0 0 2.4rem;
}
.hero p.lede {
  max-width: 30rem;
  margin: 0 auto 2.4rem;
  color: #D7D3C4;
  font-size: 1.06rem;
}
.hero .btn-row { justify-content: center; }
.hero .btn-line { color: #F3F1E7; border-color: rgba(243,241,231,0.4); }
.hero .btn-line:hover { border-color: #B9BE84; color: #B9BE84; }
.hero .btn-solid { background: #7C8149; border-color: #7C8149; color: #FFF; }

/* ---------- sections ---------- */

section { padding: 5rem 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0.9rem 0 1.6rem;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}
p { margin: 0 0 1.35rem; }
.col > p:last-child { margin-bottom: 0; }

.lead { font-size: 1.16rem; }
.small { font-size: 0.95rem; color: var(--muted); }

/* ---------- pull quote ---------- */

.quote {
  border: 0;
  margin: 3.5rem auto;
  padding: 0 1.5rem;
  max-width: 42rem;
  text-align: center;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  line-height: 1.35;
  font-style: italic;
  margin: 0;
  text-wrap: balance;
}
.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- figures ---------- */

figure { margin: 3rem 0; }
figure img { width: 100%; height: auto; }
figcaption {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.7rem;
  letter-spacing: 0.02em;
}

/* Full-width figures. Height is capped so a portrait photo can never
   swallow the whole screen — it stays a picture, not a wall. */
.bleed { max-width: var(--wide); margin-inline: auto; }
.bleed img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  margin-inline: auto;
}
.bleed figcaption { text-align: center; }

/* ---------- grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 2.4rem 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem 2.6rem; }

.value h3 { margin-bottom: 0.35rem; }
.value p { font-size: 0.97rem; color: var(--muted); margin: 0; }
.value { border-top: 2px solid var(--moss); padding-top: 1rem; }

/* activities */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tags li {
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  color: var(--muted);
  background: var(--surface);
}

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.6rem; }
.gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.gallery .tall { grid-row: span 2; }
.gallery .tall img { aspect-ratio: 1/2.03; }
@media (max-width: 40rem) { .gallery .tall { grid-row: auto; } .gallery .tall img { aspect-ratio: 1/1; } }

/* ---------- panels ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 2rem;
}
.panel.accent { border-left: 3px solid var(--moss); }
.panel h3 { margin-top: 0; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 1.1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; gap: 0.9rem; align-items: start; }
.steps li::before {
  content: counter(s);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--moss);
  border: 1px solid var(--moss);
  border-radius: 50%;
  width: 1.85rem; height: 1.85rem;
  display: grid; place-items: center;
  margin-top: 0.2rem;
}
.steps p { margin: 0; font-size: 1rem; }

/* data rows (bank details) */
.data { display: grid; gap: 0.9rem; margin: 0; }
.data div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 0.4rem 1.2rem; border-bottom: 1px dotted var(--line); padding-bottom: 0.9rem; }
.data dt { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); padding-top: 0.2rem; }
.data dd { margin: 0; font-family: var(--sans); font-size: 1rem; word-break: break-word; }
.data dd.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (max-width: 34rem) { .data div { grid-template-columns: 1fr; } }

.soon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.15rem 0.6rem;
  margin-left: 0.6rem;
  vertical-align: 0.18em;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3.5rem 0 4rem;
}
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2.4rem; }
.foot-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.foot-grid p, .foot-grid a { font-family: var(--sans); font-size: 0.95rem; margin: 0 0 0.45rem; }
.foot-grid a { display: inline-block; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-grid a:hover { border-bottom-color: var(--moss); color: var(--moss); }
.foot-logo { width: 4.5rem; margin-bottom: 1rem; opacity: 0.9; }
.copyright {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
}
.copyright p { margin: 0; }

/* ---------- copy buttons (parama page) ---------- */

.copy {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.22rem 0.7rem;
  margin-left: 0.6rem;
  cursor: pointer;
  vertical-align: 0.1em;
  white-space: nowrap;
}
.copy:hover { border-color: var(--moss); color: var(--moss); }
.copy.is-done { border-color: var(--moss); color: var(--paper); background: var(--moss); }

/* <picture> wrappers used for the dark-mode logo swap must not
   disturb the flex/layout sizing of the logo itself. */
.nav-brand picture, .foot-grid picture { display: block; flex: none; }
