/* ============================================================
   IVF Clinic in Cyprus — Custom CSS
   Only styles Tailwind cannot handle: gradients, animations,
   complex transitions, WhatsApp pulse.
   ============================================================ */

:root {
  /* Primary */
  --deep-navy: #1B1464;
  --navy-light: #2A2080;
  /* Accent */
  --magenta: #E91E90;
  --magenta-dark: #C4177A;
  --magenta-light: #F5A5D0;
  /* Hospital Trust */
  --kamiloglu-blue: #1A3C8F;
  /* Neutrals */
  --charcoal: #2D2D3A;
  --grey-600: #6B7280;
  --grey-300: #D1D5DB;
  --grey-100: #F3F4F6;
  /* Backgrounds */
  --warm-white: #FAF8FC;
  --soft-lavender: #F0EBF5;
  --white: #FFFFFF;
  /* Functional */
  --success: #10B981;
  --coral: #FF6B6B;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--warm-white);
  color: var(--charcoal);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
}
h1 { letter-spacing: -0.02em; }
h2 { letter-spacing: -0.01em; }
h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Buttons ---------- */

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--magenta) 0%, var(--coral) 100%);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(233, 30, 144, 0.3);
  text-align: center;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(233, 30, 144, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--deep-navy);
  border: 2px solid var(--deep-navy);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-secondary:hover {
  background: var(--deep-navy);
  color: #fff;
}

.btn-secondary-white {
  display: inline-block;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-secondary-white:hover {
  background: #fff;
  color: var(--deep-navy);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

/* ---------- Gradients ---------- */

.gradient-dark {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #0D0A3E 100%);
}

.gradient-cta {
  background:
    radial-gradient(ellipse at center, rgba(42, 32, 128, 0.6) 0%, transparent 70%),
    linear-gradient(135deg, var(--deep-navy) 0%, #0D0A3E 100%);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(27, 20, 100, 0.92) 0%, rgba(27, 20, 100, 0.75) 45%, rgba(27, 20, 100, 0.35) 100%);
}

/* ---------- Cards ---------- */

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

/* ---------- Header scroll behaviour ---------- */

.main-header {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.main-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.main-header.scrolled .header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.header-inner {
  transition: padding 0.3s ease;
}

/* ---------- Dropdown menus ---------- */

.nav-dropdown {
  position: relative;
}
.nav-dropdown .dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  min-width: 250px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 60;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--grey-100);
  color: var(--magenta);
}

/* ---------- WhatsApp floating button ---------- */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  animation: whatsapp-pulse 3s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

/* ---------- Scroll fade-in animation ---------- */

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- FAQ accordion ---------- */

.faq-item .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 1000px;
}
.faq-item .faq-icon {
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* ---------- Timeline ---------- */

.timeline-step {
  position: relative;
}
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 56px;
  bottom: -16px;
  width: 2px;
  background: var(--magenta-light);
}

/* ---------- Eyebrow label ---------- */

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 0.75rem;
}

/* ---------- Focus styles (accessibility) ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
}
