/* ============================================================
   LAIKI BANK — Private Banking & Asset Management
   Custom stylesheet (complements utility-first Tailwind CDN)
   ============================================================ */

:root {
  --midnight: #0b1b30;
  --midnight-900: #07101f;
  --midnight-800: #0f243d;
  --charcoal: #222a33;
  --bronze: #b08d57;
  --bronze-light: #c9a877;
  --bronze-soft: rgba(176, 141, 87, 0.14);
  --ivory: #f6f3ec;
  --mist: #edebe4;
  --maroon: #6e1423;
  --maroon-800: #530f1c;
  --maroon-900: #3a0912;
  --silver: #cdcac5;
  --silver-dark: #9b9892;
  --line: rgba(11, 27, 48, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Refined small-caps label used throughout for an institutional voice */
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* ---------- Hero atmosphere ---------- */
.hero-canvas {
  position: relative;
  background:
    radial-gradient(120% 120% at 82% 0%, rgba(176, 141, 87, 0.20) 0%, rgba(176, 141, 87, 0) 42%),
    radial-gradient(90% 80% at 8% 100%, rgba(20, 56, 92, 0.55) 0%, rgba(20, 56, 92, 0) 55%),
    linear-gradient(160deg, var(--midnight-900) 0%, var(--midnight) 46%, var(--midnight-800) 100%);
  overflow: hidden;
}

/* Faint horizon line evoking a Mediterranean skyline behind the architecture */
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 119, 0.5), transparent);
  pointer-events: none;
}

.hero-tower {
  position: absolute;
  right: -2%;
  bottom: 0;
  height: 92%;
  width: auto;
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .hero-tower { opacity: 0.32; right: -18%; }
}

/* ---------- Grain overlay (fixed, non-interactive) ---------- */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Mega menu (desktop) ---------- */
.nav-item > .mega {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.nav-item:hover > .mega,
.nav-item:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Underline reveal for nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 1px;
  width: 0;
  background: var(--bronze-light);
  transition: width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after,
.nav-item:hover .nav-link::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-bronze {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
  color: var(--midnight-900);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, filter 0.3s ease;
  box-shadow: 0 10px 30px -12px rgba(176, 141, 87, 0.6);
}
.btn-bronze:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 18px 40px -14px rgba(176, 141, 87, 0.7);
}
.btn-bronze:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line-light);
  color: var(--ivory);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.btn-ghost:hover {
  border-color: var(--bronze-light);
  color: var(--bronze-light);
}

/* Vault / lock login button */
.btn-vault {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(201, 168, 119, 0.45);
  color: var(--bronze-light);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-vault:hover {
  background: var(--bronze-light);
  color: var(--midnight-900);
  border-color: var(--bronze-light);
}
.btn-vault:hover svg { stroke: var(--midnight-900); }

/* ---------- Pillar rows (editorial, not boxed cards) ---------- */
.pillar {
  border-top: 1px solid var(--line);
  transition: background 0.4s ease;
}
.pillar:hover { background: rgba(176, 141, 87, 0.05); }
.pillar:hover .pillar-index { color: var(--bronze); }
.pillar:hover .pillar-arrow { transform: translateX(6px); opacity: 1; }
.pillar-index { transition: color 0.4s ease; }
.pillar-arrow { transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0.4; }

/* ---------- Insight cards ---------- */
.insight {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.insight:hover { transform: translateY(-4px); }
.insight:hover .insight-title { color: var(--bronze); }
.insight-title { transition: color 0.35s ease; }
.insight-rule {
  width: 28px; height: 1px; background: var(--bronze);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.insight:hover .insight-rule { width: 56px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Staggered hero entrance */
.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- Mobile menu ---------- */
#mobile-menu {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
#mobile-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-acc[open] .mobile-acc-panel { max-height: 420px; }

/* Form fields */
.field {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  transition: border-color 0.3s ease;
  outline: none;
}
.field:focus { border-color: var(--bronze); }
.field::placeholder { color: rgba(34, 42, 51, 0.4); }

/* Thin top scroll affordance for header shadow */
.header-shadow { box-shadow: 0 12px 30px -22px rgba(7, 16, 31, 0.55); }

/* ============================================================
   Brand integration — official logo, emblem & maroon identity
   ============================================================ */

/* Slim brand bar drawn across the very top of the header, echoing the
   maroon + silver lockup of the official logo. */
#site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--maroon) 0%, var(--bronze) 50%, var(--maroon) 100%);
  z-index: 2;
}
.site-logo { display: block; }

/* ---------- Hero emblem medallion ---------- */
.emblem-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(240px, 26vw, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.emblem-stage::before {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(201, 168, 119, 0.32), rgba(201, 168, 119, 0) 62%);
  pointer-events: none;
}
.emblem-medallion {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 168, 119, 0.25);
  animation: emblem-float 7s ease-in-out infinite;
}
@keyframes emblem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Quick-access tiles ---------- */
.quick-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.55rem 1.5rem;
  transition: background 0.3s ease;
}
.quick-tile:hover { background: rgba(176, 141, 87, 0.07); }
.quick-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--midnight);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 119, 0.25);
}
.quick-body { display: flex; flex-direction: column; line-height: 1.25; }
.quick-title { font-weight: 600; color: var(--midnight); font-size: 0.98rem; }
.quick-sub { font-size: 0.78rem; color: rgba(34, 42, 51, 0.55); margin-top: 2px; }
.quick-arrow {
  margin-left: auto;
  flex-shrink: 0;
  stroke: var(--bronze);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.quick-tile:hover .quick-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Digital banking dashboard mock ---------- */
.device-mock {
  position: relative;
  background: linear-gradient(160deg, var(--midnight-800), var(--midnight-900));
  border-radius: 18px;
  padding: 1.25rem;
  border: 1px solid rgba(201, 168, 119, 0.18);
  box-shadow: 0 44px 90px -34px rgba(7, 16, 31, 0.7);
}
.device-mock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(110, 20, 35, 0.4), transparent 55%);
  pointer-events: none;
}
.mock-bar {
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--bronze-light), var(--bronze));
}

/* ---------- Heritage / brand band (maroon) ---------- */
.brand-band {
  position: relative;
  background:
    radial-gradient(120% 120% at 85% 12%, rgba(201, 168, 119, 0.20), rgba(201, 168, 119, 0) 46%),
    linear-gradient(150deg, var(--maroon-900) 0%, var(--maroon-800) 46%, var(--maroon) 100%);
  overflow: hidden;
}
.brand-emblem {
  width: clamp(210px, 24vw, 320px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 36px 80px -32px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(201, 168, 119, 0.3);
}
.brand-lockup {
  width: 100%;
  max-width: 30rem;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 34px 78px -32px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(201, 168, 119, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .emblem-medallion { animation: none; }
}

/* ============================================================
   Bond verification & registry (Bond Verification + Manager)
   ============================================================ */

/* Inputs with a visible box (verification + manager forms) */
.input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}
.input:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px var(--bronze-soft);
}
.input::placeholder { color: rgba(34, 42, 51, 0.4); }
.input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(34, 42, 51, 0.6);
  margin-bottom: 0.4rem;
}

/* Status pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.badge-ok { color: #2f6b3d; background: rgba(47, 107, 61, 0.1); border-color: rgba(47, 107, 61, 0.25); }
.badge-warn { color: #8a6d1f; background: rgba(176, 141, 87, 0.14); border-color: rgba(176, 141, 87, 0.35); }
.badge-bad { color: var(--maroon); background: rgba(110, 20, 35, 0.08); border-color: rgba(110, 20, 35, 0.25); }
.badge-neutral { color: var(--silver-dark); background: rgba(155, 152, 146, 0.12); border-color: rgba(155, 152, 146, 0.3); }

/* Verification result certificate */
.bond-cert {
  position: relative;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(7, 16, 31, 0.5);
  overflow: hidden;
}
.bond-cert::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--bronze);
  pointer-events: none;
}
.bond-cert--ok::before { border-left-color: #2f6b3d; }
.bond-cert--warn::before { border-left-color: var(--bronze); }
.bond-cert--bad::before { border-left-color: var(--maroon); }
.bond-cert dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bond-cert dl > div {
  padding: 0.95rem 1.1rem;
  border-top: 1px solid var(--line);
}
.bond-cert dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(34, 42, 51, 0.5);
  font-weight: 600;
}
.bond-cert dd {
  margin-top: 0.25rem;
  font-size: 0.96rem;
  color: var(--midnight);
  font-weight: 500;
}
@media (max-width: 540px) {
  .bond-cert dl { grid-template-columns: 1fr; }
}

/* Registry table (manager) */
.registry {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.registry th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(34, 42, 51, 0.55);
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.registry td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  vertical-align: middle;
}
.registry tr:hover td { background: rgba(176, 141, 87, 0.05); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--maroon);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { background: rgba(110, 20, 35, 0.07); border-color: rgba(110, 20, 35, 0.3); }

/* Toast / inline notice */
.notice {
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.notice-ok { color: #2f6b3d; background: rgba(47, 107, 61, 0.08); border-color: rgba(47, 107, 61, 0.25); }
.notice-bad { color: var(--maroon); background: rgba(110, 20, 35, 0.07); border-color: rgba(110, 20, 35, 0.25); }

/* ============================================================
   Legal & disclaimer pages — long-form prose
   ============================================================ */
.legal-prose {
  color: rgba(34, 42, 51, 0.82);
  font-size: 0.975rem;
  line-height: 1.75;
}
.legal-prose > * + * { margin-top: 1.15rem; }
.legal-prose h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--midnight);
  font-size: 1.85rem;
  line-height: 1.2;
  margin-top: 2.75rem;
  scroll-margin-top: 6rem;
}
.legal-prose h3 {
  font-weight: 600;
  color: var(--midnight);
  font-size: 1.05rem;
  margin-top: 1.9rem;
}
.legal-prose p { color: rgba(34, 42, 51, 0.78); }
.legal-prose a {
  color: var(--maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-prose a:hover { color: var(--bronze); }
.legal-prose ul,
.legal-prose ol { padding-left: 1.35rem; }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li { margin-top: 0.5rem; padding-left: 0.25rem; }
.legal-prose strong { color: var(--midnight); font-weight: 600; }
.legal-prose .lede {
  font-size: 1.075rem;
  line-height: 1.7;
  color: rgba(34, 42, 51, 0.7);
}
.legal-prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

/* ============================================================
   Cookie consent banner (injected by main.js on every page)
   ============================================================ */
#cookie-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 60rem;
  margin-inline: auto;
  background: var(--midnight-900);
  color: var(--ivory);
  border: 1px solid rgba(201, 168, 119, 0.28);
  border-radius: 8px;
  box-shadow: 0 30px 70px -30px rgba(7, 16, 31, 0.85);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
#cookie-consent .cc-copy {
  flex: 1 1 22rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(246, 243, 236, 0.72);
}
#cookie-consent .cc-copy strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
#cookie-consent .cc-copy a {
  color: var(--bronze-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#cookie-consent .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0.6rem 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.cc-btn-accept {
  background: linear-gradient(135deg, var(--bronze-light), var(--bronze));
  color: var(--midnight-900);
  border: 1px solid transparent;
  box-shadow: 0 10px 30px -12px rgba(176, 141, 87, 0.6);
}
.cc-btn-accept:hover { transform: translateY(-1px); filter: brightness(1.05); }
.cc-btn-decline {
  background: transparent;
  color: rgba(246, 243, 236, 0.75);
  border: 1px solid rgba(201, 168, 119, 0.4);
}
.cc-btn-decline:hover { color: var(--bronze-light); border-color: var(--bronze-light); }
@media (prefers-reduced-motion: reduce) {
  #cookie-consent { transition: none; transform: none; }
}
