/* ===== Tuson Apartment — stylesheet ===== */

:root {
  --gold-start: #906026;
  --gold-end: #f0da6e;
  --dark-green: #053020;
  --dark-green-soft: #0d4531;
  --sage: #506357;
  --stone-light: #e5e9e8;
  --cream: #faf7f0;
  --ink: #1c1c1a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(5, 48, 32, 0.12);
  --radius: 14px;
  --nav-h: 78px;
}

* { box-sizing: border-box; }

.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--dark-green); color: var(--white);
  padding: 0.8em 1.4em; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--gold-start); outline-offset: 2px; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--dark-green);
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-start);
  font-weight: 700;
  margin-bottom: 0.6em;
}

.gold-text {
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  color: var(--dark-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(144,96,38,0.35); }
.btn-outline {
  border-color: var(--dark-green);
  color: var(--dark-green);
  background: transparent;
}
.btn-outline:hover { background: var(--dark-green); color: var(--white); transform: translateY(-2px); }
.btn-light {
  background: var(--white);
  color: var(--dark-green);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.2); }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: transparent;
  transition: background 0.35s ease, box-shadow .35s ease, height .35s ease;
}
.site-nav.scrolled {
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(5,48,32,0.08);
  height: 66px;
}
.nav-inner {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; }
.logo-img {
  height: 46px;
  width: auto;
  transition: height .35s ease, opacity .2s ease;
}
.site-nav.scrolled .logo-img { height: 40px; }
.footer-logo { height: 64px; width: auto; margin-bottom: 0.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--white);
  position: relative;
  padding: 0.3em 0;
  transition: color .35s ease;
  white-space: nowrap;
}
/* Czech nav labels run longer ("Firemní ubytování", "Hlavní strana") —
   tighten spacing so the row stays on one line and never grows past --nav-h. */
html[lang="cs"] .nav-links { gap: 1.3rem; }
html[lang="cs"] .nav-links a { font-size: 0.8rem; }
html[lang="cs"] .nav-cta { gap: 0.8rem; }
.site-nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  transition: width .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-cta .btn { padding: 0.7em 1.4em; font-size: 0.85rem; }

.lang-switch {
  display: flex; align-items: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  transition: border-color .35s ease;
}
.site-nav.scrolled .lang-switch { border-color: rgba(5,48,32,0.25); }
.lang-btn {
  border: none; background: transparent;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
  padding: 0.35em 0.7em; border-radius: 999px;
  color: rgba(255,255,255,0.75);
  transition: background .25s ease, color .25s ease;
}
.site-nav.scrolled .lang-btn { color: var(--sage); }
.lang-btn.active {
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  color: var(--dark-green);
}

.burger {
  display: none;
  width: 30px; height: 22px;
  position: relative;
  background: none; border: none;
}
.burger span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--white);
  transition: all .3s ease;
}
.site-nav.scrolled .burger span { background: var(--dark-green); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.burger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 3rem;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(5,20,14,0.55), rgba(5,20,14,0.78)), url("assets/images/living-room.jpg");
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.08);
  z-index: -1;
}
.hero-content { max-width: 640px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.15; }
.hero p.lead { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 520px; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.4rem; margin-top: 3rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-stats div strong { display: block; font-family: "Cinzel", serif; font-size: 1.5rem; color: var(--gold-end); }
.hero-stats div span { font-size: 0.78rem; letter-spacing: .05em; color: rgba(255,255,255,0.75); }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.75); font-size: 0.7rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-cue .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-end);
  animation: cueBounce 1.8s ease-in-out infinite;
}
@keyframes cueBounce { 0%,100%{ transform: translateY(0); opacity:1;} 50%{ transform: translateY(10px); opacity:.4;} }

/* ---------- Section basics ---------- */
section { padding: 6.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--sage); font-size: 1.02rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 460px; object-fit: cover; }
.about-photo .badge {
  position: absolute; bottom: -1.4rem; right: -1.4rem;
  background: var(--dark-green);
  color: var(--white);
  padding: 1.4rem 1.7rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.about-photo .badge strong { display:block; font-family:"Cinzel", serif; font-size: 1.7rem; color: var(--gold-end); }
.about-photo .badge span { font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; }
.about-list { margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.about-list li { display: flex; gap: 0.7em; align-items: flex-start; font-size: 0.95rem; }
.about-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 0.5em;
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
}

/* ---------- Rooms (tabs) ---------- */
.rooms { background: var(--stone-light); }
.room-tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.room-tab {
  padding: 0.75em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage);
  transition: all .25s ease;
}
.room-tab.active, .room-tab:hover {
  border-color: var(--gold-start);
  color: var(--dark-green);
  background: linear-gradient(100deg, rgba(144,96,38,0.12), rgba(240,218,110,0.18));
}
.room-panel { display: none; }
.room-panel.active { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.room-panel img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 420px; object-fit: cover; }
.room-info .price {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  font-family: "Cinzel", serif; color: var(--dark-green);
  font-size: 1.7rem; margin: 0.3em 0 0.8em;
}
.room-info .price span { font-family:"Montserrat",sans-serif; font-size: 0.85rem; color: var(--sage); font-weight: 600;}
.room-meta { display: flex; gap: 1.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.room-meta div { font-size: 0.85rem; color: var(--sage); display:flex; align-items:center; gap:.4em; }
.room-amenities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.6rem; }
.room-amenities span {
  font-size: 0.78rem; padding: 0.4em 0.9em; border-radius: 999px;
  background: var(--white); color: var(--dark-green); border: 1px solid rgba(5,48,32,0.15);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; cursor: pointer;
}
.gallery-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(4) { grid-column: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 0.9rem 1rem 0.7rem;
  background: linear-gradient(0deg, rgba(5,48,32,0.85), rgba(5,48,32,0));
  color: var(--white); font-size: 0.82rem; font-weight: 600;
  opacity: 0; transform: translateY(8px);
  transition: all .3s ease;
}
.gallery-grid figure:hover figcaption { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(5,20,14,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 88vw; max-height: 80vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-caption { position:absolute; bottom: 8%; left:0; right:0; text-align:center; color:#fff; font-size:.85rem; letter-spacing:.05em;}
.lightbox button {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
  color: var(--white); border-radius: 50%; width: 46px; height: 46px; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,0.22); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Amenities ---------- */
.amenities { background: var(--dark-green); color: var(--white); }
.amenities .section-head h2 { color: var(--white); }
.amenities .section-head p { color: rgba(255,255,255,0.7); }
.amenity-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.4rem;
}
.amenity-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform .3s ease, background .3s ease;
}
.amenity-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.1); }
.amenity-card .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.2rem; color: var(--dark-green);
}
.amenity-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.3em; }
.amenity-card p { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 0; }

/* ---------- Corporate section ---------- */
.corporate {
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end));
  color: var(--dark-green);
}
.corporate .section-head h2 { color: var(--dark-green); }
.corporate .section-head p { color: rgba(5,48,32,0.75); }
.corporate-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.corp-feature {
  background: rgba(255,255,255,0.35); border-radius: 14px; padding: 1.6rem;
  transition: transform .3s ease, background .3s ease;
}
.corp-feature:hover { transform: translateY(-4px); background: rgba(255,255,255,0.55); }
.corp-feature .icon { font-size: 1.5rem; margin-bottom: 0.6rem; }
.corp-feature h3 { font-size: 1rem; color: var(--dark-green); margin-bottom: 0.3em; }
.corp-feature p { font-size: 0.85rem; margin: 0; color: rgba(5,48,32,0.8); }
.corporate-cta { text-align: center; margin-top: 2.6rem; }

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid rgba(5,48,32,0.12); border-radius: 12px; overflow: hidden;
  background: var(--stone-light);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 1.1rem 1.4rem; font: inherit; font-weight: 600; color: var(--dark-green); font-size: 0.98rem;
}
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(100deg, var(--gold-start), var(--gold-end)); color: var(--dark-green);
  font-size: 1.1rem; line-height: 1; transition: transform .3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.4rem;
}
.faq-item.open .faq-a { max-height: 220px; padding: 0 1.4rem 1.2rem; }
.faq-a p { margin: 0; font-size: 0.9rem; color: var(--sage); line-height: 1.6; }
.faq-q:focus-visible { outline: 2px solid var(--gold-start); outline-offset: -2px; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 780px) {
  .corporate-features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .corporate-features { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-info-list { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
.contact-info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-list .icon {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--stone-light); color: var(--dark-green);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-info-list strong { display: block; font-size: 0.95rem; }
.contact-info-list span { font-size: 0.88rem; color: var(--sage); }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 1.8rem; box-shadow: var(--shadow); border: 0; }
.map-embed iframe { width: 100%; height: 220px; border: 0; display:block; }

.form-card {
  background: var(--stone-light);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4em; color: var(--dark-green); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75em 0.9em; border-radius: 8px;
  border: 1.5px solid rgba(5,48,32,0.15); font-family: inherit; font-size: 0.92rem;
  background: var(--white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-start); box-shadow: 0 0 0 3px rgba(144,96,38,0.15);
}
.field.error input, .field.error textarea { border-color: #c0392b; }
.field .err-msg { display: none; font-size: 0.75rem; color: #c0392b; margin-top: 0.3em; }
.field.error .err-msg { display: block; }
.form-status {
  display: none; padding: 0.9em 1.1em; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1.2rem;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(80,110,99,0.15); color: var(--dark-green); }

/* ---------- Footer ---------- */
footer { background: var(--dark-green); color: rgba(255,255,255,0.75); padding: 3.2rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.2rem; }
.footer-grid h4 { color: var(--white); font-family: "Cinzel", serif; font-size: 0.95rem; margin-bottom: 1em; }
.footer-grid ul li { margin-bottom: 0.6em; font-size: 0.88rem; }
.footer-grid ul li a:hover { color: var(--gold-end); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.4rem; font-size: 0.78rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--dark-green); color: var(--white); border: none;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .3s ease; box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--dark-green-soft); }

/* ---------- Responsive ---------- */
@media (max-height: 700px) {
  .hero { align-items: flex-start; padding-top: calc(var(--nav-h) + 4rem); }
  .hero-stats { margin-top: 1.4rem; padding-top: 1rem; }
  .hero p.lead { margin-bottom: 1.1em; }
}

@media (max-width: 900px) {
  .about-grid, .contact-grid, .room-panel.active { grid-template-columns: 1fr; }
  .about-photo img { height: 320px; }
  .about-photo .badge { position: static; margin-top: -3rem; margin-left: 1rem; width: fit-content; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid figure:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .burger { display: block; }
  .nav-links.mobile-open {
    display: flex; position: fixed; inset: 66px 0 0 0; flex-direction: column;
    background: var(--cream); padding: 2rem; gap: 1.6rem; height: calc(100vh - 66px);
  }
  .nav-links.mobile-open a { color: var(--dark-green); font-size: 1.1rem; }
  .form-row { grid-template-columns: 1fr; }
  .corporate-inner { text-align: center; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
}

/* Czech nav labels ("Firemní ubytování", "Hlavní strana", …) are long enough
   that the full desktop nav no longer fits at widths where the English nav
   still does — fall back to the hamburger menu much earlier for Czech so the
   row never wraps onto a second line and overlaps the hero text below it. */
@media (max-width: 1180px) {
  html[lang="cs"] .nav-links,
  html[lang="cs"] .nav-cta .btn-outline { display: none; }
  html[lang="cs"] .burger { display: block; }
  html[lang="cs"] .nav-links.mobile-open {
    display: flex; position: fixed; inset: 66px 0 0 0; flex-direction: column;
    background: var(--cream); padding: 2rem; gap: 1.6rem; height: calc(100vh - 66px);
  }
  html[lang="cs"] .nav-links.mobile-open a { color: var(--dark-green); font-size: 1.1rem; }
}
