/* ==========================================================================
   Applied Animal Insights — Design System v2
   Clean / modern / minimal. Single accent color. Generous white space.
   Display: Lora · Body: Inter
   ========================================================================== */

:root {
  --ink: #16284A;
  --white: #FFFFFF;
  --soft: #F2EEE3;
  --accent: #1F8A8C;
  --accent-dark: #166B6D;
  --accent2: #7CB143;
  --muted: #6B7280;
  --line: #DCD5C3;

  --display: "Lora", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--soft);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Signature accent ---------- */

.accent-underline {
  position: relative;
  white-space: nowrap;
}

.accent-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 18px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 238, 227, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 110px;
}

.wordmark {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 44px;
  font-size: 15px;
}

nav.main-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); }

nav.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  display: inline-block; /* Forces browser to respect custom block padding width */
  padding: 11px 44px;    /* Widened horizontal layout padding to prevent clipping */
  min-width: 160px;      /* Establishes minimum structural baseline for text breathing room */
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;    /* Keeps text centered inside wider area */
}

.nav-cta:hover { background: var(--accent-dark); }
.nav-cta.active::after { display: none; }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
    color: var(--ink);
  }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 24px 40px 32px;
    gap: 20px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 0px 0 0px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 880px;
}

.hero .lede {
  margin-top: 32px;
  font-size: 20px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
}

.hero .actions {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--ink);
}

.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }

/* ---------- Section scaffolding ---------- */

section { padding: 110px 0; }
section.tight { padding: 80px 0; }
section.soft { background: var(--white); }
section.divider-top { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: 64px;
  max-width: 640px;
}

h2.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  margin-top: 18px;
  font-size: 17px;
}

/* ---------- Services list (no boxes — just rows + rule) ---------- */

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.service-row:last-child { border-bottom: 1px solid var(--line); }

.service-row h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.01em;
}

.service-row p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.service-row .num {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.step .num { color: var(--accent); font-size: 14px; font-weight: 500; margin-bottom: 14px; display: block; }

.step h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 10px;
}

.step p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Pull quote ---------- */

.pull-quote {
  text-align: center;
  padding: 130px 0;
}

.pull-quote blockquote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.35;
  max-width: 760px;
  margin: 0 auto;
  letter-spacing: -0.005em;
}

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.cta-band h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px);
  max-width: 620px;
  margin: 0 auto 20px;
  letter-spacing: -0.01em;
}

.cta-band p {
  color: var(--muted);
  font-size: 17px;
  max-width: 460px;
  margin: 0 auto 38px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}

footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 44px;
}

footer .wordmark { font-size: 19px; }

footer p.desc {
  margin-top: 14px;
  font-size: 14.5px;
  max-width: 320px;
  color: var(--muted);
}

footer nav.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
}

footer nav.footer-links a { color: var(--muted); }
footer nav.footer-links a:hover { color: var(--ink); }

footer .bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Page header (non-home) ---------- */

.page-head {
  padding: 96px 0 70px;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.01em;
  max-width: 700px;
}

.page-head p.lede {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  max-width: 540px;
}

/* ---------- About / resume page ---------- */

.bio-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 70px;
}

.bio-side {
  align-self: start;
  position: sticky;
  top: 120px;
}

.bio-side .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 24px;
}

.bio-side h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 500;
}

.bio-side .role {
  color: var(--muted);
  font-size: 14.5px;
  margin: 6px 0 28px;
}

.bio-side dl {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.bio-side dt {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bio-side dd { color: var(--ink); }

@media (max-width: 860px) {
  .bio-layout { grid-template-columns: 1fr; }
  .bio-side { position: static; display: flex; align-items: center; gap: 18px; }
  .bio-side .avatar { margin-bottom: 0; flex-shrink: 0; }
  .bio-side dl { display: none; }
}

.intro-text {
  font-size: 18px;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.t-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.t-entry:last-child { border-bottom: 1px solid var(--line); }

.t-entry .when {
  font-size: 14px;
  color: var(--muted);
  padding-top: 4px;
}

.t-entry h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 5px;
}

.t-entry .org {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.t-entry p { color: var(--muted); font-size: 15.5px; max-width: 600px; }

@media (max-width: 700px) {
  .t-entry { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- Contact page ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
}

.contact-info h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.contact-info > p { color: var(--muted); margin-bottom: 36px; font-size: 16px; }

.contact-detail {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--line); }

.contact-detail .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: block;
}

.contact-detail a,
.contact-detail span.val { font-weight: 500; font-size: 16px; }

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 9px;
}

.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 110px; padding-top: 14px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

.intake-form .btn { margin-top: 12px; }

.form-note {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 18px;
}

.form-success {
  display: none;
  background: rgba(31, 138, 140, 0.08);
  border-left: 2px solid var(--accent);
  color: var(--ink);
  padding: 18px 20px;
  font-size: 14.5px;
  margin-top: 20px;
}

/* ==========================================================================
   v3 additions — reference layout (hero overlay, icon cards, spotlight,
   testimonials, resource teasers)
   ========================================================================== */

/* ---------- Hero (full-width overlay style) ---------- */

.hero-photo { 
    position: relative; 
    min-height: 0px; 
    display: flex; 
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #16284A 0%, #1F8A8C 55%, #4FA350 100%); 
    overflow: hidden; 
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 85% 20%, rgba(124, 177, 67, 0.35), transparent 60%),
    radial-gradient(ellipse 600px 600px at 10% 90%, rgba(22, 40, 74, 0.5), transparent 60%);
}

.hero-photo .wrap {
  position: relative;
  z-index: 2;
  padding: 100px 40px;
}

.hero-photo .eyebrow-light {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-bottom: 0px;
  display: block;
}

.hero-photo h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.12;
  color: var(--white);
  max-width: 760px;
  letter-spacing: -0.01em;
}

.hero-photo p.lede {
  margin-top: 26px;
  font-size: 19px;
  color: rgba(255,255,255,0.86);
  max-width: 540px;
  line-height: 1.6;
}

.hero-photo .actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo .btn.primary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.hero-photo .btn.primary:hover { background: var(--soft); }

.hero-photo .btn.ghost {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.hero-photo .btn.ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ---------- Icon service cards (grid, reference-style) ---------- */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.icon-card {
  background: var(--white);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.icon-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(31, 138, 140, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.icon-card .icon svg { width: 22px; height: 22px; }

.icon-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.005em;
}

.icon-card p {
  color: var(--muted);
  font-size: 15px;
  flex-grow: 1;
}

.icon-card a.more {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}


/* ---------- Stat strip ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-strip .stat {
  background: var(--white);
  padding: 40px 28px;
  text-align: center;
}

.stat-strip .stat strong {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.stat-strip .stat span {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
}

@media (max-width: 760px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Closing CTA (two-button, reference style) ---------- */

.cta-band.split .actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-band .btn.ghost { border-color: var(--line); }

/* ---------- Accessibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Advanced Horizontal Gradient Typography & Expanded Header Layout
   ========================================================================== */

.logo-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 24px;
  text-decoration: none;
}

.footer-logo-container {
  margin-left: 0 !important;
  padding: 0 0 16px 0;
}

.brand-mark-img {
  height: 68px;
  width: auto;
  display: block;
  mix-blend-mode: multiply; 
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-name {
  display: flex;
  flex-direction: row; 
  gap: 8px;
  margin: 0;
  padding: 0 0 6px 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-name .line-item {
  background: linear-gradient(to right, #12344D 0%, #1F8A8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 4px;   
  margin-bottom: -4px;  
}

.brand-name .dark-initial {
  background: linear-gradient(to right, #091C2B 0%, #12344D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.brand-tagline {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  color: #166B6D; 
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 2px;
  margin-bottom: 6px; 
}

@media (max-width: 820px) {
  .site-header .wrap {
    height: 105px;
  }
  .logo-container {
    margin-left: 16px;
    gap: 12px;
  }
  .brand-mark-img {
    height: 52px;
  }
  .brand-name {
    font-size: 18px;
    gap: 5px;
    padding-bottom: 2px;
  }
  .brand-tagline {
    font-size: 8.5px;
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   Services Row Icon Optimization Layout — Balanced Middle Ground (34px)
   ========================================================================== */

.service-row .icon {
  width: 34px;         
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0px !important;
}

.service-row .icon svg {
  width: 30px;         
  height: 30px;
}

.service-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;           
}