/* ==========================================================================
   fialaphoto.com — shared stylesheet
   Fotograf: svatby / portréty / sport
   v3 — kinematografická, tlumená paleta podle skutečného Instagramu
   ========================================================================== */

/* Bodoni Moda + Inter jsou načtené přes <link> v <head> každé stránky (rychlejší než @import). */

:root {
  --bg: #f6f2ea;              /* teplý papírový podklad */
  --tint-sand: #efe6d6;
  --tint-sage: #e9ece2;
  --surface: #fbf8f2;

  --ink: #1a1815;             /* teplá téměř černá */
  --ink-soft: #6b665c;
  --border: #ddd4c2;

  --sage: #7c8567;            /* barva obleku ze svatební fotky */
  --sage-dark: #5f6850;
  --gold: #b9924f;            /* mosazný akcent */
  --gold-dark: #96742f;
  --rust: #a85a3a;            /* teplý terakota akcent, druhotný */

  --contrast: #14140f;        /* hluboká, téměř černá tmavě olivová — noc/les */
  --contrast-soft: #232019;
  --on-contrast: #f5f1e8;
  --on-contrast-soft: rgba(245,241,232,.72);

  --font-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1160px;
  --radius: 2px;
  --transition: 240ms cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; font-style: normal; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--gold-dark);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: var(--font-body);
}
.btn:hover { background: var(--ink); color: var(--bg); }

.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }

.btn-light {
  border-color: var(--on-contrast);
  color: var(--on-contrast);
}
.btn-light:hover { background: var(--on-contrast); color: var(--contrast); }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 242, 234, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0;
}
.logo span { color: var(--gold-dark); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.active { color: var(--gold-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 1px; background: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { font-size: 1rem; }
}

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

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  color: var(--on-contrast);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(124,133,103,.25), transparent 55%),
    linear-gradient(175deg, #23261f 0%, #14140f 55%, #0c0c09 100%);
  padding-bottom: 100px;
  padding-top: 140px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--gold); }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 { color: var(--on-contrast); max-width: 17ch; }
.hero p.lead {
  color: var(--on-contrast-soft);
  max-width: 46ch;
  font-size: 1.08rem;
}
.hero .actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

/* Muted, cinematic placeholder blocks — cycle through real palette */
.photo-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--on-contrast-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  min-height: 220px;
  overflow: hidden;
  background: linear-gradient(150deg, #3a3f30, #1c1d16 70%);
}
.photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .6;
}
.photo-placeholder span { position: relative; padding: 12px; }

/* cycle: forest / sand-charcoal / grayscale / gold */
.grid-3 > div:nth-child(2) .photo-placeholder,
figure:nth-of-type(3n+2) .photo-placeholder { background: linear-gradient(150deg, #7c8567, #3f4535 75%); }
.grid-3 > div:nth-child(3) .photo-placeholder,
figure:nth-of-type(3n+3) .photo-placeholder { background: linear-gradient(150deg, #8c8b86, #302f2c 75%); }
figure:nth-of-type(4n) .photo-placeholder { background: linear-gradient(150deg, #b9924f, #5c471f 75%); }

/* ---------------------------------- Editorial photo grid (asymmetric) ---------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 18px;
}
.feature-tile {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}
.feature-tile .photo-placeholder { width: 100%; height: 100%; min-height: 0; border-radius: 0; }
.feature-tile.g-big { grid-column: span 2; grid-row: span 2; }
.feature-tile.g-wide { grid-column: span 2; grid-row: span 1; }
.feature-tile.g-tall { grid-column: span 1; grid-row: span 2; }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px;
  background: linear-gradient(to top, rgba(10,10,8,.72), transparent 70%);
  z-index: 2;
}
.tile-caption h3 {
  color: #fff;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.tile-caption p { color: rgba(255,255,255,.82); font-size: .88rem; margin: 0; max-width: 34ch; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .feature-tile.g-big { grid-column: span 2; grid-row: span 2; }
  .feature-tile.g-wide { grid-column: span 2; grid-row: span 1; }
  .feature-tile.g-tall { grid-column: span 1; grid-row: span 1; }
}

/* Asymmetric two-column layout (breaks the even 50/50 split) */
.grid-asym {
  display: grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 48px;
  align-items: center;
}
.grid-asym .offset-media { transform: translateY(-24px); }
@media (max-width: 860px) {
  .grid-asym { grid-template-columns: 1fr; }
  .grid-asym .offset-media { transform: none; }
}

/* Masonry-style portfolio gallery — mixed orientation, matches real mixed výška/šířka photos */
.gallery {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
}
.gallery figure { aspect-ratio: auto; grid-row: span 2; }
.gallery figure.g-tall { grid-row: span 3; }
.gallery figure.g-wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure.g-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery figure.g-wide { grid-column: span 1; }
}

/* Section scaffolding */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-dark {
  background: var(--contrast);
  color: var(--on-contrast);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
.section-dark .eyebrow { color: var(--gold); }
.section-dark .eyebrow::before { background: var(--gold); }
.section-dark p { color: var(--on-contrast-soft); }
.section-dark h2 { color: var(--on-contrast); }

.section-alt { background: var(--tint-sage); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tint-sand { background: var(--tint-sand); }

/* Grid helpers */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* Highlights strip (no fabricated stats — short qualitative labels) */
.stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 46px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats .stat { text-align: center; flex: 1; min-width: 180px; }
.stats .stat strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: var(--gold-dark);
}
.stats .stat span {
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--ink-soft);
}

/* Gallery */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.gallery { display: grid; gap: 18px; margin: 0; }
.gallery figure { margin: 0; }
.gallery figure .photo-placeholder { width: 100%; height: 100%; min-height: 0; border-radius: var(--radius); }

/* Pricing */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--transition);
}
.price-card:hover { border-color: var(--gold-dark); }
.price-card.featured {
  background: var(--contrast);
  color: var(--on-contrast);
  border-color: var(--contrast);
}
.price-card.featured p, .price-card.featured li { color: var(--on-contrast-soft); }
.price-card .price {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.3rem;
  margin: 14px 0 20px;
  color: var(--ink);
}
.price-card.featured .price { color: var(--gold); }
.price-card .price small { font-size: .85rem; font-family: var(--font-body); font-style: normal; font-weight: 500; color: var(--ink-soft); display: block; margin-top: 4px; }
.price-card.featured .price small { color: var(--on-contrast-soft); }
.price-card ul { list-style: none; margin: 0 0 30px; padding: 0; flex: 1; }
.price-card li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}
.price-card.featured li { border-top-color: rgba(255,255,255,.12); }
.price-card li:first-child { border-top: none; }

/* Forms */
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
input, select, textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-dark);
}
textarea { resize: vertical; min-height: 140px; }

/* Contact info list */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.contact-list li:first-child { border-top: none; }
.contact-list .label { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a:hover { color: var(--gold-dark); }

/* Footer */
.site-footer {
  background: var(--contrast);
  color: var(--on-contrast-soft);
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-grid h4 {
  color: var(--on-contrast);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-body);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}

/* Utility */
.mt-0 { margin-top: 0; }
.center-text { text-align: center; }
.badge-todo {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--tint-sand);
  color: var(--gold-dark);
  border: 1px solid var(--border);
}
