/* ============================================
   Signals & Scale - Website Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  font-family: 'Marcellus', serif;
  color: #0F2940;
  background-color: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Design Tokens --- */
:root {
  --navy: #0F2940;
  --navy-dark: #0e2c44;
  --cream: #F3E2BE;
  --cream-light: #f8f4ec;
  --border: #E6E7E9;
  --white: #ffffff;
  --text-primary: #0F2940;
  --text-muted: #4a5568;

  --max-width: 72rem; /* 1152px */
  --section-padding: 5rem 0;
  --section-padding-lg: 8rem 0;
  --container-padding: 0 1.5rem;
  --container-padding-lg: 0 2rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

@media (min-width: 1024px) {
  .container {
    padding: var(--container-padding-lg);
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: clamp(72rem, 80vw, 96rem);
  }
}

.section {
  padding: var(--section-padding);
}

@media (min-width: 1024px) {
  .section {
    padding: var(--section-padding-lg);
  }
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 1.5rem; }
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-family: 'Marcellus', serif;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--navy-dark);
  opacity: 0.9;
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  color: var(--navy-dark);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

/* Tablet nav scaling */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-desktop {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.75rem;
  }
  .nav-cta {
    margin-left: 0.5rem;
  }
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  z-index: 40;
  padding: 2rem 1.5rem;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-mobile .nav-link {
  font-size: 1.25rem;
  display: block;
  padding: 0.5rem 0;
}

.nav-mobile .btn {
  margin-top: 1rem;
  text-align: center;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
}

@media (min-width: 900px) and (max-width: 1349px) {
  .hero {
    padding: 3rem 0 4rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
  }
  .hero h1 {
    font-size: 2.75rem;
  }
  .hero-subtitle {
    max-width: 85%;
  }
}

@media (min-width: 1350px) {
  .hero {
    padding: 6rem 0 8rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .hero-bg {
    display: block;
  }
}

.hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero .container {
  position: relative;
  z-index: 10;
}

@media (min-width: 900px) {
  .hero .container {
    width: 100%;
  }
}

.hero-content {
  max-width: 48rem;
}

@media (min-width: 900px) and (max-width: 1349px) {
  .hero-content {
    max-width: 55%;
  }
}

@media (min-width: 1350px) {
  .hero-content {
    max-width: 38rem;
  }
}

@media (min-width: 1440px) {
  .hero-content {
    max-width: 40rem;
  }
}

.hero h1 {
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: 2rem;
}

@media (min-width: 1350px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

/* Logo ticker */
.logo-ticker {
  overflow: hidden;
  margin: 2rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
}

.logo-ticker-track img {
  height: 2.5rem;
  width: auto;
  max-width: 8rem;
  object-fit: contain;
  opacity: 0.7;
  flex-shrink: 0;
  margin-right: 3rem;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

/* ============================================
   WHO WE WORK WITH
   ============================================ */
.who-section {
  background-color: var(--white);
}

.who-section .section-intro {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.who-section .section-intro p {
  font-size: 1.25rem;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .who-section .section-intro p {
    font-size: 1.5rem;
  }
}

.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

@media (min-width: 1024px) {
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.who-card {
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.who-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--cream);
}

.who-card h3 {
  margin-bottom: 1rem;
}

.who-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.industry-examples {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   WHAT WE DO
   ============================================ */
.what-section {
  background-color: var(--cream-light);
}

.what-section .section-intro {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.what-section .section-intro p {
  font-size: 1.25rem;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .what-section .section-intro p {
    font-size: 1.5rem;
  }
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto 3rem;
}

@media (min-width: 768px) {
  .what-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.what-card {
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  background: var(--white);
  transition: all 0.3s ease;
}

.what-card:hover {
  box-shadow: 0 10px 30px rgba(243, 226, 190, 0.3);
  border-color: var(--cream);
}

.what-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: rgba(243, 226, 190, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.what-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
}

.what-card h3 {
  margin-bottom: 1rem;
}

.what-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.what-closing {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  font-size: 1.125rem;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .what-closing {
    font-size: 1.25rem;
  }
}

/* ============================================
   PROCESS (90-Day Sprints)
   ============================================ */
.process-section {
  background-color: var(--navy);
  color: var(--white);
}

.process-section .section-intro {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 4rem;
}

.process-section h2 {
  color: var(--white);
}

.process-section .section-intro p {
  color: rgba(255, 255, 255, 0.9);
}

.process-section .section-intro .subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .process-section .section-intro .subtitle {
    font-size: 1.25rem;
  }
}

/* Two-milestone layout */
.milestones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .milestones-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.milestone {
  position: relative;
}

.milestone-label {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.milestone h3 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--cream);
}

@media (min-width: 1024px) {
  .milestone h3 {
    font-size: 2rem;
  }
}

.milestone-body p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.milestone-items {
  margin-top: 1.5rem;
}

.milestone-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(243, 226, 190, 0.2);
}

.milestone-item:last-child {
  border-bottom: none;
}

.milestone-item h4 {
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.milestone-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================
   PRICING
   ============================================ */
.pricing-section {
  background-color: var(--navy);
  color: var(--white);
  padding: 3rem 0 4rem;
}

@media (min-width: 1024px) {
  .pricing-section {
    padding: 4rem 0 5rem;
  }
}

.pricing-section h2 {
  text-align: center;
  color: var(--white);
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.pricing-card {
  border: 2px solid var(--white);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  background: transparent;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--cream);
  box-shadow: 0 10px 30px rgba(243, 226, 190, 0.15);
}

.pricing-dot {
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--cream);
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.pricing-card p {
  font-size: 1.25rem;
  color: var(--white);
}

@media (min-width: 1024px) {
  .pricing-card p {
    font-size: 1.5rem;
  }
}

/* ============================================
   FROM THE FOUNDER
   ============================================ */
.founder-section {
  background-color: var(--cream-light);
}

.founder-content {
  max-width: 56rem;
  margin: 0 auto;
}

.founder-content h2 {
  text-align: center;
  margin-bottom: 4rem;
}

.founder-bio p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--navy-dark);
}

.founder-bio ul {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.founder-bio li {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--navy-dark);
  margin-bottom: 1rem;
}

/* Work history timeline */
.work-timeline {
  margin: 3rem 0;
}

.work-entry {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.work-entry:last-child {
  border-bottom: none;
}

.work-company {
  flex-shrink: 0;
  width: 10rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.work-skills {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (max-width: 639px) {
  .work-entry {
    flex-direction: column;
    gap: 0.25rem;
  }
  .work-company {
    width: auto;
  }
}

/* Headshot */
.founder-headshot {
  display: flex;
  justify-content: center;
  margin: 3rem 0 2rem;
}

.founder-headshot img {
  width: 16rem;
  height: 16rem;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* CTA */
.founder-cta {
  text-align: center;
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.founder-cta p {
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--cream-light);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-size: 1.5rem;
  color: var(--navy-dark);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--navy-dark);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--navy-dark);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================
   MOBILE REFINEMENTS
   ============================================ */
@media (max-width: 899px) {
  .hero {
    background-color: var(--cream-light);
  }
  .hero-content {
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
}

@media (max-width: 767px) {

  .process-section .section-intro {
    margin-bottom: 2rem;
  }

  .milestone h3 {
    font-size: 1.5rem;
  }

  .milestone-item p {
    font-size: 0.8125rem;
  }

  .pricing-grid {
    gap: 1.5rem;
  }

  .founder-content h2 {
    margin-bottom: 2rem;
  }

  .work-timeline {
    margin: 2rem 0;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
