/* ===================================================
   Integrity Bioscience — Stylesheet
=================================================== */

:root {
  --navy-900: #0a1f3f;
  --navy-800: #0f2d52;
  --navy-700: #163d66;
  --teal-400: #0099cc;
  --teal-300: #4bc4cc;
  --blue-500: #1e3a5f;
  --blue-400: #2d4a7f;
  --ink-900: #1a2f4a;
  --ink-700: #3d5a7a;
  --ink-500: #667a8f;
  --paper-50: #ffffff;
  --paper-100: #f8fafc;
  --line: rgba(26, 47, 74, 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 50px -20px rgba(26, 47, 74, 0.15);
  --font-head: "Sora", "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--navy-800); }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section.section { padding: 120px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(15, 45, 82, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(15, 45, 82, 0.65); }
.btn-ghost {
  background: rgba(10,31,63,0.08);
  color: var(--navy-900);
  border-color: rgba(10,31,63,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(10,31,63,0.18); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
  margin-top: 8px;
}
.btn-outline:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn.full { width: 100%; margin-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: padding .3s var(--ease), box-shadow .3s var(--ease);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px -8px rgba(10, 31, 63, 0.1);
}
.site-header.scrolled {
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-900);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  transition: transform .2s var(--ease), color .3s var(--ease);
}
.logo:hover { transform: scale(1.08); }
.logo-img { height: 85px; width: auto; display: block; max-width: 210px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--navy-800);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%; height: 2px;
  background: #0099cc;
  transition: width .25s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: #0099cc; }
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--navy-800);
  border: 1px solid var(--navy-800);
  padding: 9px 20px;
  border-radius: 100px;
  color: #fff !important;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--navy-900); transform: translateY(-1px); }

.nav-header { display: none; }

.nav-toggle {
  display: none !important;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}

/* ---------- Language Toggle ---------- */
.lang-toggle {
  display: flex;
  gap: 0;
  background: rgba(10, 31, 63, 0.08);
  padding: 4px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--navy-800);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: 0.05em;
}
.lang-btn:hover { color: #0099cc; }
.lang-btn.active {
  background: rgba(10, 31, 63, 0.15);
  color: var(--navy-900);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.dna-svg { position: absolute; right: -40px; top: 0; height: 100%; width: 55%; opacity: 0.08; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,31,63,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,63,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 30%, black 10%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.eyebrow {
  color: #0099cc;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 18px;
  line-height: 1.5;
  word-spacing: -0.05em;
  max-width: 100%;
  overflow-wrap: break-word;
}
.hero h1 {
  background: linear-gradient(90deg, #0a1f3f 0%, #0099cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 24px;
}
.gradient-text {
  color: #0099cc;
}
.hero-sub {
  color: var(--navy-800);
  font-size: 1.08rem;
  max-width: 600px;
  margin-bottom: 38px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--navy-800);
  border-radius: 20px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--navy-800);
  border-radius: 3px;
  animation: scrollDown 1.8s infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); animation: revealUp .9s var(--ease) forwards; }
.hero h1.reveal { animation-delay: .1s; }
.hero-sub.reveal { animation-delay: .25s; }
.hero-actions.reveal { animation-delay: .4s; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Section heads ---------- */
.section-eyebrow {
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-sub { color: var(--navy-800); font-size: 1.02rem; }
.section-head.light .section-eyebrow { color: rgba(255,255,255,0.7); }
.section-head.light h2 { color: #fff; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 22px; }
.about-copy p { margin-bottom: 16px; font-size: 1.02rem; }

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.mv-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.mv-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.mv-card p { font-size: 0.92rem; color: var(--navy-800); margin: 0; }

.about-visual { display: flex; justify-content: center; }
.orbit-card {
  position: relative;
  width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.orbit-svg { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit-ring { fill: none; stroke: var(--line); stroke-width: 1.4; }
.ring-2 { stroke-dasharray: 4 6; }
.orbit-node { fill: var(--teal-400); }
.node-1 { transform: translate(110px, 15px); }
.node-2 { transform: translate(205px, 160px); }
.node-3 { transform: translate(38px, 150px); fill: var(--blue-500); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-center {
  position: relative;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-300);
  box-shadow: var(--shadow-soft);
}

/* ---------- Products ---------- */
.products { background: #ffffff; }
.products-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.products-images { display: grid; grid-template-columns: 1fr; gap: 28px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.product-image {
  width: 100%;
  height: 450px;
  background: var(--paper-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-card h3 { font-size: 1.05rem; margin: 18px 22px 10px; color: var(--navy-900); font-weight: 600; }
.product-card p { font-size: 0.93rem; color: var(--navy-800); padding: 0 22px 22px; line-height: 1.5; }
.products-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 22px; color: var(--navy-900); }
.products-content p { margin-bottom: 18px; font-size: 1.02rem; color: var(--navy-800); line-height: 1.6; }

/* ---------- Focus cards ---------- */
.focus { background: #ffffff; }
.focus-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.focus-dna { align-items: center; }
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card-grid.focus-grid { justify-items: center; }
.focus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  max-width: 100%;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.icon-wrap {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 47, 74, 0.12), rgba(43, 165, 171, 0.12));
  color: var(--navy-800);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.focus-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.focus-card p { font-size: 0.92rem; color: var(--navy-800); }

/* ---------- Services ---------- */
.services-grid { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: padding .3s var(--ease);
}
.service-row:hover { padding-left: 10px; }
.service-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal-400);
  -webkit-text-stroke: 1px var(--blue-500);
}
.service-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-body p { max-width: 640px; }

/* ---------- Values ---------- */
.values { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: transform .3s var(--ease), background .3s;
}
.value-item:hover { transform: translateY(-6px); background: rgba(255,255,255,0.15); }
.value-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.08));
  color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.value-item h3 { color: #fff; font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { color: rgba(255,255,255,0.75); font-size: 0.9rem; }

/* ---------- Partners ---------- */
.partners-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 70px; }
.partners-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.partners-copy p { margin-bottom: 22px; font-size: 1.02rem; }
.partners-points { display: flex; flex-direction: column; gap: 26px; justify-content: center; }
.point { display: flex; gap: 16px; align-items: flex-start; }
.point-dot {
  width: 12px; height: 12px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--navy-800));
  flex-shrink: 0;
}
.point h4 { font-size: 1.02rem; margin-bottom: 6px; }
.point p { font-size: 0.92rem; color: var(--navy-800); }

/* ---------- News ---------- */
.news { background: #ffffff; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; justify-items: center; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
  max-width: 100%;
  width: 100%;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.news-date {
  display: inline-block;
  color: #0099cc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.news-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.news-card p { font-size: 0.92rem; color: var(--navy-800); }

/* ---------- Contact ---------- */
.contact { background: #f8f9fa; }
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 18px; }
.contact-info > p { margin-bottom: 30px; font-size: 1.02rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; font-weight: 600; color: var(--navy-800); }
.contact-phones { display: flex; flex-direction: column; gap: 8px; }
.contact-phones a { color: var(--navy-800); text-decoration: none; font-weight: 600; }
.contact-phones a:hover { color: #0099cc; }
.contact-address p { margin: 8px 0; font-size: 0.95rem; color: var(--navy-800); font-weight: 500; }
.contact-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-500);
  flex-shrink: 0;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--navy-800); }
.form-row input, .form-row textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-50);
  resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}
.form-note { font-size: 0.88rem; color: var(--teal-400); font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); padding: 50px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-logo {
  opacity: 0.85;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-logo:hover { opacity: 1; }
.footer-logo .logo-img {
  height: 50px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.footer-tagline { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 460px; }
.footer-copy { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-top: 10px; }

/* =================================================
   Responsive
================================================= */
@media (max-width: 980px) {
  .about-grid, .partners-inner, .contact-inner { grid-template-columns: 1fr; }
  .products-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-visual { order: -1; }
  .focus-dna { order: 0; }
  .card-grid.focus-grid { grid-template-columns: repeat(2, 1fr); }
  .products-images { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .product-image { height: 300px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .mission-vision { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .focus-head { grid-template-columns: 1fr; gap: 24px; }

  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: linear-gradient(135deg, #0099cc 0%, #0a1f3f 100%);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 28px;
    padding: 0;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }

  .nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .nav-close span {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s;
  }

  .nav-close span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }

  .nav-close span:nth-child(2) {
    transform: rotate(-45deg) translateY(-8px);
  }

  .main-nav a {
    font-size: 1.05rem;
    color: #fff !important;
    padding: 12px 24px;
    width: 100%;
  }

  .main-nav a:first-of-type {
    margin-top: 16px;
  }

  .main-nav a:not(.nav-cta)::after {
    background: rgba(255,255,255,0.6);
  }

  .main-nav a:not(.nav-cta):hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
  }

  .nav-cta {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    margin: 16px 24px 0;
    width: calc(100% - 48px);
  }

  .nav-cta:hover {
    background: rgba(255,255,255,0.3);
  }

  .nav-toggle { display: none !important; }

  .nav-toggle span {
    background: var(--navy-800);
  }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  section.section { padding: 80px 0; }
  .nav-toggle { display: flex !important; }
  .card-grid.focus-grid { grid-template-columns: 1fr; }
  .products-images { grid-template-columns: 1fr; gap: 24px; }
  .product-image { height: 380px; }
  .product-card h3 { font-size: 1.1rem; }
  .product-card p { font-size: 0.95rem; }
  .products-content h2 { font-size: 1.8rem; margin-bottom: 18px; }
  .products-content p { font-size: 0.98rem; }
  .news-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-form { padding: 26px; }
  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    word-spacing: -0.08em;
    margin-bottom: 14px;
    line-height: 1.3;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
}

/* ---------- Modal ---------- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 31, 63, 0.8);
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  position: relative;
}

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

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(10, 31, 63, 0.1);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-size: 24px;
  transition: background .2s;
}

.modal-close:hover {
  background: rgba(10, 31, 63, 0.2);
}

.modal-article h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--navy-900);
}

.modal-article .article-date {
  color: var(--teal-400);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  display: block;
}

.modal-article p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--navy-800);
}

.modal-article ul {
  margin: 20px 0;
  padding-left: 24px;
}

.modal-article li {
  margin-bottom: 12px;
  color: var(--navy-800);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 32px 20px;
    max-width: 95%;
  }
  .modal-article h2 {
    font-size: 1.4rem;
  }
}

/* ---------- Blog pages & newsletter ---------- */
a.news-link { display: block; color: inherit; text-decoration: none; }
.newsletter-form { max-width: 520px; margin: 48px auto 0; text-align: center; }
.newsletter-form label { display: block; margin-bottom: 12px; font-size: 0.95rem; color: var(--navy-800); }
.newsletter-row { display: flex; gap: 10px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.newsletter-note { min-height: 1.4em; margin-top: 10px; font-size: 0.9rem; color: var(--teal-400); }
.blog-header { background: #fff; border-bottom: 1px solid var(--line); }
.blog-header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.blog-back { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.blog-article { padding: 60px 0 90px; }
.blog-article-inner { max-width: 760px; }
.blog-article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 24px; color: var(--navy-900); }
.blog-article h2 { font-size: 1.4rem; margin: 34px 0 12px; color: var(--navy-900); }
.blog-article p, .blog-article li { line-height: 1.75; color: var(--navy-800); margin-bottom: 14px; }
.blog-article ul { padding-left: 22px; margin-bottom: 14px; }
.blog-cta { margin-top: 40px; padding: 20px 24px; border-radius: var(--radius-md); background: rgba(43,165,171,0.08); }
.blog-cta a { color: var(--teal-400); font-weight: 600; }
@media (max-width: 600px) { .newsletter-row { flex-direction: column; } }
