*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-dark:  #0d2d52;
  --blue-mid:   #1565c0;
  --blue-light: #e3f2fd;
  --yellow:     #ffc107;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --muted:      #4a5568;
  --radius:     8px;
  --max:        1100px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); line-height: 1.6; }
.container { max-width: var(--max); margin: 0 auto; }

/* ---- Shared nav (overlaid on the hero, used on every page) ---- */
nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 100%);
}
.nav-logo img { height: 52px; display: block; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.9); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.5); color: var(--white) !important;
  padding: .45rem 1.2rem; border-radius: var(--radius); transition: background .2s !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.28) !important; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: .25rem .5rem;
}
.yellow-bar { height: 6px; background: var(--yellow); }

/* ---- Homepage hero (photo background) ---- */
.hero {
  position: relative; min-height: 580px;
  background: linear-gradient(135deg, #c8e6f8 0%, #90c4e8 50%, #b8ddf5 100%);
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 15%; opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
background: linear-gradient(130deg,rgba(12, 50, 102, 0.67) 0%, rgba(21, 100, 189, 0.44) 100%);
}
.hero-content {
  position: relative; max-width: var(--max);
  margin: 0 auto; padding: 7rem 2rem 5rem; width: 100%;
}
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  color: var(--white); line-height: 1.15; max-width: 560px; margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.88);
  max-width: 480px; margin-bottom: 2rem; text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

/* ---- Article-page hero (solid gradient, no photo) ---- */
.hero-article {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  display: flex; align-items: center; overflow: hidden;
}
.hero-article-content {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 7rem 2rem 3.5rem; width: 100%;
}
.hero-article h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--white); line-height: 1.15; max-width: 700px; margin-bottom: 1.25rem; }
.hero-article p { font-size: 1.05rem; color: rgba(255,255,255,0.88); max-width: 600px; margin-bottom: 2rem; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-outline {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--white); color: var(--white);
  padding: .65rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .2s, color .2s; backdrop-filter: blur(4px);
  background: rgba(255,255,255,0.1);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-fill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--blue-dark);
  padding: .65rem 1.5rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; text-decoration: none;
}

section { padding: 4rem 2rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--blue-dark); margin-bottom: 1rem; }
.section-lede { color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.intro-text p { color: var(--muted); margin-bottom: 1rem; }
.intro-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.intro-img img { width: 100%; height: 320px; object-fit: cover; object-position: center 15%; display: block; }

.steps { background: var(--blue-light); }
.steps-header { text-align: center; margin-bottom: 3rem; }
.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.step-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.07);
  display: flex; flex-direction: column;
}
.step-img { width: 100%; height: 200px; object-fit: cover; object-position: center 15%; display: block; }
.step-body { padding: 1.5rem; flex: 1; }
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--blue-mid);
  color: var(--white); border-radius: 50%;
  font-weight: 800; font-size: .85rem; margin-bottom: .75rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .5rem; }
.step-card p { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.step-card ul { padding-left: 1.1rem; }
.step-card ul li { font-size: .88rem; color: var(--muted); margin-bottom: .3rem; }

.partner-bar { background: var(--blue-dark); padding: 2rem; text-align: center; }
.partner-bar p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: .4rem; }
.partner-bar a { color: var(--yellow); font-weight: 600; text-decoration: none; }
.partner-bar a:hover { text-decoration: underline; }

.contact { background: var(--blue-light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-text p { color: var(--muted); }
.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 1rem;
  transition: box-shadow .2s, transform .2s;
}
.contact-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-1px); }
.contact-icon {
  width: 40px; height: 40px; background: var(--blue-mid);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; fill: var(--white); }

footer {
  background: var(--blue-dark); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
footer p, footer a { color: rgba(255,255,255,.5); font-size: .82rem; text-decoration: none; }
footer a:hover { color: var(--white); }

/* REFERENCES */
.references { background: var(--white); padding: 3rem 2rem; }
.references h3 { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.logo-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.logo-bar img { height: 52px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: filter .2s, opacity .2s; }
.logo-bar img:hover { filter: grayscale(0%); opacity: 1; }

.learn-banner { background: var(--blue-light); padding: 2.5rem 2rem; }
.learn-banner-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem 2rem; box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.learn-banner-text p.eyebrow { margin-bottom: .35rem; }
.learn-banner-text h3 { font-size: 1.15rem; font-weight: 800; color: var(--blue-dark); margin-bottom: .35rem; }
.learn-banner-text p { color: var(--muted); font-size: .92rem; margin: 0; }
.learn-banner .btn-solid {
  display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0;
  background: var(--blue-mid); color: var(--white); text-decoration: none;
  padding: .7rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .92rem;
  transition: background .2s;
}
.learn-banner .btn-solid:hover { background: var(--blue-dark); }

.gallery { background: var(--white); }
.gallery-header { text-align: center; margin-bottom: 2.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; object-position: center 15%; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.08); display: block; }

/* ---- Article-page-only components ---- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07); padding: 1.5rem 1.25rem;
}
.why-card .num { font-size: .78rem; font-weight: 700; color: var(--blue-mid); letter-spacing: .05em; }
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue-dark); margin: .5rem 0 .5rem; }
.why-card p { font-size: .88rem; color: var(--muted); margin: 0; }

.categories { background: var(--blue-light); }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.cat-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07); padding: 2rem;
}
.tag {
  display: inline-block; font-size: .75rem; font-weight: 700; padding: .25rem .7rem;
  border-radius: 20px; margin-bottom: .75rem;
}
.tag.visible { background: #fff4d9; color: #8a6400; }
.tag.hidden { background: var(--blue-light); color: var(--blue-mid); }
.cat-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .6rem; }
.cat-card p.desc { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.cat-card ul { list-style: none; padding: 0; }
.cat-card ul li { display: flex; gap: .6rem; font-size: .88rem; color: var(--text); padding: .35rem 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: .4rem; flex: none; }
.dot.visible { background: var(--yellow); }
.dot.hidden { background: var(--blue-mid); }
.stat-pill {
  display: inline-block; margin-top: 1rem; background: var(--blue-dark); color: var(--white);
  font-size: .85rem; font-weight: 700; padding: .5rem .9rem; border-radius: var(--radius);
}

.callout {
  background: var(--blue-light); border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 2rem; max-width: var(--max); margin: 0 auto;
}
.callout h3 { color: var(--blue-dark); font-size: 1.15rem; margin-bottom: .6rem; }
.callout p { color: var(--text); font-size: .95rem; margin: 0; }

.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.07); padding: 1.75rem;
}
.value-card h3 { color: var(--blue-dark); font-size: 1.05rem; margin-bottom: .6rem; }
.value-card p { color: var(--muted); font-size: .9rem; margin: 0; }

.glossary { background: var(--blue-light); }
.glossary dl { display: grid; grid-template-columns: 190px 1fr; gap: .75rem 1.5rem; font-size: .92rem; }
.glossary dt { font-weight: 700; color: var(--blue-dark); }
.glossary dd { margin: 0; color: var(--muted); }

.photo-banner { padding: 0; }
.photo-banner img { width: 100%; height: 340px; object-fit: cover; object-position: center 40%; display: block; }
.cat-img { width: 100%; height: 170px; object-fit: cover; object-position: center 15%; border-radius: var(--radius); margin-bottom: 1rem; display: block; }

@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .intro-grid, .contact-inner, .steps-grid, .cat-grid, .value-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--blue-dark); flex-direction: column; align-items: flex-start;
    padding: 1.25rem 2rem; gap: 1rem; margin: 0; z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { align-self: flex-start; }
  .why-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
}
@media (max-width: 700px) { .learn-banner-inner { flex-direction: column; align-items: flex-start; } }
@media (max-width: 520px) {
  .why-grid, .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 3rem 1.25rem; }
  .glossary dl { grid-template-columns: 1fr; }
  .glossary dt { margin-top: .5rem; }
  .glossary dd { margin-bottom: .25rem; }
  nav { padding: 1rem 1.25rem; }
  .hero h1, .hero-article h1 { max-width: 100%; }
  .hero p, .hero-article p { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
