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

/* ── HERO KARUSEL — 70 % šířky, vycentrovaný ────── */
#carousel {
  position: relative;
  width: 70%;
  margin: var(--nav-h) auto 0;
  height: 82vh;
  min-height: 440px;
  overflow: hidden;
  background: #111;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.slide.active { opacity: 1; }

@keyframes kenBurns {
  from { transform: scale(1.00); }
  to   { transform: scale(1.07); }
}

.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(2.8rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUpIn 0.9s 0.6s ease forwards;
}
.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; }

/* ── 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: 85%; }
}
@media (max-width: 900px) {
  #carousel { width: 100%; }
  .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; }
}
@media (max-width: 580px) {
  #carousel { height: 72vh; }
  .car-prev, .car-next { display: none; }
  .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 ────────────────────────────────────── */
#blog-strip {
  padding: 5.5rem 0;
  background: var(--ink);
}
.bs-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.bs-header .section-label { color: rgba(255,255,255,0.35); }
.bs-header .section-title { color: #fff; }
.bs-header .btn { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.7); }
.bs-header .btn:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }

.bs-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 3px;
}
.bs-card {
  display: block;
  overflow: hidden;
  background: #111;
  position: relative;
}
.bs-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.bs-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) grayscale(20%);
  transition: transform 0.55s var(--ease), filter 0.4s;
  display: block;
}
.bs-card:hover .bs-card-img img { transform: scale(1.05); filter: brightness(0.5) grayscale(0%); }
.bs-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.bs-card-body time {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.3rem;
}
.bs-card-body h3 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 300;
  color: #fff;
  line-height: 1.3;
}
@media (max-width: 900px) { .bs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .bs-grid { grid-template-columns: 1fr; } .bs-header { flex-direction: column; align-items: flex-start; } }
