/* =========================================================
   Calvert Eaves Clarke & Stelly, L.L.P. — site stylesheet
   Conservative, static presentation. Navy / brick red / stone,
   drawn from the firm's existing Texas-outline logo and flag.
   ========================================================= */

:root {
  --navy:       #1d2d4a;
  --navy-deep:  #16233a;
  --red:        #a32638;
  --blue-link:  #24508f;
  --gold:       #b3924f;
  --ink:        #2d2c28;
  --muted:      #6d6a60;
  --paper:      #fdfdfb;
  --stone:      #f3f1ec;
  --line:       #ddd8cd;
  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---------- Masthead ---------- */

.masthead {
  background:
    linear-gradient(to right, rgba(253,253,251,0.92) 0%, rgba(253,253,251,0.55) 38%, rgba(253,253,251,0) 62%),
    url("../images/flag-header.jpg") right center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead .logo img { width: 330px; }

.masthead-contact {
  text-align: right;
  color: #f4f2ee;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(20, 20, 25, 0.55);
}

.masthead-contact a { color: #f4f2ee; }

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--navy);
  border-bottom: 2px solid var(--red);
}

.site-nav ul {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 13px 22px 11px;
  color: #e8e6e0;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.site-nav a:hover {
  color: #ffffff;
  text-decoration: none;
  border-bottom-color: var(--gold);
}

.site-nav a.active {
  color: #ffffff;
  border-bottom-color: var(--gold);
}

/* ---------- Page title band ---------- */

.page-title {
  background: var(--stone);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 30px;
}

.page-title h1 {
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.page-title h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-top: 12px;
}

/* ---------- General content ---------- */

.content { padding: 44px 0 56px; }

.content p + p { margin-top: 1em; }

.lead { font-size: 18.5px; }

h2.section-heading {
  font-weight: 400;
  font-size: 23px;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 1.9em 0 0.7em;
}

h2.section-heading:first-child { margin-top: 0; }

.rule-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--gold);
  margin-top: 9px;
}

/* ---------- Home ---------- */

.home-intro { display: flex; gap: 48px; }

.home-main { flex: 1 1 auto; min-width: 0; }

.home-side {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.framed-photo figure { margin: 0; }

.framed-photo img {
  width: 100%;
  border: 1px solid var(--line);
  padding: 5px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(45, 44, 40, 0.12);
}

.framed-photo figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

.welcome-heading {
  font-weight: 400;
  font-size: 31px;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.8em;
}

.welcome-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-top: 13px;
}

.practice-list {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin: 1.4em 0 1.6em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.1em 0;
}

.practice-list li {
  padding: 4px 0 4px 18px;
  position: relative;
  break-inside: avoid;
  font-size: 16.5px;
}

.practice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 2px;
  background: var(--red);
}

/* ---------- Recognition band ---------- */

.recognition {
  background: var(--stone);
  border-top: 1px solid var(--line);
  padding: 34px 0 40px;
}

.recognition h2 {
  font-weight: 400;
  font-size: 15px;
  font-family: var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 26px;
}

.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 46px;
}

.badge-row img { max-height: 92px; width: auto; }

/* ---------- Attorneys listing ---------- */

.attorney-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
  margin-bottom: 8px;
}

.attorney-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 26px 24px 22px;
  text-align: center;
}

.attorney-card img {
  width: 125px;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  padding: 4px;
  background: #fff;
}

.attorney-card h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.attorney-card .title {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 4px 0 12px;
}

.attorney-card p.blurb {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 14px;
}

.attorney-card .bio-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Attorney biography ---------- */

.bio-grid { display: flex; gap: 48px; }

.bio-side { flex: 0 0 240px; }

.bio-side .framed-photo img { width: 100%; }

.bio-side .contact-block {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.7;
}

.bio-side h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  margin: 26px 0 10px;
}

.bio-side ul {
  list-style: none;
  font-size: 14.5px;
  line-height: 1.5;
}

.bio-side ul li { padding: 3.5px 0; }

.bio-badges { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.bio-badges img { max-width: 170px; }

.bio-main { flex: 1 1 auto; min-width: 0; }

.bio-main h1 {
  font-weight: 400;
  font-size: 32px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.bio-main .title {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 6px 0 20px;
}

.bio-main h2 {
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin: 1.8em 0 0.5em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 5px;
}

.bio-main ul { margin: 0.3em 0 0.9em 1.25em; }
.bio-main ul ul { margin-top: 0.15em; margin-bottom: 0.3em; }
.bio-main li { padding: 2px 0; }

.bio-main .footnote {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 2.2em;
  border-top: 1px solid var(--line);
  padding-top: 0.8em;
}

.breadcrumb {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
  color: var(--muted);
}

/* ---------- Practice areas page ---------- */

.practice-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 34px;
  margin-top: 1.6em;
}

.practice-grid li {
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16.5px;
  border-left: 3px solid var(--red);
}

.practice-grid a {
  display: block;
  padding: 13px 18px;
  color: var(--navy);
}

.practice-grid a:hover {
  background: var(--stone);
  text-decoration: none;
}

.practice-copy { margin-top: 3em; }

.practice-copy section {
  scroll-margin-top: 24px;
  padding-top: 2em;
}

.practice-copy section + section {
  margin-top: 2em;
  border-top: 1px solid var(--line);
}

.practice-copy h2 {
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

/* ---------- Reported cases ---------- */

.case-list { list-style: none; margin-top: 0.4em; }

.case-list li {
  padding: 9px 0 9px 1.6em;
  text-indent: -1.6em;
  border-bottom: 1px solid var(--stone);
  font-size: 16px;
}

.case-list em { color: var(--navy); }

/* ---------- Contact ---------- */

.contact-grid { display: flex; gap: 48px; align-items: flex-start; }

.contact-info { flex: 1 1 auto; }

.contact-info .firm-name {
  font-size: 21px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 0.6em;
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
  margin-bottom: 1.2em;
}

.contact-photo { flex: 0 0 250px; }

.map-band { margin-top: 44px; }

.map-band img,
.map-band iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.map-band p {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

/* ---------- Disclaimer ---------- */

.legal-content h2 {
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin: 1.6em 0 0.4em;
}

.legal-content h2:first-child { margin-top: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9b6ae;
  margin-top: 30px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  padding: 44px 24px 38px;
  max-width: 1060px;
  margin: 0 auto;
}

.footer-cols h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-cols .col { flex: 1; font-size: 14.5px; line-height: 1.8; }

.footer-cols a { color: #b9b6ae; }
.footer-cols a:hover { color: #ffffff; }

.footer-cols ul { list-style: none; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #8f8c84;
  text-align: center;
  padding: 18px 24px 22px;
  line-height: 1.7;
}

.footer-legal a { color: #b9b6ae; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .masthead {
    background:
      linear-gradient(to right, rgba(253,253,251,0.96) 0%, rgba(253,253,251,0.88) 100%),
      url("../images/flag-header.jpg") right center / cover no-repeat;
  }
  .masthead-inner { flex-direction: column; text-align: center; padding: 22px 18px; }
  .masthead .logo img { width: 280px; }
  .masthead-contact { text-align: center; color: var(--navy); text-shadow: none; }
  .masthead-contact a { color: var(--navy); }
  .site-nav ul { justify-content: center; padding: 0 8px; }
  .site-nav a { padding: 11px 13px 9px; }
  .home-intro { flex-direction: column; }
  .home-side { flex-direction: row; flex-wrap: wrap; flex-basis: auto; }
  .home-side .framed-photo { flex: 1 1 150px; max-width: 190px; }
  .attorney-cards { grid-template-columns: 1fr; }
  .bio-grid { flex-direction: column; }
  .bio-side { flex-basis: auto; max-width: 300px; }
  .contact-grid { flex-direction: column; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-list { columns: 1; }
  .footer-cols { flex-direction: column; gap: 30px; }
}
