/* ==========================================================================
   Witt & Goldsworthy, PLLC — Master Stylesheet
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-navy: #1a2744;
  --color-charcoal: #3d3d3d;
  --color-mid-gray: #636e72;
  --color-accent: #2c3e6b;
  --color-light-gray: #b2bec3;
  --color-pale-gray: #f8f9fa;
  --color-white: #ffffff;
  --color-muted-white: #8a9bb0;
  --color-footer-rule: #2c3e6b;
  --color-footer-muted: #5a6a7a;

  /* Fonts */
  --font-body: 'Equity', Georgia, 'Palatino Linotype', serif;
  --font-ui: 'Concourse', 'Gill Sans', 'Trebuchet MS', Helvetica, Arial, sans-serif;
  --font-caps: 'Concourse Caps', 'Concourse', 'Gill Sans', Helvetica, Arial, sans-serif;

  /* Type Scale */
  --text-h1: 2.25rem;    /* 36px */
  --text-h2: 1.5rem;     /* 24px */
  --text-h3: 1.25rem;    /* 20px */
  --text-body: 1.0625rem; /* 17px */
  --text-small: 0.9375rem; /* 15px */
  --text-button: 0.875rem; /* 14px */
  --text-overline: 0.75rem; /* 12px */
  --text-caption: 0.8125rem; /* 13px */
  --text-fine: 0.6875rem; /* 11px */

  /* Layout */
  --max-width: 1200px;
  --text-max: 780px;
  --section-padding: 5rem 0;
  --card-radius: 8px;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s ease;

  /* Backgrounds */
  --color-bg-alt: var(--color-pale-gray);
}

/* --- Reset / Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  color: var(--color-navy);
  margin-bottom: 1rem;
}

h1 { font-size: var(--text-h1); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--text-h2); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--text-h3); font-weight: 500; line-height: 1.35; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: underline;
  transition: var(--transition);
}
a:hover { color: var(--color-navy); }

.overline {
  font-family: var(--font-caps);
  font-size: var(--text-overline);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-mid-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.overline--light {
  color: var(--color-muted-white);
}

blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  border-left: 3px solid var(--color-navy);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-charcoal);
}

blockquote cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-mid-gray);
  margin-top: 0.5rem;
}

/* --- Buttons --- */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-button);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  line-height: 1.4;
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}
.btn--navy:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}
.btn--white:hover {
  background: var(--color-pale-gray);
  border-color: var(--color-pale-gray);
  color: var(--color-navy);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.btn--pill-nav {
  font-size: var(--text-button);
  padding: 0.5rem 1.5rem;
}

/* --- Link Arrows --- */
.link-arrow {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-button);
  color: var(--color-accent);
  text-decoration: none;
}
.link-arrow:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--navy {
  background: var(--color-navy);
}

.text-center { text-align: center; }

/* ==========================================================================
   UTILITY BAR (Section 1)
   ========================================================================== */
.utility-bar {
  background: var(--color-navy);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.utility-bar__phone,
.utility-bar__links a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-muted-white);
  text-decoration: none;
}

.utility-bar__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.utility-bar__links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   NAVIGATION (Section 2)
   ========================================================================== */
.nav {
  background: var(--color-white);
  position: sticky;
  top: 33px; /* below utility bar */
  z-index: 999;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav__logo img {
  max-height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links > li {
  position: relative;
}

.nav__links a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--color-charcoal);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: var(--transition);
}

.nav__links > li > a:hover,
.nav__links > li:focus-within > a {
  font-weight: 500;
  color: var(--color-navy);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  min-width: 240px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
}

.nav__links > li:hover .nav__dropdown,
.nav__links > li:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown a {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-button);
  white-space: nowrap;
}

.nav__dropdown a:hover {
  background: var(--color-pale-gray);
}

/* Portal Button in Nav */
.nav__portal .btn {
  font-size: var(--text-button);
  padding: 0.5rem 1.5rem;
}

/* Hamburger */
.hamburger-toggle { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: var(--transition);
  display: block;
}

/* Mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-navy);
  z-index: 998;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav a {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-white);
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--color-light-gray);
}

.hamburger-toggle:checked ~ .mobile-nav {
  display: flex;
}

.hamburger-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
.hamburger-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO (Section 3)
   ========================================================================== */
.hero {
  background: var(--color-navy);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero__content {
  flex: 0 0 55%;
}

.hero__image {
  flex: 0 0 45%;
}

.hero__overline {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: var(--text-overline);
  color: var(--color-muted-white);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 3rem;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--color-light-gray);
  margin-bottom: 2rem;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Image placeholder */
.placeholder-img {
  background: #dfe6e9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-mid-gray);
  font-family: var(--font-ui);
  font-size: var(--text-button);
  font-weight: 400;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.hero__image .placeholder-img {
  width: 100%;
  height: 500px;
  border-radius: 8px;
}

/* ==========================================================================
   TRUST SIGNALS (Section 4)
   ========================================================================== */
.trust-signals {
  background: var(--color-bg-alt);
  padding: 1rem 0;
  text-align: center;
}

.trust-signals p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-button);
  color: var(--color-mid-gray);
  margin: 0;
}

/* ==========================================================================
   MISSION (Section 5)
   ========================================================================== */
.mission {
  text-align: center;
}

.mission__inner {
  max-width: 800px;
  margin: 0 auto;
}

.mission h2 {
  font-size: 1.75rem;
  font-weight: 600;
}

.mission p {
  max-width: var(--text-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CARD GRID (Section 6, 9)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 2rem;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
  color: inherit;
}

.card__title {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.card__text {
  font-size: var(--text-small);
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-charcoal);
}

.card__text--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__date {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: var(--text-overline);
  color: var(--color-mid-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.card__thumb {
  width: 100%;
  height: 180px;
  background: #dfe6e9;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: var(--text-caption);
  color: var(--color-mid-gray);
}

/* News card title slightly smaller */
.card--news .card__title {
  font-size: 1.125rem;
}

/* ==========================================================================
   DIFFERENTIATOR (Section 7)
   ========================================================================== */
.two-col {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.two-col__text {
  flex: 0 0 55%;
}

.two-col__image {
  flex: 0 0 40%;
}

.two-col__image .placeholder-img {
  width: 100%;
  height: 400px;
}

.pull-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 3px solid var(--color-navy);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--color-charcoal);
}

.pull-quote__attribution {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-mid-gray);
  margin-top: 0.5rem;
  display: block;
}

/* ==========================================================================
   MEET THE TEAM (Section 8)
   ========================================================================== */
.meet-team {
  text-align: center;
}

.meet-team h2 {
  color: var(--color-white);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.meet-team__subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-muted-white);
  margin-bottom: 2rem;
}

.meet-team__buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT CTA (Section 10)
   ========================================================================== */
.contact-cta {
  text-align: center;
  padding: 4rem 0;
}

.contact-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-cta p {
  margin-bottom: 1.5rem;
}

.contact-cta__phone {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-mid-gray);
  margin-top: 1rem;
  display: block;
  text-decoration: none;
}

/* ==========================================================================
   FOOTER (Section 11)
   ========================================================================== */
.footer {
  background: var(--color-navy);
  padding: 4rem 0 2rem;
}

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

.footer__logo img {
  max-height: 36px;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer__address {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-muted-white);
  line-height: 1.7;
  font-style: normal;
}

.footer__heading {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-button);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted-white);
  margin-bottom: 1rem;
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-muted-white);
  text-decoration: none;
}

.footer__list a:hover {
  text-decoration: underline;
  color: var(--color-white);
}

.footer__bottom {
  border-top: 1px solid var(--color-footer-rule);
  margin-top: 3rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer__copyright {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--text-fine);
  color: var(--color-footer-muted);
  max-width: 65ch;
  margin: 0 auto;
  line-height: 1.6;
}

.footer__social {
  margin-top: 1rem;
}

.footer__social a {
  color: var(--color-muted-white);
  text-decoration: none;
}

.footer__social a:hover {
  color: var(--color-white);
}

.footer__social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   INTERIOR PAGE — Banner
   ========================================================================== */
.page-banner {
  background: var(--color-navy);
  padding: 4rem 0;
}

.page-banner .overline {
  color: var(--color-muted-white);
}

.page-banner h1 {
  color: var(--color-white);
  margin-bottom: 0;
}

/* ==========================================================================
   INTERIOR — Practice Area Detail
   ========================================================================== */
.pa-detail {
  display: flex;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.pa-detail__main {
  flex: 1;
  max-width: var(--text-max);
}

.pa-detail__sidebar {
  flex: 0 0 300px;
}

.sidebar-box {
  background: var(--color-pale-gray);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-box h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.sidebar-box ul {
  list-style: none;
}

.sidebar-box li {
  margin-bottom: 0.5rem;
}

.sidebar-box a {
  font-family: var(--font-ui);
  font-size: var(--text-small);
  color: var(--color-accent);
  text-decoration: none;
}

.sidebar-box a:hover {
  text-decoration: underline;
}

.sidebar-cta {
  background: var(--color-navy);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  color: var(--color-muted-white);
  font-size: var(--text-small);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   INTERIOR — Attorney Bio
   ========================================================================== */
.bio-header {
  background: var(--color-navy);
  padding: 4rem 0;
}

.bio-header .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.bio-header__photo {
  flex: 0 0 300px;
}

.bio-header__photo .placeholder-img {
  width: 300px;
  height: 380px;
  border-radius: 8px;
}

.bio-header__info h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.bio-header__credentials {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;
  color: var(--color-muted-white);
}

.bio-body {
  display: flex;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.bio-body__main {
  flex: 1;
}

.bio-body__sidebar {
  flex: 0 0 300px;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-light-gray);
}

.bio-section ul {
  list-style: none;
}

.bio-section li {
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-size: var(--text-small);
}

.bio-section li a {
  color: var(--color-accent);
  text-decoration: none;
}

.bio-section li a:hover {
  text-decoration: underline;
}

.bio-section .degree {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-small);
  display: block;
}

.bio-section .school {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: var(--text-button);
  color: var(--color-mid-gray);
}

/* ==========================================================================
   INTERIOR — News / Post
   ========================================================================== */
.post-body {
  max-width: var(--text-max);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.post-body .post-date {
  font-family: var(--font-caps);
  font-weight: 400;
  font-size: var(--text-overline);
  color: var(--color-mid-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.post-body h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.news-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.news-grid .card-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

/* ==========================================================================
   RESPONSIVE — Tablet
   ========================================================================== */
@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: 2.5rem;
  }

  .pa-detail,
  .bio-body {
    flex-direction: column;
  }

  .pa-detail__sidebar,
  .bio-body__sidebar {
    flex: none;
    width: 100%;
  }
}

/* ==========================================================================
   RESPONSIVE — Mobile
   ========================================================================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__portal { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 0;
  }

  .utility-bar__links { display: none; }

  .hero {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero__content {
    flex: none;
  }

  .hero__image {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__buttons .btn {
    text-align: center;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    flex-direction: column;
  }

  .two-col__text,
  .two-col__image {
    flex: none;
  }

  .meet-team__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bio-header .container {
    flex-direction: column;
    text-align: center;
  }

  .bio-header__photo {
    flex: none;
  }

  .bio-header__info h1 {
    font-size: 2rem;
  }

  .news-grid .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY — Focus States
   ========================================================================== */
a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .utility-bar,
  .nav,
  .hero,
  .footer,
  .hamburger,
  .mobile-nav,
  .trust-signals,
  .meet-team,
  .contact-cta {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    line-height: 1.5;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .section {
    padding: 1rem 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}
