@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink:          #1A1D29;
  --ink-mid:      #2C3044;
  --paper:        #F7F5F0;
  --paper-alt:    #EFEDE7;
  --white:        #FFFFFF;
  --emerald:      #1B5E44;
  --emerald-dark: #144A35;
  --emerald-light: #E8F3EE;
  --body-text:    #3A3D4A;
  --muted:        #6B6F7E;
  --border:       rgba(26, 29, 41, 0.10);
  --border-soft:  rgba(26, 29, 41, 0.06);
  --shadow-sm:    0 1px 3px rgba(26,29,41,0.06), 0 4px 12px rgba(26,29,41,0.06);
  --shadow-md:    0 4px 8px rgba(26,29,41,0.05), 0 16px 32px rgba(26,29,41,0.10);
  --shadow-lg:    0 8px 16px rgba(26,29,41,0.06), 0 32px 56px rgba(26,29,41,0.12);
  --radius-btn:   4px;
  --radius-card:  12px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Eyebrow Labels */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
  display: block;
  margin-bottom: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  box-shadow: 0 4px 16px rgba(27,94,68,0.30);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--ink);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}

.btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

/* Top Bar */
.top-bar {
  background: var(--ink);
  color: rgba(247,245,240,0.65);
  font-size: 0.78rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  align-items: center;
}

.top-bar a,
.top-bar span,
.top-bar div {
  color: rgba(247,245,240,0.65);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
}

.top-bar div + div {
  border-left: 1px solid rgba(255,255,255,0.12);
}

.top-bar i {
  color: var(--emerald);
  font-size: 0.7rem;
}

/* Navbar */
.navbar {
  background: rgba(26,29,41,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s, background 0.3s;
}

.navbar.scrolled {
  background: rgba(26,29,41,0.99);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand span {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--emerald);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links .btn {
  color: var(--white);
}

.nav-links .btn::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.75);
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: 6rem 0 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-left .eyebrow {
  display: inline-block;
  color: var(--emerald);
  margin-bottom: 1.5rem;
}

.hero-left h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-left h1 em {
  font-style: italic;
  color: var(--white);
  font-weight: 300;
}

.hero-sub {
  color: rgba(247,245,240,0.70);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.score-graph-wrap {
  width: 100%;
  max-width: 420px;
}

.score-graph {
  width: 100%;
  height: auto;
}

.graph-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: rgba(247,245,240,0.4);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-label-mid {
  color: rgba(247,245,240,0.6);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-white {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-ink {
  background: var(--ink);
  color: var(--white);
}

.section-ink h2,
.section-ink h3 {
  color: var(--white);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
}

.section-header.centered p {
  margin: 0 auto;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Service Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--emerald-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  font-family: 'Fraunces', serif;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  flex-grow: 1;
  line-height: 1.65;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--emerald);
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.card-link:hover {
  gap: 0.6rem;
}

/* Stats Section */
.stats-section {
  background: var(--ink);
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--emerald);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.55);
}

.disclaimer-small {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(247,245,240,0.3);
  margin-top: 2rem;
  font-style: italic;
}

/* How It Works */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  width: 80%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding: 0 1.5rem;
  text-align: center;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--emerald);
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.process-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Testimonials */
.testimonials-slider {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.testimonial {
  display: none;
}

.testimonial.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.testimonial-inner {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 7rem;
  line-height: 0.5;
  color: var(--emerald);
  opacity: 0.10;
  position: absolute;
  top: 2rem;
  left: 2rem;
  user-select: none;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-author {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0.25rem;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.25s;
}

.dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--emerald);
}

/* CTA Banner */
.cta-banner {
  background: var(--emerald);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-banner h2::after {
  display: none;
}

.cta-banner p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.cta-banner .btn-cta,
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--emerald);
  font-weight: 600;
}

.cta-banner .btn-cta:hover,
.cta-banner .btn-primary:hover {
  background: var(--paper);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

/* Contact Section */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
}

.contact-info {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 2.5rem;
}

.contact-info h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-item i {
  color: var(--emerald);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(247,245,240,0.72);
  font-size: 0.9375rem;
  margin: 0;
}

.contact-info-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-bottom-color: var(--emerald);
}

.form-control::placeholder {
  color: var(--muted);
  font-size: 0.9375rem;
}

select.form-control {
  -webkit-appearance: none;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  border: 1.5px solid var(--border);
  padding: 0.75rem;
  border-radius: var(--radius-btn);
  margin-top: 0.25rem;
}

textarea.form-control:focus {
  border-color: var(--emerald);
}

.form-message {
  display: none;
  padding: 1.25rem 1.5rem;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border-radius: var(--radius-btn);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
  border: 1px solid rgba(27,94,68,0.2);
}

/* Footer */
footer {
  background: var(--ink);
  color: rgba(247,245,240,0.6);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(247,245,240,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-brand {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.38);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(247,245,240,0.55);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col p {
  font-size: 0.875rem;
  color: rgba(247,245,240,0.45);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  transition: all 0.2s;
}

.social-links a:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(247,245,240,0.3);
}

/* Services Page */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.service-item {
  background: var(--white);
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: background 0.2s;
}

.service-item:hover {
  background: var(--paper);
}

.service-item-icon {
  width: 44px;
  height: 44px;
  background: var(--emerald-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.service-item-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-item-content p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-item-content ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.service-item-content ul li {
  font-size: 0.8rem;
  background: var(--paper);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  color: var(--body-text);
  border: 1px solid var(--border);
}

/* FAQ */
.faq-accordion {
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--border);
}

.accordion-header {
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  color: var(--emerald);
}

.accordion-icon {
  color: var(--emerald);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 0 0 1.4rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

/* Page Header */
.page-header {
  background: var(--ink);
  padding: 6rem 0 4rem;
}

.page-header .eyebrow {
  margin-bottom: 0.75rem;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(247,245,240,0.62);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* Legal doc pages */
.doc-header {
  background: var(--ink);
  padding: 5rem 0 3rem;
  text-align: center;
}

.doc-header h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
}

.doc-header .eyebrow {
  justify-content: center;
  display: flex;
}

.doc-content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  padding: 3.5rem 4rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  margin-bottom: 4rem;
  border-top: 3px solid var(--emerald);
}

.doc-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.doc-content ul {
  margin-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.doc-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  color: var(--body-text);
}

/* About page grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--border);
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 56px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 13px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(27,94,68,0.2);
}

.timeline-year {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-right {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .process-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .top-bar {
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1.5rem;
    color: var(--white);
  }
  .nav-links .btn {
    font-size: 1rem;
  }
  .hero-left h1 {
    font-size: 2.4rem;
  }
  .hero-sub {
    max-width: 100%;
  }
  .section {
    padding: 4rem 0;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .doc-content {
    padding: 2rem 1.5rem;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-cta-row {
    flex-direction: column;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .score-graph {
    /* no animation */
  }
  html {
    scroll-behavior: auto;
  }
}

/* ── WhatsApp Floating Button ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: #25D366;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.40), 0 2px 6px rgba(0,0,0,0.12);
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.2s cubic-bezier(0.4,0,0.2,1),
              padding 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  max-width: 220px;
}

.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 4px 8px rgba(0,0,0,0.14);
  color: #fff;
}

.wa-float svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.wa-float-label {
  display: inline-block;
}

/* Pulse ring animation */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.5s ease-out infinite;
}

@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 480px) {
  .wa-float { bottom: 1.25rem; right: 1.25rem; padding: 0.75rem; border-radius: 50%; max-width: 52px; }
  .wa-float-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* --- PREMIUM FINISHING DETAILS --- */

.nav-brand {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
}
.nav-monogram {
  width: 36px;
  height: 36px;
  background: var(--emerald);
  color: #fff;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.nav-brand-text {
  display: flex;
  flex-direction: column;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
}
.nav-brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin-top: 1px;
}

/* Hero refinements */
.hero {
  padding: 6rem 0 5rem;
  position: relative;
}

/* Radial emerald atmospheric glow — positioned behind the graph */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(27,94,68,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Glass card wrapping the graph */
.score-graph-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 440px;
}

/* Italic hero line — subtle emerald gradient */
.hero-left h1 em {
  background: linear-gradient(90deg, #ffffff 0%, rgba(232,243,238,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 300;
}

/* Left accent bar on hero headline */
.hero-left {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--emerald);
}

/* Trust Strip */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid rgba(26,29,41,0.07);
  padding: 1rem 0;
}
.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.trust-bureaus {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.trust-bureaus span {
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.45;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}
.trust-bureaus span:hover { opacity: 0.75; }
/* Separator dots between bureau names */
.trust-bureaus span + span::before {
  content: '·';
  margin-right: 2rem;
  opacity: 0.3;
  font-weight: 300;
}

/* Premium card hover — emerald top border slides in */
.card {
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.card:hover::before {
  transform: scaleX(1);
}

/* Card icon — upgrade to circle with ring on hover */
.card-icon {
  transition: background 0.2s, transform 0.2s;
}
.card:hover .card-icon {
  background: var(--emerald);
  color: #fff;
  transform: scale(1.08);
}

/* Premium process steps */
.process-step {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.process-step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.step-number {
  background: var(--ink);
  color: var(--white);
  border: none;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
/* Connecting dashed line between steps */
.process-grid {
  gap: 1.5rem;
}
.process-grid::before {
  top: 27px;
  left: calc(10% + 24px);
  width: calc(80% - 48px);
  background: repeating-linear-gradient(
    90deg,
    var(--emerald) 0px,
    var(--emerald) 6px,
    transparent 6px,
    transparent 14px
  );
  height: 2px;
  opacity: 0.35;
}
.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  margin-top: 0.25rem;
}

/* Stats top rule */
.section-ink {
  position: relative;
}
.section-ink::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--emerald);
  border-radius: 2px;
}

/* Stat number — animate count up (JS will handle) */
.stat-number {
  transition: color 0.3s;
  font-variant-numeric: tabular-nums;
}

/* Stat item hover */
.stat-item {
  transition: background 0.2s;
  border-radius: 8px;
}
.stat-item:hover {
  background: rgba(255,255,255,0.03);
}

/* Prev/next arrows for testimonials */
.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial-nav button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-nav button:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  box-shadow: 0 2px 8px rgba(27,94,68,0.15);
}

/* CTA Banner — richer */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 50%;
}
.cta-banner .container {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
/* Sub text below CTA heading — add in HTML */
.cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-family: 'Inter', sans-serif;
}

.footer-top {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(247,245,240,0.38);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.6;
}

/* Section header decorative rule */
.section-header h2 {
  position: relative;
  padding-top: 1rem;
}
.section-header h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--emerald);
  border-radius: 2px;
}
.section-header.centered h2::before {
  left: 50%;
  transform: translateX(-50%);
}

/* ═══════════════════════════════════════════════════════════
   MISSING VARIABLE ALIASES
   (used in about.htm / contact.htm inline styles)
   ═══════════════════════════════════════════════════════════ */
:root {
  --gold:        #1B5E44;        /* mapped to emerald — consistent brand */
  --off-white:   #F7F5F0;        /* alias for --paper */
  --text-muted:  #6B6F7E;        /* alias for --muted */
  --border-color: rgba(26,29,41,0.10); /* alias for --border */
  --navy:        #1A1D29;        /* alias for --ink */
}

/* ═══════════════════════════════════════════════════════════
   TEXT HIGHLIGHT SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* .hl — inline keyword highlight: emerald-tinted background sweep */
.hl {
  color: var(--emerald-dark);
  font-weight: 700;
  background: linear-gradient(
    104deg,
    rgba(232,243,238,0) 0.9%,
    rgba(232,243,238,0.82) 2.4%,
    rgba(232,243,238,0.82) 97%,
    rgba(232,243,238,0) 99%
  );
  border-radius: 3px;
  padding: 0.05em 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Dark-background sections need a lighter highlight */
.section-ink .hl,
.hero .hl,
.cta-banner .hl {
  color: var(--white);
  background: linear-gradient(
    104deg,
    rgba(27,94,68,0) 0.9%,
    rgba(27,94,68,0.55) 2.4%,
    rgba(27,94,68,0.55) 97%,
    rgba(27,94,68,0) 99%
  );
}

/* Bold text in paragraphs — high contrast */
p strong, li strong {
  color: var(--ink);
  font-weight: 700;
}

/* Strong inside muted/grey paragraphs — lift to body text color */
.section-header p strong,
.hero-sub strong {
  color: var(--ink);
  font-weight: 700;
}

/* Upgrade the section header top-rule to a stronger bar */
.section-header h2::before {
  width: 48px !important;
  height: 3px !important;
  background: linear-gradient(90deg, var(--emerald) 0%, rgba(27,94,68,0.3) 100%) !important;
  border-radius: 2px;
}

/* Section header subtext — increase contrast */
.section-header p {
  color: var(--body-text);
  font-size: 1.0625rem;
}

/* Stat numbers — gradient for depth */
.stat-number {
  background: linear-gradient(135deg, var(--emerald) 0%, #2D8A60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Testimonial quote text — slightly stronger ink */
.testimonial-text {
  color: var(--ink-mid) !important;
  font-size: 1.15rem !important;
}

/* Hero italic em — slightly more visible emerald tint */
.hero-left h1 .hl-hero {
  color: rgba(232,243,238,0.95);
  font-style: italic;
  font-weight: 300;
}

/* Card h3 — slightly larger for readability */
.card h3 {
  font-size: 1.1rem !important;
}

/* Page header p — slightly brighter */
.page-header p {
  color: rgba(247,245,240,0.78) !important;
}

/* About page: core values box fix */
.values-box {
  background: var(--paper);
  padding: 3rem;
  border-radius: var(--radius-card);
  border-top: 4px solid var(--emerald);
  box-shadow: var(--shadow-sm);
}
.values-box h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
.values-box ul {
  list-style: none;
  margin: 0;
}
.values-box li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body-text);
}
.values-box li i {
  color: var(--emerald);
  margin-top: 3px;
  flex-shrink: 0;
}
.values-box li strong {
  color: var(--ink);
  font-weight: 700;
}

/* Team card role label — use emerald instead of gold */
.team-role {
  color: var(--emerald);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Accordion answer — make strong pop */
.accordion-content-inner strong {
  color: var(--emerald-dark);
  font-weight: 700;
}

/* Mobile nav — add close icon at top right */
.nav-links li.nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: none;
}
@media (max-width: 768px) {
  .nav-links li.nav-close { display: block; }
  .nav-links li.nav-close button {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.6); font-size: 1.5rem; line-height: 1;
  }
  /* Overlay behind mobile menu */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
  }
  .nav-overlay.active { display: block; }
}

