/* ============================================
   DANIPA.CZ – Mgr. Daniela Hudcová
   Komunitní porodní asistentka pro Brno a okolí
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors */
  --color-peach: #F09A81;
  --color-dove-blue: #A4BBD6;
  --color-terracotta: #C27D66;
  --color-sand: #EAE3D1;
  --color-cream: #F5EFDF;
  --color-graphite: #3D3D3D;
  --color-black: #1A1A1A;
  --color-white: #FFFFFF;

  /* Semantic aliases */
  --bg-primary: var(--color-cream);
  --bg-section: var(--color-sand);
  --bg-card: var(--color-white);
  --text-body: var(--color-black);
  --text-heading: var(--color-graphite);
  --accent-primary: var(--color-peach);
  --accent-hover: var(--color-terracotta);
  --accent-secondary: var(--color-dove-blue);

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

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 6rem;

  /* Layout */
  --max-width: 1140px;
  --header-height: 72px;
  --border-radius: 12px;
  --border-radius-sm: 8px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-primary);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

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

.section__title {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  text-align: center;
  max-width: 640px;
  margin: -1.5rem auto var(--space-lg);
  color: #666;
  font-size: 1.05rem;
}

.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;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.4;
}

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

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

.btn--outline {
  background-color: transparent;
  color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline:hover {
  background-color: var(--accent-hover);
  color: var(--color-white);
}

.btn--secondary {
  background-color: var(--accent-secondary);
  color: var(--color-white);
  border-color: var(--accent-secondary);
}

.btn--secondary:hover {
  background-color: #8da8c4;
  border-color: #8da8c4;
  color: var(--color-white);
}

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(245, 239, 223, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(234, 227, 209, 0.8);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
}

.header__logo:hover {
  color: var(--accent-hover);
}

.nav__list {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-heading);
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--accent-hover);
}

.nav__link--active {
  color: var(--accent-hover);
}

.nav__cta {
  margin-left: 0.5rem;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger__line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-heading);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  padding: var(--space-xxl) 0;
  position: relative;
  overflow: hidden;
}

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

.hero__content {
  max-width: 540px;
}

.hero__badge {
  display: inline-block;
  background-color: var(--bg-section);
  color: var(--accent-hover);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.hero__title {
  margin-bottom: var(--space-xs);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--accent-hover);
  margin-bottom: var(--space-md);
  font-weight: 400;
  font-style: italic;
}

.hero__text {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  color: #555;
}

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

.hero__image {
  position: relative;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 500px;
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-dove-blue) 50%, var(--color-peach) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-md);
}

/* --- Services Overview (Homepage) --- */
.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(234, 227, 209, 0.5);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background-color: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  font-size: 1.5rem;
}

.service-card__title {
  font-family: var(--font-heading);
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: 0.95rem;
  color: #666;
}

/* --- Services Detail Page --- */
.service-detail {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(234, 227, 209, 0.5);
}

.service-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.service-detail__title {
  font-family: var(--font-heading);
}

.service-detail__price {
  background-color: var(--bg-section);
  color: var(--accent-hover);
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  white-space: nowrap;
}

.service-detail__text {
  color: #555;
  line-height: 1.8;
}

.service-detail__note {
  font-size: 0.9rem;
  color: #888;
  margin-top: var(--space-xs);
}

.service-detail--highlight {
  border-left: 4px solid var(--accent-primary);
}

.service-detail--info {
  border-left: 4px solid var(--accent-secondary);
  background-color: #f8fbff;
}

.service-detail--info .service-detail__text {
  color: #444;
}

.service-detail__capacity {
  display: inline-block;
  background-color: #fef3f0;
  color: var(--accent-hover);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-top: var(--space-xs);
}

/* --- Testimonials --- */
.testimonials {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonials__track {
  overflow: hidden;
}

.testimonials__slides {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial {
  min-width: 100%;
  padding: var(--space-lg);
  text-align: center;
}

.testimonial__quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: #555;
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial__quote::before {
  content: '\201E';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent-primary);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  line-height: 1;
}

.testimonial__author {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 1rem;
}

.testimonials__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.testimonials__btn {
  background: var(--bg-section);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1.2rem;
  color: var(--text-heading);
}

.testimonials__btn:hover {
  background: var(--accent-primary);
  color: var(--color-white);
}

.testimonials__dots {
  display: flex;
  gap: 0.5rem;
}

.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  padding: 0;
}

.testimonials__dot--active {
  background: var(--accent-primary);
}

/* --- Contact Info --- */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-info__label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2px;
}

.contact-info__value {
  font-weight: 600;
  color: var(--text-heading);
}

.contact-info__value a {
  color: var(--text-heading);
}

.contact-info__value a:hover {
  color: var(--accent-primary);
}

/* --- Form --- */
.form {
  max-width: 640px;
}

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

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--bg-section);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-white);
  color: var(--text-body);
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233D3D3D' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__submit {
  width: 100%;
}

.form__honeypot {
  display: none;
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.step {
  text-align: center;
  padding: var(--space-md);
}

.step__number {
  width: 48px;
  height: 48px;
  background-color: var(--accent-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto var(--space-sm);
}

.step__title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-heading);
}

.step__text {
  font-size: 0.95rem;
  color: #666;
}

/* --- About Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-sand) 0%, var(--color-peach) 100%);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-md);
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.about__content h2 {
  margin-bottom: var(--space-md);
}

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

.about__certifications {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
  border: 1px solid rgba(234, 227, 209, 0.5);
}

.about__certifications h3 {
  margin-bottom: var(--space-sm);
}

.about__cert-list {
  list-style: none;
}

.about__cert-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--bg-section);
}

.about__cert-list li:last-child {
  border-bottom: none;
}

.about__cert-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 700;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-graphite);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  max-width: 360px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer__links a:hover {
  color: var(--accent-primary);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* --- Page Header (inner pages) --- */
.page-header {
  background-color: var(--bg-section);
  padding: var(--space-xl) 0;
  text-align: center;
}

.page-header__title {
  margin-bottom: var(--space-xs);
}

.page-header__subtitle {
  color: #666;
  font-size: 1.1rem;
}

/* --- Travel Info --- */
.travel-info {
  background-color: var(--bg-section);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-peach) 0%, var(--color-terracotta) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.cta-banner p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  opacity: 0.95;
}

.cta-banner .btn {
  background-color: var(--color-white);
  color: var(--accent-hover);
  border-color: var(--color-white);
}

.cta-banner .btn:hover {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* --- Booking page grid --- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* --- Success message --- */
.form-success {
  text-align: center;
  padding: var(--space-xl);
}

.form-success__icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

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

/* Tablet */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-lg);
    transition: right var(--transition);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav--open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--bg-section);
  }

  .nav__link::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-sm);
  }

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

  .hero__content {
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__image {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .about__image-placeholder {
    max-width: 320px;
    margin: 0 auto;
    position: static;
  }

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

  .service-detail__header {
    flex-direction: column;
  }
}

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

  .hero__buttons .btn {
    width: 100%;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .service-detail {
    padding: var(--space-md);
  }

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

/* Overlay for mobile menu */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
}

.nav-overlay--visible {
  display: block;
}
