/* Modern About Page Design - Daniel Priestley Inspired with PCW Colors */

:root {
  /* PCW Sales Color System */
  --primary-green: rgb(76 161 84);
  --primary-green-hover: rgb(69 145 76);
  --primary-green-light: rgb(76 161 84 / 10%);
  --gold-accent: rgb(209 170 106);
  --gold-light: rgb(209 170 106 / 10%);
  --text-primary: rgb(17 24 39);
  --text-secondary: rgb(107 114 128);
  --text-light: rgb(75 85 99);
  --bg-light: rgb(249 250 251);
  --bg-white: rgb(255 255 255);
  --border-light: rgb(229 231 235);

  /* Typography */
  --font-family: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.about-page {
  font-family: var(--font-family);
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-white);
  max-width: 100vw;
  overflow-x: hidden;
}

/* Minimal Navigation */
.minimal-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(255 255 255 / 98%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgb(0 0 0 / 5%);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-green);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Modern Hero Section */
.modern-hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
  position: relative;
  overflow: hidden;
  max-width: 100vw;
}

.modern-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    var(--primary-green-light) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

.hero-image-frame {
  position: relative;
  animation: fadeInLeft 1s ease-out;
}

.hero-portrait {
  width: 450px;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  box-shadow:
    0 30px 60px -15px rgb(0 0 0 / 15%),
    0 0 0 8px rgb(76 161 84 / 10%);
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--gold-accent);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgb(209 170 106 / 40%);
}

.badge-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.hero-content-side {
  animation: fadeInRight 1s ease-out 0.2s backwards;
}

.hero-headline {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.highlight-text {
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.primary-cta,
.secondary-cta {
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.primary-cta {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 10px 25px rgb(76 161 84 / 25%);
}

.primary-cta:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgb(76 161 84 / 30%);
}

.secondary-cta {
  background: white;
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
}

.secondary-cta:hover {
  background: var(--primary-green-light);
  transform: translateY(-2px);
}

.credibility-strip {
  display: flex;
  gap: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}

.cred-item {
  display: flex;
  flex-direction: column;
}

.cred-item strong {
  font-size: 28px;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 5px;
}

.cred-item span {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Minimalist Bio Section - Daniel Priestley Style */
.bio-section {
  padding: 100px 0;
  background: white;
}

.bio-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
}

.bio-content {
  text-align: center;
}

.bio-opener {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.bio-statement {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.bio-explanation {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 60px;
}

.credentials-bar {
  display: flex;
  justify-content: center;
  gap: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.credential {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cred-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cred-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Section Title - Used across sections */
.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--gold-accent));
  margin: 0 auto;
  border-radius: 2px;
}

/* Frameworks Introduction Section */
.frameworks-intro-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f9fafb 0%, #fff 100%);
}

.frameworks-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

.framework-header {
  text-align: center;
  margin-bottom: 60px;
}

.framework-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.framework-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.frameworks-showcase {
  display: grid;
  gap: 40px;
}

.framework-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 8%);
  transition: transform 0.3s ease;
}

.framework-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}

.framework-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.framework-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.framework-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.framework-metric {
  font-size: 16px;
  color: var(--text-secondary);
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.framework-metric strong {
  color: var(--primary-green);
  font-weight: 600;
}

/* Expertise Section */
.expertise-section {
  padding: var(--section-padding);
  background: white;
}

.expertise-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
}

/* Clean Business Areas Cards */
.expertise-card.minimal {
  background: white;
  padding: 50px;
  border-radius: 16px;
  box-shadow: 0 5px 20px rgb(0 0 0 / 8%);
  transition: all 0.3s ease;
  position: relative;
}

.expertise-card.minimal:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgb(0 0 0 / 12%);
}

.card-badge {
  display: inline-block;
  background: var(--primary-green);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.card-badge.gold {
  background: var(--gold-accent);
}

.card-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.card-description {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.card-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
  padding: 25px;
  background: var(--bg-light);
  border-radius: 12px;
}

.feature {
  font-size: 15px;
  color: var(--text-primary);
  padding-left: 25px;
  position: relative;
}

.feature::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: bold;
}

.simple-cta {
  display: inline-block;
  color: var(--primary-green);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.simple-cta::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.simple-cta:hover::after {
  width: 100%;
}

.simple-cta:hover {
  transform: translateX(5px);
}

/* Philosophy Section */
.philosophy-section {
  padding: var(--section-padding);
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.philosophy-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.philosophy-lead {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 60px;
  font-weight: 500;
}

.principle-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
}

.principle-step {
  background: white;
  padding: 30px;
  border-radius: 16px;
  flex: 1;
  box-shadow: 0 5px 20px rgb(0 0 0 / 8%);
  transition: transform 0.3s ease;
}

.principle-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-green), var(--gold-accent));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.principle-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.principle-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.principle-arrow {
  font-size: 30px;
  color: var(--primary-green);
}

.validation-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgb(0 0 0 / 8%);
}

.validation-box h4 {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.validation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.validation-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.validation-icon {
  font-size: 24px;
}

.validation-item span:last-child {
  font-size: 15px;
  color: var(--text-secondary);
}

/* CTA Section */
.final-cta-section {
  padding: var(--section-padding);
  background: var(--text-primary);
  color: white;
}

.cta-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.cta-headline {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-subtext {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 60px;
}

.cta-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cta-option {
  background: rgb(255 255 255 / 10%);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid rgb(255 255 255 / 20%);
  position: relative;
  transition: all 0.3s ease;
}

.cta-option:hover {
  background: rgb(255 255 255 / 15%);
  transform: translateY(-5px);
}

.cta-option.featured {
  background: rgb(255 255 255 / 15%);
  border: 2px solid var(--gold-accent);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-accent);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-option h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.cta-option p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.6;
}

.option-button {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.option-button.primary {
  background: white;
  color: var(--text-primary);
}

.option-button.primary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.option-button.featured-btn {
  background: var(--gold-accent);
  color: white;
}

.option-button.featured-btn:hover {
  background: #c4a06a;
}

.option-button.secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.option-button.secondary:hover {
  background: rgb(255 255 255 / 10%);
}

/* Footer */
.simple-footer {
  padding: 40px 0;
  background: var(--text-primary);
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer-content {
  text-align: center;
  color: white;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.footer-tagline {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-credentials {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  padding: 0 20px;
}

.footer-copyright {
  font-size: 13px;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design - Tablet and below */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image-side {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .principle-showcase {
    flex-direction: column;
  }

  .principle-arrow {
    transform: rotate(90deg);
  }
}

/* Mobile Styles - Complete Rewrite */
@media (max-width: 768px) {
  /* Safe global overflow fix - NO UNIVERSAL MAX-WIDTH */
  body,
  html {
    overflow-x: hidden;
    max-width: 100%;
  }

  .about-page {
    overflow-x: hidden;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    padding: 0 15px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-logo {
    font-size: 18px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    border-radius: 0 0 10px 10px;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s ease;
  }

  .nav-links a:hover {
    background: var(--primary-green-light);
  }

  .nav-links a::after {
    display: none;
  }

  /* REMOVED: Problematic mobile rules with 100+ !important declarations */

  /* These rules were causing cascade conflicts and layout issues */

  /* See final mobile solution at end of file */

  /* Section Titles Mobile */
  .section-title {
    font-size: 28px;
  }

  .framework-title {
    font-size: 28px;
  }

  .bio-statement {
    font-size: 28px;
  }

  /* Bio Section Mobile */
  .bio-section {
    padding: 60px 0;
    overflow: hidden;
    max-width: 100vw;
  }

  .bio-container {
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bio-opener {
    font-size: 14px;
  }

  .bio-explanation {
    font-size: 16px;
  }

  .credentials-bar {
    gap: 30px;
    padding-top: 30px;
  }

  .cred-label {
    font-size: 10px;
  }

  .cred-value {
    font-size: 14px;
  }

  /* Frameworks Section Mobile */
  .frameworks-intro-section {
    padding: 60px 0;
    overflow: hidden;
    max-width: 100vw;
  }

  .frameworks-container {
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .framework-subtitle {
    font-size: 16px;
  }

  .framework-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 15px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .framework-number {
    font-size: 36px;
  }

  .framework-info h3 {
    font-size: 22px;
  }

  .framework-desc {
    font-size: 15px;
  }

  .framework-metric {
    font-size: 14px;
  }

  /* Expertise Cards Mobile */
  .expertise-section {
    padding: 60px 0;
  }

  .expertise-container {
    padding: 0 20px;
  }

  .expertise-grid {
    margin-top: 40px;
  }

  .expertise-card.minimal {
    padding: 30px 15px;
    margin: 0 5px;
    width: calc(100% - 10px);
  }

  .card-title {
    font-size: 24px;
  }

  .card-description {
    font-size: 15px;
  }

  .card-features {
    padding: 20px 15px;
    gap: 10px;
  }

  .feature {
    font-size: 14px;
  }

  .simple-cta {
    font-size: 14px;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  /* Philosophy Section Mobile */
  .philosophy-section {
    padding: 60px 0;
  }

  .philosophy-container {
    padding: 0 20px;
  }

  .philosophy-lead {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .principle-showcase {
    gap: 20px;
    margin-bottom: 40px;
  }

  .principle-step {
    padding: 20px 15px;
    margin: 0 5px;
    width: calc(100% - 10px);
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .principle-step h4 {
    font-size: 16px;
  }

  .principle-step p {
    font-size: 13px;
  }

  .validation-box {
    padding: 25px 15px;
    margin: 0 5px;
    width: calc(100% - 10px);
  }

  .validation-box h4 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .validation-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .validation-icon {
    font-size: 20px;
  }

  .validation-item span:last-child {
    font-size: 14px;
  }

  /* CTA Section Mobile */
  .final-cta-section {
    padding: 60px 0;
  }

  .cta-container {
    padding: 0 20px;
  }

  .cta-headline {
    font-size: 28px;
  }

  .cta-subtext {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .cta-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cta-option {
    padding: 30px 15px;
    width: 100%;
    max-width: 100%;
  }

  .cta-option h3 {
    font-size: 20px;
  }

  .cta-option p {
    font-size: 14px;
  }

  .option-button {
    padding: 12px 20px;
    font-size: 14px;
    width: calc(100% - 10px);
    margin: 0 5px;
    box-sizing: border-box;
  }

  .featured-badge {
    padding: 4px 15px;
    font-size: 10px;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .credibility-strip {
    flex-direction: column;
    gap: 20px;
  }

  /* Footer Mobile */
  .simple-footer {
    padding: 30px 20px;
  }

  .footer-name {
    font-size: 16px;
  }

  .footer-tagline {
    font-size: 13px;
  }

  .footer-credentials {
    font-size: 11px;
    max-width: 100%;
    padding: 0 15px;
  }

  .footer-copyright {
    font-size: 12px;
  }
}

/* Remove horizontal overflow on grids (mobile only) */
@media (max-width: 768px) {
  .hero-grid,
  .expertise-grid,
  .frameworks-showcase,
  .cta-options {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* Portrait size override - mobile wins over desktop 450px */
  .hero-portrait {
    width: clamp(180px, 45vw, 320px);
    height: auto;
  }

  /* Fix headline &nbsp; wrapping resistance */
  .hero-headline {
    white-space: normal;
    text-wrap: balance;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  /* Hero adjustments for very small screens */
  .modern-hero {
    padding: 80px 0 30px;
  }

  .hero-image-frame {
    width: min(220px, 65vw);
    height: min(220px, 65vw);
  }

  .hero-headline {
    font-size: clamp(24px, 7vw, 28px);
    margin-bottom: 12px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .primary-cta,
  .secondary-cta {
    font-size: 13px;
    padding: 11px 18px;
  }

  .credibility-strip {
    flex-direction: column;
    gap: 12px;
  }

  .cred-item strong {
    font-size: 20px;
  }

  .cred-item span {
    font-size: 9px;
  }

  /* Other sections */
  .section-title,
  .framework-title,
  .bio-statement,
  .cta-headline {
    font-size: 24px;
  }

  .bio-explanation,
  .framework-subtitle,
  .philosophy-lead,
  .cta-subtext {
    font-size: 14px;
  }
}

/* Touch target optimization */
@media (hover: none) and (pointer: coarse) {
  .nav-links a,
  .primary-cta,
  .secondary-cta,
  .simple-cta,
  .option-button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Portrait orientation specific fixes */
@media (max-width: 768px) and (orientation: portrait) {
  .hero-grid {
    min-height: auto;
  }

  .hero-image-frame {
    margin: 0 auto;
  }

  .hero-content-side {
    padding-top: 10px;
  }
}

/* Small mobile devices height fix */
@media (max-width: 768px) and (max-height: 700px) {
  .modern-hero {
    padding: 75px 0 30px;
  }

  .hero-image-frame {
    width: min(200px, 60vw);
    height: min(200px, 60vw);
  }

  .hero-headline {
    font-size: 24px;
  }

  .hero-ctas {
    margin-bottom: 20px;
  }
}

/* MOBILE HERO SECTION FIXES - Generated by AI Visual Design System */

/* Applied: 2025-09-13T18:13:14.415Z */

/* REMOVED: Duplicate mobile rules causing conflicts */

/* REMOVED: More duplicate conflicting rules */

/* Additional small mobile fixes */
@media (max-width: 480px) {
  .hero-container {
    padding: 0 15px;
  }

  .hero-headline {
    font-size: 24px;
  }

  .primary-cta,
  .secondary-cta {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* EXPERT'S CLEAN MOBILE SOLUTION - REPLACES ALL ABOVE */
@media (max-width: 768px) {
  .modern-hero {
    padding: 96px 0 48px; /* nav-safe top space */
  }

  .modern-hero::before {
    display: none;
  }

  .hero-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-image-side,
  .hero-content-side {
    margin: 0;
  }

  .hero-content-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .hero-ctas a {
    display: block;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .hero-headline {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.2;
    text-wrap: balance;
    white-space: normal;
    word-break: normal;
    margin: 0;
  }
}

/* === FINAL MOBILE FIX PATCH (place last in the file) === */

/* REMOVED: More conflicting rules with !important */

/* REMOVED: Another duplicate mobile section */

/* 3) Defensive: images never overflow their boxes */
img {
  max-width: 100%;
  height: auto;
}

/* ============================================= */

/* FINAL MOBILE HERO FIX - THIS IS THE ONLY ONE */

/* ============================================= */
@media (max-width: 768px) {
  .modern-hero {
    padding: 80px 16px 40px;
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 16px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .hero-image-side {
    order: 1;
    text-align: center;
    margin-bottom: 20px;
  }

  .hero-portrait {
    width: clamp(160px, 50vw, 260px);
    height: auto;
    border-radius: 50%;
  }

  .hero-content-side {
    order: 2;
    text-align: center;
    max-width: 100%;
  }

  .hero-headline {
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.3;
    margin: 0 0 16px;
    white-space: normal;
    text-wrap: balance;
  }

  .hero-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
  }

  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
  }

  .hero-ctas a {
    display: block;
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 14px 16px;
  }
}

/* ============================================= */
/* CONTACT POPUP MODAL STYLES                    */
/* ============================================= */

.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 60%);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-light);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--primary-green-light);
  color: var(--primary-green);
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.modal-header p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font-family);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--primary-green-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

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

.submit-button {
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-button:hover:not(:disabled) {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgb(76 161 84 / 25%);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-success {
  text-align: center;
  padding: 30px 0;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: white;
}

.form-success h3 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-success p {
  font-size: 16px;
  color: var(--text-secondary);
}

.form-error {
  background: rgb(239 68 68 / 10%);
  border: 1px solid rgb(239 68 68 / 30%);
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
}

.form-error p {
  font-size: 14px;
  color: rgb(185 28 28);
  margin: 0;
  line-height: 1.5;
}

.form-error a {
  color: rgb(185 28 28);
  font-weight: 600;
}

/* Make button style consistent with other secondary buttons */
#openContactPopup {
  cursor: pointer;
  font-family: var(--font-family);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .contact-modal-overlay {
    padding: 15px;
    align-items: flex-end;
  }

  .contact-modal {
    padding: 30px 20px;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
  }

  .modal-header h2 {
    font-size: 24px;
  }

  .modal-header p {
    font-size: 14px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .submit-button {
    padding: 14px 24px;
  }
}
