/* ═══════════════════════════════════════════════════
   SPOLIANSKY LAW P.A. — DESIGN SYSTEM
   spolianskylaw.com
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Jost:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─── */
:root {
  --navy:      #0a1628;
  --navy-mid:  #0f2040;
  --navy-lt:   #162d52;
  --gold:      #c9a84c;
  --gold-lt:   #e8c96e;
  --gold-dk:   #a07830;
  --cream:     #f5f0e8;
  --warm-white:#faf8f4;
  --text-dark: #1a1a2e;
  --text-mid:  #4a5568;
  --text-lt:   #8a9ab5;
  --muted:     #c8d4e8;
  --border:    rgba(201,168,76,0.2);
  --border-lt: rgba(201,168,76,0.1);

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', 'Helvetica Neue', sans-serif;
  --ease:       cubic-bezier(0.4,0,0.2,1);
  --transition: 0.35s var(--ease);
  --shadow:     0 8px 40px rgba(0,0,0,0.25);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.15;
}
h1 { font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 400; }
p  { font-weight: 300; color: var(--muted); font-size: 1rem; line-height: 1.8; }

.gold   { color: var(--gold); }
.italic { font-style: italic; }
.light-text { color: var(--text-mid); }

/* ─── LAYOUT ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-light { background: var(--warm-white); color: var(--text-dark); }
.section-light p { color: var(--text-mid); }
.section-light h2, .section-light h3 { color: var(--navy); }
.section-cream { background: var(--cream); color: var(--text-dark); }
.section-cream p { color: var(--text-mid); }
.section-cream h2, .section-cream h3 { color: var(--navy); }
.section-mid { background: var(--navy-mid); }

/* ─── SECTION LABEL ─── */
.section-label {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-light .section-label,
.section-cream .section-label { color: var(--gold-dk); }
.section-light .section-label::before,
.section-cream .section-label::before { background: var(--gold-dk); }

/* ─── DIVIDER ─── */
.gold-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.3); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy); }
.btn-outline-dark { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--cream); }

/* ─── NAVIGATION ─── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: rgba(10,22,40,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-lt);
  transition: var(--transition);
}
#nav.scrolled {
  padding: 0.5rem 0;
}
/* Homepage only — start transparent over full-screen hero */
body.page-home #nav {
  background: transparent;
  border-bottom: none;
}
body.page-home #nav.scrolled {
  background: rgba(10,22,40,0.98);
  border-bottom: 1px solid var(--border-lt);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 70px;
  width: auto;
  display: block;
  transition: opacity var(--transition);
}
.logo:hover img { opacity: 0.85; }
/* Fallback text (if image fails) */
.logo span { color: var(--gold); }
.logo small {
  font-size: 0.52em;
  font-weight: 300;
  color: var(--text-lt);
  letter-spacing: 0.12em;
  vertical-align: middle;
  margin-left: 0.3em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}
.nav-links li { position: relative; }
.nav-links > li > a {
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-lt);
  padding: 0.5rem 1rem;
  display: block;
  transition: color var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--gold); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(10,22,40,0.99);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: var(--transition);
  z-index: 2000;
  /* invisible bridge fills gap so cursor doesn't fall through */
  padding-top: 0;
}
/* invisible hover bridge between trigger and dropdown */
.nav-links li::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  display: none;
}
.nav-links li:hover::after { display: block; }
.nav-links li:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border-lt);
  transition: var(--transition);
}
.nav-dropdown a:hover { color: var(--gold); background: rgba(201,168,76,0.05); padding-left: 1.5rem; }
.nav-dropdown li:last-child a { border-bottom: none; }

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 0.65rem 1.4rem; font-size: 0.72rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1200;
  padding: 5rem 2.5rem 2.5rem;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav-item {
  border-bottom: 1px solid var(--border-lt);
  padding: 1.1rem 0;
}
.mobile-nav-item > a {
  font-family: var(--ff-display);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--cream);
  display: block;
  transition: color var(--transition);
}
.mobile-nav-item > a:hover { color: var(--gold); }
.mobile-subnav {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-subnav a {
  font-size: 0.85rem;
  color: var(--text-lt);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}
.mobile-subnav a:hover { color: var(--gold); }
.mobile-cta { margin-top: 2rem; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 11rem 0 5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 65%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-lt);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--text-lt); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

/* ─── RETAINER BOX ─── */
.retainer-box {
  background: var(--navy-lt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 1.75rem 2rem;
}
.retainer-box .rb-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.retainer-box .rb-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.retainer-box p { font-size: 0.88rem; color: var(--muted); }

/* ─── CONTACT CTA BAND ─── */
.cta-band {
  background: var(--gold);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.cta-band p { color: rgba(10,22,40,0.7); font-size: 0.95rem; margin-bottom: 1.5rem; }
.cta-band .btn-outline-dark:hover { background: var(--navy); color: var(--gold); border-color: var(--navy); }

/* ─── FOOTER ─── */
footer {
  background: #060e1a;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-lt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-lt);
}
footer .logo img { height: 36px; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-lt);
  margin-top: 1rem;
  line-height: 1.75;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-lt);
}
.footer-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold); margin-top: 3px; }
.footer-contact-item a { color: var(--text-lt); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--gold); }
.footer-col h5 {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul li a {
  font-size: 0.83rem;
  color: var(--text-lt);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-bottom .copy { font-size: 0.75rem; color: #3a4a5a; }
.footer-disclaimer {
  font-size: 0.7rem;
  color: #2e3d50;
  line-height: 1.6;
  max-width: 680px;
  text-align: right;
}

/* ─── STICKY BAR ─── */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--gold);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar p { color: var(--navy); font-size: 0.83rem; font-weight: 500; }
.sticky-bar a {
  background: var(--navy);
  color: var(--gold);
  padding: 0.5rem 1.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
}
.sticky-bar a:hover { background: var(--navy-mid); }
.sticky-close {
  position: absolute;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.5;
  line-height: 1;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
  .sticky-bar { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ── PRACTICE AREA CARDS (shared) ── */
.pa-card {
  padding: 1.75rem;
  background: var(--navy);
  color: var(--cream);
  transition: var(--transition);
}
.pa-card:hover { background: var(--navy-lt); }
.pa-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
.pa-icon svg {
  width: 100%;
  height: 100%;
}
.pa-card h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.pa-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
}


/* =====================================================
   FORM VISIBILITY FIX (Netlify Contact Form)
   Ensures text is readable inside light input fields
   ===================================================== */

form input,
form select,
form textarea {
  color: #1a1a1a !important;
  background: #ffffff !important;
  border: 1px solid rgba(201,168,76,0.25);
}

form input::placeholder,
form textarea::placeholder {
  color: #666666 !important;
  opacity: 1;
}

form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
