/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Logo fallback text */
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  flex-direction: column;
  line-height: 1.1;
  letter-spacing: 1px;
}
.logo-text span { font-size: 0.65rem; letter-spacing: 3px; color: var(--royal); font-family: 'Inter', sans-serif; font-weight: 600; }

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 8%;
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(65,105,225,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  animation: heroSlideIn 0.9s cubic-bezier(0.25,0.46,0.45,0.94) both;
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--royal);
  background: rgba(65,105,225,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 22px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--royal);
}

.hero-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.hero-link {
  color: var(--royal);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s, letter-spacing 0.3s;
}
.hero-link:hover { letter-spacing: 0.5px; }

/* Hero image */
.hero-image {
  flex: 1;
  max-width: 1000px;
  position: relative;
}
.hero-image img {
  width: 100%;
  height: 660px;
  object-fit: cover;
  border-radius: 30px 30px 100px 30px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--black);
  color: #fff;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: badgePop 0.8s 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.badge-num { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--gold); line-height: 1; }
.badge-text { font-size: 0.72rem; color: #aaa; margin-top: 4px; text-align: center; max-width: 100px; line-height: 1.3; }

/* ===== SPECIALITY ===== */
.speciality {
  padding: var(--section-gap) 0;
  text-align: center;
}
.speciality .container { display: flex; flex-direction: column; align-items: center; }

.speciality-cards {
  display: flex;
  gap: 24px;
  margin-top: 48px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  align-items: stretch;
}

/* Base card */
.spec-card {
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 40px 32px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease,
              flex 0.5s ease, max-width 0.5s ease, opacity 0.4s ease, padding 0.4s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Front face (always visible in normal state) */
.spec-card-front {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  transition: opacity 0.3s ease;
}

/* Detail panel (hidden by default) */
.spec-card-detail {
  display: flex;
  gap: 28px;
  align-items: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, max-height 0.5s ease;
  width: 100%;
}
.spec-card-detail img {
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}
.spec-detail-text { flex: 1; text-align: left; }
.spec-detail-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--black);
  margin: 0 0 12px;
}
.spec-detail-text p {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.75;
  margin: 0 0 20px;
}
.spec-detail-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.spec-close {
  background: none;
  border: 2px solid #ccc;
  color: #888;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.spec-close:hover { border-color: #999; color: #444; }

/* Hover on normal card */
.spec-card:not(.active):not(.hidden):hover {
  transform: translateY(-8px);
  border-color: var(--royal);
  box-shadow: 0 20px 50px rgba(65,105,225,0.15);
}

/* ACTIVE state — expanded */
.spec-card.active {
  flex: 3;
  max-width: 100%;
  border-color: var(--royal);
  box-shadow: 0 20px 60px rgba(65,105,225,0.18);
  padding: 36px 36px;
  cursor: default;
}
.spec-card.active .spec-card-front {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}
.spec-card.active .spec-card-detail {
  opacity: 1;
  max-height: 400px;
  pointer-events: all;
}

/* HIDDEN state — faded out */
.spec-card.hidden {
  flex: 0;
  min-width: 0;
  max-width: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border: none;
  box-shadow: none;
}

.spec-icon { font-size: 1.4rem; color: var(--royal); margin-bottom: 18px; }
.spec-card-front h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin: 0 0 12px;
  color: var(--black);
}
.spec-card-front p { font-size: 0.95rem; color: #666; line-height: 1.65; margin: 0; flex: 1; }
.spec-arrow {
  margin-top: 24px;
  color: var(--royal);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.3s;
  display: inline-block;
}
.spec-card:not(.active):hover .spec-arrow { transform: translateX(6px); }

/* ===== GALLERY STRIP ===== */
.home-gallery { padding: 20px 0 var(--section-gap); overflow: hidden; }
.gallery-strip {
  display: flex;
  gap: 16px;
  padding: 0 8%;
}
.strip-item { flex: 1; overflow: hidden; border-radius: 16px; }
.strip-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.strip-item:hover img { transform: scale(1.05); }

/* ===== WHY GRISHA ===== */
.why-grisha {
  padding: var(--section-gap) 0;
  background: #fff;
}
.why-grisha .container {
  display: flex;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}
.why-text { flex: 1; min-width: 280px; }
.why-stats {
  flex: 1;
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat {
  background: var(--off-white);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--light-gray);
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.07); }
.stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--royal);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-l { font-size: 0.88rem; color: #666; line-height: 1.4; }

/* ===== CTA ===== */
.home-cta {
  padding: 80px 8%;
  background: var(--royal);
  text-align: center;
}
.cta-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin: 0 0 14px;
}
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 32px; }
.home-cta .book-btn { background: #fff; color: var(--royal); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.home-cta .book-btn:hover { background: var(--off-white); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 60px 6%; gap: 40px; min-height: auto; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image { max-width: 100%; }
  .hero-image img { height: 400px; border-radius: 24px; }
  .hero-badge { bottom: -12px; left: 12px; }
  .gallery-strip { flex-direction: column; padding: 0 5%; }
  .strip-item img { height: 220px; }
  .why-grisha .container { flex-direction: column; gap: 50px; }
  .why-stats { width: 100%; }

  /* Expanded card on mobile stacks vertically */
  .spec-card.active { padding: 24px; }
  .spec-card-detail { flex-direction: column; gap: 16px; }
  .spec-card-detail img { width: 100%; height: 80px; }
  .spec-card.hidden { max-width: 0; min-width: 0; padding: 0; }
}
@media (max-width: 600px) {
  .speciality-cards { flex-direction: column; }
  .spec-card { max-width: 100%; }
  .spec-card.hidden { display: none; }
  .why-stats { grid-template-columns: 1fr 1fr; }
}
