/* ===========================================================
   Studio Arnošťka — styles
   =========================================================== */

:root {
  --primary: #2D5A3D;
  --primary-dark: #1A3D28;
  --secondary: #A8C5A0;
  --accent: #D4A84B;
  --accent-dark: #b8902f;
  --bg: #F7F5F0;
  --text: #1A1A1A;
  --muted: #4a4a4a;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --navbar-height: 72px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .75rem;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: #1a1a1a;
  box-shadow: 0 6px 18px rgba(212,168,75,.35);
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ------- Navbar ------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--navbar-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(247,245,240,.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: saturate(1.2) blur(8px);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: .02em;
}
.navbar.scrolled .brand { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  padding: .6rem 1.2rem;
  font-size: .95rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  padding: 0;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--white);
  transition: all .3s ease;
  border-radius: 2px;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.navbar.scrolled .menu-toggle span { background: var(--primary); }
.menu-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ------- Hero ------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: var(--navbar-height) 1.25rem 2rem;
}
.hero-bg {
  position: absolute; inset: -10% 0 0 0;
  background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; max-width: 900px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5.5vw, 4rem);
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.92);
  max-width: 640px;
  margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  color: #fff; opacity: .85;
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ------- Icons (inline SVG sizing) ------- */
.icon { width: 24px; height: 24px; stroke-width: 1.8; flex-shrink: 0; }
.icon-lg { width: 32px; height: 32px; }
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(45,90,61,.08);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

/* ------- O nás ------- */
.about {
  background: var(--bg);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text .eyebrow { color: var(--primary); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; }
.about-text h2 { margin-top: .6rem; }
.about-text p { color: var(--muted); font-size: 1.05rem; }

.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card h3 { margin: 1rem 0 .4rem; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ------- Pokoje ------- */
.rooms {
  background: rgba(168,197,160,.14);
}
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.room-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.room-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.room-card:hover img { transform: scale(1.06); }
.room-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.room-body .row { display: flex; align-items: center; gap: .6rem; color: var(--primary); }
.room-body h3 { margin: 0; font-size: 1.35rem; }
.room-body p { color: var(--muted); margin: 0; }

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

/* ------- Vybavení ------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.amenity {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.amenity:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); }
.amenity:hover .icon-circle { background: var(--accent); color: #fff; transform: scale(1.08); }
.amenity h3 { margin: 1rem 0 .4rem; font-size: 1.05rem; }
.amenity p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ------- Turistické tipy ------- */
.tips {
  position: relative;
  color: #fff;
  background: #0d1a13;
  overflow: hidden;
}
.tips-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1472214103451-9374bd1c798e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center;
  opacity: .35;
  z-index: 0;
}
.tips::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,26,19,.85), rgba(13,26,19,.65));
  z-index: 1;
}
.tips .container { position: relative; z-index: 2; }
.tips .section-head h2,
.tips .section-head p { color: #fff; }
.tips .section-head .eyebrow { color: var(--accent); }
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tip-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.tip-card:hover {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}
.tip-card .icon-circle {
  background: rgba(212,168,75,.15);
  color: var(--accent);
  width: 52px; height: 52px;
}
.tip-card h3 { color: #fff; margin: 0 0 .35rem; font-size: 1.1rem; }
.tip-card p { color: rgba(255,255,255,.82); font-size: .92rem; margin: 0; }

/* ------- Galerie ------- */
.gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox .lb-caption {
  position: absolute; bottom: 1.5rem; left: 0; right: 0;
  text-align: center; color: #fff; font-size: .95rem;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ------- Poloha ------- */
.location { background: #fff; }
.location .two-col { align-items: stretch; }
.distance-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.distance-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}
.distance-list .icon-circle { width: 44px; height: 44px; background: rgba(45,90,61,.12); }
.distance-list strong { display: block; color: var(--text); }
.distance-list span { color: var(--muted); font-size: .92rem; }

.map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.map-wrap iframe { flex: 1; width: 100%; border: 0; min-height: 340px; }
.map-wrap .map-cta { padding: 1rem; text-align: center; background: #fff; }

/* ------- FAQ ------- */
.faq { background: var(--bg); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: #fff;
  border: none;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}
.faq-q .icon-circle { width: 40px; height: 40px; }
.faq-q .chev {
  margin-left: auto;
  transition: transform .3s ease;
  color: var(--primary);
}
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a-inner { padding: 0 1.25rem 1.1rem 4.25rem; color: var(--muted); }

/* ------- Kontakt ------- */
.contact {
  background: var(--primary);
  color: #fff;
}
.contact .section-head h2,
.contact .section-head p { color: #fff; }
.contact .section-head .eyebrow { color: var(--accent); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}
.contact-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--text); }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .75rem .9rem;
  border: 1px solid #e1e1e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,90,61,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.submit-btn { width: 100%; margin-top: .5rem; }

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info .info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
}
.contact-info .icon-circle { background: rgba(255,255,255,.12); color: #fff; }
.contact-info strong { display: block; color: #fff; margin-bottom: .2rem; }
.contact-info span, .contact-info a { color: rgba(255,255,255,.85); font-size: .95rem; }
.contact-info a:hover { color: var(--accent); }

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2D5A3D;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 1200;
  font-size: .95rem;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------- Footer ------- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
}
.footer h4 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.footer .brand-footer {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: .5rem;
  display: block;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: rgba(255,255,255,.8); font-size: .95rem; }
.footer a:hover { color: var(--accent); }
.socials { display: flex; gap: .6rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  transition: background .2s;
}
.socials a:hover { background: var(--accent); color: #1a1a1a; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}

/* ------- Animace (fade-in-up – fallback bez GSAP) ------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================================
   Responsivita
   =========================================================== */

@media (max-width: 960px) {
  section { padding: 4rem 0; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .feature-cards { grid-template-columns: 1fr; }
  .rooms-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item.wide { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--navbar-height); left: 0; right: 0;
    flex-direction: column;
    background: rgba(247,245,240,.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform .35s ease;
    align-items: flex-start;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { color: var(--text); font-size: 1.05rem; }
  .nav-cta { width: 100%; text-align: center; }

  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.tall { grid-row: span 1; }

  .tips-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
