/* Levesque Estate Planning & Elderlaw - landing page demo
   Plain CSS, system fonts, no JS, no third-party requests. */

:root {
  --navy: #1f2f45;
  --navy-dark: #162235;
  --slate: #3d4b5f;
  --gold: #e3b659;       /* sampled from the logo emblem */
  --gold-dark: #8a6410;  /* darker gold for text on white (AA contrast) */
  --paper: #ffffff;
  --mist: #f2f4f7;
  --line: #d3d9e1;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;      /* 18px */
  line-height: 1.65;
  color: #222b38;
  background: var(--paper);
}

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

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; max-width: 70ch; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* Visible focus on everything interactive */
a:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 12px 16px;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); padding: 16px 0; }

.header-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.logo { display: block; width: 210px; }
.logo:focus-visible { outline-offset: 4px; }
.header-solo .logo { width: 280px; }

.contact-block p { margin: 0; max-width: none; }
.attorney { font-size: 0.9rem; color: var(--slate); }
.phone a, .email a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  font-weight: 600;
  color: var(--navy);
}
.phone a { font-size: 1.15rem; text-decoration: none; }
.phone a:hover { text-decoration: underline; }
.email a { font-size: 1rem; font-weight: 500; text-decoration: none; }   /* no underline, per client request; shows on hover/focus */
.email a:hover { text-decoration: underline; }
.phone, .email { line-height: 1; }

/* ---------- Nav ---------- */
.site-nav { background: var(--navy); }

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 6 items = 3 even rows on phones */
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.site-nav ul.three { grid-template-columns: repeat(3, 1fr); }   /* home page: 3 links */
.site-nav a:hover { background: var(--navy-dark); text-decoration: underline; }
.site-nav a:focus-visible { outline-color: var(--gold); outline-offset: -4px; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(22,34,53,0.92), rgba(31,47,69,0.88)),
    var(--navy);
  color: #fff;
  padding: 56px 0 64px;
}
.hero-inner { max-width: 1100px; }
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.5em;
}
.hero p { color: #fff; font-size: 1.2rem; max-width: 66ch; }

.button {
  display: inline-block;
  min-height: 52px;
  padding: 12px 32px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  text-decoration: none;
  border: 2px solid var(--gold);
  border-radius: 4px;
}
.button:hover { background: #f0c973; border-color: #f0c973; }
.hero .button:focus-visible { outline-color: #fff; }

/* ---------- Services / cards ---------- */
/* Subtle wave texture, drawn inline (no image file, no external request) */
.services {
  background-color: var(--mist);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 6 Q6 0 12 6 T24 6' fill='none' stroke='%23dde2e9' stroke-width='1'/%3E%3C/svg%3E");
  padding: 48px 0 56px;
}
.services h2 { text-align: center; font-size: 1.9rem; margin-bottom: 1.2em; }

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-height: 112px;
  padding: 24px;
  background: var(--paper);
  color: var(--navy);
  text-decoration: none;
  border: 2px solid var(--line);
  border-bottom: 5px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(22,34,53,0.10);
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.card { position: relative; }
.card-main { display: flex; align-items: center; gap: 16px; }
.card-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-sub { font-size: 1rem; line-height: 1.5; color: var(--slate); }
.card-link { color: var(--navy); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }   /* whole card is clickable */
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.card-extra { position: relative; z-index: 1; display: inline-block; padding: 10px 0; font-weight: 600; font-size: 1.05rem; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.card-extra:hover { color: var(--navy); }
.card-icon { flex: none; color: var(--navy); }
.card-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}
.arrow { flex: none; color: var(--gold-dark); transition: transform 0.15s ease; }

.card:hover, .card:focus-within {
  border-color: var(--navy);
  border-bottom-color: var(--gold);
  box-shadow: 0 6px 16px rgba(22,34,53,0.20);
  transform: translateY(-2px);
}
.card:hover .arrow, .card:focus-within .arrow { transform: translateX(4px); }

/* ---------- About ---------- */
.about { padding: 56px 0; }
.about-row { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.about-logo { width: 260px; margin: 0 auto; }
.about h2 { font-size: 1.9rem; }
.about .button { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #e6ebf2; border-top: 4px solid var(--gold); padding: 44px 0 52px; }
.footer-row { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }

/* Official Super Lawyers badge: shown at its native 180x150, never recolored or resized up */
.badge { display: inline-block; width: 180px; max-width: 100%; border-radius: 8px; }
.badge img { width: 180px; height: auto; }

/* Legal disclaimer: his wording, same order, split into three readable parts */
.legal { max-width: 70ch; }
.legal p { margin: 0; max-width: none; }
.legal-lead { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: #fff; margin-bottom: 20px; }
.legal-copy { font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; color: var(--gold); margin-bottom: 8px; }
.legal-note { font-size: 1rem; line-height: 1.65; color: #d3dae6; }

/* ---------- Inner pages ---------- */
.site-nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold); }

.page-title { background: var(--navy); padding: 28px 0; }
.page-title h1 { color: #fff; font-size: 2rem; margin: 0; }

.page-body { padding: 40px 0 56px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }

.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; }

.headshot { width: 300px; max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0 28px; }

.contact-lines p { margin: 0 0 0.4em; }
.contact-lines a { display: inline-block; padding: 8px 0; }
.contact-lines + .contact-lines { margin-top: 1.4em; }
.contact-lines .staff-name { font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin: 0; color: var(--navy); }
.contact-lines .staff-title { font-size: 1.2rem; margin: 0 0 0.4em; }

.side { align-self: start; }
/* Badge stands alone (no box), same as on the home page */
.side-box .badge { display: inline-block; margin: 0; }

.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.4em; max-width: 68ch; }
.prose li { margin-bottom: 0.55em; }
.prose p.tap a { display: inline-block; padding: 9px 0; }

/* Linked LawPay image: official file shown at native size, with a visible frame so it reads as a button */
.imglink { display: inline-block; padding: 10px; background: #fff; border: 2px solid var(--line); border-radius: 6px; }
.imglink img { display: block; max-width: 100%; height: auto; }
.imglink:hover, .imglink:focus-visible { border-color: var(--navy); }

.footer-solo { grid-template-columns: 1fr; }

/* ---------- Tablet and up ---------- */
@media (min-width: 640px) {
  .site-nav ul { grid-template-columns: repeat(3, 1fr); }   /* 6 items = 2 even rows */
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 200px; }
  .card-main { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero h1 { font-size: 3rem; }
  .about-row { grid-template-columns: 300px 1fr; gap: 48px; }
  .about-logo { width: 100%; }
  .footer-row { grid-template-columns: 200px 1fr; gap: 40px; }
  .footer-row.footer-solo { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 2.4rem; }
}

@media (min-width: 900px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
}

@media (min-width: 1000px) {
  .header-row { flex-direction: row; justify-content: space-between; text-align: right; }
  .logo { width: 250px; }
  .header-solo { justify-content: center; }
  .header-solo .logo { width: 320px; }
  .site-nav ul { display: flex; justify-content: space-between; }   /* all six on one row */
  .site-nav a { padding: 8px 14px; border-bottom: 0; }
  .site-nav li { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .arrow { transition: none; }
  .card:hover, .card:focus-within { transform: none; }
}
