/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Brand Colors */
  --color-primary: #B97781;
  --color-secondary: #DBB3BC;
  --color-text: #011936;
  --color-bg-light: #ffffff;
  --color-bg-neutral: #eeeeee;
  
  /* Additional UI Colors */
  --color-white: #ffffff;
  --color-glass-bg: rgba(255, 255, 255, 0.85);
  --color-glass-border: rgba(219, 179, 188, 0.3);
  --color-shadow: rgba(1, 25, 54, 0.06);
  --color-shadow-hover: rgba(1, 25, 54, 0.12);
  
  /* Typography */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing (8px grid system) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2rem;     /* 32px */
  --space-xl: 3rem;     /* 48px */
  --space-xxl: 4rem;    /* 64px */
  
  /* Layout */
  --container-width: 85%;
  --container-max-width: 1400px;
  
  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-round: 50px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Scroll Offset for anchors */
.scroll-mt {
  scroll-margin-top: 100px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

/* Responsive clamp() sizes for headings */
h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  position: relative;
  display: inline-block;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 70%; /* Czech layout requirement: max text width 70% */
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   COMMON COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.85rem 2rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-round);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(185, 119, 129, 0.3);
}

.btn-primary:hover {
  background-color: #a3636c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 119, 129, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.medevio-link-hidden {
  display: none !important;
}

/* Navigation Medevio Button */
.btn-medevio-nav {
  background-color: var(--color-white);
  color: var(--color-text);
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  border-radius: var(--radius-round);
  border: 1px solid rgba(185, 119, 129, 0.35);
  box-shadow: 0 8px 22px rgba(1, 25, 54, 0.12);
}

.btn-medevio-nav:hover {
  background-color: #fff7f8;
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(1, 25, 54, 0.16);
}

/* Section Outline */
.section-container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: var(--space-xxl) auto;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: rgba(185, 119, 129, 0.1);
  color: #8f5660;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-round);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.section-title {
  display: block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: var(--radius-round);
  margin-top: var(--space-xs);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.main-header.is-scrolled {
  background-color: #d5adb4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: transparent;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  max-width: none;
  margin: 0 auto;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-image {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background var(--transition-fast), background-color var(--transition-normal);
}

.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: transform var(--transition-fast), background-color var(--transition-normal);
}

.main-header.is-scrolled .hamburger,
.main-header.is-scrolled .hamburger::before,
.main-header.is-scrolled .hamburger::after {
  background-color: var(--color-text);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Hamburger open state */
.nav-toggle.open .hamburger {
  background: transparent;
}
.nav-toggle.open .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--color-text);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
  text-shadow: none;
  transition: color var(--transition-fast), text-shadow var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after {
  width: 100%;
}

.main-header.is-scrolled .nav-link {
  color: var(--color-text);
  text-shadow: none;
}

.main-header.is-scrolled .nav-link:hover {
  color: #633943;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  
  /* Full-width and under the menu */
  margin-top: 0;
  padding-top: 150px; /* space for the fixed header */
  padding-bottom: 110px;
  
  background-color: #cb99a1;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 48%);
  background-size: cover;
  background-position: center;
  
  box-shadow: 0 4px 30px rgba(1, 25, 54, 0.05);
  border-radius: 0 0 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-text);
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  max-width: 800px;
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-round);
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-title {
  color: var(--color-text);
  font-family: var(--font-brand);
  font-weight: 800;
  text-shadow: none;
}

.hero-doctor {
  color: var(--color-text);
  font-family: var(--font-brand);
  font-size: clamp(1.6rem, 3.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
  text-shadow: none;
}

.hero-subtitle {
  color: var(--color-text);
  font-family: var(--font-brand);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 400;
  max-width: 100%;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  text-shadow: none;
}

.hero-cta-wrapper {
  margin-top: var(--space-xs);
}

.btn-hero {
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero:hover {
  background-color: #fff7f8;
  color: var(--color-text);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(1, 25, 54, 0.16);
}

/* ==========================================================================
   AKTUALITY SECTION
   ========================================================================== */
.aktuality-section {
  margin-top: var(--space-xxl);
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 640px);
  gap: var(--space-sm);
  justify-content: center;
  align-items: start;
}

.aktuality-section .section-header {
  text-align: left;
  margin-bottom: 0;
}

.aktuality-section .section-title::after {
  margin-left: 0;
  margin-right: 0;
}

.news-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  width: 100%;
  max-width: 640px;
  margin-left: 0;
}

.news-card {
  background-color: var(--color-bg-neutral);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: 0 4px 15px var(--color-shadow);
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.news-icon-wrapper {
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.news-content {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 100%;
}

.news-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xl);
  font-family: var(--font-brand);
  font-weight: 500;
  color: var(--color-text);
  font-size: 1.1rem;
}

.news-error {
  background-color: #fdf2f2;
  border: 1px solid #fde8e8;
  color: #c81e1e;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 1rem;
}

/* ==========================================================================
   BENTO GRID SECTION
   ========================================================================== */
.bento-section {
  margin-top: var(--space-xl);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.bento-card,
.price-list-wrapper,
.team-member-card {
  --card-surface: var(--color-white);
  background-color: var(--card-surface);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 0;
  box-shadow: 0 12px 34px rgba(1, 25, 54, 0.1);
}

.bento-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.bento-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.bento-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background-color: rgba(185, 119, 129, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.bento-card-title {
  margin: 0;
  font-weight: 700;
  color: var(--color-text);
}

.bento-card .bento-card-icon,
.bento-card .time-note,
.price-list-wrapper .price-value {
  color: #9b5d67;
}

.bento-card-body {
  flex-grow: 1;
}

/* Ordinační doba list styling */
.hours-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hours-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--space-md);
  min-height: 3.5rem;
  padding: 0.15rem 0;
}

.day-name {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.125rem;
  color: #8f5660;
  min-width: 4.8rem;
}

.day-time {
  font-family: var(--font-body);
  font-size: 1.125rem;
  text-align: left;
  font-weight: 500;
}

.time-note {
  display: block;
  font-size: 1.125rem;
  color: #9b5d67;
  font-weight: 400;
  margin-top: 2px;
}

/* Contact Specific Styling */
.contact-notice {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  text-align: left;
  margin-bottom: var(--space-md);
  max-width: 100%;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.125rem;
  color: #8f5660;
  text-transform: none;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.contact-value {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-link {
  transition: color var(--transition-fast);
}

.contact-inline-link {
  color: #8f5660;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.contact-link:hover {
  color: #633943;
}

/* ==========================================================================
   CENÍK SECTION
   ========================================================================== */
.cenik-section {
  padding-top: var(--space-xl);
}

.cenik-section .section-header {
  text-align: center;
}

.cenik-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

/* Split priced lists in two columns on desktop */
.price-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--space-xxl);
  row-gap: var(--space-sm);
}

.price-item {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(1, 25, 54, 0.08);
}

.price-item:last-child {
  border-bottom: none;
}

@media (min-width: 991px) {
  .price-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

.price-name {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  min-width: 0;
  overflow-wrap: break-word;
}

.price-line {
  display: none;
}

.price-value {
  font-family: var(--font-brand);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   NÁŠ TÝM SECTION
   ========================================================================== */
.team-section {
  padding-top: var(--space-xl);
}

.team-section .section-header {
  text-align: center;
}

.team-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.team-member-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 96px;
  border: none !important;
  outline: none;
}

.team-member-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: #fff7f8;
  color: #8f5660;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.team-member-name {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-text);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: var(--color-bg-neutral);
  padding: var(--space-xl) 0 var(--space-lg) 0;
  margin-top: var(--space-xxl);
  border-top: 1px solid rgba(1, 25, 54, 0.05);
}

.footer-container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-text);
}

.footer-tagline {
  font-size: 0.95rem;
  color: #8f5660;
  max-width: 100%;
}

.footer-nav {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.footer-nav a {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: #633943;
}

.footer-divider {
  height: 1px;
  background-color: rgba(1, 25, 54, 0.1);
  margin: var(--space-lg) 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-info {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(1, 25, 54, 0.7);
}

.footer-info strong {
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(1, 25, 54, 0.7);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE-FIRST)
   ========================================================================== */

/* Tablet & Mobile navigation behavior and layout adjustments */
@media (max-width: 990px) {
  .price-list-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: var(--space-xs);
  }
}

@media (max-width: 960px) {
  .header-container {
    width: var(--container-width);
    height: 70px;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }
  
  .nav-toggle {
    display: block; /* Show hamburger button */
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.05);
    transition: right var(--transition-normal);
    z-index: 999;
    padding: var(--space-lg);
    border-left: 1px solid rgba(1, 25, 54, 0.05);
  }

  .nav-menu .nav-link {
    color: var(--color-text);
    text-shadow: none;
  }

  .nav-menu .nav-link:hover {
    color: #633943;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.15rem;
  }

  .btn-medevio-nav {
    display: flex;
    width: 100%;
    margin-top: var(--space-sm);
  }
}

@media (max-width: 900px) {
  .aktuality-section {
    display: block;
  }

  .aktuality-section .section-header {
    margin-bottom: var(--space-xl);
  }

  .news-wrapper {
    max-width: 100%;
    margin-left: 0;
  }

  /* Bento Grid Stacked on Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Price List Stacked on Mobile */
  .price-list-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: var(--space-xs);
  }

  .price-name {
    overflow-wrap: anywhere;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Footer Adjustments */
  .footer-top {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-nav {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .footer-info {
    flex-direction: column;
    gap: 6px;
  }

}

/* Adjustments for extra small devices */
@media (max-width: 480px) {
  :root {
    --container-width: 90%;
  }

  .bento-card,
  .price-list-wrapper {
    padding: var(--space-lg);
  }

  .hours-item {
    flex-direction: column;
    gap: 0.15rem;
    min-height: auto;
  }

  .day-name {
    min-width: 0;
  }

  .bento-card-hours .contact-notice {
    margin-top: var(--space-md);
  }

  .hero-section {
    min-height: 480px;
    padding-top: 110px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-doctor {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-top: 0.75rem;
  }

  .btn-hero {
    white-space: normal;
    line-height: 1.35;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Final override: team cards must stay visually borderless. */
.team-section .team-member-card {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: 0 12px 34px rgba(1, 25, 54, 0.1) !important;
}
