/* Andrew Meldrum Attorneys - site styles */
:root {
  --navy: #031565;
  --navy-dark: #020e45;
  --grey: #dedddc;
  --grey-light: #f4f3f2;
  --ink: #1f1d1e;
  --muted: #55524f;
  --white: #ffffff;
  --max: 1080px;
  --head: "Jost", "Futura", "Century Gothic", "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  --body: "Helvetica Neue", Helvetica, Arial, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

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

a { color: var(--navy); }
a:hover, a:focus { color: var(--navy-dark); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--grey);
  background: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand img { width: 260px; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px 26px; flex-wrap: wrap;
}
.nav a {
  font-family: var(--head);
  text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
  color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a:focus { color: var(--navy); border-bottom-color: var(--grey); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); }

/* Hero */
.hero { background: var(--grey-light); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  align-items: center; padding-top: 48px; padding-bottom: 48px;
}
.hero h1 {
  font-family: var(--head); font-weight: 400; color: var(--navy);
  font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px;
}
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero figure { margin: 0; }
.hero figure img { border-radius: 4px; box-shadow: 0 8px 24px rgba(3, 21, 101, .12); }
.hero figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; font-family: var(--head); letter-spacing: .03em;
  padding: 11px 20px; border-radius: 3px; text-decoration: none;
  border: 2px solid var(--navy); font-size: 16px;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--navy-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--white); }

/* Sections */
section.block { padding: 56px 0; }
section.block + section.block { padding-top: 0; }
.block h2 {
  font-family: var(--head); font-weight: 400; color: var(--navy);
  font-size: 30px; margin: 0 0 24px;
}
.page-title {
  font-family: var(--head); font-weight: 400; color: var(--navy);
  font-size: clamp(30px, 4vw, 42px); line-height: 1.2; margin: 0 0 20px;
}
.prose { max-width: 720px; }
.prose p { margin: 0 0 16px; }

/* Contact cards */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.card {
  border: 1px solid var(--grey); border-radius: 4px; padding: 20px;
  background: var(--white);
}
.card h3 {
  font-family: var(--head); font-weight: 500; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  margin: 0 0 6px;
}
.card p { margin: 0; font-size: 17px; }
.card a { text-decoration: none; overflow-wrap: break-word; }
.card a:hover, .card a:focus { text-decoration: underline; }

.association {
  text-align: center; padding: 28px 24px; background: var(--grey-light);
  border-radius: 4px; font-size: 18px;
}
.association strong { font-weight: 600; color: var(--navy); }

/* Testimonials */
.testimonials {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  list-style: none; margin: 0; padding: 0;
}
.testimonials li {
  background: var(--grey-light); border-left: 4px solid var(--navy);
  padding: 20px 22px; border-radius: 0 4px 4px 0;
}
.testimonials blockquote { margin: 0 0 10px; font-size: 17px; }
.testimonials cite { font-style: normal; color: var(--muted); font-size: 15px; }

/* Practice areas */
.areas {
  columns: 2; column-gap: 40px; padding-left: 20px; margin: 0 0 24px;
}
.areas li { break-inside: avoid; margin-bottom: 8px; }
.specialties {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.specialties li {
  border-top: 3px solid var(--navy); background: var(--grey-light);
  padding: 16px 18px; font-family: var(--head); font-size: 18px; color: var(--navy);
}

.callout {
  background: var(--navy); color: var(--white); border-radius: 4px;
  padding: 28px 30px; margin-top: 32px;
}
.callout h2 { color: var(--white); font-size: 24px; margin: 0 0 10px; }
.callout p { margin: 0 0 16px; }
.callout a { color: var(--white); }
.callout .btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.callout .btn-secondary { color: var(--white); border-color: var(--white); }
.callout .btn-secondary:hover, .callout .btn-secondary:focus { background: rgba(255,255,255,.12); }

/* Footer */
.site-footer {
  background: var(--navy); color: #e8eaf3; margin-top: 56px; font-size: 15px;
}
.site-footer .wrap {
  display: grid; grid-template-columns: auto 1fr 1fr; gap: 32px;
  padding-top: 36px; padding-bottom: 36px; align-items: start;
}
.site-footer img { width: 84px; background: var(--white); padding: 8px; border-radius: 3px; }
.site-footer h2 {
  font-family: var(--head); font-weight: 500; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--white); margin: 0 0 8px;
}
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: var(--white); }
.site-footer .legal {
  border-top: 1px solid rgba(255,255,255,.18); grid-column: 1 / -1;
  padding-top: 16px; color: #c3c8dc; font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .specialties { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .brand img { width: 220px; }
  .areas { columns: 1; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-grid, .testimonials { grid-template-columns: 1fr; }
  .site-header .wrap { justify-content: center; }
  .nav ul { justify-content: center; }
}

@media print {
  .nav, .actions, .skip { display: none; }
  .site-footer { background: none; color: var(--ink); }
  .site-footer a { color: var(--ink); }
}
