/* ========================= */
/* PALETTE (from swatches)   */
/* ========================= */
:root {
  --pink:        #d9729e;
  --magenta:     #b03070;
  --orange:      #f0922a;
  --lavender:    #5a5fa8;
  --blush:       #e8a0b8;
  --mauve:       #b06070;
  --purple:      #4a3a8a;
  --navy:        #1e1e4a;
  --text-dark:   #1e1e4a;
  --text-mid:    #3a3a6a;
  --text-muted:  #6a6a9a;
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Franklin Gothic Medium", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 10% 20%,  rgba(200,220,248,0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 10%,  rgba(140,155,210,0.7) 0%, transparent 45%),
    radial-gradient(ellipse at 5%  80%,  rgba(180,200,235,0.8) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 85%,  rgba(110,120,195,0.6) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%,  rgba(165,180,225,0.5) 0%, transparent 70%),
    linear-gradient(160deg, #c8d8f0 0%, #a8b8e0 40%, #8890cc 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  padding: 18px 40px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 24px rgba(90,95,168,0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
}

.logo a {
  color: var(--navy);
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 6px 14px;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(90,95,168,0.1);
  color: var(--navy);
}


.nav-cta {
  text-decoration: none;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--lavender);
  transform: translateY(-1px);
}

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

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url("images/heroimage.png");
  background-size: cover;
  background-position: center right;
  margin-top: -18px; /* closes the gap under the sticky nav's bottom padding */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(200,220,248,0.88) 0%,
    rgba(180,200,235,0.72) 40%,
    rgba(168,184,228,0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin-left: clamp(32px, 8vw, 120px);
  padding: 20px 0;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 400px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: white;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(30,30,74,0.22);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-btn .cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 16px;
  transition: transform 0.2s;
}

.cta-btn:hover {
  background: var(--lavender);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(90,95,168,0.35);
}

.cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

/* ========================= */
/* WHAT IS DECODING GENETICS (intro) */
/* ========================= */
 
.intro {
  padding: 90px 40px;
}
 
.intro-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 60px;
  align-items: center;
}
 
.intro-text .module-tag {
  display: inline-block;
  margin-bottom: 10px;
}
 
.intro-text h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
 
.intro-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.7;
}
 
.intro-points {
  display: grid;
  gap: 18px;
}
 
.intro-point {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: start;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 4px 20px rgba(90,95,168,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
 
.intro-point:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(90,95,168,0.2);
}
 
.intro-icon {
  font-size: 26px;
  line-height: 1;
  grid-row: span 2;
}
 
.intro-point h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
 
.intro-point p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.55;
  grid-column: 2;
}
 

/* ========================= */
/* MODULES SECTION */
/* ========================= */

.modules {
  padding: 100px 40px;
  background: transparent;
}

.modules-container {
  max-width: 900px;
  margin: 0 auto 80px;
}

.modules-container:last-child {
  margin-bottom: 0;
}

.module-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(90,95,168,0.2);
  text-align: left;
}

.module-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 5px;
}

.modules h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  color: var(--navy);
}

.module-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========================= */
/* GRID */
/* ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 400px));
  justify-content: center;
  gap: 18px;
}

/* ========================= */
/* CARD */
/* ========================= */

.card {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.55);
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(90,95,168,0.12);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.8);
}

.card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.module-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.2px;
}

.card p {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: auto;
}

.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 14px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.card:hover .card-arrow {
  background: rgba(255,255,255,0.32);
  transform: translateX(3px);
}

/* ========================= */
/* CARD COLOUR VARIANTS - for card colour variety, might reduce these down*/
/* ========================= */

/* DNA/RNA — pink */
.card.dna {
  background: linear-gradient(145deg, rgba(217,114,158,0.75), rgba(176,48,112,0.5));
}
.card.dna:hover { box-shadow: 0 16px 40px rgba(217,114,158,0.4); }

/* Protein — blush */
.card.protein {
  background: linear-gradient(145deg, rgba(232,160,184,0.75), rgba(176,96,112,0.5));
}
.card.protein:hover { box-shadow: 0 16px 40px rgba(232,160,184,0.4); }

/* Variant — deep magenta */
.card.variant {
  background: linear-gradient(145deg, rgba(176,48,112,0.75), rgba(130,40,90,0.5));
}
.card.variant:hover { box-shadow: 0 16px 40px rgba(176,48,112,0.4); }

/* ASO — orange */
.card.aso {
  background: linear-gradient(145deg, rgba(240,146,42,0.75), rgba(200,100,20,0.5));
}
.card.aso:hover { box-shadow: 0 16px 40px rgba(240,146,42,0.4); }

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

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 38px; }
  .top-nav { padding: 12px 16px; }
  .nav-links { display: none; }
  .nav-search input { width: 110px; }
}

/* ========================================= */
/* ABOUT PAGE                                */
/* ========================================= */

/* ---- About hero ---- */
.about-hero {
  padding: 140px 40px 80px;
  text-align: center;
}

.about-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.about-hero-content .module-tag {
  display: inline-block;
  margin-bottom: 14px;
}

.about-hero-content h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.about-hero-content p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---- Shared section layout ---- */
.about-section {
  padding: 80px 40px;
}

.about-section.alt {
  background: rgba(255,255,255,0.25);
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-container.narrow {
  max-width: 700px;
}

.section-heading {
  text-align: center;
  margin-bottom: 44px;
}

.section-heading .module-tag {
  display: inline-block;
  margin-bottom: 8px;
}

.section-heading h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
}

/* ---- Why Build This ---- */
.why-content {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 40px clamp(24px, 5vw, 48px);
  box-shadow: 0 4px 24px rgba(90,95,168,0.12);
}

.why-content p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.7;
}

.why-content p + p {
  margin-top: 20px;
}

.why-content em {
  color: var(--magenta);
  font-style: normal;
  font-weight: 700;
}

/* ---- Key Learning Objectives ---- */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.objective-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(90,95,168,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.objective-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(90,95,168,0.22);
}

.objective-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--lavender);
  margin-bottom: 12px;
}

.objective-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.objective-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---- Meet the Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.team-card {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(90,95,168,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(90,95,168,0.22);
}

/* Placeholder avatar circles — swap for <img> when photos are ready */
.team-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
}

.team-avatar.placeholder-1 {
  background: linear-gradient(145deg, var(--pink), var(--magenta));
}
.team-avatar.placeholder-2 {
  background: linear-gradient(145deg, var(--lavender), var(--purple));
}
.team-avatar.placeholder-3 {
  background: linear-gradient(145deg, var(--orange), var(--mauve));
}

.team-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-credentials {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.team-role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ---- Acknowledgements ---- */
.ack-content {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 36px clamp(24px, 5vw, 48px);
  text-align: center;
  box-shadow: 0 4px 24px rgba(90,95,168,0.12);
}

.ack-content p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
}

* ---- Contact ---- */
#contact {
  scroll-margin-top: 90px;
}
 
.contact-content {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px;
  padding: 40px clamp(24px, 5vw, 48px);
  box-shadow: 0 4px 24px rgba(90,95,168,0.12);
}
 
.contact-content > p {
  color: var(--text-mid);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
}
 
.contact-content strong {
  color: var(--magenta);
  font-weight: 700;
}
 
.contact-success {
  background: rgba(90,95,168,0.12);
  border: 1px solid rgba(90,95,168,0.3);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
}
 
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
 
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
 
.form-row label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
}
 
.form-row input,
.form-row textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(90,95,168,0.25);
  border-radius: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
 
.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
}
 
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px rgba(90,95,168,0.12);
}
 
.contact-form .cta-btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 6px;
}
 
/* ---- Responsive ---- */
@media (max-width: 900px) {
  .about-hero { padding: 110px 20px 60px; }
  .about-section { padding: 60px 20px; }
  .objectives-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}

/* ========================= */
/* FOOTER */
/* ========================= */

.site-footer {
  padding: 60px 40px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 24px 24px 0 0;
  padding: 48px clamp(24px, 5vw, 48px) 0;
  box-shadow: 0 -4px 24px rgba(90,95,168,0.12);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
  width: fit-content;
}

.footer-links a:hover {
  color: var(--navy);
}

.footer-bottom {
  border-top: 1px solid rgba(90,95,168,0.2);
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .site-footer {
    padding: 40px 20px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
