/* ==========================================================
   AstraZeneca Landing — Custom styles
   Mobile-first responsive (breakpoint: lg = 1024px)
   ========================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Header shrink on scroll — nav gets shorter, logo stays full-size */
.site-nav {
  transition: height 0.4s var(--ease-smooth),
              padding-top 0.4s var(--ease-smooth),
              padding-bottom 0.4s var(--ease-smooth);
}
.site-logo {
  transition: transform 0.4s var(--ease-smooth);
  transform-origin: left center;
}
.site-header {
  transition: box-shadow 0.4s var(--ease-smooth);
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(131, 0, 81, 0.08);
}
@media (min-width: 1024px) {
  .site-header.is-scrolled .site-nav {
    height: 88px;
  }
}

/* Force SVG images to keep their aspect ratio (prevents stretching) */
img[src$=".svg"] {
  object-fit: contain;
}

/* ===== Reusable easing tokens ===== */
:root {
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================
   HERO
   ========================================================== */
.hero-image-wrap {
  aspect-ratio: 18 / 25;   /* Mobile: crop the portrait to head-and-torso (like the reference), pants mostly cropped off */
  height: auto;
}
@media (min-width: 1024px) {
  .hero-image-wrap {
    aspect-ratio: 1920 / 949;   /* Desktop: full composed hero (girl + baked curve), no crop */
    height: auto;
  }
  /* Curve is baked into the desktop hero image — hide the separate SVG curve */
  .wave-svg { display: none; }
  /* Magenta continuation below the baked curve so cards overlap onto magenta */
  .wave-band {
    background: #82014C;
    min-height: 40px;
    margin-top: -1px;
  }
}
.hero-image {
  background-size: cover;
  background-position: center top;
  transform: translateY(0);
  transition: transform 0.05s linear;
}

/* Show only the right hero image at each breakpoint */
.hero-image-desktop { display: none; }
.hero-image-mobile { display: block; }
@media (min-width: 1024px) {
  .hero-image-desktop { display: block; }
  .hero-image-mobile { display: none; }
}

/* Mobile-only white fade over the lower part of the hero photo so the
   magenta callout text stays legible over the busy scribble background. */
.hero-fade-mobile {
  height: 70%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);
  z-index: 5;
}
@media (min-width: 1024px) {
  .hero-fade-mobile { display: none; }
}

.hero-title {
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.0;
}
@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(64px, 6.5vw, 104px);
  }
}

/* ===== Wave divider ===== */
.wave-band {
  position: relative;
  line-height: 0;
}

/* The curve SVG fills the width and sizes by its own aspect ratio (mobile only —
   on desktop the curve is baked into the hero image) */
.wave-svg {
  display: block;
  width: 100%;
  height: 100px;
  background-image: url('assets/hero-curve-mobile.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .wave-svg { display: none; }
}

/* Mobile: pull the wave UP to overlap the bottom of the hero photo */
@media (max-width: 1023px) {
  .wave-band {
    margin-top: -90px;
    z-index: 6;            /* sit above the white hero fade (z:5) so the magenta
                              curve connects cleanly to the photo instead of being
                              covered by the fade */
  }
}

/* Desktop: curve is baked into the hero image, so the wave band is just a
   magenta continuation that the cards overlap onto (no upward pull).
   Its background matches the image's baked bottom gradient so there is no seam. */
@media (min-width: 1024px) {
  .wave-band {
    margin-top: 0;
    background: linear-gradient(to right, #D3007B 0%, #82014C 42%);
    min-height: 120px;
  }
}

/* ===== Mobile-only magenta panel below the wave (hosts callout + shield) ===== */
.wave-content {
  /* solid color (set via class) — covered by Tailwind bg-az-magenta-dark */
  margin-top: -1px;  /* close any sub-pixel gap between SVG and panel */
}

/* ===== Shield badge ===== */
.shield-badge {
  aspect-ratio: 1 / 1;
  transition: transform 0.5s var(--ease-out-back);
}
.shield-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shield-badge:hover {
  transform: scale(1.08) rotate(-6deg);
}

/* ==========================================================
   NAV
   ========================================================== */
.nav-link {
  position: relative;
  transition: color 0.35s var(--ease-smooth), opacity 0.35s var(--ease-smooth);
}
.nav-link:hover {
  color: #d0006f;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-quint), opacity 0.4s var(--ease-smooth);
  opacity: 0;
}
.mobile-menu.is-open {
  max-height: 300px;
  opacity: 1;
}

.menu-icon line {
  transform-origin: center;
  transition: transform 0.4s var(--ease-out-quint), opacity 0.3s var(--ease-smooth);
}
#menuToggle[aria-expanded="true"] .hamburger-top {
  transform: translateY(6px) rotate(45deg);
}
#menuToggle[aria-expanded="true"] .hamburger-mid {
  opacity: 0;
}
#menuToggle[aria-expanded="true"] .hamburger-bot {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================
   INFO CARDS SECTION
   On desktop, the section is transparent and pulled up so the top
   half of the first row of cards (cards 1 & 2) visibly sits on the
   magenta wave behind them.
   ========================================================== */
.info-cards-section {
  background: transparent;
}
@media (min-width: 1024px) {
  .info-cards-section {
    margin-top: -160px;   /* pull cards into the wave area */
    padding-top: 0;
  }
}

/* On mobile, let the cards overlap the magenta curve a little (less than desktop) */
@media (max-width: 1023px) {
  .info-cards-section {
    background: transparent;
    margin-top: -80px;
    padding-top: 0;
  }
}

/* ==========================================================
   INFO CARDS
   ========================================================== */
.icon-circle {
  position: relative;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fbe0a8;
  top: 4px;
  right: 6px;
  z-index: 0;
  transition: transform 0.5s var(--ease-out-back), background 0.4s var(--ease-smooth);
}
.icon-circle img {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform 0.5s var(--ease-out-back);
}
.info-card:hover .icon-circle::before {
  transform: scale(1.08);
  background: #f9d68c;
}
.info-card:hover .icon-circle img {
  transform: rotate(6deg);
}

.info-card {
  transition: transform 0.55s var(--ease-out-quint),
              box-shadow 0.55s var(--ease-out-quint);
}
@media (min-width: 1024px) {
  .info-card {
    min-height: 527px;
  }
}
.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(131, 0, 81, 0.18);
}

/* ==========================================================
   MOBILE CARDS CAROUSEL
   ========================================================== */
@media (max-width: 1023px) {
  .cards-carousel {
    overflow: hidden;
  }
  .cards-track {
    display: flex !important;
    flex-wrap: nowrap;
    transition: transform 0.6s var(--ease-out-quint);
    gap: 0;
  }
  .cards-track > .info-card {
    flex: 0 0 100%;
    min-width: 100%;
    margin-right: 0;
  }
  /* Tighten the cards on mobile so a pillar fits more comfortably in the viewport */
  .cards-track > .info-card {
    padding: 22px 20px;
  }
  .cards-track > .info-card header {
    margin-bottom: 14px;
  }
  .cards-track > .info-card .space-y-4 > * + * {
    margin-top: 12px;
  }
  .cards-track > .info-card .space-y-4 {
    font-size: 14px;
    line-height: 1.5;
  }
}

.carousel-dots {
  display: flex;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.4s var(--ease-out-quint), background 0.4s var(--ease-smooth);
}
.dot.active {
  background: #830051;
  width: 28px;
  border-radius: 4px;
}

/* ==========================================================
   STAT BAND (magenta ribbon)
   ========================================================== */
.stat-band {
  position: relative;
  overflow: hidden;
}

.stat-decoration {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* Mobile decoration: Vector__2 AZ logomark anchored BOTTOM-LEFT, bleeding off edges */
.stat-decoration-mobile {
  left: -30px;
  bottom: -20px;
  width: 62%;
  max-width: 260px;
  height: auto;
  opacity: 1;
}
.stat-decoration-desktop {
  display: none;
}
@media (min-width: 1024px) {
  .stat-decoration-mobile {
    display: none;
  }
  .stat-decoration-desktop {
    display: block;
    right: 0;
    top: 0;
    height: 297px;
    width: auto;
    opacity: 1;
  }
}

.stat-band > .stat-content {
  position: relative;
  z-index: 2;
}

/* ===== Stat items ===== */
.stat-item {
  position: relative;
}

/* The graph icon: on mobile it sits right-aligned, below stat 1's text */
.stat-icon {
  width: 132px;
  height: 132px;
  display: block;
  margin-left: auto;      /* push to the right */
  margin-top: 16px;
}

/* Mobile layout: single column, generous bottom space for the swirl */
@media (max-width: 1023px) {
  .stat-band {
    padding-bottom: 190px;   /* room for the bottom-left swirl */
  }
  .stat-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }
}

/* Desktop layout: two columns; icon inline within stat 1 on the right */
@media (min-width: 1024px) {
  .stat-icon {
    width: 150px;
    height: 150px;
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  .stat-item:first-child {
    padding-right: 90px;
  }
  .stat-item:last-child {
    padding-left: 70px;
  }
}

/* ==========================================================
   NUMBERED RECOMMENDATION CARDS
   ========================================================== */
.num-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1024px) {
  .num-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-auto-rows: min-content;
  }
  .num-grid .num-card:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.num-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #4a4a4a;
  display: flex;
  flex-direction: column;
  transition: background 0.45s var(--ease-smooth),
              transform 0.45s var(--ease-out-quint),
              box-shadow 0.45s var(--ease-out-quint);
}
.num-card:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(131, 0, 81, 0.10);
}
.num-card .num {
  font-size: 32px;
  font-weight: 800;
  color: #d0006f;
  opacity: 0.4;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  transition: opacity 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}
.num-card:hover .num {
  color: #830051;
  opacity: 1;
}

/* On mobile, cards 04–06 hidden until expanded */
@media (max-width: 1023px) {
  .mobile-hidden {
    display: none;
  }
  .num-grid.expanded .mobile-hidden {
    display: flex;
    animation: fadeUp 0.5s var(--ease-out-quint) both;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* "Δείτε περισσότερα" button */
.show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 22px;
  background: #ffffff;
  color: #830051;
  border: 1.5px solid #830051;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: background 0.4s var(--ease-smooth),
              color 0.4s var(--ease-smooth),
              transform 0.4s var(--ease-out-quint),
              box-shadow 0.4s var(--ease-smooth);
}
.show-more-btn:hover {
  background: #830051;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(131, 0, 81, 0.25);
}
.show-more-btn:active {
  transform: scale(0.98);
}
.show-more-btn svg {
  transition: transform 0.45s var(--ease-out-quint);
}
.show-more-btn.is-expanded svg {
  transform: rotate(180deg);
}

/* ==========================================================
   VIDEO SECTION
   ========================================================== */
.video-block {
  height: 480px;
}
.video-overlay {
  cursor: pointer;
  transition: opacity 0.4s var(--ease-smooth), visibility 0.4s;
}
.video-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (min-width: 1024px) {
  .video-block {
    height: auto;
    aspect-ratio: 1563 / 880;
    max-width: 1563px;
    margin-left: auto;
    margin-right: auto;
  }
}

.play-button {
  width: 80px;
  height: 80px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out-back), filter 0.4s var(--ease-smooth);
}
@media (min-width: 1024px) {
  .play-button {
    width: 104px;
    height: 104px;
  }
}
.play-button:hover {
  transform: translate(-50%, -50%) scale(1.12);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}
.play-button:active {
  transform: translate(-50%, -50%) scale(1.03);
}

/* ==========================================================
   CTA PANEL (gradient background)
   Diagonal magenta gradient: darker top-left -> brighter pink bottom-right
   Matches the design; identical on desktop and mobile.
   ========================================================== */
.cta-panel {
  background: linear-gradient(267.83deg, #DC0080 25.9%, #8B0051 48.75%, #82014C 68.21%);
}
/* Mobile: magenta CTA panel curves into the footer like the reference */
@media (max-width: 1023px) {
  .cta-panel {
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
  }
}

/* ==========================================================
   CTA BUTTON (yellow)
   ========================================================== */
.cta-button {
  display: inline-block;
  align-self: flex-start;
  background: #f0ab00;
  color: #830051;
  font-weight: 800;
  font-size: 17px;
  padding: 16px 34px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.4s var(--ease-smooth),
              color 0.4s var(--ease-smooth),
              transform 0.4s var(--ease-out-quint),
              box-shadow 0.4s var(--ease-smooth);
}
.cta-button:hover {
  background: #ffffff;
  color: #830051;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}
.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* ==========================================================
   AEGIS LOGO
   ========================================================== */
.aegis-logo {
  height: 84px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease-smooth);
}
.aegis-logo:hover {
  opacity: 1;
}
.aegis-placeholder {
  height: 60px;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #b8b0a4;
  border-radius: 8px;
  color: #8a8275;
  font-size: 13px;
  max-width: 320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================
   ACCORDION / FOOTER LINKS
   ========================================================== */
details summary {
  transition: color 0.35s var(--ease-smooth);
}
details summary:hover {
  color: #d0006f;
}
.details-arrow {
  transition: transform 0.5s var(--ease-out-quint);
}
details[open] .details-arrow {
  transform: rotate(180deg);
}

.footer-link {
  position: relative;
  transition: color 0.35s var(--ease-smooth);
}
.footer-link:hover {
  color: #830051;
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #830051;
  transition: width 0.4s var(--ease-out-quint);
}
.footer-link:hover::after {
  width: 100%;
}

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-quint),
              transform 0.9s var(--ease-out-quint);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card.reveal:nth-child(1) { transition-delay: 0.00s; }
.info-card.reveal:nth-child(2) { transition-delay: 0.10s; }
.info-card.reveal:nth-child(3) { transition-delay: 0.20s; }
.info-card.reveal:nth-child(4) { transition-delay: 0.30s; }

.num-grid .num-card.reveal:nth-child(1) { transition-delay: 0.00s; }
.num-grid .num-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.num-grid .num-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.num-grid .num-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.num-grid .num-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.num-grid .num-card.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-image {
    transform: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================
   HOVER TIMING — all interactive hovers animate linearly (never instant)
   ========================================================== */
.shield-badge,
.shield-badge img,
.nav-link,
.icon-circle::before,
.icon-circle img,
.info-card,
.num-card,
.num-card .num,
.show-more-btn,
.show-more-btn svg,
.play-button,
.cta-button,
.aegis-logo,
details summary,
.details-arrow,
.footer-link,
.footer-link::after {
  transition-timing-function: linear !important;
}

/* ==========================================================
   LAYOUT FINE-TUNING
   ========================================================== */
@media (min-width: 1600px) {
  .max-w-container {
    max-width: 1400px;
  }
}

/* ==========================================================
   RESPONSIVE TIER: TABLET (768px – 1023px)
   The base styles below 1024px are phone-first. On tablets the
   phone treatments (full-width single carousel card, single-column
   number list) stretch too wide, so we constrain them to a centered,
   readable column without touching the phone (<768px) or desktop
   (>=1024px) layouts.
   ========================================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Carousel: keep one-card-at-a-time behaviour but cap the width so a
     single card reads as a card, not a full-bleed panel. Translation is
     percentage-based, so the swipe/dot logic is unaffected. */
  .cards-carousel {
    max-width: 640px;
    margin-inline: auto;
  }

  /* Recommendations: heading, photo and number cards align in one
     centered reading column. */
  .rec-inner {
    max-width: 700px;
    margin-inline: auto;
  }

  /* Give the recommendation photo a touch more presence on tablets. */
  #vaccination .reveal.relative {
    height: 360px;
  }

  /* Stat band: comfortable single-column width, centered.
     (Overrides the inline max-width on .stat-content.) */
  .stat-content {
    max-width: 640px !important;
  }
}

/* ==========================================================
   RESPONSIVE TIER: ULTRA-WIDE (2K / 4K, >= 2240px)
   The desktop composition is tuned for ~1920–2234px. Above that,
   full-bleed *content* bands would stretch text into unreadably long
   lines, so we cap the content-heavy containers at the top of the
   approved desktop range and center them. Image bands (hero, video,
   CTA photo) intentionally stay full-bleed. The 2240px floor sits just
   above the reviewed desktop width so nothing changes at <=2234px.
   ========================================================== */
@media (min-width: 2240px) {
  .site-nav {
    max-width: 2240px;
    margin-inline: auto;
  }
  .rec-inner {
    max-width: 2240px;
    margin-inline: auto;
  }
}
