/* Performance Optimizations */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Show strategic button on mobile for index page */
@media (max-width: 991px) {
  .header__strategic-btn {
    display: block !important;
    margin-right: 10px;
  }
}

/* How We Work Section */
.how-we-work {
  padding: 90px 20px;
  background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
  contain: layout style;
}

.how-we-work__container {
  max-width: 1200px;
  margin: 0 auto;
}

.how-we-work__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.how-we-work__intro {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.7;
  color: #222;
  text-align: center;
  margin: 0 auto;
}

.how-we-work__intro p {
  margin-bottom: 18px;
}

.how-we-work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.how-we-work__card {
  background: #fff;
  padding: 32px;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.how-we-work__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.how-we-work__card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  font-weight: 600;
  text-align: center;
}

.how-we-work__card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  text-align: center;
}

.how-we-work__result {
  margin-top: 50px;
  max-width: 900px;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.how-we-work__result strong {
  font-weight: 600;
}

@media (max-width: 992px) {
  .how-we-work__grid {
    grid-template-columns: 1fr;
  }
  
  .how-we-work__title {
    text-align: center;
  }
}

/* Future Vision Section */
.future-vision {
  padding: 90px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  contain: layout style;
}

.future-vision.slide-in {
  animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.future-vision__container {
  max-width: 1200px;
  margin: 0 auto;
}

.future-vision__title {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(180deg, #e9ebec 20%, #2ED3BF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #092937;
  letter-spacing: -0.025em;
  line-height: 1.2;
  padding: 10px 0;
  position: relative;
}

/* Fallback for browsers without background-clip support */
@supports not (background-clip: text) {
  .future-vision__title {
    color: #092937;
    background: none;
    -webkit-text-fill-color: #092937;
  }
}

.future-vision__lead {
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 820px;
  margin: 0 auto 50px;
  color: #333;
  text-align: center;
}

.future-vision__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
}

.future-vision__card {
  background: #fff;
  padding: 30px 32px;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
}

.future-vision__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.future-vision__card p {
  margin: 0;
  font-size: 16px;
  color: #222;
}

.future-vision__closing {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
}

.future-vision__closing strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .future-vision {
    padding: 70px 15px;
  }
  
  .future-vision__grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  
  .future-vision__title {
    text-align: center;
    font-size: clamp(30px, 7vw, 48px);
    padding: 0 5px;
  }
  
  .future-vision__lead {
    text-align: center;
  }
  
  .future-vision__closing {
    text-align: center;
  }
}

/* Complexity Ceiling Section */
.complexity-section {
  padding: 90px 20px;
  background: #ffffff;
  contain: layout style;
}

.complexity-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

.complexity-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.complexity-section__title {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  margin-bottom: 25px;
}

.complexity-section__text {
  font-size: 16px;
  line-height: 1.7;
  color: #222;
}

.complexity-section__list {
  margin-top: 30px;
}

.complexity-section__list li {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.6;
}

.complexity-section__list strong {
  font-weight: 600;
}

.complexity-section__image img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.complexity-section__image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.complexity-section__closing {
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .complexity-section__grid {
    grid-template-columns: 1fr;
  }
  
  .complexity-section__title {
    text-align: center;
  }
}

/* Book Session Section */
.book-session {
  padding: 60px 20px;
  background: #2ED3BF;
  text-align: center;
  border-top: 1px solid #092937;
  contain: layout style;
}

.book-session__container {
  max-width: 800px;
  margin: 0 auto;
}

.book-session__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.book-session__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #555;
  margin-bottom: 45px;
  line-height: 1.6;
}

.book-session__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: #092937;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(9, 41, 55, 0.3);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.book-session__button:hover {
  box-shadow: 0 6px 20px rgba(9, 41, 55, 0.4);
}

.book-session__button:active {
  transform: scale(0.98);
}

.book-session__calendly {
  padding: 20px 0;
}

@media (max-width: 600px) {
  .book-session {
    padding: 70px 15px;
  }
  
  .book-session__button {
    padding: 16px 32px;
    font-size: 16px;
    width: 100%;
  }
}

/* Strategic Review Modal Styles */
.strategic-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 41, 55, 0.85);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(5px);
  will-change: opacity, visibility;
}

.strategic-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.strategic-modal-overlay.active .strategic-modal-wrapper {
  transform: scale(1) translateY(0);
}

.strategic-modal-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  will-change: transform;
}

.strategic-modal {
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  contain: layout style;
}

.strategic-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.strategic-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #122837;
  margin: 0;
}

.strategic-modal__close {
  width: 40px;
  height: 40px;
  border: none;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  will-change: transform, background-color;
}

.strategic-modal__close:hover {
  background: #2ED3BF;
  transform: rotate(90deg);
}

.strategic-modal__close svg {
  width: 18px;
  height: 18px;
  stroke: #122837;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

.strategic-modal__close:hover svg {
  stroke: #fff;
}

.strategic-modal__body {
  padding: 0;
  height: calc(90vh - 81px);
  max-height: 750px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.strategic-modal__body .calendly-inline-widget {
  min-width: 100%;
  height: 100%;
  min-height: 700px;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .strategic-modal {
    width: 95%;
    max-height: 85vh;
    border-radius: 12px;
  }
  
  .strategic-modal__header {
    padding: 16px 20px;
  }
  
  .strategic-modal__title {
    font-size: 18px;
  }
  
  .strategic-modal__close {
    width: 36px;
    height: 36px;
  }
  
  .strategic-modal__body {
    max-height: calc(85vh - 68px);
  }
  
  .strategic-modal__body .calendly-inline-widget {
    min-height: 550px;
  }
}

/* Tablet responsive */
@media (min-width: 601px) and (max-width: 900px) {
  .strategic-modal {
    width: 85%;
    max-width: 650px;
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ============================================
   SECTION DIVIDERS - Thin Aesthetic Lines
   ============================================ */

/* Section divider line base styles */
main > section {
  position: relative;
}

main > section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(18, 40, 55, 0.08) 15%,
    rgba(18, 40, 55, 0.12) 50%,
    rgba(18, 40, 55, 0.08) 85%,
    transparent 100%
  );
}

/* Remove divider from last section */
main > section:last-of-type::after {
  display: none;
}

/* Remove divider from hero/main-screen */
.main-screen::after {
  display: none;
}

/* Remove divider from sections that have their own bottom styling */
.start-project::after,
.about-video-section::after {
  display: none;
}

/* Mobile responsive dividers */
@media (max-width: 768px) {
  main > section::after {
    width: 85%;
    max-width: none;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  main > section::after {
    width: 90%;
  }
}

/* Desktop - make divider more subtle and elegant */
@media (min-width: 1200px) {
  main > section::after {
    width: 50%;
    max-width: 1100px;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(18, 40, 55, 0.06) 10%,
      rgba(18, 40, 55, 0.1) 50%,
      rgba(18, 40, 55, 0.06) 90%,
      transparent 100%
    );
  }

  /* Add consistent spacing between sections on desktop */
  .future-vision,
  .complexity-section,
  .how-we-work,
  .about-video-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

/* Ensure proper spacing between sections */
.future-vision {
  padding-top: 90px;
  padding-bottom: 90px;
}

.complexity-section {
  padding-top: 90px;
  padding-bottom: 90px;
}

.how-we-work {
  padding-top: 90px;
  padding-bottom: 90px;
}

.about-video-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
  .future-vision,
  .complexity-section,
  .how-we-work,
  .about-video-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  main > section::after {
    width: 70%;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .future-vision {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .complexity-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .how-we-work {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .about-video-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Make divider more visible on larger screens */
@media (min-width: 1920px) {
  main > section::after {
    max-width: 1400px;
  }
}

/* ============================================
   RESPONSIVE UTILITY CLASSES
   ============================================ */

/* Strategic Modal - Enhanced Responsive Styles */
@media (max-width: 768px) {
  .strategic-modal-overlay {
    padding: 10px;
  }
  
  .strategic-modal-wrapper {
    padding: 10px;
    align-items: flex-end;
  }
  
  .strategic-modal {
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }
  
  .strategic-modal__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .strategic-modal__title {
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .strategic-modal-wrapper {
    padding: 0;
  }
  
  .strategic-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .strategic-modal__header {
    padding: 14px 16px;
  }
  
  .strategic-modal__title {
    font-size: 16px;
  }
  
  .strategic-modal__close {
    width: 32px;
    height: 32px;
  }
  
  .strategic-modal__close svg {
    width: 14px;
    height: 14px;
  }
  
  .strategic-modal__body {
    height: calc(100vh - 60px);
    max-height: none;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .strategic-modal-wrapper {
    align-items: center;
  }
  
  .strategic-modal {
    max-height: 85vh;
  }
  
  .strategic-modal__body {
    max-height: calc(85vh - 70px);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
