/* ============================================================
   Fertilianum — Modern Design 2026
   ============================================================ */

/* ── 1. Design Tokens ──────────────────────────────────────── */
:root {
  /* Palette */
  --c-deep:       #1b4332;
  --c-mid:        #2d6a4f;
  --c-sage:       #52b788;
  --c-sage-lt:    #95d5b2;
  --c-bg:         #f9fbf9;
  --c-surface:    #ffffff;
  --c-soft:       #eef6f1;
  --c-text:       #182920;
  --c-text-mid:   #3a5743;
  --c-text-muted: #6b8a72;
  --c-border:     #cde4d6;
  --c-border-lt:  #e4f0e8;

  /* Typography */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --nav-h:    72px;
  --max-w:    1280px;
  --max-text: 760px;

  /* Spacing */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-6:  1.5rem;
  --s-8:  2rem;
  --s-12: 3rem;
  --s-16: 4rem;
  --s-24: 6rem;
  --s-32: 8rem;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.07);
  --shadow-md: 0 6px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.13);

  /* Radius */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Motion */
  --ease:   cubic-bezier(.4, 0, .2, 1);
  --t-fast: 130ms var(--ease);
  --t-mid:  240ms var(--ease);
  --t-slow: 380ms var(--ease);
}

/* ── 2. Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--c-sage);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 3. Page Shell ─────────────────────────────────────────── */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ── 4. Navbar ─────────────────────────────────────────────── */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--s-8);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border-lt);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-mid), background var(--t-mid);
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}

.nav-links a {
  padding: var(--s-2) var(--s-3);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--c-text-mid);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.nav-links a:hover {
  color: var(--c-deep);
  background: var(--c-soft);
}

/* Kontakt pill CTA */
.nav-links a:last-child {
  background: var(--c-deep);
  color: #fff;
  padding: var(--s-2) var(--s-6);
  border-radius: var(--r-full);
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.nav-links a:last-child:hover {
  background: var(--c-mid);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27, 67, 50, .35);
}

/* ── 5. Hero Banner (homepage) ─────────────────────────────── */
.banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 40%;
  overflow: hidden;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(14, 34, 23, 0.82) 0%,
    rgba(27, 67, 50, 0.55) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
  z-index: 1;
}

.banner-card {
  position: relative;
  z-index: 2;
  padding: var(--s-16) var(--s-16) var(--s-16);
  max-width: 680px;
}

.banner-card h1 {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
  padding: 0;
  margin: 0;
  text-align: left;
}

/* ── 6. Text + Image Sections ──────────────────────────────── */
.text-image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: center;
  padding: var(--s-16) var(--s-32);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.text-image-section.reverse .text {
  order: 2;
}

.text-image-section.reverse .image {
  order: 1;
}

.text-image-section .image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--r-lg);
}

.text-image-section img {
  border-radius: var(--r-lg);
  object-fit: cover;
  max-height: 380px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-slow);
}

.text-image-section .image:hover img {
  transform: scale(1.03);
}

.text-image-section p {
  text-align: justify;
  color: var(--c-text-mid);
  margin-bottom: var(--s-4);
}

/* Title links */
.title-link { text-decoration: none; }

.title-text {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--c-deep);
  margin-bottom: var(--s-6);
  cursor: pointer;
  transition: color var(--t-mid);
  line-height: 1.2;
}

.title-text:hover {
  color: var(--c-mid);
}

.title-text h3 {
  font-family: var(--f-body);
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--c-text-muted);
  margin-top: var(--s-2);
}

/* ── 7. Contact Section ────────────────────────────────────── */
.contact-wide {
  background: linear-gradient(135deg, var(--c-deep) 0%, var(--c-mid) 100%);
  padding: var(--s-24) var(--s-8);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.contact-wide::before {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  top: -200px;
  right: -80px;
  pointer-events: none;
}

.contact-wide::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
  bottom: -100px;
  left: 4%;
  pointer-events: none;
}

.contact-wide h2 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-3);
}

.contact-wide > p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto var(--s-12);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}

.contact-col {
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  padding: var(--s-8) var(--s-12);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  transition: background var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}

.contact-col:hover {
  background: rgba(255, 255, 255, .18);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.contact-col i {
  font-size: 1.75rem;
  color: var(--c-sage-lt);
}

.contact-col a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color var(--t-fast);
}

.contact-col a:hover {
  color: var(--c-sage-lt);
}

/* ── 8. Icon Links Row ─────────────────────────────────────── */
.icon-links-fullwidth {
  display: flex;
  justify-content: center;
  gap: var(--s-6);
  padding: var(--s-16) var(--s-8);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-lt);
}

.icon-link {
  flex: 1;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--s-6);
  background: var(--c-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  color: var(--c-text-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    background var(--t-mid),
    color var(--t-mid),
    border-color var(--t-mid),
    transform var(--t-mid),
    box-shadow var(--t-mid);
}

.icon-link:hover {
  background: var(--c-deep);
  color: #fff;
  border-color: var(--c-deep);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.icon-link i {
  font-size: 2.25rem;
  transition: transform var(--t-mid);
}

.icon-link:hover i {
  transform: scale(1.12);
}

.icon-link.disabled {
  pointer-events: none;
  opacity: 0.35;
}

/* ── 9. Text Wrapper (content pages) ──────────────────────── */
.text-wrapper {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: var(--s-16) var(--s-8);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--c-text);
}

.text-wrapper h1,
.text-wrapper h2 {
  font-family: var(--f-display);
  color: var(--c-deep);
  text-align: center;
  margin-bottom: var(--s-6);
}

.text-wrapper h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.text-wrapper h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-top: var(--s-12);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-border-lt);
}

.text-wrapper h3 {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--c-mid);
  margin-top: var(--s-6);
  margin-bottom: var(--s-3);
}

.text-wrapper p {
  margin-bottom: var(--s-6);
  text-align: justify;
}

.text-wrapper ul,
.text-wrapper ol {
  margin: var(--s-4) 0 var(--s-6) var(--s-6);
  padding-left: var(--s-2);
}

.text-wrapper li {
  margin-bottom: var(--s-2);
  color: var(--c-text-mid);
}

.text-wrapper li::marker {
  color: var(--c-sage);
}

.text-wrapper strong {
  color: var(--c-mid);
  font-weight: 600;
}

/* ── 10. Profile Image ─────────────────────────────────────── */
.omnie-img {
  max-width: 260px;
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  float: left;
  margin: 0 var(--s-8) var(--s-6) 0;
  box-shadow: var(--shadow-md);
}

/* ── 11. Book Image ────────────────────────────────────────── */
.book-img {
  max-width: 40rem;
  width: 100%;
  border-radius: var(--r-lg);
  margin: var(--s-8) auto;
  display: block;
  box-shadow: var(--shadow-md);
}

/* ── 12. Multimedia ────────────────────────────────────────── */
.multimedia-section {
  padding: var(--s-16) var(--s-8);
  max-width: var(--max-w);
  margin: 0 auto;
}

.multimedia-title {
  font-family: var(--f-display);
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--s-12);
  color: var(--c-deep);
}

.video-grid {
  display: grid;
  gap: var(--s-8);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border-lt);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  padding: var(--s-4);
  font-weight: 600;
  text-align: center;
  color: var(--c-text);
  font-size: 0.9rem;
}

/* ── 13. Show More ─────────────────────────────────────────── */
.more-text { display: none; }

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--c-mid);
  cursor: pointer;
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: var(--s-1) var(--s-4);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.show-more-btn:hover {
  background: var(--c-deep);
  color: #fff;
  border-color: var(--c-deep);
}

/* ── 14. Footer ────────────────────────────────────────────── */
footer {
  background: var(--c-deep);
  color: rgba(255, 255, 255, .5);
  text-align: center;
  padding: var(--s-8) var(--s-8);
  font-size: 0.875rem;
  border-top: 1px solid rgba(255,255,255,.07);
}

footer p { margin: 0; }

/* ── 15. Hamburger Toggle ──────────────────────────────────── */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-text-mid);
  padding: var(--s-2);
  border-radius: var(--r-sm);
  border: none;
  background: none;
  transition: color var(--t-fast), background var(--t-fast);
}

.mobile-menu-toggle:hover {
  color: var(--c-deep);
  background: var(--c-soft);
}

/* ── 16. Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .text-image-section {
    padding: var(--s-12) var(--s-12);
    gap: var(--s-12);
  }
}

@media (max-width: 900px) {
  .text-image-section {
    grid-template-columns: 1fr;
    gap: var(--s-8);
    padding: var(--s-8) var(--s-6);
    max-width: 640px;
  }

  .text-image-section.reverse .text { order: unset; }
  .text-image-section.reverse .image { order: unset; }

  .icon-links-fullwidth {
    gap: var(--s-4);
    padding: var(--s-12) var(--s-6);
  }

  .icon-link {
    max-width: 180px;
    padding: var(--s-6) var(--s-4);
  }
}

@media (max-width: 768px) {
  nav.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 0 var(--s-4);
    z-index: 1100;
  }

  main {
    padding-top: var(--nav-h);
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 0 auto;
    width: 280px;
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-6) var(--s-4);
    gap: var(--s-1);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--c-border-lt);
    box-shadow: -4px 0 32px rgba(0, 0, 0, .08);
    transform: translateX(100%);
    transition: transform var(--t-mid);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    margin: 0;
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r-sm);
    font-size: 1rem;
    width: 100%;
  }

  .nav-links a:last-child {
    border-radius: var(--r-sm);
    text-align: center;
    margin-top: var(--s-2);
    padding: var(--s-3) var(--s-4);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .banner {
    min-height: 340px;
  }

  .banner-card {
    padding: var(--s-8) var(--s-6);
  }

  .banner-card h1 {
    font-size: 2rem;
  }

  .text-image-section,
  .text-image-section.reverse {
    grid-template-columns: 1fr;
    padding: var(--s-8) var(--s-4);
    max-width: 100%;
  }

  .text-wrapper {
    padding: var(--s-8) var(--s-4);
  }

  .omnie-img {
    float: none;
    margin: 0 auto var(--s-6);
    display: block;
    max-width: 200px;
  }

  .book-img {
    max-width: 100%;
    margin: var(--s-6) 0;
  }

  .icon-links-fullwidth {
    flex-wrap: wrap;
    gap: var(--s-3);
    padding: var(--s-8) var(--s-4);
  }

  .icon-link {
    max-width: calc(50% - var(--s-3));
    min-width: 120px;
  }

  .contact-col {
    min-width: 180px;
    padding: var(--s-6) var(--s-8);
  }
}

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

  .icon-link {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: var(--s-4);
    padding: var(--s-4) var(--s-6);
  }

  .icon-link i {
    font-size: 1.75rem;
  }

  .contact-row {
    flex-direction: column;
    align-items: center;
  }

  .contact-col {
    width: 100%;
    max-width: 320px;
  }
}
