/* ==========================================================
   IBEX Institute - Main Stylesheet
   ----------------------------------------------------------
   To change the website colours, edit the values in :root
   below. Everything else uses these colours automatically.
   ========================================================== */

:root {
  --navy:        #0b1f3a;   /* main dark blue */
  --navy-deep:   #071428;   /* darker blue (hero, footer) */
  --navy-soft:   #16325c;
  --teal:        #0f8b7e;   /* accent colour (buttons, icons) */
  --teal-light:  #2cc4b0;
  --gold:        #c9a54c;   /* small gold accents */
  --gold-light:  #e3c77d;
  --white:       #ffffff;
  --bg-soft:     #f5f7fb;   /* light grey section background */
  --text:        #1f2a3c;
  --muted:       #5b6678;
  --border:      #e3e8f0;

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

  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
  --shadow:    0 10px 30px rgba(11, 31, 58, .08);
  --shadow-lg: 0 24px 50px rgba(11, 31, 58, .16);
  --ease:      cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 700; line-height: 1.25; }
a { color: var(--teal); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--navy); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .65rem 1.5rem; transition: all .3s var(--ease); letter-spacing: .1px; }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .875rem; }
.btn-accent { background: var(--teal); color: #fff; border: 2px solid var(--teal); }
.btn-accent:hover, .btn-accent:focus { background: #0b7268; border-color: #0b7268; color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 139, 126, .3); }
.btn-gold { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 165, 76, .3); }
.btn-outline-light { border: 2px solid rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; transform: translateY(-2px); }
.btn-outline-navy { border: 2px solid var(--border); color: var(--navy); background: #fff; }
.btn-outline-navy:hover { border-color: var(--teal); background: var(--teal); color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030;
  padding: 14px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(11, 31, 58, .08);
  padding: 6px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { color: var(--teal); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; color: #fff; letter-spacing: 1.5px; transition: color .3s; }
.brand-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: 3.6px; color: var(--gold-light); margin-top: 3px; font-weight: 600; }
.scrolled .brand-name { color: var(--navy); }
.scrolled .brand-sub { color: var(--gold); }

.site-header .nav-link {
  color: rgba(255, 255, 255, .85);
  font-weight: 500; font-size: .93rem;
  padding: .5rem .85rem !important;
  position: relative;
}
.site-header .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem;
  height: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
.scrolled .nav-link { color: var(--text); }
.scrolled .nav-link:hover, .scrolled .nav-link.active { color: var(--navy); }

/* Hamburger */
.navbar-toggler { border: 0; padding: 8px; display: flex; flex-direction: column; gap: 5px; box-shadow: none !important; }
.toggler-bar { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s var(--ease); }
.scrolled .toggler-bar { background: var(--navy); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff; border-radius: var(--radius); margin-top: 12px;
    padding: 12px 16px 18px; box-shadow: var(--shadow-lg);
  }
  .site-header .nav-link { color: var(--text); padding: .7rem .5rem !important; border-bottom: 1px solid var(--border); }
  .site-header .nav-link::after { display: none; }
  .site-header .nav-link.active, .site-header .nav-link:hover { color: var(--teal); }
  .site-header.menu-open { background: rgba(255,255,255,.98); box-shadow: var(--shadow); }
  .site-header.menu-open .brand-name { color: var(--navy); }
  .site-header.menu-open .brand-sub { color: var(--gold); }
  .site-header.menu-open .toggler-bar { background: var(--navy); }
}

/* ---------- Common section styles ---------- */
.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; }
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 1rem; }
.section-desc { color: var(--muted); font-size: 1.08rem; margin: 0; }
.lead-text { font-size: 1.15rem; color: var(--text); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px;
  color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); }
.text-center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--teal-light); }
.eyebrow-light::before { display: none; }

.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.link-arrow i { transition: transform .3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

.icon-box {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(15,139,126,.12), rgba(15,139,126,.04));
  color: var(--teal); font-size: 1.5rem;
  transition: all .35s var(--ease);
}
.icon-box-sm { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 12px; }
.icon-box-light { background: rgba(44, 196, 176, .12); color: var(--teal-light); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #16325c 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 150px 0 110px;
  min-height: 100vh; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.orb-1 { width: 420px; height: 420px; background: #0f8b7e; top: -120px; right: -80px; opacity: .3; }
.orb-2 { width: 360px; height: 360px; background: #1e4f8f; bottom: -140px; left: -100px; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-title {
  font-family: var(--font-head); color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.12; margin-bottom: 1.4rem;
}
.text-gradient {
  background: linear-gradient(90deg, var(--teal-light), var(--gold-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.78); max-width: 560px; }
.hero-points { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero-points li { color: rgba(255,255,255,.72); font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--gold-light); }

.hero-visual { position: relative; max-width: 560px; margin-left: auto; }
.hero-visual > img { width: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.97); color: var(--navy);
  padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.float-card i { font-size: 1.5rem; color: var(--teal); }
.float-card strong { display: block; font-size: .9rem; line-height: 1.2; }
.float-card span { font-size: .76rem; color: var(--muted); }
.float-card-1 { left: -18px; bottom: 16%; }
.float-card-2 { right: -10px; top: 8%; animation-delay: -3s; }
.float-card-2 i { color: var(--gold); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- About feature cards ---------- */
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; height: 100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature-card h3 { font-size: 1.12rem; margin: 18px 0 8px; font-family: var(--font-body); }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feature-card:hover .icon-box { background: var(--teal); color: #fff; }

/* ---------- Journal cards ---------- */
.journal-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.journal-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.journal-cover {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #e9eef6, #f7f9fc);
  display: flex; align-items: center; justify-content: center; padding: 22px 0 0;
}
.journal-cover img {
  height: 100%; width: auto; max-width: 70%; object-fit: cover;
  border-radius: 4px 6px 0 0; box-shadow: 0 12px 30px rgba(11,31,58,.22);
  transition: transform .6s var(--ease);
}
.journal-card:hover .journal-cover img { transform: scale(1.05) translateY(-4px); }
.journal-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(11,31,58,.88); color: #fff; font-size: .7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 30px; letter-spacing: .5px;
}
.card-body-x { padding: 24px 26px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body-x h3 { font-size: 1.15rem; font-family: var(--font-body); margin-bottom: 10px; }
.card-body-x p {
  color: var(--muted); font-size: .94rem; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-body-x .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Course cards ---------- */
.course-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; height: 100%; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.course-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.course-card:hover::before { transform: scaleX(1); }
.course-card:hover .icon-box { background: var(--navy); color: var(--gold-light); }
.course-card .course-tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin: 22px 0 6px; }
.course-card h3 { font-size: 1.15rem; font-family: var(--font-body); margin-bottom: 10px; }
.course-card p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.course-card .link-arrow { margin-top: auto; }

/* ---------- OJS dark section ---------- */
.section-dark { background: var(--navy); color: #fff; overflow: hidden; }
.section-dark-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(15,139,126,.25), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(201,165,76,.12), transparent 70%);
}
.section-sub { font-size: 1.15rem; color: rgba(255,255,255,.8); }
.text-light-muted { color: rgba(255,255,255,.72); }
.service-card {
  position: relative; height: 100%; padding: 34px 30px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  transition: all .35s var(--ease);
}
.service-card:hover { background: rgba(255,255,255,.08); border-color: rgba(44,196,176,.5); transform: translateY(-6px); }
.service-card h3 { color: #fff; font-size: 1.2rem; font-family: var(--font-body); margin: 20px 0 10px; }
.service-card p { color: rgba(255,255,255,.7); margin: 0; font-size: .96rem; }
.service-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-head); font-size: 2.2rem; color: rgba(201,165,76,.35); line-height: 1; }

/* ---------- Theme cards ---------- */
.theme-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.theme-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.theme-preview { position: relative; overflow: hidden; aspect-ratio: 16 / 11; background: #e9eef6; }
.theme-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.theme-card:hover .theme-preview img { transform: scale(1.06); }
.theme-num {
  position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-deep);
  font-weight: 700; font-size: .72rem; padding: 4px 10px; border-radius: 30px; letter-spacing: .5px;
}

/* ---------- Why IBEX ---------- */
.why-item {
  display: flex; gap: 18px; padding: 26px; height: 100%;
  border-radius: var(--radius); border: 1px solid transparent; transition: all .35s var(--ease);
}
.why-item:hover { background: var(--bg-soft); border-color: var(--border); }
.why-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light); font-size: 1.3rem;
  box-shadow: 0 0 0 6px rgba(11,31,58,.06);
}
.why-item h3 { font-size: 1.1rem; font-family: var(--font-body); margin: 4px 0 6px; }
.why-item p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- CTA ---------- */
.cta-section { padding: 0 0 100px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 24px; padding: 64px 56px;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy-soft) 60%, #0d5a5a 100%);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-shapes {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 92% 18%, rgba(201,165,76,.28) 0, transparent 26%),
    radial-gradient(circle at 8% 110%, rgba(44,196,176,.25) 0, transparent 32%);
}
.cta-shapes::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02);
}
.cta-box h2 { color: #fff; font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.cta-box p { color: rgba(255,255,255,.78); margin: 0; font-size: 1.05rem; }

/* ---------- Contact ---------- */
.contact-info {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 34px; height: 100%;
  background-image: radial-gradient(400px 200px at 100% 0%, rgba(15,139,126,.35), transparent 70%);
}
.contact-info h3 { color: #fff; font-family: var(--font-head); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon-box { background: rgba(255,255,255,.08); color: var(--gold-light); }
.contact-list small { display: block; color: rgba(255,255,255,.55); font-size: .75rem; text-transform: uppercase; letter-spacing: 1.2px; }
.contact-list a, .contact-list span:not(.icon-box) { color: #fff; word-break: break-word; }
.contact-list a:hover { color: var(--gold-light); }

.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 34px; box-shadow: var(--shadow); height: 100%; }
.form-label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.form-control { border-radius: var(--radius-sm); border: 1px solid var(--border); padding: .8rem 1rem; background: #fbfcfe; }
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15,139,126,.12); background: #fff; }
.form-note { font-size: .9rem; color: var(--teal); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 80px 0 0; overflow: hidden; }
.footer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(15,139,126,.16), transparent 70%),
    radial-gradient(600px 300px at 100% 100%, rgba(201,165,76,.10), transparent 70%);
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
.newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px 36px; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  margin-bottom: 64px;
}
.newsletter h2 { color: #fff; font-family: var(--font-head); }
.newsletter-form { display: flex; gap: 10px; flex: 1 1 360px; max-width: 480px; }
.newsletter-form input {
  flex: 1; min-width: 0; border-radius: 50px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06); color: #fff; padding: .75rem 1.2rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: #fff; }
.footer-about { margin: 18px 0; max-width: 320px; }
.footer-mail { color: var(--gold-light); display: inline-flex; gap: 8px; align-items: center; }
.footer-mail:hover { color: #fff; }
.footer-title {
  color: #fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 1.6px;
  margin-bottom: 22px; position: relative; padding-bottom: 12px;
}
.footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 2px; background: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .95rem; position: relative; transition: all .3s var(--ease); }
.footer-links a:hover { color: #fff; padding-left: 8px; }
.footer-links a::before { content: ""; position: absolute; left: -6px; top: 50%; width: 0; height: 2px; background: var(--teal-light); transition: width .3s var(--ease); }
.footer-links a:hover::before { width: 8px; left: -4px; }
.footer-small { font-size: .92rem; }
.social-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icons a {
  width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 1.1rem;
  transition: all .3s var(--ease);
}
.social-icons a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); transform: translateY(-3px); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 64px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem;
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1020;
  width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .35s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--navy); color: #fff; }

/* ---------- Fade-in on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .12s !important; }
.reveal-delay-2 { transition-delay: .24s !important; }

/* ---------- Responsive tweaks ---------- */
@media (max-width: 991.98px) {
  .section { padding: 80px 0; }
  .hero { padding: 130px 0 80px; min-height: auto; }
  .hero-visual { margin: 0 auto; }
  .cta-box { padding: 48px 32px; }
}
@media (max-width: 575.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }   /* stops sideways scrolling on phones */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding: 118px 0 64px; }
  .hero .btn-lg { width: 100%; }
  .float-card { padding: 9px 12px; }
  .float-card-1 { left: 0; }
  .float-card-2 { right: 0; }
  .float-card i { font-size: 1.2rem; }
  .cta-box { padding: 40px 24px; border-radius: 18px; }
  .cta-box .btn-lg { width: 100%; }
  .contact-info, .contact-form { padding: 30px 22px; }
  .newsletter { padding: 26px 22px; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Update 2: real logo, Journal Database button,
   footer contact list, WhatsApp chat button
   ========================================================== */
.brand-logo { width: 56px; height: 56px; border-radius: 50%; display: block; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: width .35s var(--ease), height .35s var(--ease); }
.scrolled .brand-logo { width: 46px; height: 46px; box-shadow: 0 2px 8px rgba(11,31,58,.18); }
.brand-logo-footer { width: 72px; height: 72px; }

.btn-db { background: var(--gold); color: var(--navy-deep); border: 2px solid var(--gold); }
.btn-db:hover, .btn-db:focus { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,31,58,.25); }
.site-header:not(.scrolled):not(.menu-open) .btn-db:hover { background: #fff; border-color: #fff; color: var(--navy); }

.footer-contact { list-style: none; padding: 0; margin: 0; font-size: .93rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.footer-contact i { color: var(--gold-light); margin-top: 2px; }
.footer-contact a { color: rgba(255,255,255,.8); word-break: break-word; }
.footer-contact a:hover { color: #fff; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 1025;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.85rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); box-shadow: 0 12px 30px rgba(37,211,102,.5); }
.whatsapp-tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: #fff; color: var(--navy); font-size: .85rem; font-weight: 600; white-space: nowrap;
  padding: 7px 14px; border-radius: 30px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all .3s var(--ease); pointer-events: none;
}
.whatsapp-float:hover .whatsapp-tip { opacity: 1; visibility: visible; transform: translateY(-50%); }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
/* back-to-top sits above the WhatsApp button */
.back-to-top { bottom: 92px; right: 28px; }

@media (max-width: 575.98px) {
  .brand-logo { width: 48px; height: 48px; }
  .whatsapp-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; }
  .back-to-top { right: 20px; bottom: 80px; width: 44px; height: 44px; }
}

/* Keep the menu on one line on small laptops */
.site-header .nav-link, .btn-db { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .nav-link { padding: .5rem .5rem !important; font-size: .86rem; }
  .site-header .nav-link::after { left: .5rem; right: .5rem; }
  .brand-name { font-size: 1.25rem; }
  .btn-db { padding: .4rem .8rem !important; font-size: .82rem; }
  .site-header .nav-item.ms-lg-3 { margin-left: .5rem !important; }
}
