/* ================================================
   APARTMÁN VENDULA – TŘEBOŇ
   Elegant, nature-inspired design
   ================================================ */

:root {
  --sand:      #f5f0e8;
  --cream:     #ede7d9;
  --clay:      #c9b99a;
  --earth:     #8c7355;
  --forest:    #3d5a47;
  --forest-d:  #2a3f32;
  --dark:      #1e2420;
  --white:     #faf8f4;
  --text:      #3a3530;
  --text-mid:  #6b6058;
  --text-light:#9a8f84;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius: 4px;
  --trans:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Typography ───────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
}

h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 0.75rem;
}

/* ── Layout ───────────────────────────────────── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }

.section-light { background: var(--white); }
.section-cream { background: var(--cream); }
.section-dark  { background: var(--dark); color: var(--sand); }

.section-dark .label { color: var(--clay); }
.section-dark h2     { color: var(--sand); }
.section-dark p      { color: var(--clay); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

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

/* ── Buttons ──────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all var(--trans);
  cursor: pointer;
}

.btn-light {
  background: var(--sand);
  color: var(--dark);
  border-color: var(--sand);
}
.btn-light:hover {
  background: transparent;
  color: var(--sand);
}

.btn-outline {
  background: transparent;
  color: var(--sand);
  border-color: rgba(245, 240, 232, 0.5);
}
.btn-outline:hover {
  background: var(--sand);
  color: var(--dark);
  border-color: var(--sand);
}

.btn-dark {
  background: var(--forest);
  color: var(--sand);
  border-color: var(--forest);
}
.btn-dark:hover {
  background: var(--forest-d);
  border-color: var(--forest-d);
}

.btn-full { width: 100%; text-align: center; }

/* ── Navbar ───────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--trans), padding var(--trans), box-shadow var(--trans);
}

#navbar.scrolled {
  background: rgba(30, 36, 32, 0.97);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--sand);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
  transition: color var(--trans);
}
.nav-links a:hover { color: var(--sand); }

.nav-cta {
  background: var(--forest) !important;
  color: var(--sand) !important;
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--forest);
  transition: all var(--trans) !important;
}
.nav-cta:hover {
  background: transparent !important;
  color: var(--sand) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--sand);
  display: block;
  transition: var(--trans);
}

/* ── Hero ─────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('Fotky/Balkon.webp') center / cover no-repeat,
    linear-gradient(
      to bottom,
      rgb(20, 28, 22) 0%,
      rgb(20, 28, 22) 50%,
      rgba(20, 28, 22, 0.85) 100%
    );
  transform: scale(1.05);
  animation: heroPan 20s ease-in-out infinite alternate;
  filter: brightness(0.6) blur(2px);
}
@keyframes heroPan {
  from { transform: scale(1.05) translate(0, 0); }
  to   { transform: scale(1.1)  translate(-1%, -1%); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 28, 22, 0.55) 0%,
    rgba(20, 28, 22, 0.40) 50%,
    rgba(20, 28, 22, 0.70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--sand);
  padding: 2rem;
}

.hero-pre {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--clay);
}

.hero-sub {
  font-size: 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.7s forwards;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.8s forwards;
}

.hero-badges span {
  background: rgba(245, 240, 232, 0.12);
  border: 1px solid rgba(245, 240, 232, 0.25);
  color: var(--sand);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 240, 232, 0.5);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { cy: 8;  opacity: 1; }
  50%       { cy: 18; opacity: 0.3; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

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

/* ── O nás – split section ────────────────────── */

.split-text h2 { margin-bottom: 1.25rem; }
.split-text p  { color: var(--text-mid); margin-bottom: 1rem; }
.split-text p:last-of-type { margin-bottom: 1.75rem; }

.check-list { margin-bottom: 2rem; }
.check-list li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  color: var(--text-mid);
  font-size: 0.9rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--forest);
  font-weight: 600;
}

.img-frame {
  position: relative;
  border-radius: 2px;
  overflow: visible;
}

.img-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.8s ease;
  display: block;
}

.img-frame:hover img { transform: scale(1.04); }

.img-deco {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 1.5px solid var(--clay);
  border-radius: 2px;
  z-index: -1;
  pointer-events: none;
}

.img-placeholder::after {
  content: 'Fotografie bude doplněna';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--cream);
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── Features grid ────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature {
  padding: 2rem 1.75rem;
  border: 1px solid var(--clay);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform var(--trans), box-shadow var(--trans);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(140, 115, 85, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--forest);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature h3 { margin-bottom: 0.6rem; font-size: 1.15rem; }
.feature p  { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; }

/* ── Gallery ──────────────────────────────────── */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item.img-placeholder {
  background: rgba(255, 255, 255, 0.06);
}

.gallery-item.img-placeholder::after {
  content: 'Fotografie';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(245, 240, 232, 0.2);
  font-style: italic;
  font-size: 0.85rem;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 28, 22, 0);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  transition: background var(--trans);
}

.gallery-overlay span {
  color: var(--sand);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--trans);
}

.gallery-item:hover img                { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay  { background: rgba(20, 28, 22, 0.5); }
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 12, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: 1.5px solid rgba(245, 240, 232, 0.3);
  color: var(--sand);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--trans);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; font-size: 0.9rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.2rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.2rem; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: var(--sand);
}

/* ── Pricing ──────────────────────────────────── */

.pricing-wrap {
  display: flex;
  gap: 0;
  max-width: 780px;
  margin: 0 auto;
  align-items: stretch;
}

.pricing-card {
  flex: 1;
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid var(--clay);
  border-radius: var(--radius);
}

.pricing-card.season-high {
  background: var(--forest);
  color: var(--sand);
  border-color: var(--forest);
  box-shadow: 0 20px 60px rgba(61, 90, 71, 0.25);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card.season-low {
  background: var(--white);
}

.pricing-badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.season-high .pricing-badge { color: var(--clay); }
.season-low  .pricing-badge { color: var(--earth); }

.pricing-months {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.pricing-price span {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.65;
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.pricing-includes {
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-includes li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
  font-size: 0.88rem;
  opacity: 0.8;
}

.pricing-includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.pricing-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.pricing-divider span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-light);
  font-size: 1.1rem;
}

.pricing-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 2.5rem;
  font-style: italic;
}

/* ── Places / Okolí ───────────────────────────── */

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.place {
  padding: 1.75rem;
  border-bottom: 1px solid var(--clay);
}

.place-icon { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.place h3   { margin-bottom: 0.5rem; font-size: 1.15rem; }
.place p    { color: var(--text-mid); font-size: 0.88rem; line-height: 1.6; }

/* ── Contact ──────────────────────────────────── */

.contact-info {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--clay);
}

.contact-item a,
.contact-item span {
  color: var(--clay);
  font-size: 0.95rem;
  transition: color var(--trans);
}

.contact-item a:hover { color: var(--sand); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}

.optional { opacity: 0.5; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 185, 154, 0.25);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--trans), background var(--trans);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245, 240, 232, 0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clay);
  background: rgba(255, 255, 255, 0.08);
}

.form-success {
  display: none;
  text-align: center;
  color: #7ec89a;
  font-size: 0.9rem;
  padding: 0.75rem;
  border: 1px solid rgba(126, 200, 154, 0.3);
  border-radius: var(--radius);
}

.form-success.visible { display: block; }

/* Map */
.map-wrap {
  margin-top: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 185, 154, 0.15);
}

/* ── Footer ───────────────────────────────────── */

.footer {
  background: #131a15;
  padding: 3rem 0;
  color: var(--clay);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 0.4rem;
}

.footer-brand p { font-size: 0.82rem; line-height: 1.6; opacity: 0.6; }

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  opacity: 0.6;
  transition: opacity var(--trans);
}
.footer-links a:hover { opacity: 1; }

.footer-copy { font-size: 0.78rem; opacity: 0.4; }

/* ── Scroll Reveal ────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.reveal-right {
  transform: translateX(32px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 900px) {
  .split          { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; }
  .places-grid    { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrap   { flex-direction: column; max-width: 420px; }
  .pricing-card.season-high { transform: none; }
  .pricing-divider { padding: 0.5rem 0; }
  .img-deco       { display: none; }
}

@media (max-width: 700px) {
  .section { padding: 5rem 0; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(30, 36, 32, 0.98);
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-top: 1px solid rgba(201, 185, 154, 0.1);
  }

  .nav-links.open  { display: flex; }
  .nav-toggle      { display: flex; }
  #navbar          { background: rgba(30, 36, 32, 0.97); }

  .features-grid  { grid-template-columns: 1fr; }
  .gallery-grid   { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .places-grid    { grid-template-columns: 1fr; }

  .footer-inner   { flex-direction: column; text-align: center; }
  .footer-links   { justify-content: center; }

  .lightbox-prev  { left: 0.5rem; }
  .lightbox-next  { right: 0.5rem; }
}
