/* ════════════════════════════════════════════════════
   VIRISEA  ·  Main Stylesheet  ·  v2.0.0
   Brand palette derived from logo:
     Navy    #0f2540  /  #1a3a5c
     Sky     #5bacd4  /  #7ec5e5
     Cream   #f4f8fb
════════════════════════════════════════════════════ */

:root {
  --navy:       #1a3a5c;
  --navy-d:     #0f2540;
  --navy-dd:    #091829;
  --sky:        #5bacd4;
  --sky-l:      #7ec5e5;
  --sky-ll:     #b8dff0;
  --white:      #ffffff;
  --cream:      #f4f8fb;
  --slate:      #c8dde9;
  --mid:        #6b92aa;
  --drop-dark:  #1e5080;
  --drop-light: #6eb8dc;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:       2px;
  --transition:   .35s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--navy-d);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; }

/* ── CUSTOM CURSOR ── */
.cur {
  position: fixed; width: 10px; height: 10px;
  border-radius: 50%; background: var(--sky);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
}
.cur-r {
  position: fixed; width: 40px; height: 40px;
  border-radius: 50%; border: 1.5px solid rgba(91,172,212,.45);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s, height .3s;
}

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 64px;
  transition: padding var(--transition), background var(--transition),
              box-shadow var(--transition);
}
#nav.scrolled {
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 64px;
  box-shadow: 0 1px 0 rgba(26,58,92,.1);
}

/* Nav logo */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo {
  height: 48px; width: auto;
  transition: opacity var(--transition);
}
.nav-logo-link:hover .nav-logo { opacity: .85; }

/* Nav links */
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.9); text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
#nav.scrolled .nav-links a { color: var(--navy); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--sky);
  transition: width var(--transition);
}
.nav-links a:hover::after { width: 100%; }

/* WP menu item active state */
.nav-links .current-menu-item > a::after,
.nav-links .current_page_item > a::after { width: 100%; }

.nav-cta {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.9); border: 1.5px solid rgba(255,255,255,.45);
  padding: 10px 24px; text-decoration: none; border-radius: var(--radius);
  transition: all var(--transition);
}
#nav.scrolled .nav-cta { color: var(--navy); border-color: rgba(26,58,92,.3); }
.nav-cta:hover,
#nav.scrolled .nav-cta:hover {
  background: var(--sky); border-color: var(--sky);
  color: var(--white) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
  cursor: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: rgba(255,255,255,.9); transition: all .3s;
}
#nav.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-dd); z-index: 150; flex-direction: column;
  align-items: center; justify-content: center; gap: 0;
}
.mobile-nav.open { display: flex; }
.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav li { padding: 16px 0; }
.mobile-nav a {
  font-size: 1.6rem; font-family: var(--font-display);
  color: var(--white); text-decoration: none; letter-spacing: .04em;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--sky-l); }
.mobile-nav .btn-solid { margin-top: 32px; font-size: .78rem; }

/* ── HERO ── */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 64px 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy-dd) 0%, var(--navy) 45%, var(--drop-dark) 100%);
}

/* Ripple rings */
.ripple-wrap { position: absolute; inset: 0; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(91,172,212,.18);
  animation: rippleOut 8s ease-out infinite;
}
.ripple:nth-child(1) { width: 400px;  height: 400px;  top: 30%; right: 15%; animation-delay: 0s; }
.ripple:nth-child(2) { width: 650px;  height: 650px;  top: 18%; right:  5%; animation-delay: 2s; }
.ripple:nth-child(3) { width: 900px;  height: 900px;  top:  5%; right: -8%; animation-delay: 4s; }
.ripple:nth-child(4) { width: 1150px; height: 1150px; top: -8%; right:-20%; animation-delay: 6s; }
@keyframes rippleOut {
  0%   { transform: scale(.7); opacity: .6; }
  100% { transform: scale(1);  opacity: 0; }
}

/* Watermark drop */
.hero-drop-bg {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(55vw, 700px); opacity: .07;
}

/* Wave */
.hero-wave {
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 120px;
}

/* Hero content */
.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--sky-ll);
  opacity: 0; animation: fadeUp .9s .3s forwards;
}
.hero-eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--sky-l);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 900; line-height: 1.05; color: var(--white);
  opacity: 0; animation: fadeUp .9s .5s forwards;
}
.hero-title .accent { color: var(--sky-l); font-style: italic; }

.hero-sub {
  margin-top: 24px; font-size: .95rem; line-height: 1.9;
  color: var(--sky-ll); max-width: 520px;
  opacity: 0; animation: fadeUp .9s .7s forwards;
}
.hero-btns {
  margin-top: 48px; display: flex; gap: 18px; align-items: center;
  opacity: 0; animation: fadeUp .9s .9s forwards;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-ind {
  position: absolute; bottom: 36px; left: 64px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  opacity: 0; animation: fadeIn 1s 1.4s forwards;
}
.scroll-ind span { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sky-ll); }
.scroll-bar {
  width: 40px; height: 1px;
  background: rgba(91,172,212,.4); position: relative; overflow: hidden;
}
.scroll-bar::after {
  content: ''; position: absolute; left: -100%; top: 0;
  width: 100%; height: 100%; background: var(--sky);
  animation: scanLine 2.5s ease-in-out infinite;
}
@keyframes scanLine { 0% { left: -100%; } 100% { left: 100%; } }

/* ── STATS BAND ── */
.stats-band {
  background: var(--navy);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 52px 48px;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--sky);
  transition: height .6s ease;
}
.stat-item:hover::before { height: 100%; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3.2rem; font-weight: 700;
  color: var(--sky-l); line-height: 1; margin-bottom: 8px;
}
.stat-label {
  font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--slate);
}

/* ── SECTION BASE ── */
section { padding: 130px 64px; }

.tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .65rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 20px;
}
.tag::before { content: ''; width: 28px; height: 1.5px; background: var(--sky); }

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700; line-height: 1.12; color: var(--navy-d);
}
h2 em   { font-style: italic; color: var(--sky); }
h2.light     { color: var(--white); }
h2.light em  { color: var(--sky-l); }

/* ── ABOUT ── */
.about {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
}
.about-visual { position: relative; }
.about-card {
  aspect-ratio: 4/5; background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.liquid-fill {
  position: absolute; bottom: 0; left: 0; right: 0; height: 45%;
  background: linear-gradient(to top, rgba(91,172,212,.25), transparent);
}
.wave-anim {
  position: absolute; bottom: 40%;
  width: 200%; left: -50%;
  animation: waveSlide 4s linear infinite;
}
@keyframes waveSlide {
  from { transform: translateX(0) translateY(0); }
  to   { transform: translateX(-25%) translateY(-8px); }
}
.logo-center {
  position: relative; z-index: 2; width: 55%;
  filter: drop-shadow(0 0 40px rgba(91,172,212,.4));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--sky); color: var(--white);
  width: 120px; height: 120px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 12px 40px rgba(91,172,212,.4);
}
.about-badge strong { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; }
.about-badge span   { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }

.about-text p { font-size: .92rem; line-height: 2; color: #4a6a80; margin-top: 20px; margin-bottom: 16px; }
.divider { width: 1px; height: 56px; background: linear-gradient(to bottom, var(--sky), transparent); margin: 32px 0; }
.pillars { display: flex; gap: 36px; margin-top: 8px; flex-wrap: wrap; }
.pill strong { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--navy); margin-bottom: 5px; }
.pill span   { font-size: .8rem; color: var(--mid); line-height: 1.5; }

/* ── SERVICES ── */
.services { background: var(--navy-d); position: relative; overflow: hidden; }
.services-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-display); font-size: 28vw; font-weight: 900;
  color: rgba(255,255,255,.02); pointer-events: none;
  white-space: nowrap; letter-spacing: -.04em;
}
.services-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(91,172,212,.1);
  position: relative; z-index: 1;
}
.svc {
  background: var(--navy-d); padding: 52px 44px;
  position: relative; overflow: hidden;
  transition: background var(--transition);
}
.svc::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--sky-l));
  transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.svc:hover { background: rgba(91,172,212,.06); }
.svc:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-display); font-size: 5rem; font-weight: 900;
  color: rgba(91,172,212,.1); line-height: 1; margin-bottom: 24px;
  transition: color var(--transition);
}
.svc:hover .svc-num { color: rgba(91,172,212,.2); }
.svc h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 14px; }
.svc p  { font-size: .82rem; line-height: 1.9; color: var(--slate); }
.svc-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--sky); text-decoration: none; transition: gap var(--transition);
}
.svc-arrow:hover { gap: 16px; }

/* ── WHY ── */
.why {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.why-list { margin-top: 48px; }
.why-item {
  display: flex; gap: 28px; padding: 28px 0;
  border-bottom: 1px solid rgba(26,58,92,.1);
}
.why-icon {
  flex-shrink: 0; width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--sky), var(--drop-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.why-item-text strong { display: block; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.why-item-text p { font-size: .82rem; line-height: 1.8; color: #4a6a80; }

.quote-block {
  padding: 40px 44px; background: var(--navy);
  border-radius: var(--radius); position: relative; overflow: hidden;
}
.quote-block::before {
  content: '"'; position: absolute; top: -20px; left: 24px;
  font-family: var(--font-display); font-size: 10rem;
  color: rgba(91,172,212,.12); line-height: 1; pointer-events: none;
}
.quote-block blockquote {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 400; font-style: italic; color: var(--white);
  line-height: 1.6; position: relative;
}
.quote-block cite {
  display: block; margin-top: 16px; font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sky-l); font-style: normal;
}
.why-reg-box {
  margin-top: 40px; padding: 40px;
  background: linear-gradient(135deg, var(--navy), var(--drop-dark));
  border-radius: var(--radius);
}
.why-reg-box .tag { margin-bottom: 16px; }
.why-reg-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); margin-bottom: 12px; }
.why-reg-text  { font-size: .82rem; color: var(--slate); line-height: 1.9; margin-bottom: 18px; }

/* ── REGULATORY ── */
.regulatory { background: var(--navy); text-align: center; }
.regulatory .tag { justify-content: center; }
.regulatory .tag::before { display: none; }
.reg-intro { font-size: .9rem; color: var(--slate); max-width: 540px; margin: 16px auto 72px; line-height: 1.9; }
.reg-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,.06);
  max-width: 1100px; margin: 0 auto;
}
.reg-card { background: var(--navy); padding: 44px 28px; transition: background var(--transition); }
.reg-card:hover { background: rgba(91,172,212,.1); }
.reg-icon {
  width: 56px; height: 56px; margin: 0 auto 22px;
  border: 1.5px solid rgba(91,172,212,.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.reg-card h4 { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); margin-bottom: 10px; }
.reg-card p  { font-size: .76rem; line-height: 1.8; color: var(--slate); }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(120deg, var(--navy-dd) 0%, var(--drop-dark) 50%, var(--navy) 100%);
  text-align: center; padding: 140px 64px; position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,172,212,.2) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%     { transform: translate(-50%,-50%) scale(1.15); }
}
.cta-section h2 { font-size: clamp(2.8rem, 5vw, 4.8rem); margin-bottom: 22px; position: relative; }
.cta-section > p {
  font-size: .92rem; color: var(--sky-ll);
  max-width: 480px; margin: 0 auto 52px; line-height: 1.9; position: relative;
}
.cta-section .tag { position: relative; }
.cta-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── BUTTONS ── */
.btn-solid {
  display: inline-block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--sky); color: var(--white); padding: 16px 36px;
  text-decoration: none; border-radius: var(--radius); border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-solid:hover {
  background: var(--sky-l); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,172,212,.35);
}
.btn-outline-w {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.85); text-decoration: none;
  transition: gap var(--transition), color var(--transition);
}
.btn-outline-w:hover { gap: 18px; color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--navy-dd); padding: 72px 64px 44px;
}
.footer-top {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr;
  gap: 60px; margin-bottom: 60px;
}
.footer-logo { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .8rem; line-height: 1.9; color: var(--mid); max-width: 280px; }
.footer-col h5 { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sky); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a  { font-size: .8rem; color: var(--mid); text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-contact {
  font-size: .8rem; color: var(--mid); display: block;
  margin-bottom: 12px; text-decoration: none; line-height: 1.6;
  transition: color var(--transition);
}
.footer-contact:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .68rem; color: rgba(100,140,165,.5); letter-spacing: .08em; }
.footer-coord { font-family: var(--font-display); font-size: .82rem; font-style: italic; color: rgba(91,172,212,.35); }

/* ── BLOG (index.php fallback) ── */
.blog-main   { padding: 120px 64px 100px; }
.blog-title  { font-family: var(--font-display); font-size: 3rem; color: var(--navy-d); margin-bottom: 60px; }
.post-grid   { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.post-card   { background: var(--white); border: 1px solid rgba(26,58,92,.08); }
.post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-content { padding: 32px 28px; }
.post-meta   { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mid); margin-bottom: 10px; }
.post-content h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy-d); margin-bottom: 12px; }
.post-content h2 a { text-decoration: none; transition: color var(--transition); }
.post-content h2 a:hover { color: var(--sky); }
.post-content p { font-size: .85rem; line-height: 1.9; color: #4a6a80; margin-bottom: 24px; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .48s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .reg-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  #nav, #nav.scrolled { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 80px 24px; }
  .hero   { padding: 0 24px 80px; }
  .about, .why { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-band    { grid-template-columns: 1fr; }
  .services-head { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero-drop-bg  { display: none; }
  .scroll-ind    { left: 24px; }
  .cta-section   { padding: 100px 24px; }
  footer         { padding: 56px 24px 36px; }
}

@media (max-width: 600px) {
  .reg-grid    { grid-template-columns: 1fr; }
  .footer-top  { grid-template-columns: 1fr; }
  .pillars     { flex-direction: column; gap: 20px; }
  .hero-btns   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-btns    { flex-direction: column; align-items: center; }
}

/* ── WP ADMIN BAR OFFSET ── */
.admin-bar #nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #nav { top: 46px; } }
