/* ==========================================================================
   LNA Advisors — shared stylesheet
   Adjust the design tokens below to retheme the entire site.
   ========================================================================== */

:root {
  /* --- Color palette (soft greys & blues) --------------------------------- */
  --color-bg:           #f7f9fb;  /* near-white page background */
  --color-bg-alt:       #eef2f6;  /* subtle alternate section band */
  --color-surface:      #ffffff;  /* cards, form fields */
  --color-text:         #1b2a3a;  /* deep navy/slate — primary text */
  --color-text-muted:   #56697c;  /* secondary text */
  --color-accent:       #3f6ea5;  /* muted mid-blue — links / CTAs */
  --color-accent-hover: #2f5680;  /* darker hover state */
  --color-border:       #dde4ec;  /* hairlines, dividers */
  --color-focus:        #6f9fd8;  /* visible focus ring */

  /* --- Typography --------------------------------------------------------- */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-hero:   clamp(3.2rem, 7.5vw, 6rem);
  --fs-h1:     clamp(2.6rem, 5.5vw, 4.25rem);
  --fs-h2:     clamp(2rem, 3.8vw, 3rem);
  --fs-h3:     1.6rem;
  --fs-lead:   clamp(1.1rem, 1.8vw, 1.35rem);
  --fs-body:   1.0625rem;
  --fs-small:  0.9rem;

  --lh-tight:  1.15;
  --lh-body:   1.7;

  /* --- Spacing & layout --------------------------------------------------- */
  --space-section: clamp(4rem, 9vw, 8rem);
  --maxw:          1180px;
  --maxw-narrow:   720px;
  --radius:        10px;
  --shadow:        0 1px 2px rgba(27, 42, 58, 0.04),
                   0 8px 28px rgba(27, 42, 58, 0.06);
  --header-h:      72px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

/* Visible, consistent focus states for keyboard users */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Screen-reader-only utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-text);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--space-section); }
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--color-accent-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1a2a4a;
  white-space: nowrap;
}
.brand:hover { color: #1a2a4a; }
.brand .brand__mark { color: #4a7fbd; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: var(--color-text);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--color-accent); }

.nav__cta { margin-left: 0.5rem; }
.nav__cta .btn { padding: 0.6rem 1.1rem; }

/* Hamburger toggle */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--color-text);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav__toggle-bar::before { transform: translate(-50%, -7px); }
.nav__toggle-bar::after  { transform: translate(-50%, 5px); }

/* Animate to an "X" when open */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after  { transform: translate(-50%, 0) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(3.5rem, 9vw, 7rem);
}
.hero__inner { max-width: 22ch; }
.hero h1 {
  font-size: var(--fs-hero);
  margin-bottom: 0.4em;
}
.hero .lead {
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Hero with full-bleed city banner image ----------------------------- */
.hero--banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-text); /* fallback while the image loads */
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}
/* The photo sits in its own layer so we can tune crop independently */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("https://images.unsplash.com/photo-1756679643031-e45437df44e7?fm=jpg&q=80&w=3000&auto=format&fit=crop");
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02); /* hides any hairline edge from the overlay */
}
/* Navy gradient overlay keeps the headline readable over the city */
.hero--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    rgba(18, 29, 42, 0.55) 0%,
    rgba(18, 29, 42, 0.42) 40%,
    rgba(18, 29, 42, 0.15) 100%
  );
}
/* Light text treatment over the dark banner */
.hero--banner h1 { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
.hero--banner .lead { color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.35); }
.hero--banner .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: transparent;
}
.hero--banner .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
/* Tiny photo credit, bottom-right of the banner */
.hero__credit {
  position: absolute;
  right: clamp(0.75rem, 3vw, 1.5rem);
  bottom: 0.6rem;
  z-index: 1;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
}
.hero__credit a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.hero__credit a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .hero__media { transform: none; }
}

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-header {
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.page-header h1 { font-size: var(--fs-h1); }

/* ==========================================================================
   Generic grids
   ========================================================================== */
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Cards (services, why-us, team)
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c9d6e3;
}
.card__index {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}
.card h3 { margin-top: 0.4rem; font-size: var(--fs-h3); }
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card__meta {
  display: block;
  margin-top: 1rem;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Service detail blocks (Services page) */
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--color-border);
}
.service:last-child { border-bottom: 1px solid var(--color-border); }
.service__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-accent);
  line-height: 1;
}
.service h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.service__for {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.service__for strong { color: var(--color-text); font-weight: 600; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-member { text-align: left; }
.avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #e3ecf5, #cdd9e6);
  color: #fff;
  overflow: hidden;
}
/* Soft-tinted variants so the four avatars feel distinct */
.avatar--1 { background: linear-gradient(150deg, #dbe6f1, #b9c9dc); }
.avatar--2 { background: linear-gradient(150deg, #e0e8f0, #c2cedb); }
.avatar--3 { background: linear-gradient(150deg, #d8e4ef, #b3c6da); }
.avatar--4 { background: linear-gradient(150deg, #e2eaf2, #c7d3e0); }
.avatar svg { width: 46%; height: 46%; opacity: 0.65; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.team-member h3 { margin-bottom: 0.15rem; font-size: var(--fs-h3); }
.team-member .role {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.team-member .credential {
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 0.8rem;
}
.team-member p { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: 0; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--color-text);
  line-height: 1;
  display: block;
}
.stat__label {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Split / CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 50ch; margin-inline: auto; }
.cta-band .btn--primary { background: #fff; color: var(--color-text); margin-top: 1.5rem; }
.cta-band .btn--primary:hover { background: #eaf1f8; color: var(--color-text); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.contact-detail { margin-bottom: 1.75rem; }
.contact-detail .label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.contact-detail a, .contact-detail span { font-size: 1.15rem; }

/* Form */
.form-field { margin-bottom: 1.35rem; }
.form-field label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-field label .req { color: var(--color-accent); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(63, 110, 165, 0.15);
}
.form-field textarea { min-height: 150px; resize: vertical; }

/* Inline validation messaging */
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #c0563f;
}
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: var(--fs-small);
  color: #c0563f;
}
.form-field.has-error .field-error { display: block; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  display: none;
}
.form-status.is-success {
  display: block;
  background: #e6f1ea;
  color: #2f6b48;
  border: 1px solid #bcdcc8;
}
.form-status.is-error {
  display: block;
  background: #f7e7e2;
  color: #a8432a;
  border: 1px solid #e6c3b8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--color-bg-alt);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-footer .brand { font-size: 1.15rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.footer-links a { color: var(--color-text); font-size: var(--fs-small); }
.footer-copy { font-size: var(--fs-small); color: var(--color-text-muted); width: 100%; }

/* ==========================================================================
   Scroll-reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 0.75rem; }
  .service__num { font-size: 2rem; }
}

@media (max-width: 720px) {
  /* Mobile navigation */
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__cta { display: none; }

  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 0.9rem clamp(1.25rem, 5vw, 2.5rem);
    border-bottom: 1px solid var(--color-border);
  }
  .nav__links a::after { display: none; }
  .nav__links li:last-child a { border-bottom: 0; }

  .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 460px) {
  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}
