/* ============================================================
   Emersion Úvod Page Styling — Global MCP CSS
   ============================================================ */

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

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45, 85, 152, 0.7); }
  50% { box-shadow: 0 0 0 10px rgba(45, 85, 152, 0); }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes iconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   GRADIENT BACKGROUND — Subtle Professional Blue
   ============================================================ */
body {
  background: linear-gradient(135deg, 
    var(--c-primary-50) 0%,      /* velmi světlá modrá */
    var(--c-primary-100) 25%,     /* světlá modrá */
    #ffffff 50%,                  /* čistě bílá uprostřed */
    var(--c-primary-100) 75%,     /* zpět na světlou modrou */
    var(--c-primary-50) 100%      /* zpět na velmi světlou */
  );
  background-attachment: fixed;
  min-height: 100vh;
}

.hero { position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(45, 85, 152, 0.15) 0%, rgba(74, 144, 226, 0.08) 100%); pointer-events: none; z-index: 1; }
.hero__holder { animation: fadeInUp 500ms ease-out; }
.hero__title h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.hero__desc { font-size: clamp(1rem, 2vw, 1.3rem); max-width: 600px; line-height: 1.6; font-weight: 400; }

/* ============================================================
   KONTAKT PAGE — Contact Cards, Forms, Styling
   ============================================================ */

/* Contact Grid Cards */
.contact-grid { animation: fadeInUp 300ms ease-out; }

.contact-card {
  background: white;
  border: 1px solid var(--c-gray-200);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeInUp 300ms ease-out;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(45, 85, 152, 0.15);
  border-color: var(--c-primary-200);
}

.contact-card__icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-primary-100) 0%, var(--c-primary-50) 100%);
  border-radius: 12px;
  color: var(--c-primary);
  font-size: 2rem;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-card:hover .contact-card__icon {
  transform: translateY(-8px) scale(1.1);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-600) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(45, 85, 152, 0.25);
}

.contact-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--c-gray-900);
}

.contact-card__text {
  color: var(--c-gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-card__link {
  display: inline-block;
  color: var(--c-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--c-primary);
  transition: all 300ms;
  padding-bottom: 2px;
}

.contact-card__link:hover {
  color: var(--c-primary-700);
  border-color: var(--c-primary-700);
}

/* Contact Form */
.contact-form-wrapper {
  animation: fadeInUp 500ms ease-out;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-weight: 600;
  color: var(--c-gray-900);
  font-size: 0.95rem;
}

.contact-form__input,
.contact-form__textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--c-gray-300);
  border-radius: 8px;
  font-family: var(--ff-default);
  font-size: 1rem;
  transition: all 300ms;
  background: white;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(45, 85, 152, 0.1);
  background: #fbf9ff;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--c-gray-500);
}

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

.contact-form .button {
  align-self: flex-start;
  margin-top: 1rem;
}

/* Contact Info Panel */
.contact-info-panel {
  background: linear-gradient(135deg, white 0%, var(--c-primary-50) 100%);
  border: 1px solid var(--c-primary-200);
  border-radius: 12px;
  padding: 2.5rem;
  animation: fadeInUp 500ms ease-out;
}

.contact-hours {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-hours__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border-left: 4px solid var(--c-primary);
}

.contact-hours__day {
  font-weight: 600;
  color: var(--c-gray-900);
}

.contact-hours__time {
  color: var(--c-primary);
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-info-panel__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary-300), transparent);
  margin: 2rem 0;
}

.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-list__item {
  padding: 1.25rem;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--c-gray-200);
  line-height: 1.7;
  color: var(--c-gray-700);
  transition: all 300ms;
}

.contact-info-list__item:hover {
  border-color: var(--c-primary);
  box-shadow: 0 4px 12px rgba(45, 85, 152, 0.1);
}

.contact-info-list__item strong {
  color: var(--c-primary);
  display: block;
  margin-bottom: 0.5rem;
}

/* Contact Map */
.contact-map-placeholder {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(45, 85, 152, 0.15);
}

.contact-map-placeholder svg {
  width: 100%;
  height: auto;
  display: block;
}

/* FEATURE CARDS */
.feature { animation: fadeInUp 300ms ease-out; transition: transform 300ms, box-shadow 300ms; border-radius: 12px; padding: 2rem 1.5rem; }
.feature:hover { transform: translateY(-8px); }
.feature--highlighted { background: linear-gradient(135deg, var(--c-primary-50) 0%, var(--c-primary-100) 100%); border-left: 4px solid var(--c-primary); position: relative; overflow: hidden; }
.feature--highlighted::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%); pointer-events: none; border-radius: 50%; }
.feature__icon { width: 60px; height: 60px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; transition: transform 300ms; }
.feature--highlighted .feature__icon { width: 70px; height: 70px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3)); border-radius: 50%; box-shadow: 0 4px 15px rgba(45, 85, 152, 0.2); }
.feature:hover .feature__icon { transform: scale(1.1) rotate(5deg); }
.feature__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--c-primary); }
.feature--left { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid var(--c-gray-100); }
.feature--left:last-child { border-bottom: none; }

/* CARD STYLING - ENHANCED FOR SERVICES */
.card {
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 300ms ease-out;
  position: relative;
}

.card:not(.card--plain) {
  border: 1px solid var(--c-gray-200);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(45, 85, 152, 0.15);
  border-color: var(--c-primary-200);
}

/* SERVICE CARD SPECIAL STYLING */
.card--plain {
  background: white;
  border: 1px solid var(--c-gray-100);
  position: relative;
  overflow: visible;
}

.card--plain::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.card--plain:hover::before {
  transform: scaleX(1);
}

.card--plain::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(45, 85, 152, 0.03) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms;
}

.card--plain:hover::after {
  opacity: 1;
}

.card--plain:hover {
  box-shadow: 0 16px 32px rgba(45, 85, 152, 0.12);
  background: linear-gradient(135deg, white 0%, rgba(45, 85, 152, 0.02) 100%);
}

.card__img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary-100) 0%, var(--c-primary-50) 100%);
}

.card__img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(45, 85, 152, 0.1) 0%, rgba(74, 144, 226, 0.05) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 300ms;
}

.card:hover .card__img-wrap::before {
  opacity: 1;
}

.card__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 300ms;
}

.card:hover .card__img {
  transform: scale(1.05);
}

.card__body {
  padding: 1.75rem;
  position: relative;
  z-index: 2;
}

/* SERVICE CARD ICON STYLING */
.card--plain .feature__icon {
  margin: 0 auto 1.5rem;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--c-primary-100) 0%, var(--c-primary-50) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(45, 85, 152, 0.1);
}

.card--plain:hover .feature__icon {
  transform: translateY(-8px) scale(1.1);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-600) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(45, 85, 152, 0.25);
}

.card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-primary);
  background: var(--c-primary-100);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 300ms;
}

.card:hover .card__title a {
  color: var(--c-primary);
}

.card__text {
  color: var(--c-gray-600);
  line-height: 1.6;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  transition: color 300ms;
}

.card--plain:hover .card__text {
  color: var(--c-gray-700);
}

/* STATS SECTION - ENHANCED */
.stats {
  animation: fadeInUp 500ms ease-out;
  display: grid;
  gap: 1.5rem;
}

.stats__item {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--c-gray-100);
}

.stats__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms ease;
}

.stats__item:hover::before {
  transform: scaleX(1);
}

.stats__item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(45, 85, 152, 0.05) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms;
}

.stats__item:hover::after {
  opacity: 1;
}

.stats__item:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 20px 40px rgba(45, 85, 152, 0.15);
  border-color: var(--c-primary-200);
  background: linear-gradient(135deg, white 0%, var(--c-primary-50) 100%);
}

.stats__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: countUp 800ms ease-out;
  letter-spacing: -1px;
  position: relative;
}

.stats__number::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  border-radius: 3px;
  opacity: 0;
  animation: fadeInUp 800ms ease-out 300ms forwards;
}

.stats__suffix {
  font-size: 0.6em;
  font-weight: 600;
  margin-left: 2px;
}

.stats__label {
  display: block;
  font-size: 0.95rem;
  color: var(--c-gray-600);
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.5;
  position: relative;
  z-index: 2;
  transition: color 300ms;
}

.stats__item:hover .stats__label {
  color: var(--c-primary);
  font-weight: 600;
}

/* TESTIMONIALS - ENHANCED PADDING + SPACING FROM EDGES */
.testimonial {
  border-radius: 12px;
  animation: fadeInUp 300ms ease-out;
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  margin: 0 1rem;
}

.testimonial:not(.testimonial--plain) {
  padding: 2.5rem;
  border: 1px solid var(--c-gray-200);
}

.testimonial--highlighted {
  background: linear-gradient(135deg, white 0%, var(--c-primary-50) 100%);
  border-left: 4px solid var(--c-primary);
  box-shadow: 0 4px 12px rgba(45, 85, 152, 0.1);
}

.testimonial--highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 85, 152, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50px, -50px);
  pointer-events: none;
}

.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(45, 85, 152, 0.18);
}

.testimonial__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--c-gray-800);
  font-weight: 500;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 2rem;
  letter-spacing: 0.3px;
}

.testimonial__text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.75rem;
  font-size: 3.5rem;
  color: var(--c-primary-200);
  opacity: 0.7;
  font-weight: 300;
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(45, 85, 152, 0.1);
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(45, 85, 152, 0.15);
  flex-shrink: 0;
  transition: transform 300ms;
}

.testimonial:hover .testimonial__avatar {
  transform: scale(1.08);
}

.testimonial__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.testimonial__name {
  font-weight: 700;
  color: var(--c-primary);
  font-size: 1rem;
  letter-spacing: -0.3px;
}

.testimonial__role {
  font-size: 0.85rem;
  color: var(--c-gray-600);
  font-weight: 500;
}

/* ACCORDION */
.accordion { animation: fadeInUp 500ms ease-out; }
.accordion__item { border-bottom: 1px solid var(--c-gray-200); transition: background 300ms; }
.accordion__item:last-child { border-bottom: none; }
.accordion__item:hover { background: var(--c-gray-50); }
.accordion__button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.5rem; border: none; background: transparent; font-size: 1.1rem; font-weight: 600; color: var(--c-gray-900); cursor: pointer; transition: all 300ms; text-align: left; }
.accordion__button:hover { color: var(--c-primary); padding-left: 2rem; }
.accordion__button::after { content: ''; width: 20px; height: 20px; display: inline-block; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform 300ms; margin-left: 1rem; flex-shrink: 0; }
.accordion__button[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__content { padding: 0 1.5rem 1.5rem; color: var(--c-gray-700); line-height: 1.7; }
.accordion__content p { margin: 0; }

/* CTA SECTION - BUTTONS */
section[class*="bg-primary"] {
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

section[class*="bg-primary"]::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(100px, -100px);
  pointer-events: none;
}

section[class*="bg-primary"] h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

section[class*="bg-primary"] p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

section[class*="bg-primary"] > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

section[class*="bg-primary"] .button {
  transition: all 300ms;
  font-weight: 600;
  border-radius: 8px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  position: relative;
  cursor: pointer;
  text-align: center;
  line-height: 1;
}

section[class*="bg-primary"] .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* GENERAL BUTTONS */
.button {
  transition: all 300ms;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  position: relative;
  text-align: center;
  line-height: 1;
}

.button--big {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.button--outlined {
  border: 2px solid currentColor;
}

/* GENERAL */
section { animation: fadeInUp 300ms ease-out; }
h2 { position: relative; padding-bottom: 1rem; }
h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 3px; background: linear-gradient(90deg, var(--c-primary) 0%, transparent 100%); border-radius: 3px; }

@media (max-width: 768px) {
  .feature { padding: 1.5rem 1rem; }
  .card__body { padding: 1.25rem; }
  .stats__item { padding: 1.5rem 1rem; }
  .testimonial { margin: 0 0.5rem; }
  .testimonial { padding: 2rem 1.5rem; }
  .testimonial__footer { gap: 1rem; }
  .testimonial__avatar { width: 48px; height: 48px; }
  .accordion__button { padding: 1.25rem; font-size: 1rem; }
  section[class*="bg-primary"] > div { flex-direction: column; align-items: flex-start; gap: 1rem; }
  h2 { font-size: 1.5rem !important; }
  .contact-card { padding: 2rem 1.5rem; }
  .contact-info-panel { padding: 2rem; }
  .contact-form .button { align-self: stretch; }
}
