/* Trio Law PLC: shared styles for every page */
:root {
  --navy: #0f3b63;
  --navy-dark: #0a2a47;
  --steel: #5d7d9c;
  --steel-light: #a9bdd6;
  --mist: #eef2f7;
  --ink: #1f2933;
  --muted: #52606d;
  --gold: #e9b44c;
  --coral: #e8625a;
  --royal: #4c62b0;
  --white: #ffffff;
  --radius: 4px;
  --max: 1080px;
  --head: "Raleway", "Segoe UI", Arial, sans-serif;
  --body: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.65 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--steel); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.4rem; font-weight: 500; }
h2 { font-size: 1.9rem; font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 10px; top: 10px; background: var(--white); padding: 8px; z-index: 10; }

/* Header and navigation */
.site-header { background: var(--steel); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; background: var(--white); padding: 8px 14px; }
.brand img { width: 190px; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.site-nav li { position: relative; }
.site-nav a {
  display: block; padding: 22px 16px;
  color: var(--white); text-decoration: none;
  font-family: var(--head); font-size: 1rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy); color: var(--white); }
.site-nav .sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 5;
  min-width: 210px; background: var(--navy);
}
.site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: block; }
.site-nav .sub a { padding: 12px 16px; }
.site-nav .sub a:hover { background: var(--steel); }

/* Page sections */
.hero { padding: 28px 0; }
.hero img { width: 100%; border-radius: var(--radius); }
.band { padding: 56px 0; }
.band-steel { background: var(--steel); }
.band-steel h2 { color: var(--white); }
.band-mist { background: var(--mist); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-navy a { color: var(--white); }
.center { text-align: center; }

.page-title { background: var(--mist); padding: 40px 0 28px; }
.page-title h1 { margin: 0; }
.page-title p { color: var(--muted); margin: .5em 0 0; max-width: 760px; }
.content { padding: 44px 0 60px; }
.content .lead { font-size: 1.1rem; max-width: 820px; }

/* Card grids */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 24px; text-align: center;
  box-shadow: 0 2px 10px rgba(10, 42, 71, .12);
  display: flex; flex-direction: column; align-items: center;
}
.card img { height: 188px; width: auto; margin-bottom: 14px; }
.card img.round { border-radius: 50%; aspect-ratio: 1; object-fit: cover; object-position: top; height: 170px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }

.btn {
  display: inline-block; padding: 10px 22px;
  background: var(--navy); color: var(--white) !important;
  border: 0; border-radius: var(--radius); cursor: pointer;
  font: 600 .95rem var(--body); text-decoration: none;
}
.btn:hover { background: var(--navy-dark); }
.btn-light { background: var(--steel-light); color: var(--navy-dark) !important; }
.btn-light:hover { background: var(--white); }

/* Testimonials */
.quotes { columns: 3 280px; column-gap: 28px; }
.quote { break-inside: avoid; margin: 0 0 28px; }
.quote blockquote { margin: 0 0 .5em; font-size: .95rem; }
.quote figcaption { color: var(--steel); font-style: italic; font-size: .9rem; }

/* Practice-area tiles */
.practice { border-radius: var(--radius); padding: 28px 24px; color: var(--white); display: flex; flex-direction: column; }
.practice h3 { color: var(--white); font-size: 1.5rem; text-align: center; }
.practice p { flex: 1; }
.practice .btn { align-self: center; background: rgba(0, 0, 0, .22); }
.practice .btn:hover { background: rgba(0, 0, 0, .38); }
.practice-business { background: var(--gold); color: #2b2205; }
.practice-business h3 { color: #2b2205; }
.practice-business .btn { background: rgba(0, 0, 0, .7); }
.practice-franchise { background: var(--coral); }
.practice-healthcare { background: var(--royal); }

/* Lists of services */
.service-list { columns: 2 260px; column-gap: 32px; padding-left: 1.2em; }
.service-list li { break-inside: avoid; margin-bottom: .4em; }
.section { margin-top: 36px; }
.section h2 { font-size: 1.5rem; border-bottom: 2px solid var(--steel-light); padding-bottom: .3em; }
.section h3 { margin-top: 1.4em; }

/* About page */
.profile { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.profile img { border-radius: var(--radius); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--navy); margin-top: 20px; flex-wrap: wrap; }
.tabs button {
  background: var(--mist); border: 0; padding: 10px 18px; cursor: pointer;
  font: 600 .95rem var(--head); color: var(--navy); border-radius: var(--radius) var(--radius) 0 0;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.tab-panel { padding: 22px 0; }
.tab-panel[hidden] { display: none; }
.tab-panel ul { padding-left: 1.2em; }

.pubs { list-style: none; padding: 0; }
.pubs li { padding: 16px 0; border-bottom: 1px solid var(--mist); }
.pubs .title { font-weight: 600; color: var(--navy); }
.pubs .cite { display: block; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info p { margin: 0 0 .3em; }
.contact-form label { display: block; font-size: .9rem; margin-bottom: 12px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid var(--steel-light); border-radius: var(--radius);
  font: inherit; color: var(--ink); background: var(--white);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .hp { display: none; }
.form-note { font-size: .82rem; opacity: .85; }
.form-status { margin-top: 10px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--steel-light); color: var(--navy-dark); padding: 28px 0 20px; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.site-footer a { color: var(--navy-dark); }
.site-footer .mid { text-align: center; }
.site-footer .social { justify-self: end; }
.site-footer .social svg { width: 22px; height: 22px; fill: var(--navy-dark); }
.disclaimer { grid-column: 1 / -1; font-size: .78rem; opacity: .85; margin: 10px 0 0; text-align: center; }

/* Phone and tablet */
@media (max-width: 860px) {
  .grid-3, .grid-2, .contact-grid, .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 220px; }
  .nav-toggle {
    display: block; background: transparent; border: 1px solid var(--white); color: var(--white);
    padding: 8px 14px; border-radius: var(--radius); font: 600 .95rem var(--body); cursor: pointer;
  }
  .site-header .wrap { flex-wrap: wrap; padding: 10px 16px; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 8px; border-top: 1px solid rgba(255, 255, 255, .2); }
  .site-nav .sub { display: block; position: static; background: transparent; }
  .site-nav .sub a { padding-left: 28px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; }
  .site-footer .social { justify-self: center; }
  h1 { font-size: 1.9rem; }
  .band { padding: 40px 0; }
}
