/* Certo Sans font-face setup */
@font-face {
  font-family: 'Certo Sans';
  src: url('../../fonts/CertoSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Certo Sans';
  src: url('../../fonts/CertoSans-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Certo Sans';
  src: url('../../fonts/CertoSans-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Certo Sans';
  src: url('../../fonts/CertoSans-Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}
/* Timeline Hero Overlay (matches modern hero) */
.timeline-hero {
  background: linear-gradient(to bottom, rgba(0, 40, 50, 0.95) 0%, rgba(0, 60, 70, 0.75) 50%, rgba(0, 80, 90, 0.5) 100%);
}
/* Modern Homepage Styles */

/* Modern Hero Section */
.modern-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003c34 0%, #005046 100%);
  background-image: url('../images/ADLAcenter.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  overflow: hidden;
  background-color: #003c34; /* fallback while image loads */
}

.modern-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 40, 50, 0.95) 0%, rgba(0, 60, 70, 0.75) 50%, rgba(0, 80, 90, 0.5) 100%);
  z-index: 1;
}

.modern-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: #fff;
  padding: 2rem;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.modern-hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(246, 99, 12, 0.2);
  border: 1px solid #f6630c;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f6630c;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.modern-hero-title {
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.modern-hero-title .hero-line {
  display: block;
  color: #fff;
}

.modern-hero-title .hero-line:nth-child(2) {
  font-size: 0.5em;
  margin-top: 0.5rem;
  opacity: 0.95;
}

.modern-hero-title .hero-line.accent {
  color: #f6630c;
}

/* Accent on inline words (solid color, no gradient) */
.modern-hero-title .accent {
  color: #f6630c;
}

.modern-hero-subtitle {
  font-size: clamp(1.265rem, 2.3vw, 1.61rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 0 1.2rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.modern-hero {
  position: relative;
  min-height: 76.5vh;
  justify-content: flex-start;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-primary-modern {
  padding: 1rem 2.5rem;
  background: #f6630c;
  color: #fff;
  border: 2px solid #f6630c;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary-modern:hover {
  background: transparent;
  color: #f6630c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(246, 99, 12, 0.3);
}

.btn-secondary-modern {
  padding: 1rem 2.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary-modern:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.modern-hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  animation: bounce 2s infinite;
}

.modern-hero-scroll svg {
  opacity: 0.7;
}

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

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Modern Intro Section */
.modern-intro {
  background: #fafafa;
  padding: 4rem 0;
}

.modern-intro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.modern-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #f6630c;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modern-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #003c34;
  line-height: 1.3;
  margin: 0 0 1.5rem;
}

.modern-text {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.modern-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #003c34;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modern-link:hover {
  color: #f6630c;
  gap: 0.75rem;
}

.modern-link svg {
  transition: transform 0.3s ease;
}

.modern-link:hover svg {
  transform: translateX(4px);
}

.modern-intro-card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-intro-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.modern-card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.modern-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modern-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modern-card-label {
  font-size: 0.875rem;
  color: #999;
  font-weight: 500;
}

.modern-card-value {
  font-size: 3rem;
  font-weight: 800;
  color: #f6630c;
  line-height: 1;
}

.modern-card-desc {
  font-size: 0.95rem;
  color: #666;
}

/* Modern Values Section */
.modern-values {
  background: #fff;
}

.modern-section-header {
  text-align: left;
  margin-bottom: 4rem;
}

.modern-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.modern-value-card {
  background: #fafafa;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.modern-value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f6630c 0%, #ff8c42 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.modern-value-card:hover {
  border-color: #f6630c;
  background: #fff;
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.modern-value-card:hover::before {
  transform: scaleX(1);
}

.modern-value-letter {
  font-size: 4rem;
  font-weight: 800;
  color: #f6630c;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.modern-value-card:hover .modern-value-letter {
  opacity: 1;
}

.modern-value-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #003c34;
  margin: 0 0 0.75rem;
}

.modern-value-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .modern-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .modern-hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary-modern,
  .btn-secondary-modern {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .modern-hero {
    min-height: 65vh;
  }
  .modern-hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1.2rem;
  }
  .modern-values-grid {
    grid-template-columns: 1fr;
  }
  .modern-intro-card {
    padding: 2rem;
  }
}

/* Interactive Stats Section */
.interactive-stats {
  position: relative;
  background: linear-gradient(135deg, #003c34 0%, #005046 100%);
  color: #fff;
  padding: clamp(2rem, 6vw, 4rem) 0; /* add vertical breathing room */
}

.stats-header { margin-bottom: 2rem; }

.interactive-stats .modern-heading { color: #fff; }
.interactive-stats .modern-label { color: #f6630c; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 1.25rem 1.25rem 1rem;
  color: #fff;
  backdrop-filter: blur(6px);
  transform-style: preserve-3d;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.stat-icon img {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%);
}

.stat-card:hover {
  border-color: rgba(246, 99, 12, 0.6);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25), 0 0 0 1px rgba(246, 99, 12, 0.25) inset;
}

.stat-meta { margin-bottom: 0.5rem; }
.stat-label { font-size: 0.95rem; opacity: 0.9; letter-spacing: 0.3px; color: #fff; }

.stat-main { display: flex; align-items: center; gap: 0.85rem; }
.stat-number { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1; }
.stat-number .unit { font-size: 0.9rem; font-weight: 700; margin-left: 2px; opacity: 0.85; }

/* Circular progress for percent stats */
.stat-card.is-percent .progress-ring {
  --size: 56px; 
  --thickness: 8px;
  --p: 0; /* percentage value 0-100 */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(#f6630c calc(var(--p) * 1%), rgba(255,255,255,0.15) 0);
  /* cut out inner circle */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(50% - var(--thickness)), #000 0);
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
}
