/* ===================================================================
   style.css — components & layout for Limbaga Law
   =================================================================== */

/* ---------- Headings ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; color: var(--text); }
h1 { font-size: var(--text-hero); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
p { color: var(--text); }

.section-lead {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-3);
  margin-bottom: var(--space-8);
}

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 74px;
}

/* Brand: courthouse badge LEFT of text stack */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--navy);
  border: 1.5px solid rgba(22, 58, 99, 0.22);
  flex-shrink: 0;
}
[data-theme="dark"] .brand-badge { color: var(--primary); border-color: rgba(143, 179, 221, 0.3); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
}
.brand-role {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-list { display: flex; align-items: center; gap: var(--space-6); }
.nav-list a {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-2) 0;
  transition: color var(--transition);
}
.nav-list a:hover { color: var(--text); }
.nav-cta { min-height: 44px; padding: 0 var(--space-4); font-size: var(--text-sm); }

.header-controls { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background var(--transition), border-color var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { padding: var(--space-16) 0 var(--space-24); }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-copy { max-width: 40ch; }
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: var(--space-6);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.hero-media { display: flex; justify-content: center; }
.hero-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.hero-card img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
/* JL monogram: black square, bold white serif, overlapping bottom-right corner */
.hero-monogram {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 0.02em;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

/* ===================================================================
   SECTIONS
   =================================================================== */
.section { padding: var(--space-24) 0; }
.section:nth-of-type(even) { background: var(--surface); }
.practice { background: var(--surface); }

/* Practice cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.practice .card { background: var(--surface-alt); }
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--primary);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--primary);
  margin-bottom: var(--space-4);
}
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--text-base); }

/* ===================================================================
   ABOUT
   =================================================================== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 360px;
  margin-inline: auto;
}
.about-copy p { color: var(--text-muted); margin-top: var(--space-4); max-width: 60ch; }
.about-copy h2 { margin-top: var(--space-1); }
.about-facts {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-8) 0;
}
.about-facts li {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.about-facts strong { color: var(--text); font-weight: 600; }

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
.contact-details dl { display: grid; gap: var(--space-6); }
.contact-row dt {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: var(--space-1);
}
.contact-row dd {
  font-size: var(--text-lg);
  color: var(--text);
}
.contact-row dd a { color: var(--primary); text-decoration: none; font-weight: 500; }
.contact-row dd a:hover { text-decoration: underline; }

.booking-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
}
.booking-badge {
  margin: 0 auto var(--space-4);
  width: 60px;
  height: 60px;
}
.booking-card h3 { margin-bottom: var(--space-2); }
.booking-card > p { color: var(--text-muted); margin-bottom: var(--space-6); }
.booking-note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-faint);
  word-break: break-word;
}
.booking-url { color: var(--text-muted); }

/* ===================================================================
   CLOSING BRAND MARK
   =================================================================== */
.firm-logo-section {
  background: var(--navy-deep);
  padding: var(--space-12) 0;
}
[data-theme="dark"] .firm-logo-section {
  background: #0c1017;
}
.firm-logo-inner {
  display: flex;
  justify-content: center;
}
.firm-logo-inner img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #d7e0ec;
  padding: var(--space-16) 0 var(--space-8);
}
[data-theme="dark"] .site-footer { background: #0c1017; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: var(--space-6); }
.footer-brand { display: flex; align-items: center; gap: var(--space-4); }
.footer-brand .brand-badge {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  width: 46px;
  height: 46px;
}
.footer-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; line-height: 1.2; }
.footer-role {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0c6;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.footer-nav a { color: #c3cfe0; text-decoration: none; font-size: var(--text-sm); }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); }
.footer-contact a { color: #c3cfe0; text-decoration: none; font-size: var(--text-sm); }
.footer-contact a:hover { color: #fff; }
.disclaimer {
  font-size: var(--text-xs);
  color: #93a3ba;
  max-width: 70ch;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-6);
  margin-top: var(--space-2);
}
.copyright { font-size: var(--text-xs); color: #7e8ea6; }

/* ===================================================================
   RESPONSIVE — desktop up
   =================================================================== */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; }
  .about-inner { grid-template-columns: 0.8fr 1.2fr; }
  .about-media img { margin-inline: 0; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ===================================================================
   MOBILE NAV (<= 900px)
   =================================================================== */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6) var(--space-4) var(--space-8);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 260ms ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-list a {
    display: block;
    padding: var(--space-4) var(--space-2);
    font-size: var(--text-lg);
    min-height: 44px;
  }
  .nav-cta { min-height: 48px; }
}
