/* ============================================
   Design 07 - Editorial MBB
   Jamay Consulting Website Redesign

   Premium MBB-inspired aesthetic. Confidence through
   typography scale, generous whitespace, and restraint.
   Structural moves over decorative clutter.

   Color: Navy #060E20, Teal #00B894, Off-white #F0F3F8
   Type:  Cormorant Garamond + Outfit
   ============================================ */

:root {
  --navy: #060E20;
  --navy-95: rgba(6, 14, 32, 0.95);
  --navy-light: #0F1B35;
  --teal: #00B894;
  --teal-dark: #009B7D;
  --teal-10: rgba(0, 184, 148, 0.10);
  --teal-20: rgba(0, 184, 148, 0.20);
  --offwhite: #F0F3F8;
  --white: #FFFFFF;
  --warm-white: #FAFBFD;
  --sand: #F7F5F2;
  --text-primary: #0D1321;
  --text-body: #3D4556;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --border: rgba(6, 14, 32, 0.08);
  --border-strong: rgba(6, 14, 32, 0.15);
  --transition: 0.35s cubic-bezier(0.25, 0, 0.1, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* Links inside body copy. The site otherwise has no inline links - every
   other anchor is a button or a nav item - so this is the only place the
   teal accent is allowed to appear mid-sentence. */
p a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
p a:hover { color: var(--teal-dark); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text-primary);
  line-height: 1.08;
  font-weight: 500;
}

h1 { font-size: clamp(52px, 8vw, 108px); letter-spacing: -0.04em; }
h2 { font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.5vw, 30px); letter-spacing: -0.01em; }
h4 { font-size: 18px; font-family: 'Outfit', sans-serif; font-weight: 600; }

p {
  font-size: 17px;
  line-height: 1.75;
  max-width: var(--reading-width, 680px);
}

/* --- Label with animated line --- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal);
}

.label::before {
  content: '';
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 18px 40px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg { width: 14px; height: 14px; }

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

.btn--primary:hover {
  background: var(--teal-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 184, 148, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1.5px var(--border-strong);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 2px var(--teal);
  color: var(--teal);
  transform: translateY(-3px);
}

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

.btn--dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(6, 14, 32, 0.25);
}

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.container--narrow {
  max-width: 800px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: all 0.4s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy);
  text-transform: uppercase;
}

.logo .logo-accent {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  padding: 8px 16px;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--text-primary); }

.nav-link .chevron {
  width: 10px;
  height: 10px;
  transition: transform var(--transition);
}

.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -8px;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(6, 14, 32, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-body);
  padding: 10px 16px;
  transition: all var(--transition);
  position: relative;
}

.dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition);
}

.dropdown a:hover {
  color: var(--teal);
  padding-left: 24px;
}

.dropdown a:hover::before { width: 12px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--navy);
  padding: 10px 24px;
  margin-left: 24px;
  transition: all var(--transition);
}

.header-cta svg { width: 14px; height: 14px; }

.header-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 18px;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 8px; }
.mobile-toggle span:nth-child(3) { top: 16px; }

.mobile-toggle.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

/* ============================================
   HERO - Cinematic split with geometric accent
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--white);
  overflow: hidden;
}

/* Diagonal geometric accent panel */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: var(--offwhite);
  transform: skewX(-6deg);
  z-index: 0;
}

/* Teal accent line on hero */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 42%;
  width: 1px;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding: 180px 0 120px;
}

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

.hero-content .label {
  margin-bottom: 36px;
}

.hero-content h1 {
  margin-bottom: 32px;
  line-height: 1.02;
}

.hero-content h1 .accent {
  color: var(--teal);
  font-style: italic;
  position: relative;
}

/* Decorative underline on accent text */
.hero-content h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-20), transparent);
}

.hero-content .hero-text {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 52px;
  max-width: 440px;
  line-height: 1.8;
}

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

/* Hero right panel - stats with watermark */
.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 60px;
}

/* Giant watermark number behind stats */
.hero-visual::before {
  content: '20';
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 280px;
  font-weight: 700;
  line-height: 1;
  color: rgba(6, 14, 32, 0.025);
  letter-spacing: -0.05em;
  pointer-events: none;
  z-index: 0;
}

.hero-stat-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.hero-stat {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: baseline;
}

.hero-stat:first-child {
  border-top: 3px solid var(--teal);
}

.hero-stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 84px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-stat-number span {
  color: var(--teal);
  font-weight: 400;
}

.hero-stat-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero for inner pages */
.hero--inner {
  min-height: auto;
  padding: 200px 0 100px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.hero--inner::before {
  width: 40%;
  height: 100%;
  top: 0;
  right: -10%;
  transform: skewX(-8deg);
  background: var(--offwhite);
}

.hero--inner::after {
  top: 30%;
  right: 38%;
  height: 40%;
}

.hero--inner .hero-inner-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero--inner h1 {
  font-size: clamp(42px, 6vw, 76px);
  margin-bottom: 20px;
}

.hero--inner .subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* Hero entrance */
.hero-enter-1 { animation: heroSlide 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-enter-2 { animation: heroSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both; }
.hero-enter-3 { animation: heroSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.hero-enter-4 { animation: heroSlide 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }

@keyframes heroSlide {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 180px 0;
  position: relative;
}

.section--white { background: var(--white); }

.section--offwhite {
  background: var(--offwhite);
  position: relative;
}

/* Clean off-white - no texture overlay */

.section--sand { background: var(--sand); }

.section--navy {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  position: relative;
}

/* Clean navy - no texture */

.section--navy h2, .section--navy h3, .section--navy h4 {
  color: var(--white);
}

.section--navy .label { color: var(--teal); }
.section--navy .label::before { background: linear-gradient(90deg, var(--teal), transparent); }

/* Section header */
.section-head {
  margin-bottom: 80px;
}

.section-head .label {
  margin-bottom: 24px;
}

.section-head h2 {
  margin-bottom: 24px;
}

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

/* Split section header - title left, description right */
.section-head--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
  position: relative;
}

.section-head--split p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
}

/* ============================================
   STATS BAR - with hover accent line
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  padding: 52px 36px;
  border-right: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.5s ease;
}

.stat-item:hover::before { width: 100%; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--offwhite); }

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-number .teal { color: var(--teal); }

.stat-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ============================================
   SERVICE CARDS - with animated teal line + ghost numbers
   ============================================ */
.services-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  position: relative;
}

.service-ed {
  background: var(--white);
  padding: 60px 52px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

/* Animated teal line on hover */
.service-ed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-ed:hover::before { width: 100%; }

.service-ed:hover { background: var(--warm-white); }

.service-ed-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: rgba(6, 14, 32, 0.03);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 28px;
  transition: color var(--transition);
  letter-spacing: -0.03em;
}

.service-ed:hover .service-ed-num { color: var(--teal-10); }

.service-ed h3 {
  margin-bottom: 16px;
  position: relative;
}

.service-ed p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 400px;
  line-height: 1.7;
}

.service-ed-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  transition: all var(--transition);
}

.service-ed-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.service-ed-link:hover { gap: 14px; }
.service-ed-link:hover svg { transform: translateX(4px); }

/* Featured service - full width with dramatic treatment */
.service-ed--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
  padding: 80px 72px;
  background: var(--navy);
  color: rgba(255,255,255,0.7);
}

.service-ed--featured h3 { color: var(--white); }

.service-ed--featured .service-ed-num {
  font-size: 140px;
  color: rgba(255,255,255,0.03);
  top: 24px;
}

.service-ed--featured:hover .service-ed-num { color: rgba(0, 184, 148, 0.08); }

.service-ed--featured p {
  color: rgba(255,255,255,0.5);
  max-width: 500px;
}

.service-ed--featured::before {
  background: linear-gradient(90deg, var(--teal), transparent);
  height: 2px;
}

.service-ed--featured:hover {
  background: var(--navy-light);
}

/* ============================================
   ABOUT - Offset with decorative line
   ============================================ */
.about-editorial {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 120px;
  align-items: start;
  position: relative;
}

/* Vertical decorative line between columns */
.about-editorial::before {
  content: '';
  position: absolute;
  left: calc(55.5% - 0.5px);
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--teal-20), var(--border), transparent);
}

.about-main .label { margin-bottom: 28px; }

.about-main h2 { margin-bottom: 36px; }

.about-main p {
  margin-bottom: 20px;
  color: var(--text-body);
}

.about-sidebar {
  padding-top: 80px;
}

.about-point {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.about-point:first-child {
  border-top: 3px solid var(--teal);
}

.about-point h4 {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-point p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIAL - Cinematic with glow
   ============================================ */
.testimonial-section {
  padding: 180px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Radial teal glow */
.testimonial-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 184, 148, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.testimonial-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 200px;
  line-height: 0.5;
  color: rgba(0, 184, 148, 0.12);
  margin-bottom: 32px;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.45;
  margin-bottom: 48px;
  max-width: 100%;
}

.testimonial-line {
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 0 auto 28px;
}

.testimonial-author {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-role {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
}

/* ============================================
   CONTACT - Dramatic split with diagonal
   ============================================ */
.contact-split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 650px;
}

.contact-info {
  padding: 100px 72px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-info .label {
  margin-bottom: 28px;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 28px;
  font-size: clamp(36px, 3.5vw, 52px);
}

.contact-info p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
  font-size: 16px;
}

.contact-info .btn {
  margin-top: 36px;
  align-self: flex-start;
}

.contact-form-wrap {
  padding: 100px 72px;
  background: var(--offwhite);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}


/* --- Form --- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-strong);
  padding: 16px 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-10);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ============================================
   INNER PAGE LAYOUTS
   ============================================ */

/* Page intro */
.page-intro {
  font-size: 21px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 720px;
}

/* Staggered content blocks with hover accent */
.stagger-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.stagger-block {
  background: var(--white);
  padding: 60px 52px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stagger-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--teal);
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-block:hover::before { height: 100%; }
.stagger-block:hover { background: var(--warm-white); }

.stagger-block h3 { margin-bottom: 16px; }

.stagger-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Offset content - text with sidebar */
.offset-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 100px;
  align-items: start;
}

.offset-layout--reverse {
  grid-template-columns: 5fr 7fr;
}

/* Benefit cards with oversized number */
.benefit-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.benefit-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 36px;
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

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

.benefit-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 600;
  color: rgba(6, 14, 32, 0.04);
  line-height: 1;
  transition: color var(--transition);
}

.benefit-item:hover .benefit-num { color: var(--teal-20); }

.benefit-content h4 { margin-bottom: 10px; }

.benefit-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Feature list with animated checks */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 56px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text-body);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.feature-list li:hover {
  color: var(--text-primary);
}

.feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Process timeline with connecting line */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal-20), var(--border), var(--teal-20));
}

.process-item {
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.process-dot {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  background: var(--white);
  border: 1.5px solid var(--border-strong);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

.process-item:hover .process-dot {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--teal-10);
}

.process-item-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Values grid with accent corners */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.value-block {
  background: var(--white);
  padding: 56px 48px;
  transition: all var(--transition);
  position: relative;
}

.value-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.5s ease;
}

.value-block:hover::before { width: 48px; }
.value-block:hover { background: var(--warm-white); }

.value-block h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.value-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Licence types */
.licence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.licence-item {
  background: var(--white);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
}

.licence-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--teal);
  transition: height 0.4s ease;
}

.licence-item:hover::before { height: 100%; }
.licence-item:hover { background: var(--warm-white); }

.licence-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.licence-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Product comparison with dramatic featured column */
.product-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
}

.product-col {
  background: var(--white);
  overflow: hidden;
}

.product-col--featured {
  background: var(--warm-white);
  position: relative;
}

/* Teal glow on featured column */
.product-col--featured::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.product-col-head {
  padding: 36px 36px;
  border-bottom: 1px solid var(--border);
}

.product-col--featured .product-col-head {
  background: var(--teal);
  border-bottom: none;
}

.product-col-head h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-col--featured .product-col-head h3 { color: var(--white); }

.product-col-body { padding: 24px 36px; }

.product-col-body ul { list-style: none; }

.product-col-body li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.product-col-body li:last-child { border-bottom: none; }
.product-col-body li:hover { padding-left: 6px; }

.product-col-body li svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
  flex-shrink: 0;
}

/* Services list (flexera, unit4) */
.services-stack {
  max-width: 760px;
}

.stack-item {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 36px;
  align-items: start;
  transition: all var(--transition);
}


.stack-item:first-child { border-top: 3px solid var(--teal); }

.stack-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: rgba(6, 14, 32, 0.05);
  transition: color var(--transition);
}

.stack-item:hover .stack-num { color: var(--teal-20); }

.stack-content h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

.stack-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Factor icons strip */
.factors-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}

.factor-item {
  background: var(--white);
  padding: 56px 36px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.factor-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.5s ease;
}

.factor-item:hover::before { width: 40px; }
.factor-item:hover { background: var(--warm-white); }

.factor-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--teal);
}

.factor-icon svg { width: 28px; height: 28px; }

.factor-item span:last-child {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Service tags with hover glow */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  padding: 12px 28px;
  border: 1px solid var(--border-strong);
  transition: all var(--transition);
  position: relative;
}

.tag:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-10);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--teal-10);
}

/* Question list */
.question-list {
  list-style: none;
  max-width: 680px;
}

.question-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  color: var(--text-body);
  align-items: start;
  transition: all var(--transition);
}

.question-list li:hover { color: var(--text-primary); }
.question-list li:last-child { border-bottom: none; }

.question-list li svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  margin-top: 3px;
}

/* Support grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
}

.support-block {
  background: var(--white);
  padding: 56px 48px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.support-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--teal);
  transition: height 0.5s ease;
}

.support-block:hover::before { height: 100%; }
.support-block:hover { background: var(--warm-white); }

.support-block h3 {
  font-size: 22px;
  margin-bottom: 14px;
}

.support-block p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA band with geometric accents */
.cta-band {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.cta-band h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 36px;
  color: var(--white);
}

/* Card grid for HQ products */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
}

.card-item {
  background: var(--white);
  padding: 48px 36px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.5s ease;
}

.card-item:hover::before { width: 100%; }
.card-item:hover { background: var(--warm-white); }

.card-item h3 { font-size: 26px; margin-bottom: 14px; }

.card-item p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.card-item-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  transition: all var(--transition);
}

.card-item-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.card-item-link:hover svg { transform: translateX(4px); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  padding: 80px 0 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), transparent 60%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr;
  gap: 64px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 24px;
  display: inline-block;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: 24px;
  transition: color var(--transition);
}

.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: var(--teal); }

.footer-links h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 28px;
}

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

.footer-links li { margin-bottom: 14px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
  padding-left: 20px;
}

.footer-links a:hover::before { width: 10px; }

.footer-contact h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 28px;
}

.footer-contact-form .form-group label {
  color: rgba(255,255,255,0.4);
}

.footer-contact-form .form-group input,
.footer-contact-form .form-group select,
.footer-contact-form .form-group textarea {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
  color: var(--white);
}

.footer-contact-form .form-group input::placeholder,
.footer-contact-form .form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.footer-contact-form .form-group input:focus,
.footer-contact-form .form-group select:focus,
.footer-contact-form .form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,184,148,0.08);
}

.footer-contact-form .form-group select {
  background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
}

.footer-contact-form .form-group select option {
  background: var(--navy);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  transition: color var(--transition);
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-up {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .section { padding: 120px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding: 160px 0 80px; }
  .hero::before { width: 100%; height: 35%; top: auto; bottom: 0; transform: none; }
  .hero::after { display: none; }
  .hero-visual { padding-left: 0; }
  .hero-visual::before { font-size: 160px; right: 0; }
  .hero-stat-stack { flex-direction: row; gap: 0; }
  .hero-stat { flex: 1; }
  .hero-stat { grid-template-columns: 1fr; gap: 8px; }
  .about-editorial { grid-template-columns: 1fr; gap: 64px; }
  .about-editorial::before { display: none; }
  .about-sidebar { padding-top: 0; }
  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .section-head--split::after { display: none; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-info { padding: 80px 48px; }
  .contact-form-wrap { padding: 80px 48px; }
  .offset-layout, .offset-layout--reverse { grid-template-columns: 1fr; gap: 48px; }
  .service-ed--featured { grid-template-columns: 1fr; }
  .hero--inner::before { display: none; }
  .hero--inner::after { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .section { padding: 80px 0; }

  .hero { min-height: auto; }
  .hero-grid { min-height: auto; padding: 120px 0 64px; }
  .hero-content h1 { font-size: 44px; }
  .hero--inner { padding: 140px 0 64px; }
  .hero--inner h1 { font-size: 38px; }
  .hero-stat-stack { flex-direction: column; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-visual::before { display: none; }
  .hero::before { display: none; }

  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    box-shadow: -8px 0 32px rgba(6,14,32,0.08);
    transition: right 0.35s ease;
    overflow-y: auto;
  }

  .main-nav.open { right: 0; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-item.dropdown-open .dropdown { display: block; }

  .dropdown a {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown a::before { display: none; }

  .header-cta {
    margin: 16px 0 0;
    justify-content: center;
  }

  .services-editorial,
  .stagger-grid,
  .values-grid,
  .licence-grid,
  .product-compare,
  .support-grid,
  .factors-row,
  .card-row {
    grid-template-columns: 1fr;
  }

  .service-ed--featured { grid-column: auto; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-list { grid-template-columns: 1fr; }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .process-timeline::before { display: none; }

  .benefit-item { grid-template-columns: 60px 1fr; gap: 20px; }

  .stack-item { grid-template-columns: 1fr; gap: 8px; }
  .stack-num { font-size: 24px; }

  .footer-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-head { margin-bottom: 48px; }
  .section-head--split { margin-bottom: 48px; }

  .testimonial-section { padding: 100px 0; }
  .testimonial-mark { font-size: 120px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 36px; }
  .hero--inner h1 { font-size: 30px; }
  .stats-bar { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 48px 24px; }
  .service-ed { padding: 44px 28px; }
  .stagger-block { padding: 44px 28px; }
}
