/* =========================================================
   DESIGN SYSTEM
========================================================= */
:root {
  /* 8px spacing system */
  --space-1: 0.5rem;
  --space-2: 1rem; /* 16px */
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-7: 3.5rem;
  --space-8: 4rem;
  --space-9: 4.5rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 7rem;

  /* Colors */
  --color-primary: #0C0080;
  --color-secondary: #33C2C1;
  --color-accent: #32FF64;
  --color-bg: #E0E4E9;
  --color-bg-light: #EDEFF2;
  --color-white: #fff;
  --color-text: #001A44;
  --color-text-light: #EBF9F9;
  --color-base-1: #FFEC00;
  --color-base-2: #FF1200;

  /* Typography - Fluid */
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.4vw, 1.125rem); /* ~16px */
  --text-md: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-lg: clamp(1.563rem, 1.3rem + 0.8vw, 1.875rem);
  --text-xl: clamp(2rem, 1.6rem + 1vw, 2.5rem);
  --text-2xl: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);

  --leading-tight: 1.2;
  --leading-normal: 1.5;

  --container-max: 80rem; /* 90rem; 75rem; */
  --nav-height: 4.5rem;
}

/* ========================================================= */
*,
*::before,
*::after { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
}

/* Layout ================================================== */
.section {
  padding-block: var(--space-11);
  background: var(--color-bg);
}

.section-label {
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  text-decoration-line: underline; 
  text-decoration-color: var(--color-accent); 
  text-decoration-thickness: 0.15rem;
  text-underline-offset: 0.7rem;
}

.content { 
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.triangle i {
  font-size: 0.8rem;
}

.light { background: var(--color-bg-light); }

img {
  border-radius: 4px;
}

/* Typography ================================================== */
h1 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-3);
}

h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

h3 { 
  font-size: var(--text-lg); 
  margin-bottom: var(--space-3);
}

h4 { 
  font-size: var(--text-md);
  margin-bottom: var(--space-3); 
}

/* Feature Font */
.feature h4 {
  font-size: var(--text-base);
}

.feature p {
  font-size: var(--text-sm);
}

p { margin-bottom: var(--space-3); }

/* Buttons ================================================== */
.btn-primary {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-text-light);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  background: var(--color-primary);
  transition: transform 0.3s ease, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-primary:hover {
    background: #0f018f;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* outline btn */
.btn-outline {
  padding: 0.6rem var(--space-3);
  color: var(--color-text-light);
  border: 1.5px solid var(--color-text-light);
  border-radius: 2px;
  background-color: transparent;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out; 
}

.btn-outline:hover {
  color: var(--color-secondary);
  border: 1.5px solid transparent;
  border-image: linear-gradient(to right, var(--color-accent), var(--color-secondary)) 1;
  background-color: #0f018f;
}

/* Desktop Nav Button */
@media (min-width: 1200px) {
  nav .btn-outline {
    margin: 0 0 0 var(--space-4);
  }
}

/* Navbar ================================================== */
.navbar {
  display: flex;
  position: fixed;
  width: 100%;
  height: var(--nav-height);
  background: var(--color-primary);
  z-index: 100;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { 
  width: 100%;
  min-width: 9rem;
  max-width: 13rem;
  filter: brightness(0) invert(1); /* white logo */
  margin-top: var(--space-1);
}

/* mobile hamburger links */
.nav-links {
  display: flex;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  flex-direction: column;
  gap: var(--space-3);
  top: var(--nav-height);
  right: 0;
  width: 100%;
  padding: var(--space-6);
  background: var(--color-primary);
  list-style-type: none;
  transition: visibility 0s 0.1s, opacity 0.1s linear;
}

.nav-links li:last-child {
  margin-bottom: var(--space-2);
}

.nav-links.active { 
  opacity: 1;
  visibility: visible;
  transition: visibility 0s, opacity 0.3s linear;
}

/* mobile hamburger */
.menu-toggle {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--space-3);
  height: var(--space-2);
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-bg-light);
  transition: all 0.2s ease-in-out;
  transform-origin: left center;
}

.menu-toggle:hover span {
  background: var(--color-accent);
}

/* change mobile hamburger to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(0px); /* rotate top bar and move to center */
  width: 110%; 
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0; /* hide middle bar */
  width: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(0px); /* rotate bottom bar and move to center */
  width: 110%;
}

.menu-toggle.active span:nth-child(1),
.menu-toggle.active span:nth-child(3) {
    transform-origin: 14% /* center */
}

.nav-links a {
  color: var(--color-bg-light);
  font-size: var(--text-sm);
  text-decoration: none;
}

/* hover states */
.nav-link, .footer-links a {
  position: relative;
  display: inline-block;
}

.nav-link:hover::before, .footer-links a:hover::before { /* underline nav link when hovered over */
  width: 100%;
}

.nav-link::before, .footer-links a::before { /* underline */
    content: "";
    height: 1.8px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    opacity: 1;
    display: block;
    position: absolute;
    bottom: -.3rem;
    left: 0;
    transition: width 0.3s;
    width: 0%; /* non-active state has no underline */
}

.nav-active::before { /* active state has underline */
    width: 100% !important;
}

/* Desktop Nav ================================================== */
@media (min-width: 1200px) {
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle { display: none; }

  .nav-links li:last-child {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* Hero ================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: var(--nav-height);  
  min-height: 80vh; /* 40rem; */
  width: 100%;
  color: var(--color-bg-light);
  background: url('../imgs/main.jpg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,0,128,0.1);
}

/* Mobile */
@media (max-width: 767px) {
  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12,0,128,0.3);
  }

  .hero-content p, .hero-content a {
    display: none;
  }
}

.hero-content { 
  position: relative; 
  flex: 1;
  padding-top: var(--space-10);
  padding-bottom: var(--space-4);  
  z-index: 2;  
}

.hero-content h1, .hero-content h4, .hero-content p {
  max-width: 50rem;
  font-weight: 400;
}

.hero-content h4, .hero-content p {
  line-height: var(--leading-tight);
}

.hero-content p {
  margin-top: var(--space-8);
}

.highlight {
  background: radial-gradient(circle at right 1px top 0px, var(--color-base-2), var(--color-base-1), var(--color-accent), var(--color-accent));
  padding: 4px 8px;
  color: var(--color-text);
  border-radius: 2px;
}

/* Grid Layout ================================================== */
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

.two-column img {
  width: 100%;
  height: auto;
}

/* Desktop */
@media (min-width: 768px) {
  .two-column {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .reverse img {
    order: 2;
  }

  .reverse div{
    order: 1;
  }
}

/* Features ================================================== */
.features { background: var(--color-bg-light); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Desktop */
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.feature { text-align: center; }

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5);
  height: var(--space-5);
  background: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto var(--space-3);
}

.feature i {
  color: var(--color-text);
  font-size: 1.2rem;
  z-index: 2;
}

/* Bottom Image ================================================== */
.subhero {
  margin: 0;
  padding: 0;
  min-height: 25rem;
  position: relative;
  display: flex;
  align-items: center;
}

.shero1 { background: url('../imgs/shero1_1920x700.jpg') bottom/cover no-repeat; }
.shero2 { background: url('../imgs/shero2_1920x700.jpg') center/cover no-repeat; }
.shero3 { background: url('../imgs/shero3_1920x700.jpg') center/cover no-repeat; }
.shero4 { background: url('../imgs/shero4_1920x700.jpg') center/cover no-repeat; }
.shero5 { background: url('../imgs/shero5_1920x700.jpg') center/cover no-repeat; }
.shero6 { background: url('../imgs/shero6_1920x700.jpg') center/cover no-repeat; }

/* CTA ================================================== */
.cta {
  background: linear-gradient(70deg, #33c27d, #33a3c2, var(--color-secondary));
  color: var(--color-text);
  padding-block: var(--space-10);
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

/* Desktop */
@media (min-width: 768px) {
  .cta-content {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
  }

  .cta-content p {
    padding-right: var(--space-12);
  }
}

.cta-content p {
  font-size: 1.2rem;
}

/* Contact ================================================= */
.contact-section {
  background: var(--color-primary);
  padding-top: var(--space-1);
  padding-bottom: var(--space-7);
}

.contact-content {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: var(--space-8) var(--space-6);
  border-radius: 4px;
}

/* Desktop */
@media (min-width: 768px) {
  .contact-section {
    background: var(--color-bg);
    padding-block: var(--space-11);
  }

  .contact-content {
    align-items: flex-start;
  }
}

.contact-content .section-label, .contact-content a {
  color: var(--color-text-light);
}

.contact-content a {
  text-decoration: none;
}


/* Footer ================================================== */
.footer {
  color: var(--color-text-light);
  padding-block: var(--space-10);
  background: var(--color-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

/* Desktop */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.6fr repeat(2, 1fr);
  }
}

footer .logo img {
  max-width: 12rem;
  margin-bottom: var(--space-2);
}

.footer-links a {
  margin-bottom: 3px;
}

/* Footer Fonts */
footer h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

footer p, .footer-links a {
  font-size: var(--text-sm);
}

footer p {
  margin-bottom: var(--space-1);
}

.footer-links a, footer p a {
  color: var(--color-text-light);
  text-decoration: none;
}

small {
  font-size: 0.7rem;
}

.footer-info {
  text-align: center;
  padding-top: var(--space-5);
  color: var(--color-bg);
}

/* Desktop */
@media (min-width: 768px) {
  .footer-info {
    text-align: left;
    padding-top: 0;
  }
}

.footer-info a {
  color: var(--color-bg);
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

/* Privacy Policy ================================================== */
.privacy-hero {
  justify-content: center;
  align-items: center;
  min-height: 35vh; 
  background-image: none;
  background-color: #c7ccd5;
}

.privacy-hero h1 {
  padding-top: var(--space-3);
  font-size: var(--space-8);
  color: var(--color-text);
}

.privacy-section {
  background-color: var(--color-bg);
}

.privacy-content {
  animation: none !important;
  max-width: 95%;
}

/* Desktop */
@media (min-width: 768px) {
  .privacy-content {
    max-width: 77%;
  }
}

.privacy-content h2 {
  padding-top: var(--space-2);
}

.privacy-content h3 {
  padding-top: var(--space-1);
}

.privacy-content ul {
  padding-left: var(--space-4);
  padding-bottom: var(--space-3);
}

.privacy-content a {
  color: var(--color-text);
  text-decoration: none;
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* News ================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.news-item {
  border-bottom: 1px solid #c7ccd5;
  padding-bottom: var(--space-6);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.news-title {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.news-summary {
  margin-bottom: var(--space-2);
}

.news-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.news-link:hover {
  text-decoration: underline;
}

/* Press Release ================================================== */
.press-hero {
  justify-content: center;
  align-items: center;
  min-height: 35vh;
  background-image: none;
  background-color: #c7ccd5;
}

.press-hero h1 {
  padding-top: var(--space-3);
  font-size: 3.5rem;
  color: var(--color-text);
}

.press-section {
  background-color: var(--color-bg);
}

.press-content {
  animation: none !important;
  max-width: 95%;
}

/* Desktop */
@media (min-width: 768px) {
  .press-content {
    max-width: 77%;
  }
}

.press-content .press-meta {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.press-content .press-subtitle {
  font-size: var(--text-base);
  font-style: italic;
  margin-bottom: var(--space-6);
}

.press-content .press-location {
  font-weight: 600;
}

.press-content blockquote {
  border-left: 3px solid var(--color-secondary);
  padding-left: var(--space-4);
  margin-block: var(--space-4);
  font-style: italic;
}

.press-content .press-about {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid #c7ccd5;
}

.press-content .press-about h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.press-content a {
  color: var(--color-text);
  text-decoration: none;
}

.press-content a:hover {
  text-decoration: underline;
}

.press-content .back-link {
  display: inline-block;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  font-size: var(--text-sm);
}

/* Animations ================================================== */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(100px); }
  to { opacity: 1; transform: translateY(0); }
}

.content {
  animation: fade-in 1s both;
  animation-timeline: view();
  animation-range: entry 0% cover 50%;
}

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

.hero-content {
  animation: fade-in-hero 1s both;
}