/* ─────────────────────────────────────────
   Fine Business Consulting — style.css
   ───────────────────────────────────────── */

/* ─── TOKENS ─── */
:root {
  --blue-deep:   #4A90E2;
  --blue-mid:    #3A74A8;
  --blue-bright: #4A90E2;
  --blue-pale:   #D6E8F7;
  --charcoal:    #31578c;
  --mid-grey:    #555E6B;
  --light-grey:  #EEEEEE;
  --off-white:   #F7F9FB;
  --white:       #FFFFFF;
  --gold:        #C49A2A;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--light-grey);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Raleway', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.nav-logo span { color: var(--blue-bright); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-grey);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue-deep); }

.nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--blue-deep);
  padding: 0.6rem 1.4rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-bright); }
/* nav-cta is a <button> so reset inherited button styles */
button.nav-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ─── CONTACT MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 48, 0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem 2.8rem;
  max-width: 460px;
  width: calc(100% - 3rem);
  position: relative;
  box-shadow: 0 16px 48px rgba(20,30,48,0.2);
}
.modal-box h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.4;
  margin-bottom: 1.6rem;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--mid-grey);
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.modal-close:hover { color: var(--charcoal); }
.modal-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-contacts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.modal-contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  min-width: 5rem;
  flex-shrink: 0;
}
.modal-contacts a {
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
}
.modal-contacts a:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 68px;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 6vw 8vw 8vw;
  position: relative;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue-bright);
}

.hero-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.hero-title em {
  font-style: italic;
  color: var(--blue-deep);
}

.hero-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--mid-grey);
  margin-bottom: 2.5rem;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  color: var(--mid-grey);
  max-width: 42ch;
  margin-bottom: 3rem;
  line-height: 1.75;
}

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

.btn-primary {
  display: inline-block;
  background: var(--blue-deep);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--blue-bright); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--blue-deep);
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--blue-deep); color: var(--white); transform: translateY(-1px); }

.hero-right {
  background: var(--blue-deep);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 60%, rgba(74,144,226,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 50%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.5) 40px, rgba(255,255,255,0.5) 41px);
}

.hero-card {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 380px;
}

.hero-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
}

.hero-card-stat { margin-bottom: 2rem; }
.hero-card-stat .number {
  font-family: 'Raleway', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.hero-card-stat .unit {
  font-size: 1.5rem;
  color: var(--blue-bright);
}
.hero-card-stat .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.3rem;
}

.hero-card-divider {
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 1.5rem 0;
}

.hero-card-list { list-style: none; }
.hero-card-list li {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-card-list li::before {
  content: '→';
  color: var(--blue-bright);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ─── SECTION COMMONS ─── */
section { padding: 7rem 8vw; }

.section-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-bright);
}

.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--blue-deep); }

.section-intro {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 60ch;
  line-height: 1.75;
}

/* ─── HOW WE THINK ─── */
#think {
  background: var(--off-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

.think-header { padding-top: 1rem; }

.outcomes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.outcome-card {
  background: var(--white);
  border-left: 3px solid var(--blue-bright);
  padding: 1.1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  color: var(--mid-grey);
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.outcome-card:hover {
  border-color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(44,94,139,0.1);
}

/* Accordion variant */
.outcomes-grid--accordion .outcome-card {
  padding: 0;
  cursor: default;
}
.outcomes-grid--accordion .outcome-card:hover {
  box-shadow: none;
}
.outcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--mid-grey);
  text-align: left;
  line-height: 1.5;
}
.outcome-header::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
  margin-top: -3px;
}
.outcome-card.open .outcome-header::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}
.outcome-header:hover {
  color: var(--blue-deep);
}
.outcome-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.25rem;
}
.outcome-card.open .outcome-body {
  max-height: 200px;
  padding: 0 1.25rem 1.1rem;
}
.outcome-body p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--mid-grey);
  line-height: 1.6;
  border-top: 1px solid var(--light-grey);
  padding-top: 0.75rem;
}

/* ─── HOW WE WORK ─── */
#work {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

.work-header { padding-top: 1rem; }

.work-intro-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  /* align-items: end; */
  margin-bottom: 4rem;
}

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

.pillar {
  background: var(--blue-deep);
  color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.pillar:hover { transform: translateY(-4px); }
.pillar::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(74,144,226,0.2);
}

.pillar-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.pillar p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
}

/* ─── PRACTICE AREAS ─── */
#practice { background: var(--off-white); }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.practice-card:hover {
  border-color: var(--blue-pale);
  box-shadow: 0 4px 20px rgba(44,94,139,0.1);
}

.practice-accent {
  width: 36px;
  height: 3px;
  background: var(--blue-bright);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.practice-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  min-height: calc(1.4rem * 1.2 * 2);
}

.practice-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.practice-card ul li {
  font-size: 0.83rem;
  color: var(--mid-grey);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.practice-card ul li::before {
  content: '·';
  color: var(--blue-bright);
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

/* ─── IN PRACTICE ─── */
#results { background: var(--white); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.result-card {
  background: var(--off-white);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  border-bottom: 3px solid var(--blue-deep);
  transition: box-shadow 0.2s, transform 0.2s;
}
.result-card:hover {
  box-shadow: 0 12px 40px rgba(44,94,139,0.12);
  transform: translateY(-3px);
}

.result-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
  min-height: calc(0.7rem * 1.5 * 2);
}

.result-card h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.3;
  min-height: calc(1.3rem * 1.3 * 3);
}

.result-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--light-grey);
}

.result-stat {
  font-size: 0.83rem;
  color: var(--mid-grey);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.result-stat::before {
  content: '✓';
  color: var(--blue-bright);
  font-size: 0.75rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* ─── APPROACH ─── */
#approach { background: var(--off-white); }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.approach-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.75rem);
  margin-inline: auto;
}

.approach-card {
  background: var(--white);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  border-left: 3px solid var(--blue-bright);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.approach-card:hover {
  border-color: var(--blue-deep);
  box-shadow: 0 4px 20px rgba(44,94,139,0.1);
}

.approach-num {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--blue-pale);
  line-height: 1;
  margin-bottom: 1rem;
}

.approach-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.approach-card p {
  font-size: 0.88rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ─── EVOLUTION ─── */
#evolution { background: var(--white); }

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 24px; left: 16.5%; right: 16.5%;
  height: 2px;
  background: linear-gradient(to right, var(--blue-bright), var(--blue-deep), var(--blue-bright));
}

.timeline-item {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.timeline-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue-deep);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-bright);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.timeline-period {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.timeline-item p {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ─── TEAM ─── */
#team { background: var(--off-white); }

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

.team-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}
.team-card:hover {
  box-shadow: 0 16px 48px rgba(44,94,139,0.13);
  transform: translateY(-4px);
}

.team-avatar {
  height: 160px;
  background: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(74,144,226,0.5) 0%, transparent 70%);
}

.team-initials {
  font-family: 'Raleway', sans-serif;
  font-size: 3rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

.team-body { padding: 2rem; }

.team-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* ─── FOOTER ─── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.5);
  padding: 4rem 8vw;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  font-family: 'Raleway', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--blue-bright); }

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
  max-width: 36ch;
}

footer h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 0.6rem; }
footer ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
footer ul a:hover { color: var(--blue-bright); }
.footer-contact-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color 0.2s;
}
.footer-contact-btn:hover { color: var(--blue-bright); }

.footer-bottom {
  background: #1A1F26;
  padding: 1.5rem 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* Scroll-triggered via IntersectionObserver (see main.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  #think, #work, .work-intro-row { grid-template-columns: 1fr; }
  .pillars-grid, .practice-grid, .results-grid, .team-grid, .approach-grid { grid-template-columns: 1fr; }
  .approach-grid > :last-child:nth-child(odd) { max-width: 100%; margin-inline: 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  footer { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-links { display: none; }
}
