/* Galvin Law Group — site styles.
   Navy, sand, and brass for a Lowcountry trial firm.
   Spacing is an 8px scale. Cards, stats, nav, and footer share one grid. */

:root {
  --navy: #0c1c2c;
  --navy-mid: #16324a;
  --sand: #f3eee4;
  --paper: #fffdf8;
  --brass: #c4a35a;
  --ink: #1c1914;
  --muted: #5c564c;
  --rule: rgba(196, 163, 90, 0.45);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;
  --measure: 40rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.05rem;
}

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

h1, h2, h3, h4, .display-font {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-wrap: balance;
  color: inherit;
}

h1 { line-height: 1.08; }
h2 { line-height: 1.15; }
h3 { line-height: 1.2; }

a { color: #6e5724; }
a:hover { color: #8a6f2e; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* —— Nav —— */
.navbar-glg {
  background: var(--navy);
  padding: 0;
  border-bottom: 1px solid rgba(196, 163, 90, 0.18);
}

.navbar-glg .container {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.navbar-glg .navbar-brand {
  padding: 0;
  margin-right: 1.25rem;
}

.navbar-glg .navbar-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-glg .navbar-toggler {
  border: 1px solid rgba(232, 226, 214, 0.35);
  padding: 0.4rem 0.55rem;
}

.navbar-glg .nav-link {
  color: #e8e2d6 !important;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 0.7rem !important;
}

.navbar-glg .nav-link:hover,
.navbar-glg .nav-link.active {
  color: var(--brass) !important;
}

.navbar-glg a.btn-brass,
.navbar-glg a.btn-brass:hover { color: var(--navy); }

/* —— Buttons —— */
.btn-brass,
.btn-ghost {
  border-radius: 0;
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-brass {
  background: var(--brass);
  color: var(--navy);
  border: 0;
}

.btn-brass:hover { background: #d4b56d; color: var(--navy); }

.btn-ghost {
  border: 1px solid var(--brass);
  color: var(--brass);
  background: transparent;
}

.btn-ghost:hover { background: var(--brass); color: var(--navy); }

.btn-ghost-ink {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost-ink:hover { background: var(--navy); color: #f7f1e6; }

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

/* —— Heroes —— */
.hero {
  min-height: 82vh;
  background:
    linear-gradient(180deg, rgba(12, 28, 44, 0.55) 0%, rgba(12, 28, 44, 0.82) 100%),
    url("../assets/hero-lowcountry.jpg") center / cover no-repeat;
  color: #f7f1e6;
  display: flex;
  align-items: flex-end;
  padding: 7rem 0 4.5rem;
}

.hero-kicker,
.kicker {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-kicker { color: var(--brass); }
.kicker { color: #8a6f2e; }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.06;
  max-width: 18ch;
  color: #fff;
  margin-bottom: 0;
}

.hero .lead,
.page-hero .lead {
  max-width: var(--measure);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.rule {
  width: 64px;
  height: 2px;
  background: var(--brass);
  border: 0;
  opacity: 1;
  margin: 1.25rem 0;
}

.page-hero {
  position: relative;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 22rem;
  padding: 6.5rem 0 3.25rem;
  display: flex;
  align-items: flex-end;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 28, 44, 0.55), rgba(12, 28, 44, 0.78));
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  max-width: 18ch;
  color: #fff;
  margin-bottom: 0;
}

.page-hero-lowcountry { background-image: url("../assets/hero-lowcountry.jpg"); }
.page-hero-court { background-image: url("../assets/courtroom.jpg"); }
.page-hero-federal { background-image: url("../assets/federal-criminal.jpg"); }
.page-hero-energy { background-image: url("../assets/energy-lines.jpg"); }

/* —— Sections —— */
.section { padding: var(--space-6) 0; }
.section-sand { background: var(--sand); }
.section-navy { background: var(--navy); color: #efe8db; }

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1.75rem;
}

.prose { max-width: var(--measure); }

/* —— Stats —— */
.stats-row { margin: 0; }

.stat {
  padding: 2rem 1.5rem;
}

.stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  color: var(--brass);
  line-height: 1.1;
  min-height: 1.15em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: #cfc6b6;
  font-size: 0.95rem;
  margin: 0.65rem 0 0;
}

@media (min-width: 1200px) {
  .stat { padding: 2.25rem 1.75rem; }
  .stat + .stat { border-left: 1px solid rgba(196, 163, 90, 0.22); }
}

/* —— Cards —— */
.practice-card,
.news-card,
.contact-panel,
.result-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.practice-card,
.news-card,
.contact-panel { padding: 0; }

.practice-card > h3,
.practice-card > p,
.practice-card > a,
.practice-card > .btn { padding-left: 1.5rem; padding-right: 1.5rem; }

.practice-card { padding-bottom: 1.5rem; }
.practice-card > :not(.card-media):first-child { padding-top: 1.5rem; }
.news-card { padding: 1.5rem; }
.contact-panel { padding: 1.75rem; }
.result-card { padding: 1.5rem 1.5rem 1.35rem; }

.practice-card h3,
.news-card h3,
.result-card h3 { font-size: 1.55rem; margin-bottom: 0.65rem; }

.practice-card .card-media + h3 { min-height: 2.6em; }

.practice-card p,
.news-card p { flex: 1; }

.card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy);
  margin: 0 0 1.25rem;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.25rem;
}

.card-link:hover { color: #8a6f2e; }

.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
  margin: 0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headshot {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--rule);
  box-shadow: 0 12px 28px rgba(12, 28, 44, 0.12);
}

.headshot.mx-auto { margin-left: auto; margin-right: auto; }
@media (min-width: 992px) {
  .headshot.mx-lg-0 { margin-left: 0; margin-right: 0; }
}

.news-date {
  color: #8a6f2e;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}

.press-list { list-style: none; padding: 0; margin: 0; }
.press-list li {
  border-top: 1px solid var(--rule);
  padding: 1rem 0;
}
.press-list li:last-child { border-bottom: 1px solid var(--rule); }
.press-list a { font-weight: 600; text-decoration: none; color: var(--navy); }
.press-list a:hover { color: #8a6f2e; }
.press-source { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 0.25rem; }

.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: var(--rule);
}
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.28rem;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--brass);
}
.timeline-item h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }

.result-banner {
  background: var(--navy);
  color: #efe8db;
  padding: 1.5rem 1.75rem;
  border-top: 2px solid var(--brass);
}

.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cred-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control,
.form-select {
  border-radius: 0;
  border-color: #d5cbb8;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 0.15rem rgba(196, 163, 90, 0.25);
}

.disclaimer { font-size: 0.82rem; color: var(--muted); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.form-status.is-ok { color: #2f5d3a; }
.form-status.is-err { color: #8a2a2a; }

/* —— Footer —— */
.footer-glg {
  background: #08141f;
  color: #c9c2b4;
  padding: 3.25rem 0 2rem;
  font-size: 0.95rem;
  border-top: 1px solid rgba(196, 163, 90, 0.18);
}

.footer-glg a { color: #e8e2d6; text-decoration: none; }
.footer-glg a:hover { color: var(--brass); }

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 1.15rem;
}

.footer-address,
.footer-contact { margin-bottom: 0.75rem; }

.footer-heading {
  color: var(--brass);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li { margin-top: 0.45rem; }

.footer-glg .disclaimer {
  color: #9a9386;
  max-width: 28rem;
}

@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: 6rem 0 3.25rem; }
  .page-hero { min-height: 0; padding: 5.5rem 0 2.75rem; }
  .section { padding: 3.75rem 0; }
  .stat { padding: 1.25rem 0; }
  .navbar-glg .nav-link { padding: 0.55rem 0 !important; }
}
