/* ============================================================
   m3t PLATFORM — STYLESHEET
   ============================================================ */

/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --cream: #F2EDE3;
  --cream-light: #FDFAF5;
  --tan: #C4B896;
  --tan-dark: #A89B7A;
  --espresso: #160600;
  --espresso-mid: #2D1A0A;

  --iridescent: linear-gradient(135deg, #E8D5F5 0%, #C4E8F5 35%, #D5F5E8 65%, #F5E8D5 100%);

  --max-width: 1160px;
  --section-padding-v: 100px;
  --section-padding-h: 48px;
  --gap: 48px;
  --gap-sm: 32px;
}

/* ============================================================
   CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--espresso);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding-top: 64px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--espresso);
  text-decoration: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: 'EB Garamond', serif;
  line-height: 1.15;
  color: var(--espresso);
}

.hero-heading {
  font-size: 68px;
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  font-size: 44px;
  font-weight: 400;
}

h2 {
  font-size: 32px;
  font-weight: 400;
}

h3 {
  font-size: 22px;
  font-weight: 400;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tan-dark);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-h);
}

.section {
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: var(--section-padding-v) 0;
}

.section-full .container {
  padding: 0 var(--section-padding-h);
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  background: var(--cream);
  border-bottom: 1px solid var(--tan);
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-h);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'EB Garamond', serif;
  font-size: 28px;
  color: var(--espresso);
  text-decoration: none;
  font-weight: 400;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.nav-links a:hover {
  opacity: 0.65;
}

.nav-links a.active {
  font-weight: 600;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  cursor: default;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  list-style: none;
  z-index: 101;
}

.nav-dropdown-menu-inner {
  background: var(--cream-light);
  border: 1px solid var(--tan);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  box-shadow: 0 4px 16px rgba(22, 6, 0, 0.08);
}

.nav-dropdown-menu li a {
  display: block;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  text-decoration: none;
  transition: background 0.1s ease;
  white-space: nowrap;
}

.nav-dropdown-menu li a:hover {
  background: var(--cream);
  opacity: 1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 22px;
  background: none;
  border: none;
  color: var(--espresso);
  line-height: 1;
  padding: 4px;
}

/* ============================================================
   COMPONENTS — BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
  line-height: 1;
}

.btn:hover {
  opacity: 0.85;
}

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

.btn-primary {
  background: var(--espresso);
  color: var(--cream-light);
}

.btn-primary-light {
  background: var(--cream-light);
  color: var(--espresso);
}

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

.btn-secondary-light {
  background: transparent;
  color: var(--cream-light);
  border: 1px solid var(--cream-light);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ============================================================
   COMPONENTS — CARDS
   ============================================================ */
.card {
  background: var(--cream-light);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 32px;
}

/* ============================================================
   COMPONENTS — PILL / LABEL
   ============================================================ */
.pill {
  display: inline-block;
  background: var(--tan);
  color: var(--espresso);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--cream);
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}

.hero-content {
  flex: 1;
  max-width: 580px;
}

.hero-content .pill {
  margin-bottom: 24px;
}

.hero-content h1,
.hero-content .hero-heading {
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 17px;
  color: var(--espresso-mid);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* IRIDESCENT ORB */
.hero-visual {
  flex-shrink: 0;
}

.iridescent-orb {
  width: 500px;
  height: 400px;
  background: var(--iridescent);
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  opacity: 0.85;
  filter: blur(1px);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

/* Hero without orb (inner pages) */
.hero-simple {
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
  max-width: 720px;
}

.hero-simple .pill {
  margin-bottom: 20px;
}

.hero-simple h1 {
  margin-bottom: 20px;
}

.hero-simple p {
  color: var(--espresso-mid);
  margin-bottom: 32px;
  max-width: 560px;
}

/* ============================================================
   PROBLEM / STRIP SECTION
   ============================================================ */
.strip {
  background: var(--tan);
  padding: var(--section-padding-v) 0;
}

.strip .container {
  max-width: 720px;
}

.strip .pill {
  margin-bottom: 24px;
}

.strip h2 {
  margin-bottom: 24px;
}

.strip p {
  color: var(--espresso-mid);
  margin-bottom: 16px;
}

.strip p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: var(--espresso);
}

/* ============================================================
   APPROACH SECTION
   ============================================================ */
.approach-section {
  background: var(--cream);
  padding: var(--section-padding-v) var(--section-padding-h);
}

.approach-intro {
  max-width: 720px;
  margin: 0 auto;
}

.approach-intro .label {
  display: block;
  margin-bottom: 12px;
}

.approach-intro h2 {
  margin-bottom: 24px;
}

.approach-intro p {
  margin-bottom: 16px;
}

.approach-intro p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--tan-dark);
}

/* ============================================================
   PILLARS SECTION
   ============================================================ */
.pillars-section {
  background: var(--cream);
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.pillars-intro {
  margin-bottom: 56px;
}

.pillars-intro .label {
  display: block;
  margin-bottom: 12px;
}

.pillars-headline {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}

.pillars-headline h2 {
  margin: 0;
  flex-shrink: 0;
}

.pillars-headline p {
  margin: 0;
  max-width: 420px;
}

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

.pillar-card {
  background: var(--cream-light);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 32px;
}

.pillar-number {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--tan-dark);
  margin-bottom: 20px;
  display: block;
}

.pillar-card h3 {
  margin-bottom: 16px;
}

.pillar-card p {
  font-size: 15px;
  color: var(--espresso-mid);
  margin-bottom: 24px;
}

.pillar-card a {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--espresso);
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

.pillar-card a:hover {
  opacity: 0.65;
}

/* ============================================================
   PIPELINE SECTION
   ============================================================ */
.pipeline-section {
  background: var(--cream-light);
  padding: var(--section-padding-v) 0;
}

.pipeline-section .container {
  max-width: 800px;
}

.pipeline-intro .label {
  display: block;
  margin-bottom: 12px;
}

.pipeline-intro h2 {
  margin-bottom: 20px;
}

.pipeline-intro p {
  color: var(--espresso-mid);
}

.pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 56px 0;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.pipeline-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--espresso);
  opacity: 0.25;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
  position: relative;
  flex-shrink: 0;
}

.pipeline-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  color: var(--espresso-mid);
  max-width: 90px;
  line-height: 1.4;
}

/* ============================================================
   CTA STRIP (dark)
   ============================================================ */
.cta-strip {
  background: var(--espresso);
  padding: var(--section-padding-v) 0;
}

.cta-strip .container {
  max-width: var(--max-width);
  text-align: center;
}

.cta-strip h2 {
  color: var(--cream-light);
  margin-bottom: 16px;
}

.cta-strip p {
  color: rgba(253, 250, 245, 0.72);
  margin-bottom: 36px;
  font-size: 17px;
}

.cta-strip .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FEATURE SECTIONS (alternating)
   ============================================================ */
.features-wrapper {
  padding: 0 var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--tan);
}

.feature-section:last-child {
  border-bottom: none;
}

.feature-section.reverse {
  direction: rtl;
}

.feature-section.reverse > * {
  direction: ltr;
}

.feature-text .label {
  display: block;
  margin-bottom: 16px;
}

.feature-text h2 {
  margin-bottom: 20px;
}

.feature-text p {
  color: var(--espresso-mid);
  font-size: 16px;
}

.feature-visual {
  background: linear-gradient(145deg, var(--cream-light), var(--tan));
  border: 1px solid var(--tan);
  border-radius: 12px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-visual-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso-mid);
  text-align: center;
  opacity: 0.6;
  padding: 16px;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
  padding: var(--section-padding-v) var(--section-padding-h);
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing-section .label {
  display: block;
  margin-bottom: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 56px;
}

.pricing-card {
  background: var(--cream-light);
  border: 1px solid var(--tan);
  border-radius: 10px;
  padding: 32px;
  position: relative;
}

.pricing-card.featured {
  background: var(--tan);
  transform: scale(1.02);
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 0;
}

.pricing-price {
  font-family: 'EB Garamond', serif;
  font-size: 40px;
  color: var(--espresso);
  margin: 16px 0 4px;
  line-height: 1.1;
}

.pricing-subtext {
  font-size: 13px;
  color: var(--tan-dark);
  margin-bottom: 24px;
}

.pricing-card.featured .pricing-subtext {
  color: var(--espresso-mid);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--espresso);
  color: var(--cream-light);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.feature-list li {
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(22, 6, 0, 0.08);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list li.available::before {
  content: '\2713';
  color: var(--espresso);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-list li.unavailable {
  color: var(--tan-dark);
}

.feature-list li.unavailable::before {
  content: '\2014';
  color: var(--tan-dark);
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-note {
  font-style: italic;
  color: var(--tan-dark);
  font-size: 15px;
  margin-top: 48px;
  max-width: 660px;
  line-height: 1.7;
}

/* ============================================================
   ABOUT — SINGLE COLUMN CONTENT
   ============================================================ */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px var(--section-padding-h);
}

.about-content p {
  color: var(--espresso-mid);
  margin-bottom: 28px;
  font-size: 17px;
}

.divider {
  border: none;
  border-top: 1px solid var(--tan);
  margin: 56px 0;
}

.about-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.text-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--espresso);
  text-decoration: none;
  border-bottom: 1px solid var(--tan-dark);
  padding-bottom: 2px;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease;
}

.text-link:hover {
  opacity: 0.65;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  padding: 0 var(--section-padding-h) var(--section-padding-v);
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--espresso);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--cream-light);
  border: 1px solid var(--tan);
  color: var(--espresso);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 12px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--tan-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--espresso-mid);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-note {
  font-style: italic;
  font-size: 13px;
  color: var(--tan-dark);
  margin-top: 16px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-h);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: var(--cream);
  display: block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(242, 237, 227, 0.64);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.5);
  margin-bottom: 16px;
  font-weight: 600;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(242, 237, 227, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--cream);
}

.footer-col p {
  font-size: 14px;
  color: rgba(242, 237, 227, 0.72);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px var(--section-padding-h);
  border-top: 1px solid rgba(242, 237, 227, 0.12);
  margin-top: 48px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(242, 237, 227, 0.4);
}

/* ============================================================
   MOBILE NAV (toggled state)
   ============================================================ */
@media (max-width: 768px) {
  header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--tan);
    padding: 24px var(--section-padding-h);
    gap: 20px;
    align-items: flex-start;
    z-index: 99;
  }

  header.nav-open .nav-links a {
    font-size: 16px;
  }

  .nav-dropdown-menu {
    display: block;
    position: static;
    transform: none;
    padding-top: 0;
    padding-left: 16px;
  }

  .nav-dropdown-menu-inner {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: 0;
    box-shadow: none;
  }

  .nav-dropdown-menu li a {
    padding: 6px 0;
    font-size: 15px;
    color: var(--espresso-mid);
  }

  .nav-dropdown-menu li a:hover {
    background: none;
  }

  .nav-dropdown > a {
    pointer-events: none;
  }
}

/* ============================================================
   RESPONSIVE — 768px BREAKPOINT
   ============================================================ */
@media (max-width: 768px) {

  /* TYPOGRAPHY */
  .hero-heading {
    font-size: 40px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  /* SPACING */
  :root {
    --section-padding-v: 64px;
    --section-padding-h: 24px;
    --gap: 32px;
  }

  /* HEADER */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner .btn {
    display: none;
  }

  /* HERO */
  .hero {
    padding: 48px 24px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .iridescent-orb {
    width: 100%;
    height: 240px;
    border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
  }

  .hero-visual {
    width: 100%;
    order: -1;
  }

  .hero-simple {
    padding: 48px 24px;
  }

  /* FEATURE SECTIONS */
  .features-wrapper {
    padding: 0 24px;
  }

  .feature-section {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
    padding: 56px 0;
  }

  .feature-section.reverse {
    direction: ltr;
  }

  /* PIPELINE */
  .pipeline {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px 0;
  }

  .pipeline-step {
    flex-direction: row;
    gap: 16px;
    width: 100%;
    max-width: 280px;
  }

  .pipeline-step::after {
    display: none;
  }

  .pipeline-label {
    text-align: left;
    margin-top: 0;
    max-width: none;
  }

  /* PILLARS */
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  /* PRICING */
  .pricing-section {
    padding: 64px 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  /* FOOTER */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    margin-top: 40px;
  }

  /* PILLARS SECTION */
  .pillars-section {
    padding: 64px 24px;
  }

  /* ABOUT */
  .about-content {
    padding: 56px 24px;
  }

  /* CONTACT */
  .contact-section {
    padding: 0 24px 64px;
  }

  /* STRIP */
  .strip {
    padding: 64px 0;
  }

  /* CTA STRIP */
  .cta-strip {
    padding: 64px 0;
  }

  .cta-strip .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
