/* ============================================================
   Falcon Law Office PLLC — Design system (base)
   Blueprint: Princeton AM (restraint + precision), recolored
   white / beige, with a technology-forward motion layer.
   ============================================================ */

:root {
  --white: #FFFFFF;
  --cream: #FBF8F3;        /* page background */
  --beige: #F3ECE1;        /* raised panels */
  --sand: #E8DDCB;         /* hairlines on beige, chips */
  --taupe: #CBB89B;        /* quiet accents */
  --gold: #A98E4A;         /* from the logo: rules, dots, focus */
  --gold-dark: #8C7438;
  --ink: #1A1814;          /* warm near-black */
  --ink-soft: #4A453D;
  --muted: #7A7366;
  --navy: #1B2A4A;         /* logo navy, used sparingly */
  --line: rgba(26, 24, 20, 0.12);
  --line-soft: rgba(26, 24, 20, 0.07);

  --display: "Inter Tight", "Inter", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --wordmark: "Cormorant SC", "Cormorant Garamond", Georgia, serif;

  --max-w: 1200px;
  --pad-x: 24px;
  --sec-y: clamp(80px, 11vw, 140px);
  --radius: 20px;
  --radius-sm: 12px;

  --dur: 240ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
::selection { background: var(--sand); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 400; letter-spacing: -0.015em; }
h1 em, h2 em, h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { max-width: 66ch; }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.muted { color: var(--muted); }

/* Chip label — echoes the "• Services •" pill in the services reference */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--white);
  margin-bottom: 22px;
}
.chip::before, .chip::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--taupe);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--sec-y) 0; }
.grid { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-5-7 { grid-template-columns: 5fr 7fr; gap: 72px; }
  .grid-7-5 { grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 22px;
  min-height: 48px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  will-change: transform;
}
.btn .arr {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  transition: transform 420ms var(--ease-out);
}
.btn .arr svg { width: 14px; height: 14px; }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(26, 24, 20, 0.5); }
.btn:hover .arr { transform: rotate(-45deg); }
.btn:focus-visible, .btn-ghost:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line-soft); }
.btn-light .arr { background: var(--ink); color: var(--white); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
  background: var(--white);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-ghost svg { width: 14px; height: 14px; transition: transform var(--dur) var(--ease); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:hover svg { transform: translate(2px, -2px); }

.textlink {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--taupe);
  transition: text-decoration-color var(--dur) var(--ease);
}
.textlink:hover { text-decoration-color: var(--ink); }

/* ---------- Header (floats, then condenses into a glass pill) ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0 0;
  transition: padding 380ms var(--ease);
  pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  max-width: calc(var(--max-w) + 40px);
  margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 64px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: background 380ms var(--ease), box-shadow 380ms var(--ease), border-color 380ms var(--ease), max-width 480ms var(--ease), padding 380ms var(--ease);
}
.site-header.scrolled { padding-top: 12px; }
.site-header.scrolled .nav-shell {
  max-width: 1080px;
  padding: 0 10px 0 22px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px -24px rgba(26, 24, 20, 0.35);
  margin: 0 16px;
}
@media (min-width: 1112px) { .site-header.scrolled .nav-shell { margin: 0 auto; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(26, 24, 20, 0.25)); transition: transform 600ms var(--ease-out); }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--wordmark); font-size: 1.28rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1; white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 1.08rem; } .brand img { width: 38px; height: 38px; } }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.42em; color: var(--gold); margin-top: 4px; font-weight: 600; }

.nav-links { display: none; list-style: none; gap: 34px; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  position: relative;
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 8px 0; transition: color var(--dur) var(--ease);
}
.nav-links > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 380ms var(--ease-out);
}
.nav-links > li > a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links > li > a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 250px; list-style: none; padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(26, 24, 20, 0.3);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--beige); }
.dropdown a span { font-size: 0.72rem; color: var(--muted); }

.nav-cta { display: none; }
.nav-cta .btn { min-height: 46px; padding: 6px 6px 6px 20px; font-size: 0.88rem; }
.nav-cta .btn .arr { width: 32px; height: 32px; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line-soft);
}
.nav-toggle i { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: background var(--dur); }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform 300ms var(--ease); }
.nav-toggle i::before { top: -6px; } .nav-toggle i::after { top: 6px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
}
@media (max-width: 999px) {
  .nav-shell { padding: 0 16px; }
  .site-header { padding-top: 16px; }
  .site-header.scrolled .nav-shell { padding: 0 8px 0 16px; }
}

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: -1;
  background: rgba(251, 248, 243, 0.98);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 110px 24px 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 320ms;
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--display); font-weight: 300; font-size: 1.9rem; letter-spacing: -0.02em; text-decoration: none;
  transform: translateY(12px); opacity: 0; transition: transform 500ms var(--ease-out), opacity 500ms var(--ease-out);
}
.mobile-menu .sub a { font-family: var(--sans); font-size: 1rem; padding-left: 18px; color: var(--ink-soft); }
.mobile-menu.open a { transform: none; opacity: 1; }
.mobile-menu .btn {
  display: inline-flex; margin-top: 28px; padding: 7px 7px 7px 22px; border-bottom: 0;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500; letter-spacing: 0;
}
body.menu-open { overflow: hidden; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

/* ---------- Image frames ---------- */
.img-frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease-out); }
.img-frame:hover img { transform: scale(1.04); }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-54 { aspect-ratio: 5 / 4; }

/* ---------- Footer (dark, as in the services reference) ---------- */
.site-footer { background: #12110E; color: rgba(255, 255, 255, 0.62); padding: 88px 0 36px; font-size: 0.88rem; }
.footer-grid { display: grid; gap: 44px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; } }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #F5EFE4; }
.footer-seal { width: 52px; height: 52px; }
.footer-brand .brand-name { color: #F5EFE4; }
.site-footer h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.42); margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color var(--dur); }
.site-footer a:hover { color: var(--white); }
.site-footer strong { display: block; color: rgba(255, 255, 255, 0.9); font-weight: 500; }
.footer-legal {
  margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  font-size: 0.76rem; color: rgba(255, 255, 255, 0.42);
}
.footer-legal p { max-width: 80ch; }
.footer-legal .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-right: 8px; vertical-align: middle; }
.footer-note { margin-top: 16px; font-size: 0.74rem; line-height: 1.6; color: rgba(255, 255, 255, 0.38); max-width: none; }

/* ---------- Utilities ---------- */
.center { text-align: center; } .center p { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; } .mt-6 { margin-top: 64px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
