/* ===========================================
   DeFiNeli - Dětská stomatologie
   Children's Dental Clinic - Design System
   =========================================== */

/* ─── 1. Design Tokens ─── */
:root {
  /* Primary palette - plum/purple from logo */
  --plum: #7A3268;
  --plum-dark: #5C1E50;
  --plum-light: #9B4D84;
  
  /* Secondary - lavender */
  --lavender: #C4A0D0;
  --lavender-light: #E0CCE8;
  --lavender-pale: #F3EAF7;
  --lavender-bg: #FAF5FC;
  
  /* Accent - pink */
  --pink: #E8849E;
  --pink-light: #F8D5E0;
  --pink-pale: #FEF2F6;
  --rose: #D4467E;
  
  /* Neutral */
  --white: #FFFFFF;
  --bg: #FDFAFE;
  
  /* Text */
  --text: #3D1833;
  --text-secondary: #7A5A72;
  --text-muted: #A88EA0;
  
  /* Typography */
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.25rem;
  --space-2xl: 1.5rem;
  --space-3xl: 2rem;
  --space-4xl: 2.5rem;
  
  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(122, 50, 104, 0.06);
  --shadow-md: 0 4px 20px rgba(122, 50, 104, 0.1);
  --shadow-lg: 0 8px 40px rgba(122, 50, 104, 0.14);
  --shadow-glow: 0 0 30px rgba(196, 160, 208, 0.3);
  
  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--duration) var(--ease);
}

/* ─── 3. Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--plum);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

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

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--plum-light);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

/* ─── 4. Container & Layout ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--lavender), var(--pink));
  border-radius: 2px;
  margin: var(--space-md) auto 0;
}

.section-subtitle {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

/* ─── 5. Header & Navigation ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196, 160, 208, 0.15);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 95px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1001;
}

.logo-img {
  height: 75px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--space-sm);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--duration) var(--ease);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--plum);
  background: var(--lavender-pale);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── 6. Hamburger Menu ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--plum);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ─── 7. Hero Section ─── */
.hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, #F3E8FA 0%, #EBD5F5 45%, #F7D4E7 100%);
  padding-top: 95px;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-xl) var(--space-xl) clamp(110px, 13vw, 160px);
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--plum);
  margin-top: var(--space-lg);
  animation: float 3s ease-in-out infinite;
  position: relative;
}

.hero-tagline .heart {
  color: var(--pink);
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--white);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--plum);
  margin-top: var(--space-md);
}

.hero-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-wave svg {
  width: 100%;
  height: clamp(60px, 8vw, 100px);
  display: block;
}

/* ─── 8. Features Section ─── */
.features {
  background: var(--white);
  padding: var(--space-2xl) 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-box {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 2px solid var(--lavender-light);
  transition: all var(--duration) var(--ease);
  cursor: default;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--lavender);
  background: var(--lavender-pale);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  transition: transform var(--duration) var(--ease);
}

.feature-box:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon--purple {
  background: var(--lavender-pale);
  color: var(--plum);
}

.feature-icon--pink {
  background: var(--pink-pale);
  color: var(--rose);
}

.feature-icon--lavender {
  background: linear-gradient(135deg, var(--lavender-pale), var(--pink-pale));
  color: var(--plum-light);
}

.feature-icon--rose {
  background: var(--pink-light);
  color: var(--rose);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--plum);
  margin-top: var(--space-sm);
  line-height: 1.4;
}

/* ─── 9. About / Doctor Section ─── */
.about {
  background: var(--lavender-pale);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(135deg, var(--lavender), var(--pink-light));
  border-radius: var(--radius-lg);
  z-index: 0;
}

.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--lavender-light);
}

.about-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--lavender-light), var(--pink-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--white);
}

.about-text h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--lavender-light);
}

.about-text h3:first-of-type {
  margin-top: 0;
}

.about-name {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}

.about-list {
  margin-top: var(--space-md);
}

.about-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.about-list li::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url('../images/zub-icon.png') no-repeat center center / contain;
}

/* ─── 10. Working Hours Section ─── */
.hours {
  background: var(--white);
  position: relative;
}

.hours-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hour-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--lavender-pale);
  border-radius: var(--radius-lg);
  border: 2px solid var(--lavender-light);
  transition: all var(--duration) var(--ease);
  min-width: 200px;
}

.hour-item:hover {
  border-color: var(--lavender);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hour-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.hour-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--plum);
}

.hour-item-text {
  display: flex;
  flex-direction: column;
}

.hour-day {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.3;
}

.hour-time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ─── 11. Pricing Section ─── */
.pricing {
  background: var(--lavender-pale);
  position: relative;
}

.pricing-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.pricing-rate {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  padding: var(--space-sm) var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--plum);
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--lavender-light);
}

.pricing-rate-icon {
  color: var(--plum);
  flex-shrink: 0;
}

.pricing-rate strong {
  color: var(--rose);
  font-size: 1.3rem;
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}

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

.pricing-card-header {
  background: linear-gradient(135deg, var(--plum), var(--plum-light));
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.pricing-card-header--alt {
  background: linear-gradient(135deg, var(--plum-light), var(--lavender));
}

.pricing-card-header--supplements {
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.pricing-card-body {
  padding: var(--space-md);
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
  gap: var(--space-md);
}

.pricing-row:nth-child(even) {
  background: var(--lavender-pale);
}

.pricing-row:hover {
  background: var(--pink-pale);
}

.pricing-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.pricing-name small {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--plum);
  white-space: nowrap;
  font-size: 0.95rem;
}

.pricing-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── 12. Contact Section ─── */
.contact {
  background: linear-gradient(165deg, var(--plum-dark) 0%, var(--plum) 50%, var(--plum-light) 100%);
  color: var(--white);
  position: relative;
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title h2 {
  color: var(--white);
}

.contact .section-title::after {
  background: linear-gradient(135deg, var(--lavender), var(--pink));
}

.contact .section-subtitle {
  color: var(--pink-light);
}

.contact-cta {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  transition: all var(--duration) var(--ease);
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  display: block;
}

.contact-card-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--pink-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.contact-card-value {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  font-style: normal;
}

.contact-card-value a {
  color: var(--white);
  transition: color var(--duration) var(--ease);
}

.contact-card-value a:hover {
  color: var(--pink-light);
}

.contact-map-wrapper {
  max-width: 800px;
  margin: var(--space-2xl) auto 0;
}

.contact-map-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all var(--duration) var(--ease);
}

.contact-map-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.contact-map-iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
}

/* ─── 13. Footer ─── */
.site-footer {
  background: var(--plum-dark);
  text-align: center;
  padding: var(--space-xl) 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.site-footer .heart-icon {
  color: var(--pink);
  display: inline-block;
  margin: 0 4px;
}

/* ─── 14. Wave Separators ─── */
.wave-separator {
  position: relative;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.wave-separator svg {
  width: 100%;
  height: clamp(35px, 5vw, 65px);
  display: block;
}

.wave-separator--flip {
  transform: scaleY(-1);
}

/* ─── 15. Keyframe Animations ─── */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── 16. Utility ─── */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Flash messages */
.flash {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-sm);
  margin: var(--space-md) auto;
  max-width: 1200px;
  text-align: center;
  font-weight: 600;
}

.flash.success {
  background: #d4edda;
  color: #155724;
}

.flash.error {
  background: #f8d7da;
  color: #721c24;
}

/* ─── 17. Media Queries ─── */

/* Tablet */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image-wrapper {
    max-width: 350px;
    margin: 0 auto;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --space-4xl: 2rem;
    --space-3xl: 1.5rem;
  }
  
  /* Mobile navigation */
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 30px rgba(122, 50, 104, 0.15);
    padding: 100px var(--space-xl) var(--space-xl);
    transition: right var(--duration) var(--ease);
    z-index: 1000;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: var(--space-md);
    display: block;
    border-radius: var(--radius-md);
  }
  
  .nav-link:hover {
    background: var(--lavender-pale);
  }
  
  .nav-link::after {
    display: none;
  }
  
  /* Mobile overlay */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 24, 51, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
    z-index: 999;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  .hero {
    min-height: auto;
    padding-top: 75px;
  }

  .hero-content {
    padding: var(--space-md) var(--space-md) clamp(85px, 16vw, 130px);
  }
  
  .hours-strip {
    flex-direction: column;
    align-items: center;
  }
  
  .header-inner {
    height: 80px;
  }

  .logo-img {
    height: 58px;
    max-width: 220px;
  }

  .contact-map-iframe {
    height: 350px;
  }
  
  html {
    scroll-padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-content {
    padding: var(--space-sm) var(--space-sm) clamp(75px, 18vw, 110px);
  }
  
  .logo-img {
    height: 44px;
  }
  
  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .pricing-price {
    align-self: flex-end;
  }

  .contact-map-iframe {
    height: 280px;
  }
}
