/* ============================================================
   SPOD DUKLY – sprievodca v čase
   Design system derived from the Derco Brand Kit:
   - terracotta #c16932 (primary, wordmark), gold #d1aa52 (accent/CTA)
   - forest green #3F625E (dark sections), brown #6F4E37, cream bg
   - Lora (headings ~ ITC Cheltenham), Montserrat (body ~ TT Hovs),
     Dancing Script (decorative)
   ============================================================ */

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

:root {
  --terracotta: #c16932;
  --terracotta-dark: #a2551f;
  --gold: #d1aa52;
  --gold-dark: #b8923e;
  --green: #3F625E;
  --green-dark: #2e4a47;
  --brown: #6F4E37;
  --cream: #faf7f2;
  --text-dark: #2b2523;
  --text-light: #6b625c;
  --bg-white: #ffffff;
  --border-color: #e8e0d5;

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --font-size-base: 16px;
  --line-height-base: 1.7;
  --container-width: 1200px;
  --section-padding: 90px 0;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--cream);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--terracotta-dark);
}

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

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

/* Header */
.site-header {
  background-color: rgba(250, 247, 242, 0.97);
  box-shadow: 0 2px 10px rgba(43, 37, 35, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.navbar-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: 44px;
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 34px;
}

.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--terracotta);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 24px;
  flex-shrink: 0;
}

.lang-link,
.lang-current {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.lang-link {
  color: var(--text-light);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.lang-link:hover {
  color: var(--terracotta);
  border-color: var(--terracotta);
}

.lang-current {
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 35%;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46, 74, 71, 0.55) 0%, rgba(43, 37, 35, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 20px;
}

.hero h1 {
  color: #fff;
  letter-spacing: 0.22em;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-gold {
  background-color: var(--gold);
  color: var(--text-dark);
}

.btn-gold:hover {
  background-color: var(--gold-dark);
  color: var(--text-dark);
}

.btn-outline {
  border-color: var(--terracotta);
  color: var(--terracotta);
  padding: 10px 24px;
}

.btn-outline:hover {
  background-color: var(--terracotta);
  color: #fff;
}

/* Sections */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--bg-white);
}

.section-dark {
  background-color: var(--green);
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
  margin-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background-color: var(--gold);
}

.section-title p {
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}

.about-photo img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(43, 37, 35, 0.18);
  border: 6px solid #fff;
}

.about-text p {
  margin-bottom: 1.2rem;
}

.about-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brown);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
  margin-top: 1.8rem;
}

.about-signature {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--terracotta);
}

/* Tours */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.tour-card {
  background-color: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(43, 37, 35, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(43, 37, 35, 0.16);
}

.tour-image {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.tour-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour-card:hover .tour-image img {
  transform: scale(1.05);
}

.tour-number {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gold);
  color: var(--text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tour-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tour-body h3 {
  color: var(--green);
}

.tour-body p {
  flex: 1;
  font-size: 0.95rem;
}

.tour-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-light);
}

.tour-meta strong {
  color: var(--brown);
  font-weight: 600;
}

.tour-body .btn {
  align-self: flex-start;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 22px rgba(43, 37, 35, 0.25);
}

.gallery-grid img {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 20, 18, 0.94);
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.lightbox button:hover {
  color: var(--gold);
  transform: scale(1.12);
}

.lightbox-close {
  top: 14px;
  right: 18px;
  font-size: 2.8rem;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 768px) {
  .lightbox-img {
    max-width: 100vw;
    max-height: calc(100vh - 40px);
  }

  .lightbox-prev,
  .lightbox-next {
    bottom: 12px;
    top: auto;
  }

  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
}

/* Contact */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 920px;
  margin: 0 auto 48px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 34px 24px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #fff;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-card svg {
  color: var(--gold);
}

a.contact-card:hover {
  background-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  color: #fff;
}

.contact-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
}

.contact-logo {
  max-width: 220px;
  margin: 0 auto;
  border-radius: 10px;
}

/* Footer */
.site-footer {
  background-color: var(--green-dark);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.footer-tagline {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-section p,
.footer-contact li {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links,
.footer-contact {
  list-style: none;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: var(--terracotta);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .about-photo {
    max-width: 440px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }

  .hero {
    min-height: 70vh;
  }

  .hero-tagline {
    font-size: 1.7rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--cream);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 300px;
  }

  .nav-item {
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link {
    display: block;
    padding: 15px 20px;
  }

  .logo-text {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }

  .lang-switcher {
    margin-left: 10px;
  }

  .lang-link,
  .lang-current {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
