/* Max Grows — greenhouse frameworks */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@500;600&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
  /* Max Grows Coaching — navy + network green from updated mark */
  --bg: #F4F7F9;
  --bg-deep: #E6EEF2;
  --fg: #001838;
  --fg-soft: #2A3F5A;
  --accent: #2F9E5B;
  --accent-deep: #217A45;
  --amber: #C4892A;
  --soil: #001838;
  --muted: #5A6B7D;
  --sky: #D7E6F0;
  --sky-deep: #B8D0E0;
  --white: #FFFFFF;
  --line: rgba(0, 24, 56, 0.12);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Figtree', sans-serif;
  --script: 'Caveat', cursive;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 68rem;
  --radius: 0.35rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease);
}

a:hover { color: var(--soil); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.65rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--fg-soft); }

.script {
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.35em;
  color: var(--soil);
  letter-spacing: 0.01em;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.1rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
}

.nav-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.nav-brand span {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
  text-transform: lowercase;
}

.nav-brand span small {
  display: block;
  font-family: var(--script);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  margin-top: 0.05rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--fg-soft);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] { color: var(--fg); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn:active { transform: translateY(1px) scale(0.98); }

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

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

.btn-ghost {
  background: transparent;
  color: var(--soil);
  border-color: rgba(92, 64, 51, 0.35);
}

.btn-ghost:hover {
  border-color: var(--soil);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.35);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--fg);
  background:
    radial-gradient(ellipse 80% 55% at 70% 15%, rgba(111, 160, 58, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(196, 137, 42, 0.16), transparent 50%),
    linear-gradient(165deg, var(--sky) 0%, #E8F0E6 42%, var(--bg) 78%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 64, 51, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 64, 51, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.2) 70%, transparent 100%);
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 45%, rgba(111, 160, 58, 0.45) 0%, rgba(111, 160, 58, 0.18) 35%, transparent 62%);
  filter: blur(2px);
  animation: canopyFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(48px, 24px, 0); }
}

@keyframes canopyFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 3%, 0) scale(1.04); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5.75rem 0 2.75rem;
  max-width: 36rem;
}

.hero-brand {
  display: block;
  width: min(100%, 11.5rem);
  height: auto;
  margin: 0 0 0.65rem;
  background: transparent;
  filter: drop-shadow(0 10px 22px rgba(0, 24, 56, 0.1));
}

.hero-copy picture {
  display: block;
}

.hero-copy h1 {
  max-width: 18ch;
  margin-bottom: 0.4em;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
}

.hero-copy .lede {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  max-width: 42ch;
  margin-bottom: 0;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  color: var(--soil);
}

.hero .cta-group {
  margin-top: 1.25rem;
}

.hero-pillars li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-pillars li::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.page-hero {
  position: relative;
  padding: 8rem 0 3.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(111, 160, 58, 0.22), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
}

.page-hero .eyebrow {
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--soil);
  margin-bottom: 0.35rem;
}

.page-hero p {
  max-width: 42ch;
  font-size: 1.15rem;
}

/* —— Sections —— */
section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-label {
  font-family: var(--script);
  font-size: 1.4rem;
  color: var(--amber);
  margin-bottom: 0.35rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-teaser {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.about-teaser .portrait-frame {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 24, 56, 0.12);
}

.about-teaser .portrait-frame picture,
.about-teaser .portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-teaser .portrait-frame img {
  object-fit: cover;
  object-position: center 18%;
}

.about-portrait {
  margin: 0 0 1.25rem;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 14px 32px rgba(0, 24, 56, 0.1);
}

.about-portrait picture,
.about-portrait img {
  width: 100%;
  height: 100%;
  display: block;
}

.about-portrait img {
  object-fit: cover;
  object-position: center 18%;
}

/* About page — one job per section */
.profile-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.profile-portrait {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 18px 40px rgba(0, 24, 56, 0.12);
}

.profile-portrait picture,
.profile-portrait img {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-portrait img {
  object-fit: cover;
  object-position: center 18%;
}

.profile-copy {
  max-width: 36rem;
}

.profile-copy h2 {
  margin-bottom: 0.75em;
}

.philosophy-section {
  background: var(--white);
  border-block: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
}

.narrow {
  max-width: 40rem;
}

.philosophy-section .narrow p:last-child {
  margin-bottom: 0;
}

.coactive-section {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.coactive-intro {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.coactive-figure {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(0, 24, 56, 0.08);
}

.coactive-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.coactive-pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  max-width: 48rem;
}

.coactive-pillars li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--fg-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.coactive-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.path-section {
  padding-block: clamp(2.75rem, 6vw, 4.75rem);
  border-top: 1px solid var(--line);
}

/* Pillars — not cards: open rows with growing rule */
.pillars {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr auto;
  gap: 1.25rem 2rem;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.35s var(--ease);
}

.pillar:last-child { border-bottom: 0; }

.pillar:hover { padding-left: 0.5rem; }

.pillar-name {
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--fg);
  margin: 0;
}

.pillar-body {
  margin: 0;
  max-width: 48ch;
}

.pillar-go {
  font-weight: 600;
  color: var(--accent-deep);
  white-space: nowrap;
  position: relative;
}

.pillar-go::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.pillar:hover .pillar-go::after { width: 100%; }

/* Service detail blocks */
.service-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type { border-bottom: 0; }

.service-block .outcomes {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.service-block .outcomes li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--fg-soft);
}

.service-block .outcomes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border: 2px solid var(--accent);
  border-radius: 1px;
  transform: rotate(45deg);
}

.framework-tag {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.02em;
}

/* CTA band */
/* FAQ */
.faq-section {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.faq-list {
  margin-top: 1.5rem;
  max-width: 42rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}

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

.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  margin: 0.75rem 0 0.35rem;
  max-width: 48ch;
}

.cta-band {
  background:
    radial-gradient(ellipse 50% 80% at 10% 50%, rgba(196, 137, 42, 0.18), transparent 60%),
    linear-gradient(120deg, var(--soil) 0%, #4A3428 55%, #3D4A2E 100%);
  color: var(--white);
}

.cta-band h2,
.cta-band p { color: var(--white); }

.cta-band p { opacity: 0.88; max-width: 40ch; }

.cta-band .btn-primary {
  background: var(--accent);
}

.cta-band .btn-ghost {
  color: var(--white);
  border-color: rgba(251, 252, 249, 0.4);
}

.cta-band .btn-ghost:hover {
  background: rgba(251, 252, 249, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* About page */
.timeline {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  padding: 0 0 1.75rem 1.5rem;
  position: relative;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: -0.4rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.cred-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cred-list li {
  position: relative;
  padding-left: 1rem;
}

.cred-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Contact form — interactive, so a light surface is ok */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-form,
.calendly-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.5vw, 1.25rem);
  overflow: hidden;
}

.calendly-panel .calendly-inline-widget {
  width: 100%;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--fg);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 160, 58, 0.2);
}

textarea { min-height: 8rem; resize: vertical; }

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(111, 160, 58, 0.12);
  border-left: 3px solid var(--accent);
  margin-top: 1rem;
  color: var(--fg);
}

.form-success.is-visible { display: block; }

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
}

.footer-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.footer-brand span {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
  text-transform: lowercase;
}

.footer-brand span small {
  display: block;
  font-family: var(--script);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
  margin-top: 0.05rem;
}

.footer-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--fg-soft);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Legal / privacy */
.legal-section .narrow,
.narrow {
  max-width: 42rem;
}

.legal-section h2 {
  margin-top: 2rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.privacy-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 1rem 0;
  background: rgba(0, 24, 56, 0.96);
  color: var(--white);
  border-top: 1px solid rgba(251, 252, 249, 0.12);
}

.privacy-banner[hidden] {
  display: none !important;
}

.privacy-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-banner p {
  margin: 0;
  color: rgba(251, 252, 249, 0.9);
  max-width: 48rem;
  font-size: 0.95rem;
}

.privacy-banner a {
  color: #B7E08A;
}

.privacy-banner .btn-primary {
  flex-shrink: 0;
}

.calendly-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .split,
  .contact-layout,
  .profile-layout,
  .coactive-pillars {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    max-width: 18rem;
    margin-inline: auto;
  }

  .profile-copy {
    text-align: center;
    margin-inline: auto;
  }

  .profile-copy .section-label {
    text-align: center;
  }

  .hero-inner {
    padding-top: 5.25rem;
    padding-bottom: 2.25rem;
    max-width: none;
  }

  .hero-brand {
    width: min(100%, 10rem);
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--space);
    left: var(--space);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 12px 32px rgba(58, 46, 36, 0.1);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.75rem 0.85rem;
  }

  .site-header { position: absolute; width: 100%; }

  .nav { position: relative; }
}
