/* ===================================================
   HairCortex — Custom CSS
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  color: #102438;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: #1c74c4; color: #fff; }

/* === ANIMATIONS === */
@keyframes hcPulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* === NAV HEADER === */
#hc-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  background: rgba(11, 32, 58, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}
#hc-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px -16px rgba(13, 44, 82, .45);
  border-bottom: 1px solid rgba(13, 44, 82, 0.08);
}

/* Logo */
.hc-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter .35s ease;
}
#hc-header.scrolled .hc-logo-img { filter: none; }
.hc-word-hair   { color: #ffffff; transition: color .35s ease; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; }
.hc-word-cortex { color: #ffffff; transition: color .35s ease; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 22px; line-height: 1; }
.hc-logo-tag    { color: rgba(255,255,255,.7); transition: color .35s ease; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
#hc-header.scrolled .hc-word-hair   { color: #2186c4; }
#hc-header.scrolled .hc-word-cortex { color: #0d2c52; }
#hc-header.scrolled .hc-logo-tag    { color: #7d93aa; }

/* Desktop nav links */
.hc-nav-link {
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 14.5px;
  padding: 6px 0;
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}
#hc-header.scrolled .hc-nav-link { color: #0d2c52; }
.hc-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: #1c74c4;
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.hc-nav-link.active::after,
.hc-nav-link:hover::after { transform: scaleX(1); }

/* Services dropdown */
.hc-dropdown { position: relative; }
.hc-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.hc-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 48px -12px rgba(13,44,82,.35);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 10;
}
.hc-dropdown:hover .hc-dropdown-menu { display: flex; }
.hc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 9px;
  color: #0d2c52;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s ease;
}
.hc-dropdown-item:hover { background: #eef5fc; }

/* Nav CTA button */
.hc-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1c74c4, #1560a8);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px -8px rgba(28,116,196,.7);
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.hc-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(28,116,196,.8); }

/* Hamburger button */
.hc-hamburger {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .25s ease;
}
#hc-header.scrolled .hc-hamburger {
  background: rgba(13,44,82,.07);
  border-color: rgba(13,44,82,.12);
  color: #0d2c52;
}
.hc-hamburger:hover { background: rgba(255,255,255,.22); }
#hc-header.scrolled .hc-hamburger:hover { background: rgba(13,44,82,.12); }

/* Desktop / Mobile nav visibility */
.hc-desktop-nav { display: flex; align-items: center; gap: 28px; }
.hc-mobile-nav  { display: none; align-items: center; gap: 12px; }
@media (max-width: 919px) {
  .hc-desktop-nav { display: none; }
  .hc-mobile-nav  { display: flex; }
}

/* Procedure page responsive grids (FUE & DHI) */
.hc-page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hc-page-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .hc-page-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hc-page-hero-grid .hc-page-hero-img {
    display: none;
  }
  .hc-page-content-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile drawer */
#hc-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
#hc-mobile-drawer.open { display: flex; flex-direction: column; }
.hc-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,18,36,.6);
  backdrop-filter: blur(4px);
}
.hc-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.25);
}

/* === HERO CAROUSEL === */
.hc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hc-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hc-dot {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: width .4s ease, background .4s ease;
  padding: 0;
  width: 8px;
}
.hc-dot.active {
  width: 30px;
  background: #2b8fe0;
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* === HOVER INTERACTIONS === */
.hc-social-link {
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.hc-social-link:hover {
  background: #1c74c4 !important;
  transform: translateY(-3px);
  color: #fff !important;
}
.hc-footer-link { transition: color .2s ease; }
.hc-footer-link:hover { color: #fff !important; }

.hc-contact-card { transition: background .28s ease, transform .28s ease; }
.hc-contact-card:hover { background: rgba(255,255,255,.13) !important; transform: translateX(4px); }

.hc-service-card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.hc-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px -32px rgba(13,44,82,.4) !important;
  border-color: #cfe1f3 !important;
}
.hc-ba-card     { transition: transform .35s ease, box-shadow .35s ease; }
.hc-ba-card:hover { transform: translateY(-8px); box-shadow: 0 36px 64px -34px rgba(13,44,82,.5) !important; }

.hc-result-card { transition: transform .35s ease, box-shadow .35s ease; }
.hc-result-card:hover { transform: translateY(-8px); box-shadow: 0 36px 64px -34px rgba(13,44,82,.5) !important; }

.hc-gallery-item { transition: transform .35s ease, box-shadow .35s ease; }
.hc-gallery-item:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -24px rgba(13,44,82,.5) !important; }

.hc-cta-btn { transition: transform .25s ease, box-shadow .25s ease; }
.hc-cta-btn:hover { transform: translateY(-3px); }
.hc-cta-btn-outline { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.hc-cta-btn-outline:hover { background: #1c74c4 !important; color: #fff !important; border-color: #1c74c4 !important; }

.hc-submit-btn { transition: transform .25s ease, box-shadow .25s ease; }
.hc-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(22,163,74,.9) !important; }

.hc-kvkk-link { transition: background .25s ease, color .25s ease; }
.hc-kvkk-link:hover { background: #1c74c4 !important; color: #fff !important; }

.hc-tech-card { transition: transform .35s ease, box-shadow .35s ease; }
.hc-tech-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -24px rgba(13,44,82,.4) !important; }

.hc-step-card { transition: transform .35s ease, box-shadow .35s ease; }
.hc-step-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -24px rgba(13,44,82,.4) !important; }

/* === INPUT FOCUS === */
.hc-input:focus {
  outline: none;
  border-color: #1c74c4 !important;
  box-shadow: 0 0 0 4px rgba(28,116,196,.14) !important;
  background: #fff !important;
}

/* === GALLERY FILTER === */
.hc-filter-btn { transition: background .25s ease, color .25s ease, border-color .25s ease; }
.hc-filter-btn.active {
  background: #1c74c4 !important;
  color: #fff !important;
  border-color: #1c74c4 !important;
}

/* === FAQ ACCORDION === */
.hc-faq-icon { transition: transform .3s ease; }
.hc-faq-item.open .hc-faq-icon { transform: rotate(180deg); }
.hc-faq-body { display: none; }
.hc-faq-item.open .hc-faq-body { display: block; }
.hc-faq-icon-wrap { transition: background .3s ease; }
.hc-faq-item.open .hc-faq-icon-wrap {
  background: #1c74c4 !important;
}
.hc-faq-item.open .hc-faq-icon-wrap svg {
  stroke: #fff !important;
}

/* green FAQ variant (DHI / FUE pages) */
.hc-faq-green.open .hc-faq-icon-wrap { background: #16a34a !important; }

/* === WHATSAPP FLOAT === */
.hc-wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 1200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  animation: hcPulseRing 2.2s infinite;
  transition: transform .25s ease;
}
.hc-wa-float:hover { transform: scale(1.08); }

/* === COOKIE BANNER === */
#hc-cookie-banner { display: none; }

/* === TESTIMONIAL CARD === */
.hc-testimonial { transition: transform .35s ease, box-shadow .35s ease; }
.hc-testimonial:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -24px rgba(13,44,82,.4) !important; }

/* === MISC UTILITIES === */
.hc-section-pad { padding: clamp(64px, 9vw, 104px) 24px; }
.hc-container { max-width: 1200px; margin: 0 auto; }
