/* ═══════════════════════════════════════════════════
   OBJEKTIFF.CZ — index.css (pouze hlavní stránka)
   ═══════════════════════════════════════════════════ */

/* ── HERO KARUSEL ─────────────────────────────────────
   Šířka shodná s .container (max 1200px, 2rem okraje)
   Výška: min(70vh, 675px) kde 675px = 16:9 pro max šířku 1200px
   → krajinné fotky se zobrazí celé nebo s min. výřezem
   ──────────────────────────────────────────────────── */
#carousel {
  position: relative;
  width: min(calc(100% - 4rem), var(--max));
  margin: var(--nav-h) auto 0;
  height: min(70vh, 675px); /* 675px = 9/16 × 1200px = čistý 16:9 */
  min-height: 300px;
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  /* cover — fotka vždy vyplní rámeček,
     na desktopu je výřez přijatelný díky výšce 82vh */
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.slide.active { opacity: 1; }

/* Ken Burns — jen jemný zoom, bez extremního výřezu */
@keyframes kenBurns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.04); }
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 55%, rgba(0,0,0,0.45) 100%);
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.carousel-content {
  max-width: 100%;
  padding: 0 2.5rem 4.5rem;
  width: 100%;
}

/* Jméno — bezpatkový font, sjednocený */
.car-eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUpIn 0.9s 0.4s ease forwards;
}
.car-name {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUpIn 0.9s 0.6s ease forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.car-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUpIn 0.9s 0.8s ease forwards;
}
.car-quote span {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}
.carousel-content .btn {
  opacity: 0;
  animation: fadeUpIn 0.9s 1.0s ease forwards;
}

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Šipky */
.car-prev, .car-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
}
.car-prev { left: 1rem; }
.car-next { right: 1rem; }
.car-prev:hover, .car-next:hover { background: rgba(255,255,255,0.22); color: #fff; }

/* Tečky */
.car-dots {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex; gap: 0.5rem;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer;
  transition: all 0.3s; padding: 0;
}
.dot.active { background: #fff; transform: scale(1.3); }

/* Scroll indikátor */
.car-scroll {
  position: absolute;
  right: 1.2rem; bottom: 1.5rem;
  z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0;
  animation: fadeUpIn 1s 1.4s ease forwards;
}
.car-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollDrop 2s 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  45%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ── CO FOTÍM — SEKCE ─────────────────────────────── */
#sluzby {
  padding: 5.5rem 0 5rem;
  background: var(--white);
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}
.section-sub {
  color: var(--mid);
  font-size: 1rem;
  max-width: 500px;
  margin: 0.6rem auto 0;
}

/* Mřížka 3×2 s tenkou mezerou */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.svc-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.svc-img {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #eee;
}
.svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.4s;
  filter: grayscale(15%);
}
.svc-card:hover .svc-img img { transform: scale(1.05); filter: grayscale(0%); }

/* Kompaktní text sekce — bez číslování */
.svc-body {
  padding: 0.9rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-body h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.svc-short {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.5;
}

.svc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.35s;
  opacity: 0;
}
.svc-detail.open { max-height: 160px; opacity: 1; }
.svc-detail p {
  font-size: 0.84rem;
  color: var(--mid);
  line-height: 1.65;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.6rem;
}

.svc-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  background: none; border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0;
  transition: color 0.2s;
}
.svc-toggle:hover { color: var(--accent-dk); }
.svc-toggle-icon {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.3s;
}
.svc-toggle[aria-expanded="true"] .svc-toggle-icon { transform: rotate(45deg); }

.services-cta { text-align: center; margin-top: 3rem; }

/* ── GALERIE NÁHLED ───────────────────────────────── */
#galerie-preview {
  padding: 5.5rem 0;
  background: var(--off);
}

.gp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gp-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--rule);
  position: relative;
  cursor: zoom-in;
}
.gp-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
  display: block;
}
.gp-item:hover img { transform: scale(1.04); }
.gp-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,24,0);
  transition: background 0.35s;
}
.gp-item:hover .gp-overlay { background: rgba(26,26,24,0.2); }

/* ── O MNĚ PRUH ───────────────────────────────────── */
#about-strip {
  padding: 5.5rem 0;
  background: var(--white);
}

.about-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Obrázek — contain, aby landscape fotka nebyla oříznuta */
.as-img {
  position: relative;
}
.as-img::before {
  content: '';
  position: absolute;
  top: -1.2rem; left: -1.2rem;
  right: 1.2rem; bottom: 1.2rem;
  border: 1px solid var(--rule);
}
.as-img img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--off);
}

.as-text .section-title { margin-bottom: 1.3rem; }
.as-text p {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
}
.as-text p + p { margin-top: 1rem; }

/* Citát Saul Leiter v sekci O mně na homepage */
.as-leiter-quote {
  margin-top: 1.8rem;
  padding: 1.1rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
  background: var(--off);
}
.as-leiter-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 0.6rem;
}

/* Blog strip — hlavička s nadpisem */
.bs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.8rem;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

/* ── KONTAKT PRUH ─────────────────────────────────── */
#contact-strip { background: var(--ink); padding: 5rem 0; }
.cs-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cs-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #fff;
}

/* ══ RESPONZIVITA ─────────────────────────────────── */

@media (max-width: 1100px) {
  #carousel { width: min(calc(100% - 4rem), var(--max)); }
}

/* Tablet a užší desktop — full šířka, 16:9 */
@media (max-width: 900px) {
  #carousel {
    width: 100%;
    height: min(56.25vw, 55vh);
    min-height: 180px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip-grid { grid-template-columns: 1fr; gap: 3rem; }
  .as-img { max-width: 420px; }
  .cs-inner { flex-direction: column; text-align: center; }
  .carousel-content { padding: 0 1.5rem 2.5rem; }
  .car-quote { display: none; }
}

/* Mobil na výšku */
@media (max-width: 580px) {
  #carousel {
    height: min(56.25vw, 45vh);
    min-height: 160px;
  }
  .car-prev, .car-next { display: none; }
  .car-name { font-size: clamp(1.5rem, 7vw, 2.2rem); letter-spacing: 0.1em; }
  .car-eyebrow { font-size: 0.55rem; }
  .carousel-content { padding: 0 1.2rem 1.8rem; }
  .services-grid { grid-template-columns: 1fr; }
  .gp-grid { grid-template-columns: repeat(2, 1fr); }
  .gp-header { flex-direction: column; align-items: flex-start; }
}

/* ── BLOG PRUH — kompaktní ────────────────────────── */
#blog-strip {
  padding: 3.5rem 0;
  background: var(--off);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.bs-simple {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.bs-thumb {
  flex-shrink: 0;
  display: block;
  width: 140px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--off);
}
.bs-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.4s;
  display: block;
}
.bs-thumb:hover img { filter: grayscale(0%); }
.bs-simple-text { display: flex; flex-direction: column; gap: 0.25rem; }
.bs-latest-label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light); margin: 0;
}
.bs-latest-title {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300; line-height: 1.3; margin: 0.1rem 0 0.2rem;
}
.bs-latest-title a { color: var(--ink); transition: color 0.2s; }
.bs-latest-title a:hover { color: var(--accent); }
.bs-latest-date {
  font-family: var(--sans); font-size: 0.68rem;
  color: var(--light); letter-spacing: 0.08em; margin: 0;
}
.bs-all-link {
  display: inline-block; margin-top: 0.8rem;
  font-family: var(--sans); font-size: 0.67rem; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--accent); transition: color 0.2s;
}
.bs-all-link:hover { color: var(--accent-dk); }
@media (max-width: 540px) {
  .bs-simple { gap: 1.5rem; }
  .bs-header-row { flex-direction: column; align-items: flex-start; }
  .bs-thumb  { width: 90px; }
}
