/* ==========================================================================
   Drake Law Firm PC — site styles
   Plain, hand-written CSS. Edit colors in the :root block below.
   ========================================================================== */

:root {
  --navy:   #003a66;   /* deep navy — header bar, footer, headings        */
  --blue:   #005090;   /* brand blue (from the logo) — links, accents      */
  --blue-d: #003e70;   /* darker blue for hover states                     */
  --gold:   #b8862b;   /* subtle gold accent (rule under headings)         */
  --ink:    #1f2933;   /* primary body text                                */
  --muted:  #5a6675;   /* secondary text                                   */
  --line:   #e2e6ea;   /* hairline borders                                 */
  --bg:     #ffffff;   /* page background                                  */
  --bg-alt: #f5f7f9;   /* alternating section background                   */
  --maxw:   1100px;    /* content max width                                */
}

/* ---------- Reset / base ------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}

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

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

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

/* ---------- Site header / navigation ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
}

.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 8px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--navy) center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero::after {                /* darkening overlay for text legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 32, 58, .55), rgba(0, 32, 58, .65));
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 14px;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  max-width: 720px;
  margin: 0 auto;
  color: #eaf1f7;
}

/* ---------- Page banner (interior pages) -------------------------------- */
.page-banner {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 48px 24px;
}
.page-banner h1 { color: #fff; margin: 0; font-size: clamp(26px, 4vw, 38px); }

/* ---------- Generic section --------------------------------------------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 8px;
}
.section-title::after {        /* short gold rule under headings */
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-top: 14px;
}
.lead { font-size: 18px; max-width: 820px; }

/* ---------- Contact strip ----------------------------------------------- */
.contact-bar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  padding: 22px 24px;
  font-size: 16px;
}
.contact-bar a { color: #fff; text-decoration: underline; }
.contact-bar strong { letter-spacing: .02em; }

/* ---------- Two-column intro (text + image) ----------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.split img { border-radius: 4px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }

/* ---------- Team / people grid ------------------------------------------ */
.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}
.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.person img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.person.staff img { aspect-ratio: 4 / 3; }
.person .person-body { padding: 22px 24px 26px; }
.person h3 { margin: 0 0 4px; font-size: 22px; }
.person .role { color: var(--gold); font-weight: 600; font-size: 14px;
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.person dl { margin: 0; font-size: 15px; line-height: 1.55; }
.person dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.person dd { margin: 0 0 2px; color: var(--muted); }
.person .person-contact { margin-top: 16px; font-size: 15px; }

/* ---------- Projects ----------------------------------------------------- */
.year-block { margin-bottom: 40px; }
.year-block h2 {
  font-size: 22px;
  color: var(--blue);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin: 0 0 18px;
}
.project { margin-bottom: 30px; }
.project h3 { font-size: 19px; margin: 0 0 6px; color: var(--navy); }
.project p { margin: 0 0 12px; color: var(--muted); }
.project p:last-child { margin-bottom: 0; }

/* A project that has a photo: narrative on the left, photo on the right. */
.project.has-photo {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.project-photo { margin: 0; }
.project-photo img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.project-photo figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* ---------- Client list -------------------------------------------------- */
.client-list {
  columns: 3;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.client-list li {
  break-inside: avoid;
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.client-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Links page --------------------------------------------------- */
.link-group { margin-bottom: 40px; }
.link-group h2 { font-size: 22px; color: var(--blue); margin: 0 0 14px; }
.link-columns {
  columns: 2;
  column-gap: 40px;
}
.link-columns ul { list-style: none; margin: 0; padding: 0; }
.link-columns li { break-inside: avoid; padding: 5px 0; border-bottom: 1px dotted var(--line); }

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: #c6d4e0;
  font-size: 14px;
  padding: 48px 0 28px;
}
.site-footer a { color: #fff; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer h4 {
  color: #fff;
  font-family: Georgia, serif;
  margin: 0 0 12px;
  font-size: 17px;
}
.site-footer p { margin: 0 0 6px; }
.disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.6;
  color: #9fb2c4;
}
.disclaimer h4 {
  font-family: "Avenir Next", Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  color: #c6d4e0;
}
.copyright {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #9fb2c4;
}

/* ==========================================================================
   Mobile responsiveness
   ========================================================================== */
@media (max-width: 880px) {
  body { font-size: 16px; }

  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: none;
  }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .split img { max-width: 360px; margin: 0 auto; }

  .client-list { columns: 2; }
  .link-columns { columns: 1; }

  .project.has-photo { grid-template-columns: 1fr; gap: 20px; }
  .project-photo { max-width: 360px; }
}

@media (max-width: 540px) {
  .client-list { columns: 1; }
  section { padding: 44px 0; }
  .hero .wrap { padding: 64px 20px; }
}
