/* ============================================================
   Abel Hiller Law PLLC - Redesign Prototype
   Shared design system
   ============================================================ */
:root {
  /* Brand palette sampled from the Abel|Hiller logo */
  --navy-900: #10152e;
  --navy-800: #1b2153;
  --navy-700: #252c66;
  --navy-600: #333d7d;
  --gold: #56a8dc;        /* brand light blue (accent) */
  --gold-light: #7fbee6;  /* lighter blue */
  --ink: #1c2430;
  --slate: #55606e;
  --paper: #f5f7fa;
  --white: #ffffff;
  --line: #dfe5ec;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1180px;
  --radius: 6px;
  --shadow: 0 18px 45px rgba(11, 22, 38, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); color: var(--navy-800); margin-bottom: 14px; }
.section-sub { color: var(--slate); max-width: 640px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn-outline-dark { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline-dark:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Header (white bar so the full-color logo reads) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(16,21,46,0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
/* Logo rebuilt in code (matches the brand mark: overlapping navy A + blue H,
   serif ABEL|HILLER) so it renders crisply on the white header at any size. */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mono {
  height: 44px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}
.site-header.scrolled .brand-mono { height: 36px; }
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-800);
  white-space: nowrap;
  transition: font-size 0.3s ease;
}
.brand-word .pipe { font-weight: 400; padding: 0 6px; color: var(--navy-800); }
.site-header.scrolled .brand-word { font-size: 20px; }
@media (max-width: 480px) {
  .brand-word { font-size: 18px; letter-spacing: 0.1em; }
  .brand-mono { height: 36px; }
}
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-cta { background: var(--navy-800); color: var(--white) !important; padding: 11px 22px !important; border-radius: var(--radius); border-bottom: none !important; }
.nav-cta:hover { background: var(--gold); color: var(--navy-900) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px rgba(16,21,46,0.14);
  padding: 10px 0;
  min-width: 240px;
  list-style: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block; padding: 10px 22px;
  text-transform: none; letter-spacing: 0.03em;
  font-size: 14px; border-bottom: none;
}
.dropdown a:hover { background: rgba(86,168,220,0.12); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy-800); transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    linear-gradient(160deg, rgba(16,21,46,0.96) 0%, rgba(27,33,83,0.9) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(86,168,220,0.3), transparent 55%),
    var(--navy-900);
  padding: 170px 0 90px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(86,168,220,0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  animation: drift 60s linear infinite;
  pointer-events: none;
}
@keyframes drift { to { background-position: 340px 170px; } }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; margin-top: 16px; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: rgba(255,255,255,0.75); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.practice-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-800);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practice-card:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(11,22,38,0.22); }
.practice-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
  opacity: 0.85;
  filter: saturate(0.7);
}
/* Brand-palette tint so all practice imagery sits in the navy/blue scheme */
.practice-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, var(--navy-800), var(--gold));
  opacity: 0.38;
  mix-blend-mode: color;
  pointer-events: none;
}
.practice-card:hover img { transform: scale(1.06); }
.practice-card .card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 28px 26px;
  background: linear-gradient(to top, rgba(11,22,38,0.95) 20%, rgba(11,22,38,0.5) 70%, transparent);
  color: var(--white);
}
.practice-card h3 { font-size: 26px; margin-bottom: 6px; }
.practice-card p { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.5; }
.practice-card .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
}
.practice-card .card-link::after { content: " →"; transition: 0.2s; }
.practice-card:hover .card-link::after { padding-left: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.08em; color: var(--white); margin-bottom: 12px; text-transform: uppercase; }
.footer-brand-name .amp { color: var(--gold); font-style: normal; padding: 0 6px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 10px; font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.45); padding: 0 0 8px; max-width: 820px; }

/* ---------- Rotating word in section titles ---------- */
.word-rotator { color: var(--gold); font-style: italic; transition: opacity 0.4s; }
.word-rotator.fade-out { opacity: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .page-hero::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 110px 34px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -20px 0 60px rgba(16,21,46,0.25);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 16px; padding: 10px 0; }
  .dropdown {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    background: none; border: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0;
  }
  .dropdown a { font-size: 14px; padding: 7px 0; color: var(--slate); }
  .nav-cta { margin-top: 14px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 64px 0; }
}
