/* ==========================================================================
   Hartwell & Associates — shared stylesheet
   Design tokens live in :root. Change the palette / fonts here, not inline.
   ========================================================================== */

:root {
  /* Brand palette */
  --navy:        #0d1f3c;   /* deep navy — primary dark */
  --navy-800:    #132a52;   /* slightly lifted navy for layered surfaces */
  --navy-700:    #1c3a6e;   /* hover / accents on dark */
  --gold:        #c9a84c;   /* warm gold — accent */
  --gold-600:    #b3923a;   /* darker gold for hovers */
  --gold-100:    #f4ecd6;   /* faint gold wash */
  --charcoal:    #2b2f38;   /* body text */
  --slate:       #5b616e;   /* muted text */
  --line:        #e5e2da;   /* hairline borders */
  --paper:       #ffffff;   /* base background */
  --paper-alt:   #f7f5f0;   /* warm off-white section background */

  /* Typography */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 76px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(13, 31, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 31, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 31, 60, 0.16);
  --radius: 6px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1rem; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--navy { background: var(--navy); color: #dfe5ef; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
}
.section-head .eyebrow { justify-content: center; }
.section-head p { color: var(--slate); font-size: 1.075rem; margin-bottom: 0; }
.section--navy .section-head p { color: #b9c3d6; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold { background: var(--gold); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold-600); box-shadow: var(--shadow-md); }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   Site header / nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 4px;
  font-size: 1.05rem;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.5);
}
.brand__name {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.1;
}
.brand__name .amp { color: var(--gold-600); }
.brand__sub {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  position: relative;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal);
  padding: 0.4rem 0;
  transition: color 0.2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--navy); }

/* The in-menu CTA is for the mobile dropdown only; the desktop CTA lives in .nav__actions */
.nav__links .btn { display: none; }

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--navy);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(201,168,76,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0a1830 55%, #081326 100%);
  color: #eef2f9;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(60% 60% at 50% 40%, #000, transparent 100%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 11vw, 8.5rem) 0 clamp(3.5rem, 9vw, 7rem);
  max-width: 760px;
}
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin-bottom: 0.4em; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero__lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: #c4cfe2;
  max-width: 560px;
  margin-bottom: 2.2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.6rem;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #9fb0cc;
  font-size: 0.92rem;
}
.hero__trust i { color: var(--gold); margin-right: 0.4rem; }

/* --------------------------------------------------------------------------
   Services strip (cards)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.7rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              border-color 0.28s var(--ease);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.service-card:hover .service-card__icon { background: var(--navy); color: var(--gold); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--slate); font-size: 0.98rem; margin-bottom: 1.1rem; }
.service-card__link {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.service-card__link i { transition: transform 0.2s var(--ease); }
.service-card__link:hover { color: var(--gold-600); }
.service-card__link:hover i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   About snippet (split)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  background:
    linear-gradient(150deg, var(--navy) 0%, #17335f 100%);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.6);
}
.about-media__badge {
  position: absolute;
  right: -1px; bottom: -1px;
  background: var(--gold);
  color: var(--navy);
  padding: 1.3rem 1.7rem;
  border-top-left-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-media__badge strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  display: block;
}
.about-media__badge span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.about-media__placeholder {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.about-copy .btn { margin-top: 0.6rem; }
.about-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--charcoal);
}
.about-list i { color: var(--gold-600); margin-top: 0.35rem; }

/* --------------------------------------------------------------------------
   Stats bar
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat { padding: 0.5rem; }
.stat__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat__label {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9c3d6;
  font-weight: 600;
}
.stat + .stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -0.75rem; top: 50%;
  transform: translateY(-50%);
  height: 54px; width: 1px;
  background: rgba(255,255,255,0.14);
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-card__stars { color: var(--gold); font-size: 0.95rem; margin-bottom: 0.9rem; letter-spacing: 2px; }
.quote-card__mark {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.4;
  color: var(--gold-100);
  height: 1.2rem;
}
.quote-card blockquote {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  color: var(--charcoal);
  quotes: none;
}
.quote-card__person {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.quote-card__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  flex: none;
}
.quote-card__name { font-weight: 700; color: var(--navy); line-height: 1.2; }
.quote-card__role { font-size: 0.86rem; color: var(--slate); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(140deg, var(--navy) 0%, #14284b 100%);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  color: #eef2f9;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "\f0e3";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: -0.5rem; bottom: -1.5rem;
  font-size: 10rem;
  color: rgba(201,168,76,0.10);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c4cfe2; max-width: 560px; margin: 0 auto 1.8rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #081326;
  color: #9fb0cc;
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__sub { color: #7e8eaa; }
.footer-about p { color: #9fb0cc; font-size: 0.96rem; }
.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-col a { color: #9fb0cc; font-size: 0.96rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #9fb0cc;
  font-size: 0.96rem;
  margin-bottom: 0.65rem;
}
.footer-contact i { color: var(--gold); margin-top: 0.3rem; width: 16px; text-align: center; }
.social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.social a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #cdd7e8;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.4rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #7e8eaa;
}
.footer-bar a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Inner-page banner (about / services / team / testimonials / contact)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(201,168,76,0.14), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0a1830 60%, #081326 100%);
  color: #eef2f9;
  overflow: hidden;
  text-align: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 100%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
  max-width: 760px;
  margin-inline: auto;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: #c4cfe2; font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin: 0 auto; max-width: 620px; }
.breadcrumb {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.85rem;
  color: #93a3c0;
  margin-top: 1.6rem;
}
.breadcrumb a { color: #c4cfe2; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: 0.6rem; opacity: 0.6; }

/* --------------------------------------------------------------------------
   Values grid (about) — pairs with .card-grid
   -------------------------------------------------------------------------- */
.value-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  text-align: left;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value-card p { color: var(--slate); font-size: 0.97rem; margin: 0; }

/* --------------------------------------------------------------------------
   Timeline (about — firm history)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--line));
}
.timeline__item { position: relative; padding-bottom: 2.2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2rem; top: 4px;
  transform: translateX(1px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--paper-alt);
}
.timeline__year {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--gold-600);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}
.timeline__item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.timeline__item p { color: var(--slate); margin: 0; }

/* --------------------------------------------------------------------------
   Service detail rows (services page)
   -------------------------------------------------------------------------- */
.service-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.6rem;
  align-items: start;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.service-row:last-child { border-bottom: none; }
.service-row__icon {
  display: grid;
  place-items: center;
  width: 88px; height: 88px;
  border-radius: 16px;
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: 2rem;
  transition: background 0.28s var(--ease), color 0.28s var(--ease);
}
.service-row:hover .service-row__icon { background: var(--navy); color: var(--gold); }
.service-row h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.service-row__body p { color: var(--slate); max-width: 60ch; }
.tag-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.tag-list i { color: var(--gold-600); font-size: 0.8rem; }

/* Process steps (services page) */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  counter-reset: step;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.7rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.step p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   Team / attorney cards
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
}
.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
  display: flex;
  flex-direction: column;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-card__photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--navy) 0%, #1c3a6e 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.team-card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.team-card__name { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); margin-bottom: 0.15rem; }
.team-card__role { color: var(--gold-600); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.team-card__bio { color: var(--slate); font-size: 0.95rem; margin-bottom: 1.2rem; }
.team-card__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.team-card__socials { display: flex; gap: 0.5rem; }
.team-card__socials a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--navy);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.team-card__socials a:hover { background: var(--navy); color: var(--gold); }
.team-card__email { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.team-card__email:hover { color: var(--gold-600); }

/* --------------------------------------------------------------------------
   Ratings summary (testimonials page)
   -------------------------------------------------------------------------- */
.rating-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 3rem;
  text-align: center;
}
.rating-summary__score { display: flex; flex-direction: column; align-items: center; }
.rating-summary__num { font-family: var(--serif); font-weight: 700; font-size: 3.2rem; color: var(--gold); line-height: 1; }
.rating-summary__stars { color: var(--gold); letter-spacing: 2px; margin: 0.4rem 0 0.2rem; }
.rating-summary__meta { color: #b9c3d6; font-size: 0.92rem; }
.rating-summary__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  color: #cdd7e8;
  font-weight: 600;
}
.rating-summary__logos span { display: inline-flex; align-items: center; gap: 0.5rem; }
.rating-summary__logos i { color: var(--gold); }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--gold-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18);
}
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--slate); margin-bottom: 1.3rem; }
.form-consent input { margin-top: 0.25rem; flex: none; }
.form-note {
  display: none;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: var(--gold-100);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-note.is-visible { display: flex; }
.form-note i { color: var(--gold-600); }

.contact-aside { display: grid; gap: 1.1rem; }
.info-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.info-tile__icon {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-100);
  color: var(--gold-600);
  font-size: 1.1rem;
}
.info-tile h3 { font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-bottom: 0.35rem; }
.info-tile p, .info-tile a { color: var(--charcoal); margin: 0; font-size: 1rem; }
.info-tile a:hover { color: var(--gold-600); }
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background:
    repeating-linear-gradient(45deg, var(--paper-alt), var(--paper-alt) 12px, #efece3 12px, #efece3 24px);
  display: grid;
  place-items: center;
  color: var(--slate);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.map-embed i { display: block; font-size: 1.8rem; color: var(--gold-600); margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Motion — entrance animations + reveal-on-scroll
   -------------------------------------------------------------------------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Hero + inner-page banner content rises in on load, gently staggered.
   Opacity:0 lives only in the keyframe, so disabling the animation
   (reduced motion) leaves everything fully visible. */
.hero__inner > *,
.page-hero__inner > * {
  animation: riseIn 0.75s var(--ease) both;
}
.hero__inner > *:nth-child(1),
.page-hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2),
.page-hero__inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero__inner > *:nth-child(3),
.page-hero__inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero__inner > *:nth-child(4),
.page-hero__inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero__inner > *:nth-child(5),
.page-hero__inner > *:nth-child(5) { animation-delay: 0.45s; }

/* Stable width while the numbers tick up */
.stat__num,
.rating-summary__num { font-variant-numeric: tabular-nums; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__inner > *,
  .page-hero__inner > * { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat + .stat::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 64px 1fr; gap: 1.1rem; }
  .service-row__icon { width: 60px; height: 60px; font-size: 1.4rem; border-radius: 12px; }
}

@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .about-media { min-height: 300px; order: -1; }

  .nav__toggle { display: inline-flex; }
  .nav__actions .btn { display: none; }

  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 0.5rem var(--gutter) 1.4rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links li { border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a { display: block; padding: 0.95rem 0; font-size: 1.05rem; }
  .nav__links a::after { display: none; }
  .nav__links .btn {
    display: inline-flex;
    width: 100%;
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row__icon { width: 56px; height: 56px; }
}
