/* =========================================================
   GLOBAL DESIGN SYSTEM
   Loads AFTER Bootstrap 5 and after theme.css.
   Colour/shadow tokens (--color-*, --shadow-*) come from theme.css.
   ========================================================= */
:root {
  --max: 1180px;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --section-space: 90px;
}

/* ---------------------------------------------------------
   Bootstrap bridge — map Bootstrap CSS variables onto the
   site's semantic palette tokens so every Bootstrap
   component follows the active data-theme palette.
   --------------------------------------------------------- */
:root {
  --bs-font-sans-serif: var(--font-body);
  --bs-body-font-family: var(--font-body);
  --bs-body-bg: var(--color-canvas);
  --bs-body-color: var(--color-text);
  --bs-emphasis-color: var(--color-heading);
  --bs-heading-color: var(--color-heading);
  --bs-border-color: var(--color-border);
  --bs-border-color-translucent: var(--color-border);
  --bs-primary: var(--color-primary);
  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--color-primary-hover);
  --bs-focus-ring-color: var(--color-focus-ring);
  --bs-emphasis-color-rgb: 0, 0, 0;
}

/* Keep Bootstrap's container at the site's editorial width */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  max-width: var(--max);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-canvas);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  color: var(--color-heading);
}

.section { padding-block: var(--section-space); }
.section-soft { background: var(--color-surface-soft); }
.section-accent { background: var(--color-accent-soft); }

.eyebrow {
  display: block;
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* Stacked heading: eyebrow + title on top, supporting copy directly below
   (same top-to-bottom flow as the Approach section). */
.section-head {
  max-width: 1080px;
  margin-bottom: 38px;
}
.section-head h2 { font-size: clamp(2.4rem, 4vw, 4.5rem); }
.section-head p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--color-text-soft);
}

/* =========================================================
   BUTTONS  (re-skin of Bootstrap .btn)
   ========================================================= */
.btn {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 12px;
  --bs-btn-font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-color: var(--color-text-inverse);
  --bs-btn-hover-bg: var(--color-primary-hover);
  --bs-btn-hover-border-color: var(--color-primary-hover);
  --bs-btn-hover-color: var(--color-text-inverse);
  --bs-btn-active-bg: var(--color-primary-hover);
  --bs-btn-active-border-color: var(--color-primary-hover);
  --bs-btn-active-color: var(--color-text-inverse);
  --bs-btn-disabled-bg: var(--color-primary);
  --bs-btn-disabled-border-color: var(--color-primary);
  --bs-btn-disabled-color: var(--color-text-inverse);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-button); }
.btn-outline-primary {
  --bs-btn-color: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-accent-soft);
  --bs-btn-hover-border-color: var(--color-primary);
  --bs-btn-hover-color: var(--color-primary);
  --bs-btn-active-bg: var(--color-accent-soft);
  --bs-btn-active-border-color: var(--color-primary);
  --bs-btn-active-color: var(--color-primary);
}

/* =========================================================
   HEADER / NAVIGATION  (Bootstrap navbar)
   ========================================================= */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-accent-soft);
  backdrop-filter: blur(18px);
  z-index: 1030;
}
.navbar {
  --bs-navbar-padding-y: 0;
  --bs-navbar-color: var(--color-text);
  --bs-navbar-hover-color: var(--color-primary);
  --bs-navbar-active-color: var(--color-primary);
  --bs-navbar-toggler-border-color: transparent;
  --bs-navbar-toggler-focus-width: 0;
}
.nav-inner { min-height: 82px; }

.brand {
  display: flex;
  align-items: center;
  padding: 0;
}
.brand-logo {
  height: 46px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  letter-spacing: .03em;
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.navbar-nav { --bs-nav-link-font-size: .95rem; gap: 26px; }
.navbar .nav-link {
  position: relative;
  font-weight: 500;
  width: max-content;
}
.navbar .nav-link:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--color-primary);
  transition: right .25s ease;
}
.navbar .nav-link:not(.btn):hover::after { right: 0; }
.navbar-toggler { color: var(--color-primary); font-size: 1.3rem; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 12px 0 18px;
  }
  .navbar-nav { gap: 6px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 76px 0 64px; }
.hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 6vw, 6.6rem);
  letter-spacing: -.045em;
}
.hero h1 span { color: var(--color-primary); }
.hero-copy {
  max-width: 610px;
  margin: 26px 0 30px;
  font-size: 1.12rem;
  color: var(--color-text-soft);
}
.hero-note { margin-top: 26px; font-size: .87rem; color: var(--color-text-soft); }

.portrait-frame {
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-card);
  border-radius: 24px; /* Outer radius (20px - 30px) */
  overflow: hidden;    /* Clips child elements to the rounded corners */
  padding: 15px 15px 0 15px;
}
.portrait-card {
  width: 100%;
  aspect-ratio: 1;
}
.portrait-image { 
  width: 100%;
  height: 100%;
  border-radius: 12px; /* Inner radius matching the frame offset */
  object-fit: cover;
  object-position: center; 
}
.portrait-name {
  background: var(--color-accent-soft);
  padding: 15px 5px 5px 5px;
}
/* =========================================================
   ABOUT
   ========================================================= */
.about-section { border-block: 1px solid var(--color-border); }
.about-avatar {
  width: 112px;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 30px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-surface-tint);
  box-shadow: var(--shadow-card);
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.about-profile h2 { font-size: clamp(2.55rem, 11vw, 4rem); letter-spacing: -.035em; }
.about-role {
  margin: 12px 0 24px;
  color: var(--color-primary);
  font-size: .92rem;
  font-weight: 700;
}
.about-bio { max-width: 570px; }
.about-bio p, .about-perspective-copy {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.65;
}
.about-bio p { margin: 0 0 16px; }
/* Right column: heading is a sub-section label; its rows sit grouped below it,
   with generous space between one sub-section and the next. */
.about-detail-group + .about-detail-group { margin-top: 44px; }
.about-detail-title {
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: 0;
}
.about-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  line-height: 1;
}
.about-detail-row strong {
  max-width: 390px;
  color: var(--color-text-soft);
  font-weight: 600;
  text-align: right;
}
.about-perspective-copy { max-width: 760px; margin: 0; }

/* Type scale for the About right column only — the sub-section label reads
   clearly larger than the text grouped beneath it. */
.about-detail-group .about-detail-title {
  font-size: 1rem;
  letter-spacing: .08em;
}
.about-detail-group .about-detail-row {
  font-size: .875rem;
}
.about-detail-group .about-detail-row strong {
  font-size: .875rem;
}
.about-detail-group .about-perspective-copy {
  font-size: .9rem;
  line-height: 1.7;
}

/* =========================================================
   PRACTICE AREAS
   ========================================================= */
.service-card {
  --bs-card-bg: var(--color-surface);
  --bs-card-border-color: var(--color-border);
  --bs-card-border-radius: 20px;
  --bs-card-spacer-x: 0;
  --bs-card-spacer-y: 0;
  min-height: 240px;
  padding: 26px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}
.service-icon {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border-radius: 16px;
  background: var(--color-surface-soft);
  color: var(--color-primary);
  font-size: 1.35rem;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.45rem; }
.service-card p { margin: 0 0 18px; color: var(--color-text-soft); font-size: .92rem; }
.service-card .more { color: var(--color-primary); font-weight: 700; }

/* =========================================================
   OUTSIDE COUNSEL/ APPROACH
   ========================================================= */
.outside-counsel {
  border-block: 1px solid var(--color-border);
  background: var(--color-canvas);
}
.counsel-hero {
  padding-block: var(--section-space);
  background: var(--color-canvas);
}
.outside-counsel-divider { height: 1px; background: var(--color-border); }

.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: 2rem;
}
.lead-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin-bottom: 1.5rem;
}
.body-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin-bottom: 2.5rem;
}
.process-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 3rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--color-primary);
}
.process-flow .arrow { color: var(--color-accent); font-weight: 400; }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}
.cta-link:hover { opacity: .85; }

/* =========================================================
   CONTACT
   ========================================================= */
/* Business-card slots — placeholders for the front / back card artwork.
   Stacked, locked to standard business-card proportions (3.5 x 2),
   same corner radius as the contact form. */
.card-slots {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 3.5 / 2;
  padding: 24px;
  border-radius: 26px;
  background: var(--color-heading);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: .01em;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: 26px;
  background: var(--color-surface);
}

/* Forms — re-skin of Bootstrap controls */
.form-label { font-size: .88rem; font-weight: 700; margin-bottom: 7px; }
.form-control,
.form-select {
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-surface);
  color: var(--color-text);
}
.form-control:focus,
.form-select:focus {
  border-color: var(--color-primary);
  background-color: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}
textarea.form-control { min-height: 130px; resize: vertical; }
.form-note { margin-top: 8px; color: var(--color-text-faint); font-size: .78rem; }
.form-check-label { line-height: 1.45; }

.success {
  margin-top: 14px;
  margin-bottom: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--color-success-bg);
  color: var(--color-success-text);
  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 54px 0 24px;
  background: var(--color-heading);
  color: var(--color-text-inverse);
}
footer h4 { margin: 0 0 12px; color: var(--color-text-inverse); }
footer a { display: block; margin: 7px 0; color: var(--color-text-inverse); }
footer a:hover { color: var(--color-accent); }
.footer-brand { max-width: 350px; }
.footer-logo { margin-bottom: 18px; }
.footer-title { font-family: var(--font-display); color: var(--color-text-inverse); }
.legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--color-text-inverse) 12%, transparent);
  color: var(--color-text-faint);
  font-size: .78rem;
}

/* =========================================================
   MODALS  (Bootstrap modal, re-skinned)
   ========================================================= */
.modal { --bs-modal-width: min(680px, 100%); }
.modal-content {
  position: relative;
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 32px;
  border: 0;
  border-radius: 26px;
  background: var(--color-canvas);
  box-shadow: var(--shadow-modal);
}
.modal-body { padding: 0; }
.modal-backdrop {
  --bs-backdrop-bg: var(--color-overlay);
  --bs-backdrop-opacity: 1;
  backdrop-filter: blur(8px);
}
.modal .close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal-content h2 { margin: 16px 0; font-size: 2.7rem; }
.modal-content ul { padding-left: 20px; }
.modal-icon {
  width: 62px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1.5rem;
}
.modal-eyebrow { margin-top: 20px; }
.modal-subtitle { margin-top: 24px; }

/* =========================================================
   THEME SWITCHER (development aid)
   ========================================================= */
.theme-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
  font-size: .9rem;
}
.theme-switcher label { font-weight: 500; margin: 0; }
.theme-switcher .form-select {
  width: auto;
  padding: 4px 26px 4px 8px;
  border: 1px solid var(--color-border-strong);
  border-radius: 5px;
  background-color: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (min-width: 640px) {
  .about-avatar { width: 128px; margin-bottom: 34px; }
  .about-bio p, .about-perspective-copy { font-size: 1rem; }
  .container{padding-left: 2%; padding-right: 2%}
}

@media (min-width: 992px) {
  .about-avatar { width: 138px; }
  .about-profile h2 { font-size: clamp(3rem, 4.1vw, 4.5rem); }
  .about-detail-group + .about-detail-group { margin-top: 52px; }
  .about-detail-row { padding-block: 16px; }
}

@media (max-width: 639px) {
  :root { --section-space: 66px; }
  .brand-logo { height: 34px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 3.25rem; }
  .section-head p { margin-top: 16px; }
  .about-detail-row { grid-template-columns: 1fr; gap: 5px; }
  .about-detail-row strong { max-width: none; text-align: left; font-size: .9rem; }
  .contact-form { padding: 24px; }
  .card-slot { font-size: 1.5rem; }
  .legal { flex-direction: column; }
  .modal-content { padding: 24px; }
  .modal-content h2 { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
