/*
Theme Name: Astra Child
Template: astra
*/

/* =====================================================
   RESET / BASE
===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f2a44;
  line-height: 1.6;
  background: #ffffff;
}

/* Astra content reset (home only) */
.home .ast-container,
.home .site-content,
.home .content-area,
.home .site-main,
.home .entry-content {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* =====================================================
   GLOBAL UTILITIES
===================================================== */

.cyto-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.cyto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

/* =====================================================
   HEADER – HOME
===================================================== */

/* FIX: Show site title on home header */
.home .site-header .site-title,
.home .site-header .site-title a {
  color: #3fceeb;
}

.home .site-header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
}

.home .site-header::after {
  content: "Cytoglia";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,42,68,0.55),
    rgba(15,42,68,0.25),
    transparent
  );
  z-index: -1;
}

.home .site-header a {
  color: rgba(255,255,255,0.9);
}

.home .site-header a:hover {
  color: #ffffff;
}

/* =====================================================
   HERO SECTION
===================================================== */

.cyto-hero-slider {
  position: relative;
  height: calc(100vh - 90px);
  min-height: 480px;
  overflow: hidden;
  background: #0f2a44;
}

.cyto-hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,42,68,0.85),
    rgba(15,42,68,0.45)
  );
  z-index: 2;
}

.cyto-hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: center;
}

.cyto-hero-content h1 {
  font-size: 52px;
  color: #ffffff;
  max-width: 680px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.cyto-hero-content p {
  font-size: 18px;
  color: #e6edf5;
  max-width: 520px;
}

.cyto-hero-content .cyto-btn {
  margin-top: 28px;
  background: #ffffff;
  color: #0f2a44;
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}

.cyto-hero-content .cyto-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.3);
}

/* ===== HERO SLIDES FIX ===== */

.cyto-slides {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cyto-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: cytoFade 18s infinite;
}

/* UPDATE paths if needed */
.slide-1 {
  background-image: url('/wp-content/uploads/2025/12/slider-1.jpg');
  animation-delay: 0s;
}
.slide-2 {
  background-image: url('/wp-content/uploads/2025/12/slider-2.jpg');
  animation-delay: 6s;
}
.slide-3 {
  background-image: url('/wp-content/uploads/2025/12/slider-3.jpg');
  animation-delay: 12s;
}

@keyframes cytoFade {
  0% { opacity: 0 }
  8% { opacity: 1 }
  30% { opacity: 1 }
  38% { opacity: 0 }
  100% { opacity: 0 }
}


/* ================= THERAPEUTIC AREAS – FIX ================= */

.home .cyto-areas {
  background: #ffffff;
  padding: 72px 0 64px;
}

.home .cyto-areas .cyto-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* Card */
.home .cyto-areas .cyto-box {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 18px;
  padding: 28px 24px 30px;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* Hover */
.home .cyto-areas .cyto-box:hover {
  transform: translateY(-6px);
  border-color: #1f4fd8;
  box-shadow: 0 22px 48px rgba(15,42,68,.12);
}

/* Icon wrapper */
.home .cyto-areas .cyto-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f2f6fb;
  border-radius: 14px;
}

.home .cyto-areas .cyto-icon img {
  max-width: 34px;
  max-height: 34px;
}

/* Title */
.home .cyto-areas .cyto-box span {
  font-size: 17px;
  font-weight: 600;
  color: #0f2a44;
  margin-bottom: 8px;
}

/* Description */
.home .cyto-areas .cyto-box p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #4b647c;
  margin: 0;
}

/* Remove link-blue effect */
.home .cyto-areas .cyto-box,
.home .cyto-areas .cyto-box * {
  color: inherit;
}

/* Subtle arrow on hover */
.home .cyto-areas .cyto-box::after {
  content: "→";
  margin-top: auto;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  color: #1f4fd8;
}

.home .cyto-areas .cyto-box:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1200px) {
  .home .cyto-areas .cyto-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home .cyto-areas {
    padding: 56px 0;
  }

  .home .cyto-areas .cyto-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home .cyto-areas .cyto-box {
    padding: 24px 22px;
  }
}


/* =====================================================
   ABOUT SECTION
===================================================== */

.cyto-about {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.cyto-about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
}

.cyto-about-stats {
  display: grid;
  gap: 18px;
}

.about-stat {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 14px;
  padding: 22px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15,42,68,.1);
}

/* ===== SCIENTIFIC APPROACH POLISH ===== */

.cyto-approach {
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  padding: 72px 0 56px;
}

.cyto-approach h2 {
  font-size: 34px;
  margin-bottom: 40px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.approach-card {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

/* subtle accent bar */
.approach-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #1f4fd8, #4fa3ff);
  opacity: 0;
  border-radius: 18px 18px 0 0;
  transition: opacity .3s ease;
}

.approach-card:hover::before {
  opacity: 1;
}

.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(15,42,68,.12);
}

.approach-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.approach-card p {
  font-size: 15px;
  color: #4b647c;
}


/* =====================================================
   PIPELINE / PUBLICATIONS / NEWS
===================================================== */

.cyto-highlights {
  background: #f8fbff;
}

.cyto-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.highlight-card {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 16px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15,42,68,.08);
}
/* ===== HIGHLIGHTS SECTION REFINEMENT ===== */

.cyto-highlights {
  background: #f8fbff;
  padding: 56px 0;
}

.cyto-highlights-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 24px;
}

.cyto-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* refined cards */
.highlight-card {
  background: #ffffff;
  border: 1px solid #e6eef7;
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none;
  color: #0f2a44;
  position: relative;
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.highlight-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: 14.5px;
  color: #4b647c;
  line-height: 1.5;
}

/* hover = clear affordance */
.highlight-card:hover {
  transform: translateY(-4px);
  border-color: #1f4fd8;
  box-shadow: 0 14px 30px rgba(15,42,68,.08);
}

/* arrow cue */
.highlight-card::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}

.highlight-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}


/* =====================================================
   CTA
===================================================== */

.cyto-cta {
  background: linear-gradient(180deg, #0f2a44, #0c243b);
  color: #fcf7f7;
  text-align: center;
}

.cyto-cta-inner {
  max-width: 760px;
  margin: auto;
  padding: 64px 24px;
}

.cyto-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cyto-btn-primary {
  background: #ffffff;
  color: #0f2a44;
}

.cyto-btn-secondary {
  border: 1px solid rgba(255,255,255,.4);
  color: #ffffff;
}

/* =====================================================
   FOOTER – CYTOGLIA (FINAL)
   ===================================================== */

.cyto-footer {
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #ffffff 100%
  );
  border-top: 1px solid rgba(15,42,68,0.08);
  color: #0f2a44;
}

/* ---------- TOP ---------- */

.cyto-footer-top {
  padding: 72px 0 56px;
}

.cyto-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

/* Brand block */
.cyto-footer-brand {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.cyto-footer-col p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b647c;
  margin: 0;
  max-width: 420px;
}

/* Section headings */
.cyto-footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f2a44;
}

/* Links */
.cyto-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cyto-footer-col li {
  margin-bottom: 10px;
}

.cyto-footer a {
  font-size: 14.5px;
  color: #0f2a44;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.cyto-footer a:hover {
  color: #1f4fd8;
  transform: translateX(2px);
}

/* Address */
.cyto-footer-address {
  font-size: 14.5px;
  line-height: 1.65;
  color: #4b647c;
  margin-bottom: 16px;
  font-style: normal;
}

.cyto-footer-email a {
  font-weight: 600;
}

/* ---------- BOTTOM ---------- */

.cyto-footer-bottom {
  border-top: 1px solid rgba(15,42,68,0.08);
}

.cyto-footer-bottom .cyto-wrap {
  padding: 22px 24px;
  text-align: center;
  font-size: 13.5px;
  color: #6b8196;
}

/* =====================================================
   FOOTER – MOBILE
   ===================================================== */

@media (max-width: 1024px) {
  .cyto-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .cyto-footer-top {
    padding: 56px 0 48px;
  }

  .cyto-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .cyto-footer-col p,
  .cyto-footer-address {
    margin-left: auto;
    margin-right: auto;
  }

  .cyto-footer-col ul {
    margin-top: 8px;
  }

  .cyto-footer-col li {
    margin-bottom: 12px;
  }

  .cyto-footer-bottom .cyto-wrap {
    font-size: 13px;
  }
}
/* =====================================================
   FOOTER HEIGHT REDUCTION
   ===================================================== */

/* Top section: reduce vertical padding */
.cyto-footer-top {
  padding: 48px 0 36px; /* was taller */
}

/* Reduce spacing between columns slightly */
.cyto-footer-grid {
  gap: 48px; /* was 64px */
}

/* Reduce paragraph spacing */
.cyto-footer-col p,
.cyto-footer-address {
  line-height: 1.55;
}

/* Bottom bar: tighter */
.cyto-footer-bottom .cyto-wrap {
  padding: 14px 24px;
  font-size: 13px;
}

/* Mobile tightening */
@media (max-width: 768px) {
  .cyto-footer-top {
    padding: 40px 0 32px;
  }

  .cyto-footer-grid {
    gap: 28px;
  }

  .cyto-footer-bottom .cyto-wrap {
    padding: 12px 20px;
  }
}

/* =====================================================
   FOOTER BACKGROUND – UNIFIED WITH SITE
   ===================================================== */

/* Main footer background */
.cyto-footer {
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #ffffff 60%
  );
  border-top: 1px solid rgba(15,42,68,0.08);
}

/* Subtle separation from previous section */
.cyto-footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15,42,68,0.06),
    transparent
  );
}

/* Footer top spacing harmony */
.cyto-footer-top {
  padding-top: 48px;
}

/* Bottom bar stays neutral */
.cyto-footer-bottom {
  background: transparent;
}

/* Text consistency */
.cyto-footer-col p,
.cyto-footer-address {
  color: #4b647c;
}

/* Links feel native */
.cyto-footer a {
  color: #0f2a44;
}

.cyto-footer a:hover {
  color: #1f4fd8;
}

/* Inner pages compatibility */
body:not(.home) .cyto-footer {
  background: linear-gradient(
    180deg,
    #f8fbff 0%,
    #ffffff 65%
  );
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.approach-card,
.about-stat,
.cyto-about-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SECTION RHYTHM ===== */

.cyto-areas,
.cyto-approach,
.cyto-about,
.cyto-highlights,
.cyto-cta {
  position: relative;
}

.cyto-areas + .cyto-approach,
.cyto-approach + .cyto-about,
.cyto-about + .cyto-highlights,
.cyto-highlights + .cyto-cta {
  margin-top: -1px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
  .cyto-areas .cyto-grid { grid-template-columns: repeat(3, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .cyto-highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .cyto-hero-content h1 { font-size: 30px; }
  .cyto-areas .cyto-grid,
  .approach-grid,
  .cyto-highlights-grid,
  .cyto-about-grid,
  .cyto-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .cyto-highlights-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card,
  .approach-card {
    padding: 20px;
  }

  .cyto-approach h2,
  .cyto-highlights-title {
    font-size: 24px;
  }
}
