/* ==========================================================================
   Baustian Legal PLLC — Site Stylesheet
   Palette: navy / steel blue / greys, generous whitespace, clean type
   ========================================================================== */

:root {
  --navy: #16324f;
  --navy-dark: #0e2338;
  --steel: #4a7a9c;
  --steel-light: #cfe0ea;
  --grey-900: #26292c;
  --grey-700: #4b4f54;
  --grey-400: #8b9096;
  --grey-200: #e3e6e9;
  --grey-100: #f4f6f8;
  --white: #ffffff;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--grey-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--grey-700); }

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  border-bottom: 1px solid var(--grey-200);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-dark);
  letter-spacing: 0.02em;
}

.brand span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--steel);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--grey-700);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--steel);
  padding-bottom: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.btn-light {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--white);
}
.btn-light:hover { background: transparent; color: var(--white); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 65%, var(--steel) 130%);
  color: var(--white);
  padding: 110px 24px 100px;
}

.hero .container { max-width: 780px; }

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

.hero h1 { color: var(--white); }

.hero p.lead {
  color: var(--grey-200);
  font-size: 1.15rem;
  max-width: 620px;
}

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

/* ---------- Sections ---------- */
section { padding: 76px 24px; }
section.tight { padding: 56px 24px; }

.section-heading { max-width: 640px; margin-bottom: 44px; }
.section-heading p { font-size: 1.05rem; }

.bg-grey { background: var(--grey-100); }
.bg-navy { background: var(--navy-dark); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--grey-200); }

/* ---------- Cards / Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--steel);
  padding: 30px 26px;
  border-radius: 4px;
}

.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Quote / About callout ---------- */
.callout {
  border-left: 3px solid var(--steel);
  padding: 4px 0 4px 26px;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy-dark);
  font-style: italic;
  margin: 0 0 1.2em;
}

/* ---------- Attorney profile ---------- */
.profile-hero {
  background: var(--grey-100);
  padding: 72px 24px;
  border-bottom: 1px solid var(--grey-200);
}

.profile-hero .container {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(22, 50, 79, 0.18);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-intro { max-width: 560px; }
.profile-intro .title { color: var(--steel); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.02em; }
.profile-intro h1 { margin-bottom: 10px; }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- Timeline ---------- */
.timeline { border-left: 2px solid var(--grey-200); padding-left: 30px; }

.timeline-item { position: relative; margin-bottom: 38px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--steel);
}

.timeline-item .role { font-weight: 700; color: var(--navy-dark); font-size: 1.05rem; }
.timeline-item .org { color: var(--steel); font-weight: 600; font-size: 0.92rem; margin-bottom: 2px; }
.timeline-item .dates { color: var(--grey-400); font-size: 0.85rem; margin-bottom: 8px; }

/* ---------- Two-column list ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.info-grid h4 { color: var(--navy); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.info-grid ul { margin: 0; padding-left: 20px; color: var(--grey-700); }
.info-grid li { margin-bottom: 6px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-200);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.96rem;
  color: var(--grey-900);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.contact-card {
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  padding: 32px;
  border-radius: 4px;
  height: fit-content;
}

.contact-card h3 { margin-bottom: 18px; }
.contact-card .item { margin-bottom: 16px; }
.contact-card .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel); font-weight: 700; margin-bottom: 3px; }
.contact-card .item a { color: var(--navy); font-weight: 600; }

.placeholder { color: #b3541e; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: var(--grey-200);
  padding: 48px 24px 28px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.site-footer a { color: var(--grey-200); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  color: var(--grey-400);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--grey-400); }

@media (max-width: 640px) {
  .nav-links { gap: 18px; font-size: 0.85rem; }
  .hero { padding: 80px 20px 70px; }
  h1 { font-size: 2rem; }
}
