@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #0f2347;
  --teal: #10a8a0;
  --cyan: #1baed0;
  --magenta: #c02a87;
  --gold: #e8b321;
  --surface: #f7f9fc;
  --surface-alt: #eff5fb;
  --line: #dbe5f2;
}

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #223047;
  background: var(--surface);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* Clean top bar */
header {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--line) !important;
  box-shadow: 0 8px 18px rgba(15, 35, 71, 0.06);
}

header nav a,
header span,
header p {
  color: var(--ink) !important;
}

header nav a:hover {
  color: var(--teal) !important;
}

header nav a {
  position: relative;
}

header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.2s ease;
}

header nav a:hover::after {
  width: 100%;
}

header .text-accent {
  color: var(--teal) !important;
}

header [class*="bg-soft"] {
  background: #f2f8ff !important;
}

/* Home hero upgrade */
#main-content > section:first-child {
  background:
    radial-gradient(circle at 82% 18%, rgba(27, 174, 208, 0.16), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(16, 168, 160, 0.11), transparent 30%),
    #f1f6fd;
}

#main-content > section:first-child h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

#main-content > section:first-child .rounded-3xl {
  border-width: 1.5px;
}

.hero-insight-card {
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
}

.hero-insight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 12%, rgba(27, 174, 208, 0.12), transparent 35%),
    radial-gradient(circle at 12% 88%, rgba(16, 168, 160, 0.1), transparent 32%);
}

.hero-insight-card > * {
  position: relative;
  z-index: 1;
}

/* Section rhythm with flat color blocks (no gradients) */
main > section:nth-of-type(odd) {
  background: #ffffff;
}

main > section:nth-of-type(even) {
  background: var(--surface-alt);
}

.bg-grain,
.bg-soft {
  background: var(--surface-alt) !important;
}

/* Cards */
[class*="rounded-2xl"][class*="border"],
[class*="rounded-3xl"][class*="border"],
aside[class*="border"],
article[class*="border"],
blockquote[class*="border"] {
  background: #ffffff !important;
  border-color: var(--line) !important;
  box-shadow: 0 10px 24px rgba(17, 40, 82, 0.07);
}

/* Multicolor accents from logo, used subtly */
.mt-10.grid.gap-6 > a:nth-child(1) { border-top: 4px solid var(--teal); }
.mt-10.grid.gap-6 > a:nth-child(2) { border-top: 4px solid var(--gold); }
.mt-10.grid.gap-6 > a:nth-child(3) { border-top: 4px solid var(--magenta); }
.mt-10.grid.gap-6 > a:nth-child(4) { border-top: 4px solid var(--cyan); }

/* Buttons */
a[class*="rounded-full"][class*="bg-ink"],
button[class*="rounded-full"][class*="bg-ink"] {
  background: var(--ink) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 35, 71, 0.2);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

a[class*="rounded-full"][class*="bg-accent"],
button[class*="rounded-full"][class*="bg-accent"] {
  background: var(--teal) !important;
  color: #ffffff !important;
}

a[class*="rounded-full"][class*="bg-ink"]:hover,
button[class*="rounded-full"][class*="bg-ink"]:hover,
a[class*="rounded-full"][class*="bg-accent"]:hover,
button[class*="rounded-full"][class*="bg-accent"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 35, 71, 0.24);
}

[class*="text-accent"] {
  color: var(--teal) !important;
}

/* Footer */
body > footer {
  background: #0f2347 !important;
  border-color: var(--line) !important;
}

body > footer p,
body > footer a,
body > footer li,
body > footer span {
  color: rgba(236, 244, 255, 0.9) !important;
}

body > footer a:hover {
  color: #7fe2dc !important;
}

/* Social icon buttons inside footer */
body > footer [data-fb-link],
body > footer [data-ig-link] {
  background-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(236, 244, 255, 0.9) !important;
  transition: background-color 0.18s ease !important;
}

body > footer [data-fb-link]:hover {
  background-color: #1877f2 !important;
  color: #ffffff !important;
}

body > footer [data-ig-link]:hover {
  background-color: #e1306c !important;
  color: #ffffff !important;
}

/* Form controls */
input,
select,
textarea {
  border-color: #cedceb !important;
  background: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(27, 174, 208, 0.16) !important;
}

.tap { -webkit-tap-highlight-color: transparent; }

*:focus-visible {
  outline: 3px solid rgba(27, 174, 208, 0.5);
  outline-offset: 2px;
}

summary::-webkit-details-marker { display: none; }

/* Subtle reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease var(--reveal-delay, 0ms),
    transform 0.45s ease var(--reveal-delay, 0ms);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  header .mx-auto {
    gap: 0.5rem;
  }

  #main-content > section:first-child .mx-auto {
    gap: 2rem;
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  #main-content > section:first-child .rounded-3xl {
    padding: 1.2rem;
  }

  #main-content > section:first-child h1 {
    font-size: 1.9rem;
    line-height: 1.18;
  }

  .fixed.bottom-5.right-5 {
    right: 0.8rem;
    bottom: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

aside[data-nav-drawer] {
  background-color: #ffffff !important;
  border-left-color: #e2e8f0 !important;
}

aside[data-nav-drawer] p {
  color: #0f172a !important;
}

aside[data-nav-drawer] nav a:not(.text-white) {
  color: #0f172a !important;
}

aside[data-nav-drawer] nav a.text-white {
  color: #ffffff !important;
}

aside[data-nav-drawer] button[data-nav-close] {
  color: #334155 !important;
}

aside[data-nav-drawer] button[data-nav-close] svg {
  color: inherit;
  stroke: currentColor !important;
}

/* Gallery lightbox */
[data-gallery-item] {
  cursor: zoom-in;
}

.gallery-lightbox {
  margin: auto;
  max-width: min(96vw, 72rem);
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.gallery-lightbox::backdrop {
  background: rgba(15, 35, 71, 0.92);
  backdrop-filter: blur(4px);
}

.gallery-lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(88vh, 100%);
  padding: 3rem 1rem 2rem;
}

.gallery-lightbox__figure {
  margin: 0;
  width: 100%;
  text-align: center;
}

.gallery-lightbox__img {
  max-height: min(78vh, 900px);
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.gallery-lightbox__caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
}

.gallery-lightbox__counter {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.15s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox__close {
  top: 0.5rem;
  right: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
}

.gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
}

.gallery-lightbox__nav--prev {
  left: 0.25rem;
}

.gallery-lightbox__nav--next {
  right: 0.25rem;
}

@media (max-width: 640px) {
  .gallery-lightbox__nav--prev {
    left: 0;
  }

  .gallery-lightbox__nav--next {
    right: 0;
  }
}

