/* ============================================================
   Monwa & Associates Inc — Professional Minimalist Theme
   Palette derived from the firm logo: black + red, white paper
   ============================================================ */

:root {
  --ink: #0f0f12;            /* near-black, logo black */
  --ink-2: #17171b;          /* charcoal panels */
  --ink-3: #24242a;
  --paper: #ffffff;
  --off: #f5f4f1;            /* warm paper */
  --red: #c8102e;            /* deepened from logo red */
  --red-dark: #a30d25;
  --muted: #6c6c73;
  --line: #e4e2dc;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 20px 50px rgba(15, 15, 18, 0.08);
  --radius: 4px;
  --wrap: 1180px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.18; letter-spacing: 0.01em; }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.32rem; }

.accent-text { color: var(--red); }

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

.section { padding: 96px 0; }
.section-alt { background: var(--off); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow-light { color: #e8b3bc; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
  text-align: center;
}
.btn-solid { background: var(--red); color: #fff; border: 1px solid var(--red); }
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-small { padding: 10px 20px; font-size: 0.74rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(15,15,18,0.07); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }

.brand-logo { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--red); }

.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background: var(--ink) url("../images/litigation.jpg") center 30% / cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,10,13,0.92) 0%, rgba(10,10,13,0.78) 45%, rgba(10,10,13,0.45) 100%);
}
.hero-content { position: relative; padding: 120px 24px; max-width: var(--wrap); margin: 0 auto; width: 100%; }

.hero-eyebrow { color: #e8b3bc; }

.hero h1 { margin-bottom: 22px; max-width: 780px; }

.hero-sub { max-width: 560px; font-size: 1.08rem; color: rgba(255,255,255,0.85); margin-bottom: 38px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 44px; margin: 10px auto 0;
  background: linear-gradient(rgba(255,255,255,0.7), transparent);
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--paper); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 44px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.stat-label { margin-top: 8px; font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

/* ---------- Split (who we are / about) ---------- */
.split { background: var(--paper); }
.split-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
}
.split-copy p:not(.eyebrow) { color: var(--ink); margin-bottom: 18px; }
.split-copy .btn { margin-top: 12px; }

.tick-list { margin: 22px 0 30px; }
.tick-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

.split-quote blockquote {
  background: var(--off);
  border-left: 3px solid var(--red);
  padding: 40px 36px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.45;
}
.split-quote blockquote footer {
  margin-top: 16px; font-family: var(--sans); font-size: 0.8rem; font-style: normal;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.quote-mini { margin-top: 26px; color: var(--muted); }

.split-image img, .area-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Cards (practice areas) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card-link {
  margin-top: 20px; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
}

/* ---------- Approach band ---------- */
.band-approach { background: var(--ink); color: #fff; padding: 96px 0; }
.approach-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.approach-inner h2 { margin-bottom: 0; }
.approach-cols { display: grid; gap: 22px; color: rgba(255,255,255,0.8); }

/* ---------- Clients ---------- */
.clients { background: var(--paper); }
.client-strip {
  display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.client-strip img {
  max-height: 64px; width: auto;
  opacity: 0.55; filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.client-strip img:hover { opacity: 1; filter: grayscale(0); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.testi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 38px;
}
.testi blockquote { font-family: var(--serif); font-size: 1.2rem; font-style: italic; line-height: 1.5; }
.testi figcaption { margin-top: 20px; }
.testi figcaption strong { display: block; font-weight: 600; letter-spacing: 0.08em; }
.testi figcaption span { font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Quote band ---------- */
.quote-band { background: var(--red); color: #fff; padding: 84px 0; text-align: center; }
.quote-band-text {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-style: italic; line-height: 1.3;
  max-width: 760px; margin: 0 auto;
}
.cta-under { margin-top: 30px; }
.cta-under .btn-solid { background: #fff; color: var(--red); border-color: #fff; }
.cta-under .btn-solid:hover { background: var(--off); }

/* ---------- Contact CTA cards ---------- */
.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 12px;
}
.contact-card {
  background: var(--off);
  border: 1px solid var(--line);
  padding: 34px 30px;
  border-radius: var(--radius);
  text-align: center;
}
.contact-card a:hover { color: var(--red); }
.cc-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.cta-center { text-align: center; margin-top: 44px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--ink) url("../images/estates.jpg") center 35% / cover no-repeat;
  color: #fff;
}
.page-hero-content { position: relative; padding: 130px 24px 110px; max-width: var(--wrap); margin: 0 auto; }
.page-hero-sub { max-width: 560px; color: rgba(255,255,255,0.85); margin-top: 18px; font-size: 1.05rem; }

/* ---------- Values (about) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--off); border: 1px solid var(--line); padding: 40px 34px; border-radius: var(--radius); }
.value-num { font-family: var(--serif); font-size: 2rem; color: var(--red); margin-bottom: 14px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p:last-child { color: var(--muted); font-size: 0.95rem; }

/* ---------- Leadership (about) ---------- */
.leadership .split-inner { align-items: center; }

/* ---------- Practice area detail ---------- */
.area-detail { padding: 96px 0; }
.area-detail-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.area-detail-inner.flip .area-media { order: 2; }
.area-detail-inner.flip .area-copy { order: 1; }
.area-list { margin-top: 22px; }
.area-list li {
  padding: 11px 0 11px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink);
}
.area-list li::before {
  content: ""; position: absolute; left: 0; top: 19px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

/* ---------- Contact page ---------- */
.contact-main { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.info-block { padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.info-link:hover { color: var(--red); }
.contact-info .btn { margin-top: 28px; }

.contact-form-wrap { background: var(--off); border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 40px; }
.contact-form-wrap .eyebrow, .contact-form-wrap h2 { margin-bottom: 0; }
.contact-form-wrap h2 { margin-bottom: 30px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px;
  font-family: var(--sans); font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--red);
}
.form-note { margin-top: 14px; font-size: 0.88rem; color: var(--red); min-height: 1.2em; }

.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 48px;
  padding: 72px 24px 56px;
}
.footer-wordmark { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.08em; color: #fff; margin-bottom: 16px; }
.footer-brand p:last-child { font-size: 0.92rem; max-width: 320px; }
.footer-heading {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; margin-bottom: 10px; font-size: 0.94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 0; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .band-approach { padding: 72px 0; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 84px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 18px 24px 26px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav .nav-link { width: 100%; padding: 12px 0; }
  .nav-cta { margin: 10px 0 0; width: 100%; }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }

  .split-inner, .approach-inner, .area-detail-inner, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .area-detail-inner.flip .area-media { order: 0; }
  .area-detail-inner.flip .area-copy { order: 0; }

  .testi-grid, .value-grid, .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .cards { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .hero-content { padding: 90px 24px; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .client-strip { gap: 28px; }
  .client-strip img { max-height: 48px; }
  .contact-form-wrap { padding: 32px 24px; }
}
