/* Hill Law PLLC public website — locked brand (navy #1F3864, Sylfaen headings) */

@font-face {
  font-family: Sylfaen;
  src: url("../assets/fonts/Sylfaen.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Literata;
  src: url("../assets/fonts/Literata-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Literata;
  src: url("../assets/fonts/Literata-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1f3864;
  --navy-dark: #152a4a;
  --navy-light: #2a4a7a;
  --gold: #c9a227;
  --gold-soft: #d4b84a;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
  --font-heading: Sylfaen, "Times New Roman", Georgia, serif;
  --font-body: Literata, Georgia, "Times New Roman", serif;
  --header-height: 88px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-light);
}

h1,
h2,
h3,
h4,
.site-title {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.utility-bar {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #fff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-bottom: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.brand-logo-plate {
  background: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.45rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 0;
}

.brand-logo-img {
  display: block;
  height: 52px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--gold-soft);
}

.header-cta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background: var(--navy-dark);
}

.hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-logo-wrap {
  text-align: center;
  padding: 1.5rem;
}

.hero-logo {
  width: min(260px, 80%);
  margin: 0 auto 0.75rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.featured-card {
  border-color: var(--navy);
  border-width: 2px;
}

.featured-card .badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.65rem;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.why-list strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

blockquote {
  margin: 0;
  padding: 1.25rem;
  background: var(--card);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  text-align: center;
  padding: 2.75rem 1rem;
}

.cta-band h2 {
  color: #fff;
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.site-footer a {
  color: var(--gold-soft);
}

.footer-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Attorney page */
.bio-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.bio-photo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.photo-placeholder {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #e8edf5, #d5deec);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.credentials li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}

/* Intake page */
.intake-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.intake-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.intake-panel h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.intake-intro {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.intake-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.option-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  background: #fafbfc;
}

.option-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.option-card p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: 0;
}

.form-section h2 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.checkbox-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.checkbox-row input {
  width: auto;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.form-status.ok {
  display: block;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.err {
  display: block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.intake-sidebar .help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.intake-sidebar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.intake-sidebar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Marguerite chat widget */
.marguerite-launcher {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

.marguerite-panel {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  bottom: 5.25rem;
  z-index: 200;
  width: min(420px, calc(100vw - 2.5rem));
  max-height: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.marguerite-panel.open {
  display: flex;
}

.marguerite-head {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.marguerite-head strong {
  font-family: var(--font-heading);
}

.marguerite-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.marguerite-intro {
  flex: 0 0 auto;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  line-height: 1.35;
}

.marguerite-quick-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
}

.marguerite-quick-btn {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.marguerite-quick-btn.primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.marguerite-quick-btn:hover:not(:disabled) {
  filter: brightness(0.97);
}

.marguerite-quick-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marguerite-doc-first-band {
  background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  margin-top: 1rem;
}

.marguerite-doc-first-band h3 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
  color: #fff;
}

.marguerite-doc-first-band p {
  margin: 0 0 1rem;
  color: #dbeafe;
  max-width: 52ch;
}

.marguerite-doc-first-band .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.35rem;
}

.marguerite-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem;
}

.marguerite-msg {
  margin: 0.35rem 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  max-width: 92%;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.marguerite-msg.bot {
  background: #e8eef7;
  border: 1px solid #d5e0f2;
}

.marguerite-msg.bot.marguerite-msg-revealing {
  min-height: 2.4rem;
}

.marguerite-sentence {
  animation: margueriteSentenceIn 0.42s ease-out;
}

@keyframes margueriteSentenceIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marguerite-sentence {
    animation: none;
  }
}

.marguerite-msg.user {
  background: #f1f5f9;
  border: 1px solid var(--border);
  margin-left: auto;
  text-align: right;
}

.marguerite-attachments {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  max-height: 4.5rem;
  overflow-y: auto;
}

.marguerite-attachments[hidden] {
  display: none;
}

.marguerite-file-chip {
  font-size: 0.78rem;
  background: #e8eef7;
  border: 1px solid #d5e0f2;
  color: var(--navy);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.marguerite-compose {
  flex: 0 0 auto;
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.marguerite-attach {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  border-radius: 8px;
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.marguerite-attach:hover:not(:disabled) {
  background: #f1f5f9;
}

.marguerite-attach:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.marguerite-compose input[type="text"] {
  flex: 1;
  min-width: 0;
}

.marguerite-compose button[type="submit"] {
  padding: 0.55rem 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .bio-grid,
  .intake-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo-img {
    height: 44px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }
}

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

  .header-inner {
    justify-content: center;
  }

  .marguerite-panel {
    top: 0.75rem;
    right: 0.75rem;
    bottom: 4.75rem;
    width: calc(100vw - 1.5rem);
    border-radius: 10px;
  }

  .marguerite-quick-actions {
    flex-wrap: wrap;
  }

  .marguerite-quick-btn {
    flex: 1 1 calc(50% - 0.25rem);
  }
}