/* ===================================================================
   The Law Office of Mark P. Santagata — styles
   Plain CSS, no framework. Design tokens up top.
   =================================================================== */

:root {
  --navy:      #0D0620;
  --navy-soft: #160E2C;
  --teal:      #29D4B6;
  --blue:      #0099C4;
  --cream:     #F8F5F0;
  --ink:       #0D0620;
  --slate:     #5b6577;
  --slate-lt:  #8a93a3;
  --maxw:      1216px;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.serif { font-family: var(--serif); }
.wrap  { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .wrap { padding: 0 3rem; } }

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.eyebrow.dark { color: var(--ink); }
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px; background: var(--teal); display: inline-block;
}

.teal-bar { width: 5rem; height: 4px; background: var(--teal); border: 0; margin: 1.75rem 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 0 1.75rem; height: 3rem; cursor: pointer;
  border: 1px solid transparent; border-radius: 0; transition: all 0.25s ease;
}
.btn svg { width: 1rem; height: 1rem; }
.btn-teal    { background: var(--teal); color: var(--navy); box-shadow: 0 10px 25px -8px rgba(41,212,182,0.4); }
.btn-teal:hover { background: #22c0a4; }
.btn-dark    { background: var(--navy); color: #fff; }
.btn-dark:hover { background: #1a0f38; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark  { background: transparent; color: var(--navy); border-color: rgba(13,6,32,0.25); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }

/* ===================================================================
   Logo — identical in header and footer.
   No white box. Scale icon + "MPS" both teal.
   =================================================================== */
.logo { display: inline-flex; align-items: center; gap: 0.75rem; }
.logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .logo-img { height: 37px; } }
.logo-mark { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--teal); }
.logo-mark svg { width: 1.5rem; height: 1.5rem; }
.logo-mps {
  font-family: var(--serif); font-weight: 700; color: var(--teal);
  font-size: 0.72rem; letter-spacing: 0.08em; margin-top: 2px;
}
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--serif); color: #fff; font-size: 1.15rem; font-weight: 500; letter-spacing: 0.01em; line-height: 1.1; }
.logo-sub  { color: var(--teal); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 500; }

/* ===================================================================
   Glassy nav — sits over the hero but visually separated.
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50; height: 5rem;
  display: flex; align-items: center;
  background: var(--navy);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.02em;
  position: relative; padding: 2px 0; transition: color 0.2s;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--teal); }
.nav-link::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--teal); transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; height: 2.6rem; padding: 0 1.25rem; }

.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 0.5rem; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: block; position: fixed; top: 5rem; left: 0; width: 100%; z-index: 49;
    background: rgba(13,6,32,0.97); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .mobile-menu.open { max-height: 24rem; }
  .mobile-menu .wrap { display: flex; flex-direction: column; padding-top: 1rem; padding-bottom: 1.25rem; }
  .mobile-menu a { color: rgba(255,255,255,0.85); padding: 0.85rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mobile-menu a.active { color: var(--teal); }
  .mobile-menu .btn { margin-top: 1rem; width: 100%; }
}

/* ===================================================================
   Hero
   =================================================================== */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 9rem 0 5rem; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.1; pointer-events: none;
  background:
    radial-gradient(circle at 70% 30%, var(--teal) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, var(--blue) 0%, transparent 40%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } .hero { padding-top: 10rem; } }

.badge {
  display: inline-block; background: rgba(41,212,182,0.15); color: var(--teal);
  border: 1px solid rgba(41,212,182,0.3); padding: 0.35rem 0.85rem;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; font-weight: 600;
}
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: 1.03; margin-bottom: 0.25rem; }
.hero-lead { font-size: 1.25rem; color: rgba(255,255,255,0.75); font-weight: 400; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-num { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--teal); }
.stat-label { color: rgba(255,255,255,0.55); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 0.25rem; }

/* Headshot */
.headshot-frame { position: relative; padding: 1.75rem; border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(to top right, rgba(0,153,196,0.15), rgba(41,212,182,0.08)); }
.headshot-frame::before, .headshot-frame::after { content: ""; position: absolute; width: 3rem; height: 3rem; }
.headshot-frame::before { top: 1.25rem; left: 1.25rem; border-top: 1px solid rgba(41,212,182,0.4); border-left: 1px solid rgba(41,212,182,0.4); }
.headshot-frame::after  { bottom: 1.25rem; right: 1.25rem; border-bottom: 1px solid rgba(41,212,182,0.4); border-right: 1px solid rgba(41,212,182,0.4); }
.headshot-frame img { width: 100%; display: block; filter: grayscale(8%); }
.headshot-caption { text-align: center; font-family: var(--serif); font-style: italic; color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-top: 1.25rem; }
@media (max-width: 1023px) { .headshot-wrap { max-width: 22rem; margin: 0 auto; } }

/* ===================================================================
   Sections
   =================================================================== */
.section { padding: 6rem 0; }
.section.cream { background: var(--cream); }
.section h2.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); line-height: 1.15; }

/* Practice areas */
.areas-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px)  { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .areas-grid { grid-template-columns: repeat(3, 1fr); } }
.area-card { background: #fff; padding: 1.75rem; position: relative; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); transition: box-shadow 0.3s; }
.area-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.area-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.area-card:hover::before { transform: scaleX(1); }
.area-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; transition: all 0.3s; }
.area-icon svg { width: 1.25rem; height: 1.25rem; }
.area-card:hover .area-icon { background: var(--navy); color: var(--teal); }
.area-card h3 { font-size: 1.15rem; color: var(--ink); transition: color 0.2s; }
.area-card:hover h3 { color: var(--blue); }

/* About section (home) */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: start; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-copy p { color: var(--slate); margin-bottom: 1.5rem; }
.cred-block { background: var(--cream); padding: 1.5rem; margin-bottom: 1rem; }
.cred-block h4 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.75rem; }
.cred-block ul { list-style: none; margin: 0; padding: 0; }
.cred-block li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--slate); font-size: 0.9rem; margin-bottom: 0.5rem; }
.cred-block li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 0.55rem; flex-shrink: 0; }

/* CTA banner */
.cta-band { background: var(--navy); color: #fff; padding: 5rem 0; }
.cta-band .wrap { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
@media (min-width: 768px) { .cta-band .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-band h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.6); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; flex-shrink: 0; }

/* ===================================================================
   Page hero (About / Contact)
   =================================================================== */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding: 9rem 0 5rem; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: 0.1;
  background: radial-gradient(circle at 80% 20%, var(--teal) 0%, transparent 50%), radial-gradient(circle at 20% 80%, var(--blue) 0%, transparent 50%); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 3.75rem); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 40rem; }

/* ===================================================================
   About page
   =================================================================== */
.bio-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; }
@media (min-width: 1024px) { .bio-grid { grid-template-columns: 4fr 8fr; } }
.bio-side { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.5rem; }
@media (max-width: 1023px) { .bio-side { position: static; } }
.side-card-dark { background: var(--navy); color: #fff; padding: 1.75rem; }
.side-card-dark h3 { color: var(--teal); font-size: 1.25rem; margin-bottom: 1rem; }
.side-card-dark ul { list-style: none; margin: 0; padding: 0; }
.side-card-dark li { display: flex; gap: 0.75rem; margin-bottom: 1rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
.side-card-dark li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-top: 0.5rem; flex-shrink: 0; }
.side-card-dark .court { color: #fff; font-weight: 500; }
.side-card-dark .year { color: rgba(255,255,255,0.6); }
.side-card-cream { background: var(--cream); padding: 1.75rem; }
.side-card-cream h3 { font-size: 1.25rem; color: var(--ink); margin-bottom: 1rem; }
.side-card-cream p { color: var(--slate); font-size: 0.9rem; margin-bottom: 1rem; }
.side-card-cream .btn { width: 100%; }

.bio-quote { border-left: 4px solid var(--teal); padding-left: 1.5rem; margin-bottom: 2.5rem; }
.bio-quote p { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); line-height: 1.4; }
.bio-body p { color: var(--slate); margin-bottom: 1.5rem; }
.bio-divider { border: 0; border-top: 1px solid #eee; margin: 3rem 0; }
.bio-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.75rem; }
.bio-head svg { width: 1.5rem; height: 1.5rem; color: var(--blue); }
.bio-head h3 { font-size: 1.5rem; color: var(--ink); }

.timeline-item { padding-left: 2rem; border-left: 2px solid var(--cream); position: relative; margin-bottom: 1.5rem; }
.timeline-item::before { content: ""; position: absolute; width: 12px; height: 12px; background: var(--teal); border-radius: 50%; left: -7px; top: 6px; }
.timeline-item .school { font-weight: 500; color: var(--ink); }
.timeline-item .loc { color: var(--slate-lt); font-size: 0.9rem; }
.timeline-item .deg { color: var(--blue); font-size: 0.9rem; font-weight: 500; margin-top: 0.25rem; }

.list-arrow { list-style: none; margin: 0; padding: 0; }
.list-arrow li { display: flex; gap: 0.75rem; color: var(--slate); font-size: 0.9rem; margin-bottom: 0.75rem; }
.list-arrow li::before { content: "›"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

.assoc-card { background: var(--cream); padding: 1.5rem; margin-bottom: 1.25rem; }
.assoc-card h4 { font-size: 1.1rem; color: var(--ink); margin-bottom: 0.75rem; }
.assoc-card ul { list-style: none; margin: 0; padding-left: 1rem; border-left: 2px solid var(--blue); }
.assoc-card li { color: var(--slate); font-size: 0.9rem; margin-bottom: 0.35rem; }

/* Community grid */
.community-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.community-head .eyebrow { justify-content: center; }
.community-head h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); margin-bottom: 1rem; }
.community-head p { color: var(--slate); font-size: 1.1rem; }
.community-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }
.community-card { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }
.community-card .bar { height: 4px; width: 100%; }
.community-card .inner { padding: 1.75rem; }
.community-card h3 { font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; line-height: 1.3; }
.community-card ul { list-style: none; margin: 0; padding: 0; }
.community-card li { display: flex; gap: 0.5rem; color: var(--slate); font-size: 0.85rem; margin-bottom: 0.5rem; }
.community-card li .tick { flex-shrink: 0; font-weight: 700; }

.contact-strip { background: var(--navy); color: #fff; padding: 4rem 0; }
.contact-strip .wrap { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) { .contact-strip .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }
.contact-strip h3 { font-size: 1.75rem; margin-bottom: 0.25rem; }
.contact-strip p { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ===================================================================
   Contact page
   =================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 2fr; } }
.info-item { display: flex; gap: 1rem; background: #fff; padding: 1.25rem; margin-bottom: 1rem; }
.info-item .ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--cream); color: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item .ico svg { width: 1.25rem; height: 1.25rem; }
.info-item .lbl { font-size: 0.7rem; color: var(--slate-lt); text-transform: uppercase; letter-spacing: 0.15em; }
.info-item .val { font-weight: 500; color: var(--ink); margin-top: 2px; }
.info-item .sub { font-size: 0.78rem; color: var(--slate); }
.info-item a.val { color: var(--blue); }

.form-card { background: #fff; padding: 2.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 0.7rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.5rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 1rem; border: 1px solid #e2e6ec; font-family: var(--sans);
  font-size: 0.9rem; color: #37414f; background: #fff; border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.consent { display: flex; gap: 0.75rem; align-items: flex-start; margin: 1.25rem 0; }
.consent input { margin-top: 0.25rem; accent-color: var(--teal); }
.consent label { font-size: 0.78rem; color: var(--slate); }

.map-band { height: 16rem; background: var(--navy); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
.map-band::before { content: ""; position: absolute; inset: 0; opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(41,212,182,0.3) 39px, rgba(41,212,182,0.3) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(41,212,182,0.3) 39px, rgba(41,212,182,0.3) 40px); }
.map-band .inner { position: relative; z-index: 1; }
.map-band svg { width: 2.5rem; height: 2.5rem; color: var(--teal); }
.map-band .place { font-family: var(--serif); color: #fff; font-size: 1.5rem; margin-top: 0.5rem; }
.map-band .place-sub { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

.fineprint { color: var(--slate-lt); font-size: 0.72rem; line-height: 1.6; margin-top: 1.5rem; }

/* ===================================================================
   Footer
   =================================================================== */
.footer { background: var(--navy); color: #fff; padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer .logo { margin-bottom: 1.25rem; }
.footer-addr { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer h4 { color: var(--teal); font-size: 1.1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer-contact li { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-contact svg { width: 1rem; height: 1rem; color: var(--teal); flex-shrink: 0; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
