/* ============================================================
   LAYOUT.CSS — Sekce, grid, spacing
   Beskydské svatby · Chata Dukla · Čeladná
   ============================================================ */

/* --- Sekce základní --- */
.section {
  padding: var(--section-padding) 0;
}

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

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

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

.section--dark .section-tag {
  color: var(--color-accent);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* --- 2-sloupcový split layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

.split--40-60 {
  grid-template-columns: 2fr 3fr;
}

.split--reverse .split__media {
  order: -1;
}

.split__content {
  padding: clamp(1rem, 3vw, 2.5rem) 0;
}

.split__media {
  position: relative;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* --- Hero sekce --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 13, 5, 0.68) 0%,
    rgba(20, 13, 5, 0.52) 55%,
    rgba(20, 13, 5, 0.80) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--container-pad);
  max-width: 900px;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  display: block;
}

.hero__title {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* --- Parallax sekce (obřad) --- */
.parallax-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-section__bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 13, 5, 0.45);
  z-index: 1;
}

.parallax-section__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 5rem var(--container-pad);
  max-width: 750px;
  width: 100%;
}

.parallax-section__content .section-tag {
  color: rgba(255, 255, 255, 0.75);
}

.parallax-section__content h2 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.parallax-section__content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.link-underline {
  color: var(--color-white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 4px;
  transition: var(--transition);
}

.link-underline:hover {
  text-decoration-color: var(--color-white);
}

/* --- Info ikony row --- */
.icon-facts {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.icon-fact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.icon-fact svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* --- Služby grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem 1.75rem;
  background: var(--color-white);
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--color-light);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(44, 36, 22, 0.1);
}

.service-card .icon-wrap {
  margin-bottom: 1.25rem;
  background: var(--color-light);
  border-radius: calc(var(--radius) * 2);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* --- Raut sekce --- */
.raut-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.raut-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.raut-mini-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: calc(var(--radius) * 2);
}

.raut-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.raut-icon-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.raut-icon-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.raut-icon-item span {
  font-size: 0.9375rem;
  font-weight: 500;
}

.pull-quote {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 2rem;
  margin-top: 2.5rem;
  background: var(--color-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.pull-quote cite {
  font-size: 0.875rem;
  color: var(--color-muted);
  font-style: normal;
}

/* --- Ubytování dark sekce --- */
.apartman-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.apartman-icons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.apartman-icon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.apartman-icon-item svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  color: var(--color-accent);
  flex-shrink: 0;
}

.apartman-icon-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.apartman-media {
  position: relative;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
}

.apartman-media img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

/* --- Sál sekce --- */
.sal-icons {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.sal-icon-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sal-icon-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  color: var(--color-primary);
  flex-shrink: 0;
}

.sal-icon-item span {
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================================
   KONTAKT SEKCE — přepracovaná, čistá hierarchie
   ============================================================ */

/* ── 1. Primární dvojice: telefon + email ── */

.k-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.k-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.k-hero-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: var(--color-white);
  border-radius: calc(var(--radius) * 2);
  text-decoration: none;
  color: var(--color-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Adresová karta — statická, bez hover fill efektu */
.k-hero-link--address {
  border-color: var(--color-light);
  cursor: default;
}

.k-hero-link--address::before {
  display: none;
}

.k-hero-link--address:hover {
  transform: none;
  box-shadow: none;
  color: var(--color-dark);
}

.k-hero-link--address .k-hero-icon {
  background: var(--color-light);
  color: var(--color-primary);
}

.k-hero-val--address {
  font-style: normal;
  white-space: normal !important;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem) !important;
  font-weight: 600;
  color: var(--color-dark) !important;
}

.k-hero-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 0;
}

.k-hero-link:hover::before {
  transform: translateX(0);
}

.k-hero-link:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(122, 99, 64, 0.25);
}

.k-hero-link > * {
  position: relative;
  z-index: 1;
}

.k-hero-icon {
  width: 52px;
  height: 52px;
  border-radius: calc(var(--radius) * 2);
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.k-hero-link:hover .k-hero-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.k-hero-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.k-hero-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}

.k-hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--transition);
}

.k-hero-link:hover .k-hero-label {
  color: rgba(255, 255, 255, 0.7);
}

.k-hero-val {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  transition: color var(--transition);
  white-space: nowrap;
}

.k-hero-link:hover .k-hero-val {
  color: var(--color-white);
}

.k-hero-arrow {
  color: var(--color-muted);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.k-hero-arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}

.k-hero-link:hover .k-hero-arrow {
  color: rgba(255, 255, 255, 0.7);
  transform: translateX(4px);
}

/* ── 2. Sociální sítě ── */

.k-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-light);
  border-radius: calc(var(--radius) * 2);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.k-socials-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}

.k-social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}

.k-social-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.k-social-link:hover {
  color: var(--color-accent);
}

/* ── 3. Statická mapa ── */

.k-map-wrap {
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  border: 1px solid var(--color-light);
  box-shadow: 0 4px 24px rgba(44, 36, 22, 0.08);
}

.k-map-inner {
  position: relative;
  overflow: hidden;
}

.k-map-img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center;
  /* Fallback pozadí pokud se mapa nenačte */
  background: linear-gradient(135deg, #e8e0d0 0%, #d4c9b4 50%, #c8bfa8 100%);
}

/* Jemný tónový překryv — warm sepia tint */
.k-map-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250, 247, 242, 0.08) 0%,
    rgba(250, 247, 242, 0) 40%,
    rgba(44, 36, 22, 0.35) 100%
  );
  pointer-events: none;
}

/* Vlastní pin s popiskem */
.k-map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35));
}

.k-map-pin svg {
  display: block;
}

.k-map-pin-label {
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Navigační tlačítka přes mapu */
.k-map-nav {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.k-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  min-height: 40px;
  white-space: nowrap;
}

.k-map-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  flex-shrink: 0;
}

.k-map-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 2px 12px rgba(122, 99, 64, 0.4);
}

.k-map-btn--primary:hover {
  background: var(--color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(44, 36, 22, 0.3);
}

.k-map-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-dark);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.k-map-btn--ghost:hover {
  background: var(--color-white);
  transform: translateY(-1px);
}

/* Info lišta pod mapou */
.k-map-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.k-map-bar svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .k-trio {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .k-duo,
  .k-trio {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .k-hero-link {
    padding: 1.25rem 1.5rem;
  }

  .k-hero-val {
    font-size: 1.1rem;
  }

  .k-meta {
    flex-wrap: wrap;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
  }

  .k-map-img {
    height: 300px;
  }

  .k-map-nav {
    position: static;
    padding: 1rem;
    background: var(--color-dark);
    justify-content: center;
  }

  .k-map-btn--ghost {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
  }

  .k-map-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .k-hero-link {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .k-hero-icon {
    width: 44px;
    height: 44px;
  }

  .k-map-nav {
    flex-direction: column;
  }

  .k-map-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-white);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-brand-sub {
  font-size: 0.875rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 1rem;
}

.footer-slogan {
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-kontakt {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-kontakt-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: var(--transition);
}

.footer-kontakt-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
  color: var(--color-accent);
  flex-shrink: 0;
}

.footer-kontakt-item:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}

.back-to-top:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split--60-40,
  .split--40-60 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .split__media img {
    min-height: 300px;
  }

  .raut-layout {
    grid-template-columns: 1fr;
  }

  .raut-mini-grid {
    order: -1;
  }

  .apartman-layout {
    grid-template-columns: 1fr;
  }

  .apartman-media {
    order: -1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* kontakt-layout removed — replaced by k-duo / k-meta / k-map-wrap */

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .icon-facts {
    flex-direction: column;
    gap: 1rem;
  }

  .raut-icons {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }
}
