/* =====================================================================
   ACHENEJE RESEARCH & PUBLICATION HUB — SHARED STYLESHEET
   One file styles every page of the website.

   HOW TO EDIT (beginner guide)
   - To change a colour everywhere, edit the values in ":root" below.
   - Sections are labelled with big comment headings, e.g. "HEADER".
   - Styles are written for PHONES FIRST; the "@media (min-width: …)"
     blocks add changes for tablets and laptops.
   ===================================================================== */

/* ---------- 1. COLOURS, FONTS & SPACING (edit here) ---------- */
:root {
  --navy: #003366;        /* main colour */
  --navy-dark: #00264d;   /* darker navy for footer / hovers */
  --blue: #0066CC;        /* accent colour (links, highlights) */
  --blue-soft: #e8f1fb;   /* very light blue backgrounds */
  --gold: #D4A537;        /* gold highlights */
  --gold-soft: #fbf4e2;   /* light gold backgrounds */
  --whatsapp: #25D366;    /* WhatsApp green */
  --whatsapp-dark: #1da851;
  --white: #ffffff;
  --bg-alt: #f6f8fb;      /* light grey section background */
  --text: #1c2b3a;        /* main text colour */
  --muted: #5a6b7d;       /* secondary text */
  --border: #dde5ee;

  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 51, 102, .06);
  --shadow: 0 10px 30px rgba(0, 51, 102, .10);
  --header-h: 68px;
  --container: 1160px;
}

/* ---------- 2. BASIC RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -0.2em; }
.sprite { display: none; }

/* Keyboard focus outline (accessibility) */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* "Skip to content" link for keyboard / screen-reader users */
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

/* ---------- 3. LAYOUT HELPERS ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #dbe6f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.eyebrow--gold { color: var(--gold); }
.gold-line { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin: 14px auto 0; }
.text-center { text-align: center; }

.grid { display: grid; gap: 20px; }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .3); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: #e2b647; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .92rem; }
.btn-row { display: flex; flex-direction: column; gap: 12px; }

/* ---------- 5. HEADER & NAVIGATION ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none !important; }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; }
.brand-sub { font-size: .62rem; font-weight: 700; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-soft); color: var(--navy); border: 0; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Mobile menu: slides down below the header */
.main-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow);
  padding: 8px 16px 20px;
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 13px 4px; border-bottom: 1px solid var(--border);
  color: var(--text); font-weight: 500; text-decoration: none;
}
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.main-nav .nav-cta { margin-top: 16px; }
.main-nav .nav-cta a { display: flex; border: 0; color: #fff; padding: 12px 22px; }

/* ---------- 6. HERO (Home page) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(0, 102, 204, .35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #002a55 70%, var(--navy-dark) 100%);
  color: #dbe6f2;
  padding: 48px 0 64px;
}
/* faint mathematical grid in the background */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .name-line { display: block; font-size: .55em; font-family: var(--font-body); font-weight: 600; color: var(--gold); letter-spacing: .02em; margin-bottom: 10px; }
.hero-title { font-size: 1rem; font-weight: 500; color: #b9cce0; margin-bottom: 18px; }
.hero-lead { font-size: 1.08rem; max-width: 560px; color: #dbe6f2; }
.hero .btn-row { margin: 26px 0 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: #b9cce0; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--gold); }

/* Photo with initials fallback (shows "AG" if photo.jpg is missing) */
.hero-photo { position: relative; justify-self: center; width: min(70vw, 300px); }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(145deg, #0a4a88, var(--navy));
  border: 4px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.photo-frame::after { /* gold corner accent */
  content: ""; position: absolute; inset: auto -2px -2px auto; width: 40%; height: 6px; background: var(--gold);
}
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 5rem; font-weight: 700; color: rgba(255,255,255,.25);
}
.photo-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-badge {
  position: absolute; left: -10px; bottom: 26px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 12px;
  box-shadow: var(--shadow); font-size: .82rem; line-height: 1.25;
}
.photo-badge strong { display: block; font-size: 1.05rem; font-family: var(--font-head); }
.photo-badge .icon { width: 28px; height: 28px; color: var(--gold); }

/* ---------- 7. STATS / ANIMATED COUNTERS ---------- */
.stats { position: relative; margin-top: -36px; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 22px 12px; text-align: center; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-child(n+3) { border-bottom: 0; }
.stat-number { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat-number .plus { color: var(--gold); }
.stat-label { font-size: .85rem; color: var(--muted); margin-top: 4px; }

/* ---------- 8. CARDS (services etc.) ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c7d7ea; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 16px;
}
.card-icon .icon { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; }
.card--featured { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), #fff 60%); }
.card--featured .card-icon { background: var(--gold); color: var(--navy); }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: var(--gold-soft); color: #8a6512;
}

/* ---------- 9. HOW IT WORKS (steps) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding: 24px 22px 22px 80px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 22px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
}
.step h3 { margin-bottom: .3em; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- 10. JOURNAL LIST ---------- */
.journal-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.journal-list li {
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border);
  font-size: .9rem; font-weight: 500; color: var(--navy); box-shadow: var(--shadow-sm);
}
.reviewer-note {
  max-width: 760px; margin: 32px auto 0; padding: 18px 20px; border-left: 4px solid var(--gold);
  background: #fff; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow-sm);
}
.reviewer-note p { margin: 0; }

/* ---------- 11. TESTIMONIALS ---------- */
.testimonial {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; margin: 0;
  border-top: 3px solid var(--gold);
}
.testimonial .who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.testimonial blockquote { margin: 0; font-style: italic; color: var(--text); }
.testimonial .who { font-weight: 600; color: var(--navy); font-size: .92rem; }
.testimonial .who span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.testimonial--placeholder { border: 2px dashed #b9c9db; background: #fbfcfe; }
.testimonial--placeholder blockquote, .testimonial--placeholder .who { color: #8fa0b3; }

/* ---------- 12. CALL-TO-ACTION BAND ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--navy), #004a8f);
  color: #dbe6f2; border-radius: 20px; padding: 44px 22px;
}
.cta-band::after {
  content: "∫ dx  ·  Σ  ·  ∂/∂t  ·  λ  ·  ℛ₀";
  position: absolute; right: -10px; bottom: -14px; font-family: var(--font-head);
  font-size: 4rem; color: rgba(255,255,255,.05); white-space: nowrap; pointer-events: none;
}
.cta-band h2 { color: #fff; }
.cta-band .btn-row { justify-content: center; margin-top: 24px; position: relative; z-index: 1; }

/* ---------- 13. INNER PAGE HEADER (for About, Services, etc.) ---------- */
.page-hero { background: linear-gradient(160deg, var(--navy), #002a55); color: #cfdcec; padding: 52px 0 46px; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { max-width: 680px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; margin-bottom: 12px; color: #9fb6ce; }
.breadcrumb a { color: var(--gold); }

/* ---------- 14. TIMELINE (About page) ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue);
}
.timeline li.highlight::before { border-color: var(--gold); background: var(--gold); }
.timeline .when { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.timeline h3 { margin: 4px 0 2px; }
.timeline p { color: var(--muted); margin: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip-list li { padding: 7px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-size: .9rem; font-weight: 500; }

/* ---------- 15. PUBLICATIONS ---------- */
.search-box { position: relative; max-width: 560px; margin: 0 auto 36px; }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 999px; border: 1px solid var(--border); font: inherit; box-shadow: var(--shadow-sm); }
.pub-year { font-family: var(--font-head); color: var(--navy); border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin: 32px 0 14px; display: inline-block; }
.pub { padding: 16px 0; border-bottom: 1px solid var(--border); }
.pub-title { font-weight: 600; color: var(--navy); }
.pub-meta { color: var(--muted); font-size: .92rem; }
.badge-scopus { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: .7rem; font-weight: 700; letter-spacing: .05em; vertical-align: 2px; }
.no-results { display: none; text-align: center; color: var(--muted); }

/* ---------- 16. FAQ ACCORDION ---------- */
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; background: none; border: 0; text-align: left; cursor: pointer;
  font: 600 1rem/1.4 var(--font-body); color: var(--navy);
}
.faq-question .icon { transition: transform .25s ease; color: var(--blue); }
.faq-item.open .faq-question .icon { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 18px; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

/* ---------- 17. FORMS (Contact page) ---------- */
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #c9d6e4; border-radius: 10px;
  font: inherit; color: var(--text); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,204,.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form-status { display: none; padding: 14px; border-radius: 10px; font-weight: 500; }
.form-status.success { display: block; background: #e7f8ee; color: #136c38; }
.form-status.error { display: block; background: #fdecec; color: #a12828; }
.contact-buttons { display: grid; gap: 12px; }
.contact-btn {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border); color: var(--navy); font-weight: 600; text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.contact-btn small { display: block; font-weight: 400; color: var(--muted); }
.contact-btn .icon { width: 28px; height: 28px; }

/* ---------- 18. LEGAL PAGES (Privacy, Terms) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }

/* ---------- 19. FOOTER ---------- */
.site-footer { background: var(--navy-dark); color: #a9bdd3; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #d3e0ee; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 34px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-sub { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 3px; color: var(--gold); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; transition: background .2s ease, transform .2s ease;
}
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.social .icon { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 8px; font-size: .85rem;
}

/* ---------- 20. FLOATING WHATSAPP BUTTON ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { /* gentle pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.55); opacity: 0; } }

/* ---------- 20b. ABOUT PAGE ---------- */
.about-grid { display: grid; gap: 36px; align-items: start; }
.about-photo { max-width: 340px; margin: 0 auto; width: 100%; }
.about-photo .photo-frame { aspect-ratio: 1 / 1; }
.about-story p { font-size: 1.05rem; }
.about-story .lead { font-size: 1.2rem; color: var(--navy); font-family: var(--font-head); line-height: 1.5; }
.fact-card { background: var(--blue-soft); border-radius: var(--radius); padding: 22px; margin-top: 22px; }
.fact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fact-list li { display: flex; gap: 10px; align-items: flex-start; }
.fact-list .icon { color: var(--blue); margin-top: 3px; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; }
.panel h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.panel h2 .icon { color: var(--gold); width: 26px; height: 26px; }
.two-col { display: grid; gap: 22px; }
.award-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.award-list li { display: flex; gap: 14px; align-items: flex-start; }
.award-year {
  flex-shrink: 0; min-width: 58px; text-align: center; padding: 4px 8px; border-radius: 8px;
  background: var(--gold); color: var(--navy); font-weight: 700; font-size: .85rem;
}
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.profile-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--navy); font-weight: 600; font-size: .92rem;
  text-decoration: none; transition: border-color .2s ease, transform .2s ease;
}
.profile-links a:hover { border-color: var(--blue); transform: translateY(-2px); }
.profile-links .icon { color: var(--blue); }

/* ---------- 20c. SERVICES, TRAINING, CONTACT & OTHER INNER PAGES ---------- */
.service-card { display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 16px); }
.service-card .card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-card .card-head .card-icon { margin: 0; }
.service-card .card-head h3 { margin: 0; }
.service-card .num { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--gold); display: block; }
.service-card p { margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text); font-size: .95rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin-top: 3px;
  display: grid; place-items: center; border-radius: 50%; font-size: .7rem; font-weight: 700;
  background: var(--gold-soft); color: #8a6512;
}
.ideal-for { font-size: .9rem; color: var(--muted); margin-bottom: 16px !important; }
.card-foot {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.price { font-weight: 700; color: var(--navy); font-size: .95rem; }
.price span { font-weight: 500; color: var(--muted); font-size: .85rem; }
.card-foot .btn { width: 100%; }

.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid #ecd9a3; color: #5b4510;
}
.notice .icon { color: #a67c1b; width: 24px; height: 24px; margin-top: 2px; }
.notice p { margin: 0; }

.module { display: flex; gap: 16px; align-items: flex-start; }
.module-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-family: var(--font-head); font-weight: 700;
}
.module h3 { margin-bottom: .25em; font-size: 1.05rem; }
.module p { margin: 0; color: var(--muted); font-size: .95rem; }
.info-row { display: grid; gap: 14px; }
.info-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.info-tile .icon { width: 28px; height: 28px; color: var(--blue); margin: 0 auto 8px; display: block; }
.info-tile strong { display: block; color: var(--navy); }
.info-tile span { color: var(--muted); font-size: .92rem; }

.contact-grid { display: grid; gap: 32px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form .row-2 { display: grid; gap: 16px; }
.pub-title .tag { margin-left: 6px; vertical-align: 2px; }
.hidden-field { position: absolute; left: -9999px; }

.legal-meta { color: var(--muted); font-size: .92rem; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

.big-404 { font-family: var(--font-head); font-size: clamp(4rem, 18vw, 8rem); color: var(--navy); line-height: 1; margin: 0; }

/* ---------- 21. SCROLL-IN ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-float::before { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* =====================================================================
   TABLETS (600px and wider)
   ===================================================================== */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .contact-buttons { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =====================================================================
   LAPTOPS & DESKTOPS (960px and wider)
   ===================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 78px; }
  .section { padding: 92px 0; }

  /* Desktop menu: horizontal, always visible */
  .nav-toggle { display: none; }
  .main-nav {
    position: static; max-height: none; overflow: visible;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    transform: none; opacity: 1; visibility: visible;
    display: flex; align-items: center; gap: 18px;
  }
  .main-nav ul { display: flex; gap: 2px; }
  .main-nav a { border: 0; padding: 8px 10px; font-size: .93rem; position: relative; }
  .main-nav ul a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .2s ease;
  }
  .main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
  .main-nav .nav-cta { margin: 0; }
  .main-nav .nav-cta a { padding: 10px 20px; }

  .hero { padding: 80px 0 110px; }
  .hero-grid { grid-template-columns: 1.25fr .85fr; gap: 56px; }
  .hero-photo { justify-self: end; width: 360px; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--border) !important; padding: 30px 12px; }
  .stat:last-child { border-right: 0 !important; }
  .stat-number { font-size: 2.6rem; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .step { padding: 74px 22px 24px; }
  .step::before { left: 22px; top: 20px; }

  .cta-band { padding: 64px 40px; }
  .about-grid { grid-template-columns: 340px 1fr; gap: 56px; }
  .info-row { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; }
  .about-photo { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

/* Very wide menus: shrink nav text slightly between 960–1100px */
@media (min-width: 960px) and (max-width: 1100px) {
  .main-nav a { font-size: .86rem; padding: 8px 7px; }
  .brand-sub { display: none; }
}
