/* ============================================
   DigitalXform v7.2 — Inter Headers
   Professional typography with Inter for headers
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  /* Clean, professional base — warm white, not pink */
  --bg: #fafafa;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #5c5c6d;
  --line: rgba(26, 26, 46, 0.10);

  /* Brand palette — kept your brand colours */
  --indigo: #2d287e;
  --sky: #a0c5eb;
  --magenta: #be48ab;
  --orange: #f06010;

  /* Extended palette — more subtle, corporate */
  --indigo-light: rgba(45, 40, 126, 0.06);
  --accent-subtle: rgba(45, 40, 126, 0.04);

  /* Gradients — your brand gradient for CTAs */
  --accent: linear-gradient(135deg, var(--indigo) 0%, var(--magenta) 50%, var(--orange) 100%);
  --accent-soft: rgba(45, 40, 126, 0.05);
  
  /* Clean professional background — no pink tints */
  --grid-color: rgba(26, 26, 46, 0.025);

  /* Professional shadows — subtle and refined */
  --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.10);
  --shadow-glow: 0 8px 30px rgba(45, 40, 126, 0.12);

  --radius: 12px;
  --radius-lg: 16px;

  /* Typography — professional, clean, authoritative */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Clean professional background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
  pointer-events: none;
  z-index: -1;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: color 0.2s ease;
}

/* Container */
.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
}

.brand img { 
  height: 32px; 
  width: auto; 
  display: block;
}

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

.nav > a,
.dropbtn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav > a:hover,
.dropbtn:hover {
  color: var(--text);
  background: var(--indigo-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(45, 40, 126, 0.2);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  box-shadow: 0 12px 45px rgba(45, 40, 126, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--indigo-light);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 6px;
}

.hamburger svg {
  width: 20px;
  height: 20px;
}

/* Mobile nav */
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
}

/* Ensure the HTML `hidden` attribute always wins (especially inside flex layouts) */
.mobile-panel[hidden] {
  display: none !important;
}

.mobile-panel .nav {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mobile-panel .nav > a {
  padding: 14px 16px;
  border-radius: 12px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  background: var(--indigo-light);
  border: 1px solid rgba(45, 40, 126, 0.10);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kicker b {
  color: var(--text);
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 20px;
}

h1 .gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

/* Statement box with professional accent */
.statement {
  position: relative;
  padding: 20px 24px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.statement .big {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0;
}

.statement .big span {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.statement .small {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Hero card (book) */
.hero-card {
  position: relative;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 10;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(45, 40, 126, 0.15);
}

.hero-card:hover::before {
  transform: scaleX(1);
}

.hero-card-inner {
  padding: 20px;
  background: white;
  border-radius: 7px;
}

.book {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 60px 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section .lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 70ch;
}

/* Keep key lead line on a single row on larger screens (requested for homepage) */
@media (min-width: 980px) {
  .section .lead.one-line {
    max-width: none;
    white-space: nowrap;
  }
}

/* Service cards grid */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(45, 40, 126, 0.15);
}

/* Cards with links get the lift and top bar animation */
.card-link {
  cursor: pointer;
}

.card-link:hover {
  transform: translateY(-6px);
}

.card-link:hover::before {
  transform: scaleX(1);
}

/* Card icon */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--indigo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--indigo);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--indigo-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

/* Featured logos */
.featured {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.featured-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.featured-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.featured-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.featured-logo:hover {
  opacity: 1;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Profile */
.profile {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid var(--line);
}

.profile h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 4px;
}

.profile .meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.form .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-light);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0 60px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--indigo);
}

.socials {
  display: flex;
  gap: 10px;
}

.iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.iconbtn:hover {
  background: var(--indigo-light);
  border-color: var(--indigo);
  color: var(--indigo);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Dropdowns
   ============================================ */
.dropdown {
  position: relative;
}

.dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chev {
  font-size: 10px;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: min(480px, 90vw);
  max-height: 70vh;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 50;
}

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

.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  transition: all 0.15s ease;
}

.dropdown-menu a:hover {
  background: var(--indigo-light);
  color: var(--text);
}

.dropdown-menu .menu-top {
  color: var(--text);
  font-weight: 700;
}

.dropdown-menu .menu-sep {
  height: 1px;
  background: var(--line);
  margin: 8px;
}

/* Mobile dropdowns */
.m-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.m-details summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--muted);
}

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

.m-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px 12px;
}

.m-sub a {
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.m-sub a:hover {
  background: var(--indigo-light);
  color: var(--text);
}

.m-sub .m-top {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   List items (articles, podcasts, case studies)
   ============================================ */
.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.list-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.list-item:hover {
  border-color: var(--indigo);
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.list-item:hover::before {
  transform: scaleX(1);
}

.tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 4px;
  background: var(--indigo-light);
  color: var(--indigo);
  white-space: nowrap;
}

/* ============================================
   Bio / About page
   ============================================ */
.bio-split {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
  align-items: start;
}

.banner-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* Article body */
.article-body {
  padding: 32px;
}

.article-body p {
  margin: 0 0 16px;
  color: var(--text);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.article-body h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 10px;
}

.article-body ul, .article-body ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

.article-body a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.case-pages {
  display: grid;
  gap: 20px;
}

.case-pages img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ============================================
   Calendly embed
   ============================================ */
.calendly-embed {
  min-width: 320px;
  height: 700px;
  border: none;
  border-radius: var(--radius);
  margin-top: 20px;
}

@media (max-width: 768px) {
  .calendly-embed {
    height: 800px;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-card {
    max-width: 400px;
    /*margin: 0 auto;*/
  }
  
  .grid3 {
    grid-template-columns: 1fr;
  }
  
  .split {
    grid-template-columns: 1fr;
  }
  
  .bio-split {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /* Allow the mobile panel to sit on its own row under the header bar */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  /* Hide only the DESKTOP nav in the header bar (the mobile panel has its own nav) */
  .header-inner > .nav {
    display: none;
  }

  /* Ensure the mobile panel nav is visible on small screens */
  .mobile-panel .nav {
    display: flex;
  }
  
  .hamburger {
    display: inline-flex;
  }
  
  .mobile-panel {
    display: block;
    width: 100%;
    flex: 0 0 100%;
  }
  
  .hero {
    padding: 48px 0 40px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  .form {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .header-cta .btn:not(.hamburger) {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .reveal {
    opacity: 1;
    transform: none;
  }
}
