/* =========================================================================
   Mahamba Law: component styles that sit on top of the compiled Tailwind file.
   This file needs NO build step: edit it and refresh.

   Scroll states are driven by <html data-docked="true|false">, which hero-dock.js
   flips once the visitor scrolls past 80px (inner pages start with "true").
   ========================================================================= */

:root {
  --navy: #2f4472;
  --navy-900: #1b2a4a;

  /* Page colours. Change these two lines to re-colour every page. Very light purple, not white. */
  --page-bg: #e9e6f7;   /* background of every page */
  --hero-bg: #e9e6f7;   /* behind the handshake artwork on the home page (also the slider's loading colour) */
}
.bg-page { background-color: var(--page-bg); }
.bg-hero { background-color: var(--hero-bg); }

/* ---------- Page scaffolding ---------- */
.hero { min-height: 100vh; min-height: 100svh; }
.page { margin: 0 auto; max-width: 64rem; padding: 7rem 1rem 4rem; }   /* top padding clears the fixed navbar */
.page--narrow { max-width: 48rem; }
.page h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.page-head { margin-bottom: 2rem; }
.lead { font-size: 1.15rem; color: rgb(27 42 74 / .8); }
.eyebrow { margin-bottom: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(47 68 114 / .8); }
.section-title { margin: 2.5rem 0 1rem; font-size: 1.4rem; font-weight: 600; letter-spacing: -.01em; }
.empty { padding: 2rem 1rem; text-align: center; color: rgb(27 42 74 / .65); }

.prose-lite p { margin: 0 0 1rem; line-height: 1.75; color: rgb(27 42 74 / .9); }
.prose-lite p:last-child { margin-bottom: 0; }

/* ---------- Navbar ---------- */
/* On the home page hero-dock.js sets --nav-a (0 to 1) while you scroll, so the white follows the scrollbar. */
#site-nav {
  background-color: rgb(255 255 255 / var(--nav-a, 0));
  box-shadow: none;
  transition: box-shadow .3s ease;
}
html[data-docked="true"] #site-nav {
  --nav-a: 1;                                                                     /* bg-white */
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);     /* shadow-md */
}
.nav-links { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nav-links::-webkit-scrollbar { display: none; }
/* Home page: the navbar links start invisible and fade in while you scroll (hero-dock.js drives the opacity). */
html[data-docked="false"] #nav-links { opacity: 0; }
/* Phones: links that do not all fit scroll sideways; a soft fade on the right edge hints at that */
@media (max-width: 767px) {
  .nav-links {
    padding-right: 1.75rem;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 1.75rem), transparent);
  }
}

/* "Contact" belongs to the docked navbar only; the clean hero stays exactly like the design */
#nav-contact { flex: none; transition: opacity .3s ease .3s, background-color .2s ease; }
html[data-docked="false"] #nav-contact { opacity: 0; visibility: hidden; transition: none; }

/* ---------- 25-year picture (one element, moved between hero slot and navbar dock) ---------- */
.brand-logo { display: block; width: 100%; height: 100%; }
.brand-logo img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 1px 1px rgb(27 42 74 / .35));    /* keeps the silver readable on light surfaces */
}

/* ---------- Caption: only appears once the picture is in the top-right corner ---------- */
.logo-caption {
  position: fixed; z-index: 40; top: 4rem; right: .75rem;
  max-width: calc(100vw - 1.5rem); margin: 0; padding: .4rem .8rem;
  border-radius: 0 0 .75rem .75rem; background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1);
  color: var(--navy-900); font-size: .8rem; font-weight: 500; line-height: 1.2; text-align: right;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
html[data-docked="true"] .logo-caption { opacity: 1; transform: none; transition-delay: .1s; }   /* appears just after the picture lands */
@media (min-width: 768px) {                    /* wide screens: sits in the navbar, just left of the picture */
  .logo-caption {
    position: static; z-index: auto; max-width: 14rem; padding: 0;
    border-radius: 0; background: none; box-shadow: none; font-size: .85rem; transform: none;
  }
}
@media (min-width: 1024px) { .logo-caption { max-width: 22rem; } }
@media (min-width: 1280px) { .logo-caption { max-width: 30rem; } }
@media (max-width: 767px) {                    /* phones: the caption hangs under the navbar, so start the page a little lower */
  html:has(.logo-caption) .page { padding-top: 8.75rem; }
}

/* ---------- Frosted glass card (hero + slider) ---------- */
.glass-card {
  box-shadow: 0 20px 60px -20px rgb(27 42 74 / .45), inset 0 1px 0 rgb(255 255 255 / .7);
  transition: opacity .35s ease, transform .35s ease;
}
/* The hero card's opacity follows the scrollbar (hero-dock.js sets it), so no transition; will-change keeps the fade on the GPU. */
#hero-card { transition: none; will-change: opacity; }

/* ---------- Pills (in the hero) and nav links (in the navbar): same elements ---------- */
.pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: .5rem 1rem; border-radius: .75rem;
  border: 1px solid rgb(255 255 255 / .65);
  background: linear-gradient(180deg, rgb(255 255 255 / .85), rgb(226 232 240 / .85));
  box-shadow: 0 2px 6px rgb(27 42 74 / .18);
  color: var(--navy-900); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.pill:hover { background: #fff; }
.pill:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.nav-links .pill {                             /* flat link look once in the navbar */
  padding: .5rem .75rem; border-color: transparent; border-radius: .5rem;
  background: transparent; box-shadow: none;
}
.nav-links .pill:hover { background: rgb(47 68 114 / .1); }

/* ---------- Home page sections ---------- */
.home-section { padding: 3rem 1rem; }
.home-wrap { margin: 0 auto; max-width: 64rem; }
.home-wrap--narrow { max-width: 44rem; }
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.home-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.visit { display: grid; gap: 1rem; }
.visit-details p { margin: 0 0 1rem; line-height: 1.5; }
.visit-details p:last-child { margin-bottom: 0; }
.visit-map { width: 100%; height: 20rem; border: 0; border-radius: 1rem; background: var(--hero-bg); box-shadow: 0 0 0 1px rgb(27 42 74 / .08); }
@media (min-width: 768px) { .visit { grid-template-columns: 1fr 2fr; } .visit-map { height: 100%; min-height: 20rem; } }

/* ---------- Buttons, links, cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border: 0; border-radius: .75rem; cursor: pointer;
  background: var(--navy); color: #fff; font: inherit; font-size: .95rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 2px 6px rgb(27 42 74 / .25);
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--navy-900); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px rgb(47 68 114 / .25); }
.btn--light:hover { background: rgb(255 255 255 / .6); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.link { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--navy-900); }

.card {
  padding: 1.25rem; border-radius: 1rem; background: #fff;
  box-shadow: 0 1px 2px rgb(27 42 74 / .08), 0 0 0 1px rgb(27 42 74 / .06);
}
.card-link { transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgb(27 42 74 / .25), 0 0 0 1px rgb(27 42 74 / .1); }
.card-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.avatar {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 9999px;
  background: rgb(47 68 114 / .12); color: var(--navy); font-size: 1.5rem; font-weight: 600; text-transform: uppercase;
}
.avatar--lg { width: 9rem; height: 9rem; border-radius: 1rem; font-size: 3rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.field input, .field textarea, .input {
  width: 100%; padding: .7rem .9rem; border: 1px solid rgb(27 42 74 / .25); border-radius: .75rem;
  background: #fff; color: inherit; font: inherit;
}
.field input:focus, .field textarea:focus, .input:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.field-error { margin-top: .3rem; color: #b91c1c; font-size: .85rem; }
.notice { margin: 0; padding: .8rem 1rem; border-radius: .75rem; font-weight: 500; }
.notice--success { background: #dcfce7; color: #14532d; }
.notice--error { background: #fee2e2; color: #7f1d1d; }
.notice ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Slider ---------- */
.slide { opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slider-dot {
  width: .6rem; height: .6rem; border-radius: 9999px; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .6); box-shadow: 0 0 0 1px rgb(27 42 74 / .35);
  transition: width .25s ease, background-color .25s ease;
}
.slider-dot[aria-current="true"] { width: 1.5rem; background: #fff; }
.slider-arrow {
  position: absolute; top: 50%; z-index: 10; width: 2.5rem; height: 2.5rem; border: 0; cursor: pointer;
  transform: translateY(-50%); border-radius: 9999px;
  background: rgb(255 255 255 / .75); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--navy-900); font-size: 1.5rem; line-height: 1;
}
.slider-arrow:hover { background: #fff; }
@media (max-width: 639px) { .slider-arrow { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
