/* ==========================================================================
   Mezi Stromy — Lesní klub
   Natural theme design system
   ========================================================================== */

:root {
  --color-forest: #2c4a2e;
  --color-forest-dark: #1e3320;
  --color-forest-light: #4a6b4c;
  --color-earth: #8b6f47;
  --color-earth-light: #c4a97a;
  --color-autumn: #c47d3a;
  --color-cream: #f7f3eb;
  --color-cream-dark: #ede6d8;
  --color-white: #fefdfb;
  --color-text: #2a2a28;
  --color-text-muted: #5c5c58;
  --color-border: #d9d0c0;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(44, 74, 46, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 74, 46, 0.1);
  --shadow-lg: 0 8px 32px rgba(44, 74, 46, 0.12);

  --max-width: 72rem;
  --header-height: 4.5rem;
}

/* Reset & base */

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-autumn);
}

ul,
ol {
  padding-left: 1.25rem;
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-forest-dark);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

p + p {
  margin-top: var(--space-sm);
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-xl);
}

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

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

.section--dark h2,
.section--dark h3 {
  color: var(--color-cream);
}

.section--dark a {
  color: var(--color-earth-light);
}

/* Skip link */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 200;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-forest);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-forest-dark);
}

.site-logo img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.site-logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Navigation */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-forest);
}

.nav-toggle__bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
}

.site-nav__cta {
  margin-left: var(--space-xs);
}

.site-nav__link {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--color-forest);
  border-bottom-color: var(--color-earth);
}

/* Hero */

.hero {
  position: relative;
  min-height: clamp(28rem, 60vh, 40rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-forest-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 51, 32, 0.85) 0%,
    rgba(44, 74, 46, 0.6) 50%,
    rgba(30, 51, 32, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-cream);
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-earth-light);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-md);
  max-width: 18ch;
}

.hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 42ch;
  line-height: 1.7;
  color: rgba(247, 243, 235, 0.9);
  margin-bottom: var(--space-lg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-earth);
  color: var(--color-white);
  border-color: var(--color-earth);
}

.btn--primary:hover {
  background: var(--color-autumn);
  border-color: var(--color-autumn);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(247, 243, 235, 0.5);
}

.btn--outline:hover {
  background: rgba(247, 243, 235, 0.1);
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-forest);
  border-color: var(--color-forest);
}

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

.btn--sm,
.btn--nav {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon,
.emoji-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
  color: var(--color-forest);
  background: var(--color-white);
  border: 1.5px solid var(--color-earth);
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
  box-shadow: 1px 2px 0 rgba(44, 74, 46, 0.08);
}

.card__icon--inline {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

h2:has(.card__icon--inline) {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.sketch-icon {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
}

.sketch-icon--sm {
  width: 1.5rem;
  height: 1.5rem;
}

.sketch-icon--inline {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.35em;
  color: var(--color-forest);
}

.form-choice__label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-forest);
  margin-bottom: var(--space-xs);
}

.form-choice__label .sketch-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer__social-link .sketch-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-earth-light);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-forest);
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Info list */

.info-list {
  list-style: none;
  padding: 0;
}

.info-list__item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list__item:last-child {
  border-bottom: none;
}

.info-list__label {
  flex-shrink: 0;
  width: 10rem;
  font-weight: 600;
  color: var(--color-forest);
}

.info-list__value {
  color: var(--color-text-muted);
}

/* Two-column layout */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.two-col--reverse .two-col__image {
  order: -1;
}

/* Page hero (inner pages) */

.page-hero {
  position: relative;
  min-height: clamp(14rem, 32vh, 20rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-forest-dark);
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 51, 32, 0.88) 0%,
    rgba(44, 74, 46, 0.72) 50%,
    rgba(30, 51, 32, 0.85) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-xl);
  color: var(--color-cream);
}

.page-hero h1 {
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.page-hero__lead {
  font-size: 1.1rem;
  color: rgba(247, 243, 235, 0.9);
  max-width: 42ch;
  margin-inline: auto;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.contact-card h3 {
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.contact-card__item {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-start;
}

.contact-card__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-forest);
  background: var(--color-white);
  border: 1.5px solid var(--color-earth);
  border-radius: var(--radius-sm);
  transform: rotate(-2deg);
}

.contact-card__icon .sketch-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 20rem;
  background: var(--color-cream-dark);
}

.map-embed__canvas {
  width: 100%;
  min-height: 20rem;
  height: 100%;
}

.map-embed .leaflet-container {
  width: 100%;
  min-height: 20rem;
  font-family: var(--font-body);
}

.map-embed .leaflet-control-attribution {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.85);
}

.map-pin {
  background: transparent;
  border: 0;
}

.map-pin__marker {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-earth);
  border: 3px solid var(--color-white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(44, 74, 46, 0.35);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 0;
}

/* Contact form */

.contact-form {
  width: 100%;
}

.contact-form__success {
  background: var(--color-white);
  border: 1px solid var(--color-forest-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  color: var(--color-forest);
}

.form-field {
  margin-bottom: var(--space-md);
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-forest-light);
  box-shadow: 0 0 0 3px rgba(44, 74, 46, 0.12);
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Badge / tag */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--color-cream-dark);
  color: var(--color-forest);
  border-radius: var(--radius-sm);
}

/* Elementa section */

.partner-box {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.partner-box__logo {
  flex-shrink: 0;
  width: 8rem;
}

.partner-box__logo img {
  width: 100%;
  height: auto;
}

.partner-box__text {
  flex: 1;
}

/* Compact CTA banner */

.cta-banner {
  background: var(--color-cream-dark);
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-lg);
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.cta-banner__text {
  max-width: 50ch;
  color: var(--color-text-muted);
}

.cta-banner__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-forest-dark);
  margin-bottom: var(--space-xs);
}

/* Form choice (contact page) */

.form-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.form-choice__option {
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-choice__option:hover {
  border-color: var(--color-forest-light);
}

.form-choice__option--active {
  border-color: var(--color-forest);
  box-shadow: var(--shadow-sm);
}

.form-choice__hint {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-panel[hidden] {
  display: none;
}

.form-panel__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  width: 100%;
}

.contact-forms {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

/* Location + map */

.location-map {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
  align-items: start;
}

/* Footer */

.site-footer {
  background: var(--color-forest-dark);
  color: rgba(247, 243, 235, 0.8);
  padding-block: var(--space-xl);
}

.site-footer a {
  color: var(--color-earth-light);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-cream);
  text-decoration: underline;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(12rem, 1.5fr) 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.site-footer__logo-wrap {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  line-height: 0;
}

.site-footer__logo {
  width: 11rem;
  height: auto;
  display: block;
}

.site-footer__text {
  color: rgba(247, 243, 235, 0.8);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-earth-light);
  margin-bottom: var(--space-sm);
}

.site-footer__list {
  list-style: none;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: var(--space-xs);
}

.site-footer__bottom {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: var(--space-md) var(--space-md) 0;
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(247, 243, 235, 0.15);
  font-size: 0.85rem;
  text-align: center;
}

/* Decorative elements */

.leaf-divider {
  text-align: center;
  color: var(--color-earth);
  font-size: 1.25rem;
  letter-spacing: 0.5em;
  margin-block: var(--space-lg);
  opacity: 0.5;
}

/* Responsive */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .site-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .nav-toggle--open .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle--open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle--open .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
  }

  .site-nav__cta .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__brand {
    align-items: center;
  }

  .two-col,
  .contact-grid,
  .location-map,
  .form-choice,
  .cta-banner__inner {
    grid-template-columns: 1fr;
  }

  .two-col--reverse .two-col__image {
    order: 0;
  }

  .info-list__item {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .info-list__label {
    width: auto;
  }

  .partner-box {
    flex-direction: column;
    text-align: center;
  }
}
