/* Matrix Meridian Corporation - static site styles
   Palette and typography lifted from the original Squarespace site.
   Headings: futura-pt (Jost fallback). Body: calluna (PT Serif fallback). */

:root {
  --navy: #081b33;
  --navy-soft: #0f2540;
  --accent: #e54a35;
  --accent-dark: #cc3d2a;
  --ink: #272727;
  --ink-soft: #3e3e3e;
  --paper: #ffffff;
  --mist: #f2f2f2;
  --mist-2: #f6f6f6;
  --rule: #e2e2e2;
  --sans: "futura-pt", "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --serif: "calluna", "PT Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

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

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

p { margin: 0 0 1.1em; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand img { display: block; height: 62px; width: auto; }
.site-nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.site-nav a {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  background: var(--navy) url("/assets/hero_pattern.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
}
.hero-inner { padding: 92px 28px; }
.hero h1 {
  color: #fff;
  font-size: 46px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.hero-tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 20px;
  color: #e8edf3;
  margin: 0 auto;
  max-width: 760px;
}

/* ---------- Sections ---------- */
/* The original page sits on a light background throughout (only the hero and
   footer are dark). Sections default to white; the couple of grouped bands
   below opt into a subtle tint explicitly, so no fragile nth-of-type striping
   can override a band's own background. */
.section { padding: 66px 0; background: var(--paper); }
.section-title {
  font-size: 30px;
  margin-bottom: 0.8em;
}
.lead { font-size: 21px; color: var(--ink-soft); }
.lead-in { font-weight: 700; margin-bottom: 0.4em; }

ul.specialties { margin: 0 0 1.2em; padding-left: 1.2em; }
ul.specialties li { margin-bottom: 0.35em; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 13px 26px;
  border-radius: 2px;
  border: 2px solid var(--accent);
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.button-ghost { background: transparent; color: var(--accent); }
.button-ghost:hover { background: var(--accent); color: #fff; }
.chat-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.4em; }

/* ---------- Contact band ---------- */
/* Original treatment: dark text on a light background (no dark band, no
   background image). A subtle tint plus hairline rules group the location and
   contact columns. */
.contact-band { background: var(--mist-2); color: var(--ink); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.contact-band .section-title, .contact-band h3 { color: var(--navy); }
.contact-band a { color: var(--accent); }
.contact-band a:hover { color: var(--accent-dark); }
.contact-band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
}
.contact-col h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.6em;
}
.contact-col .mark { color: var(--accent); }
.contact-col .ci { margin-right: 6px; }

/* ---------- Practice areas ---------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px;
}
.practice-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 30px 28px;
}
.practice-card h3 { font-size: 21px; margin-bottom: 0.6em; }
.practice-card ul { padding-left: 1.15em; margin: 0; }
.practice-card li { margin-bottom: 0.4em; }

/* ---------- Quote band ---------- */
/* Original treatment: large dark-navy serif quote on a light background with a
   red-orange uppercase attribution (site.css: .quote-block blockquote color
   #081b33, .quote-block .source color #e54a35). Not a dark band. */
.quote-band { background: var(--paper); color: var(--navy); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; }
.quote-band p {
  font-family: var(--serif);
  font-style: normal;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.7em;
}
.quote-band cite {
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ---------- Team ---------- */
.team-member {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}
.team-member:last-child { border-bottom: 0; }
.team-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.team-role {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.3em;
}
.team-bio h2 { font-size: 26px; margin-bottom: 0.5em; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.gallery-grid figure { margin: 0; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.gallery-grid figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 7px;
}

/* ---------- Clients ---------- */
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 34px;
}
.client-col h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5em;
  margin-bottom: 0.7em;
}
.client-col ul { list-style: none; padding: 0; margin: 0; }
.client-col li { padding: 6px 0; border-bottom: 1px solid var(--rule); }

.testimonials blockquote {
  margin: 0 0 34px;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
}
.testimonials p { font-style: italic; font-size: 20px; margin-bottom: 0.4em; }
.testimonials cite {
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfd8e3; margin-top: 0; }
.footer-inner {
  display: flex;
  gap: 34px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 24px;
  flex-wrap: wrap;
}
.footer-mark { height: 66px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-details p { margin: 0 0 0.4em; font-size: 15px; line-height: 1.55; }
.footer-name { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; padding-bottom: 30px; }
.footer-legal p { margin: 0; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: #8f9db0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: 34px; }
  .hero-inner { padding: 64px 24px; }
  .section { padding: 48px 0; }
  .team-member { grid-template-columns: 1fr; gap: 18px; }
  .team-photo { max-width: 320px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav { gap: 20px; }
}
