/* ============================================================
   Clinic Prime Istanbul — Russian Landing Page
   Custom CSS: animations, overrides, utilities
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --color-navy:       #0a1628;
  --color-navy-light: #112240;
  --color-navy-mid:   #1a3354;
  --color-gold:       #c9a84c;
  --color-gold-light: #e8c97a;
  --color-white:      #ffffff;
  --color-off-white:  #f8f5f0;
  --color-gray:       #8892a4;
  --color-light-gray: #e2e8f0;
  --color-success:    #22c55e;
  --color-whatsapp:   #25D366;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  color: var(--color-navy);
  background: #fff;
}

/* ── Fade-in on scroll ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }

/* ── Sticky Header ── */
#main-header {
  background: transparent;
}
#main-header.scrolled {
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(10,22,40,0.12);
}
#main-header.scrolled .nav-link {
  color: var(--color-navy) !important;
}
#main-header .nav-link {
  color: #ffffff;
  transition: color 0.3s ease;
  position: relative;
}
#main-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width 0.3s ease;
}
#main-header .nav-link:hover::after {
  width: 100%;
}

/* ── Logo swap ── */
#logo-dark {
  display: none;
}
#main-header.scrolled #logo-light {
  display: none;
}
#main-header.scrolled #logo-dark {
  display: block;
}

/* Mobile menu */
#mobile-menu {
  background: var(--color-navy);
}
#mobile-menu a {
  color: #fff;
  display: block;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
#mobile-menu a:hover {
  background: rgba(201,168,76,0.12);
  color: var(--color-gold);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold);
  color: var(--color-navy);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(201,168,76,0.3);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--color-gold-light);
  box-shadow: 0 6px 25px rgba(201,168,76,0.5);
  transform: translateY(-1px);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-gold);
  color: var(--color-gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-navy);
  transform: translateY(-1px);
}

/* ── Form inputs ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-light-gray);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--color-navy);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-input::placeholder {
  color: #9ca3af;
}
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238892a4' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ── Section headings ── */
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: var(--color-gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}

/* ── Gold underline heading decoration ── */
.heading-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.heading-underline-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ── Hero scroll indicator ── */
.scroll-indicator {
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

/* ── About section image decoration ── */
.about-img-wrapper {
  position: relative;
}
.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80%;
  height: 80%;
  border: 3px solid var(--color-gold);
  border-radius: 1rem;
  z-index: 0;
}
/* The inner clip div holds the overflow:hidden + scale */
.about-img-wrapper > div {
  position: relative;
  z-index: 1;
}

/* ── Stat badge ── */
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gray);
  margin-top: 0.25rem;
}

/* ── Treatment card ── */
.treatment-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10,22,40,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(10,22,40,0.15);
}
.treatment-card .card-img {
  height: 220px;
  overflow: hidden;
}
.treatment-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.treatment-card:hover .card-img img {
  transform: scale(1.08);
}

/* ── Doctor card ── */
.doctor-card {
  background: var(--color-navy-mid);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: background 0.3s ease, transform 0.3s ease;
}
.doctor-card:hover {
  background: var(--color-navy-light);
  transform: translateY(-4px);
}

/* ── Instagram reel placeholder ── */
.reel-placeholder {
  aspect-ratio: 9/16;
  background: var(--color-navy-mid);
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
}
.reel-placeholder:hover {
  border-color: var(--color-gold);
}

/* ── Why Turkey icon box ── */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 15px rgba(10,22,40,0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.why-card:hover {
  box-shadow: 0 8px 30px rgba(10,22,40,0.12);
  transform: translateY(-3px);
}
.why-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

/* ── VIP feature card ── */
.vip-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.vip-card:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}
.vip-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ── Testimonial card ── */
.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 2rem;
}
.testimonial-card .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  line-height: 0.5;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

/* ── Stars ── */
.stars {
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

/* ── Modal ── */
#contact-modal {
  display: none;
}
#contact-modal.active {
  display: flex;
}
#modal-panel {
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#contact-modal.active #modal-panel {
  transform: scale(1);
  opacity: 1;
}

/* ── Floating buttons pulse ── */
.float-btn-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse-ring 2s ease-out infinite;
  opacity: 0;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ── Floating consultation button (circle → pill on hover) ── */
.float-consult-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--color-gold);
  color: var(--color-navy);
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  width: 3.5rem;
  height: 3.5rem;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1),
              gap 0.3s ease,
              box-shadow 0.2s ease,
              transform 0.2s ease;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
  white-space: nowrap;
}
.float-consult-btn:hover {
  width: 14rem;
  gap: 0.5rem;
  padding: 0 1.25rem;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.55);
}
.float-consult-label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.25s ease 0.1s;
  pointer-events: none;
}
.float-consult-btn:hover .float-consult-label {
  max-width: 12rem;
  opacity: 1;
}

/* ── Reel lightbox ── */
#reel-lightbox.open {
  display: flex;
}

/* ── Footer ── */
.footer-link {
  color: var(--color-gray);
  font-size: 0.875rem;
  transition: color 0.2s;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}
.footer-link:hover {
  color: var(--color-gold);
}
