/* ============================================================
   NATIONAL CRIMINAL APPEALS — NEW YORK
   styles.css
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0D1F3C;
  --navy-mid:    #162A4F;
  --navy-light:  #1E3A6E;
  --gold:        #B8962E;
  --gold-light:  #D4AF5A;
  --gold-pale:   #F0E5C5;
  --cream:       #F8F5EF;
  --white:       #FFFFFF;
  --text:        #1A1A1A;
  --text-mid:    #444444;
  --text-light:  #777777;
  --border:      #DDD5C0;
  --rule:        rgba(184,150,46,0.35);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography ────────────────────────────────────────────── */
.serif { font-family: 'Cormorant Garamond', serif; }
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; font-weight: 700; font-family: 'Lato', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin-bottom: 1.1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ── Layout Helpers ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }

/* ── Gold Rule ──────────────────────────────────────────────── */
.gold-rule {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.75rem;
}
.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); }

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,31,60,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,150,46,0.2);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  max-width: 1160px;
  margin: 0 auto;
  height: 72px;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo .firm-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo .firm-sub {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(184,150,46,0.2);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--gold-light); }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Page Hero (Interior) ───────────────────────────────────── */
.page-hero {
  background: var(--navy);
  padding: 8.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(184,150,46,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 580px; }
.page-hero .eyebrow { color: var(--gold-light); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .firm-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.25rem;
}
.footer-brand .firm-sub {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1.25rem;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }
.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-col p { font-size: 0.88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
}
.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.footer-legal-links { display: flex; gap: 1.5rem; }
.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--gold-light); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom-row { flex-direction: column; }
}

/* ── Disclaimer Bar ─────────────────────────────────────────── */
.disclaimer-bar {
  background: rgba(0,0,0,0.3);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(184,150,46,0.15);
}
.disclaimer-bar p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin: 0;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.3s ease;
}
.card:hover { box-shadow: 0 8px 32px rgba(13,31,60,0.1); transform: translateY(-3px); }
.card:hover::before { height: 100%; }

/* ── Contact Form ───────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold) !important; }
.bg-cream    { background: var(--cream); }
.bg-navy     { background: var(--navy); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }


/* ============================================================
   MOBILE-FIRST RESPONSIVE OVERRIDES
   ============================================================ */

/* ── Base mobile (max 480px) ────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2.5rem 0; }

  h1 { font-size: 2.1rem; line-height: 1.15; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
  }
  .btn + .btn { margin-top: 0.75rem; }

  /* Nav */
  .nav-inner { padding: 0 1.25rem; }
  .nav-logo .firm-name { font-size: 0.95rem; }
  .nav-logo .firm-sub  { font-size: 0.58rem; }

  /* Hero */
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-cta-row { flex-direction: column; gap: 0.75rem; }
  .hero-cta-row .btn { width: 100%; }
  .hero-stats { gap: 1.5rem; padding-top: 1.5rem; }
  .hero-stat .number { font-size: 1.8rem; }
  .hero-stat .label  { font-size: 0.65rem; }

  /* Practice strip */
  .strip-item { padding: 1.5rem 1.25rem; }
  .strip-item h4 { font-size: 0.8rem; }

  /* Intro section */
  .intro-visual-badge {
    right: 0; bottom: 0;
    padding: 1rem 1.25rem;
  }
  .intro-visual-badge .num { font-size: 1.8rem; }

  /* Practice cards */
  .practice-card { padding: 1.75rem 1.5rem; }
  .practice-card .num { font-size: 2.2rem; }

  /* Why grid */
  .why-item { padding: 1.75rem 1.25rem; }

  /* Publications */
  .pub-card { padding: 1.5rem; }

  /* CTA band */
  .cta-band { padding: 3.5rem 0; }
  .cta-row { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .tel-link { font-size: 1.25rem; }

  /* About page */
  .attorney-photo-wrap { max-width: 100%; }
  .attorney-photo { aspect-ratio: 3/4; }
  .attorney-recognition { flex-direction: column; }

  /* Contact form */
  .form-submit-row { flex-direction: column; gap: 0.75rem; }
  .form-submit-row .btn { width: 100%; }
  .contact-icon { width: 38px; height: 38px; font-size: 0.85rem; }

  /* Practice detail pages */
  .practice-sidebar .num { font-size: 3.5rem; }
  .callout-box { padding: 1.5rem; }

  /* Legal page */
  .legal-nav { flex-direction: column; gap: 0.75rem; }
  .legal-body { padding: 3rem 0 4rem; }

  /* Footer */
  .footer-grid { gap: 2rem; }
  .site-footer { padding: 3rem 0 2rem; }
  .footer-bottom { font-size: 0.72rem; }
  .footer-legal-links { gap: 1rem; }
}

/* ── Tablet (481px - 768px) ─────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .section    { padding: 4rem 0; }

  /* Hero */
  .hero { min-height: auto; padding: 8rem 0 4.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .hero-cta-row { flex-wrap: wrap; }
  .hero-stats { gap: 2rem; }

  /* Grids to 1 or 2 col */
  .practice-grid    { grid-template-columns: 1fr; }
  .pub-grid         { grid-template-columns: repeat(2, 1fr); }
  .intro-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .attorney-grid    { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .practice-detail-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Nav CTA still hidden at this size */
  .nav-cta { display: none; }

  /* Why grid stays 2 col */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Attorney photo unsticky */
  .attorney-photo-wrap { position: static; max-width: 360px; margin: 0 auto; }
  .practice-sidebar { position: static; }
}

/* ── Medium (769px - 860px) ─────────────────────────────────── */
@media (min-width: 769px) and (max-width: 860px) {
  .practice-grid        { grid-template-columns: 1fr; }
  .attorney-grid        { grid-template-columns: 1fr; gap: 2.5rem; }
  .attorney-photo-wrap  { position: static; max-width: 380px; }
  .contact-grid         { grid-template-columns: 1fr; gap: 3rem; }
  .practice-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .practice-sidebar     { position: static; }
  .footer-grid          { grid-template-columns: 1fr 1fr; }
}

/* ── Touch target minimum sizes ─────────────────────────────── */
@media (max-width: 860px) {
  .nav-mobile a  { min-height: 44px; display: flex; align-items: center; }
  .btn           { min-height: 44px; }
  .strip-item a,
  .practice-card a,
  .footer-col ul li a { min-height: 32px; display: inline-flex; align-items: center; }
}

/* ── Prevent horizontal scroll ──────────────────────────────── */
html, body { overflow-x: hidden; }
* { max-width: 100%; }
img, video, iframe { height: auto; }

/* ── Safe area insets (iPhone notch) ───────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
}

