/* Advisor Page Styles */

@font-face {
  font-family: "Troutwood";
  src: url("Troutwood.otf") format("otf");
  font-display: swap;
}

@font-face {
  font-family: 'Cal Sans';
  src: url('https://fonts.gstatic.com/s/calsans/v1/CalSans-SemiBold.woff2') format('woff2');
  font-weight: 400 600 700;
  font-display: swap;
}

/* Root Variables */
:root {
  --primary: #5f8ee8;
  --primary-pressed: #4a7bc7;
  --primary-text-color: #ffffff;
  --secondary-text-color: rgba(255, 255, 255, 0.8);
  --background-dark: #000000;
  --accent-orange: #e06247;
  --accent-pink: #ff0095;
  --accent-blue: #5f8ee8;
}

/* Global Styles */
body.advisor {
  background-color: var(--background-dark);
  color: var(--primary-text-color);
  font-family: 'Cal Sans', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* Prevent layout shifts */
  font-display: swap;
  text-rendering: optimizeSpeed;
}

/* Background blur handled by shared.css */

/* Ensure advisor page uses shared.css background blur correctly */
body.advisor #background-blur-overlay {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

body.advisor.loaded #background-blur-overlay {
  opacity: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cal Sans', sans-serif;
  color: var(--primary-text-color);
}

p {
  color: var(--secondary-text-color);
  line-height: 1.6;
}

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

.advisor-container {
  position: relative;
  z-index: 2;
}

/* Background Pattern */
.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../tw-web-assets/advisor/advisor-pattern.png');
  background-size: 150px 150px;
  background-position: top left;
  background-repeat: repeat;
  pointer-events: none;
  z-index: -2;
  opacity: 0.05;
}

/* Background blur handled by shared.css */

/* Hero Section */
.hero-section {
  margin-top: 150px;
  padding: 50px 0 60px 0;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  min-height: 600px;
  max-width: 1200px;
  margin: 150px auto 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-content {
  flex: 1;
  max-width: 700px;
  z-index: 10;
  position: relative;
  padding-left: 20px;
}

.hero-image {
  flex: 0 0 auto;
  max-width: 608px;
  min-width: 500px;
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right:-50px;
}

/* Advisor Image Layers Container */
.advisor-image-layers {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  border-radius: 12px;
}

/* Advisor Image Layer - Base layer */
.advisor-image-layer-1 {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  flex-shrink: 0;
}

.advisor-image-layer-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: color-dodge;
}

/* Color Gradient Overlay - Applied directly to image */
.advisor-image-layer-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: 100%;
  mix-blend-mode: overlay;
  filter: saturate(250%) brightness(0.9) contrast(2.2);
  opacity: 0.9;
  z-index: 2;
  /* Circular container with feathered edges */
  border-radius: 50%;
  overflow: hidden;
}

.hero-title {
  font-size: 60px;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--primary-text-color);
}

.hero-subtitle strong {
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: left;
}

/* Buttons */
body.advisor .btn-primary,
.advisor .btn-primary {
  background: var(--accent-orange) !important;
  color: var(--primary-text-color) !important;
  border: none !important;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: 'SF Pro Display', sans-serif;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(224, 98, 71, 0.3);
}

body.advisor .btn-primary:hover,
.advisor .btn-primary:hover {
  background: #D45236 !important;
}

body.advisor .btn-primary::before,
.advisor .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}



.btn-primary.btn-large {
  padding: 18px 40px;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(224, 98, 71, 0.3);
}


.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}


.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'SF Pro Display', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* Stats Section */
.stats-section {
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.stats-content {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-text {
  font-size: 48px;
  font-weight: 400;
  text-align: left;
  margin-bottom: 20px;
  color: var(--primary-text-color);
}

.stats-text .troutwood-brand {
  color: var(--accent-orange);
  font-family: 'Troutwood', sans-serif;
}

.stats-text .orange-text {
  color: var(--accent-orange);
}

.stats-source {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.troutwood-brand {
  font-family: 'Troutwood', sans-serif;
}

/* Section Badge */
.section-badge {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  padding: 6px 18px;
  font-family: 'SF Pro Display', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
}

/* Section Title */
.section-title {
  font-family: 'Cal Sans', sans-serif;
  font-size: 48px;
  font-weight: 400;
  color: white;
  margin-bottom: 30px;
}

.section-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--secondary-text-color);
  max-width: 854px;
}

/* How We Help Section */
.how-we-help-section {
  margin-top: 60px;
  padding-top: 0;
  position: relative;
  z-index: 2;
}


/* Features Section */
.features-section {
  padding: 40px 0;
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: linear-gradient(180deg, rgba(5, 13, 27, 0.5) 0%, rgba(14, 33, 69, 0.5) 100%);
  border: none;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}


.feature-image {
  position: relative;
  height: 350px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.feature-content {
  padding: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--primary) !important;
  margin: 0 0 10px 0;
}

.feature-description {
  font-size: 16px;
  font-weight: 300;
  color: var(--secondary-text-color);
  margin: 0;
}

/* How It Works Section */
.how-it-works-section {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}


.how-it-works-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 60px;
}

.advisor-highlight {
  font-family: 'SF Pro Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.features-list {
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 5px;
}

.feature-icon img {
  width: 30px;
  height: 30px;
}

.feature-text {
  font-size: 18px;
  color: var(--secondary-text-color);
  padding-right: 20px;
}

.feature-text strong {
  color: var(--primary-text-color);
  font-weight: 700;
}

.how-it-works-image {
  position: relative;
  width: 100%;
  max-width: 881px;
  margin-left: 0;
  overflow: hidden;
}

.how-it-works-image img {
  width: 100%;
  height: auto;
  max-height: 495px;
  object-fit: cover;
  border-radius: 12px;
  filter: brightness(0.8) contrast(1.3);
}

.how-it-works-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: 100%;
  mix-blend-mode: overlay;
  filter: saturate(200%) brightness(0.9) contrast(1.4);
  opacity: 0.9;
  z-index: 2;
  border-radius: 12px;
  border-radius: 50%;
  overflow: hidden;
}

/* Testimonials Section */
.testimonials-section {
  padding: 60px 0;
  position: relative;
  z-index: 2;
}


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

.testimonial-card {
  background: linear-gradient(180deg, rgba(14, 33, 69, 0.5) 0%, rgba(5, 13, 27, 0.5) 100%);
  border: none;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(95, 142, 232, 0.3);
}

.testimonial-stars {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.testimonial-stars i {
  color: #5F8EE8;
  font-size: 16px;
}

.testimonial-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-text-color);
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--secondary-text-color);
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-text-color);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-title {
  font-size: 58px;
  font-weight: 400;
  margin-bottom: 60px;
  color: var(--primary-text-color);
}

.cta-section .btn-primary {
  margin: 0 auto;
}


/* Large Desktop - wider hero content for longer titles */
@media (min-width: 1201px) {
  .hero-content {
    max-width: 800px;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-image {
    max-width: 550px;
    min-width: 400px;
    margin-right: -100px;
  }
}

@media (max-width: 1024px) {
  .hero-image {
    max-width: 500px;
    min-width: 350px;
    margin-right: -80px;
  }
}

/* iPad Pro (12.9") */
@media (max-width: 1024px) and (min-width: 834px) {
  .hero-image {
    max-width: 480px;
    min-width: 380px;
    margin-right: -70px;
  }

  .hero-section {
    padding: 100px 40px 0px 40px;
  }
  
  .hero-content {
    padding: 100px 40px 0px 40px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 19px;
  }
  
  .section-title {
    font-size: 42px;
  }
  
  .section-description {
    font-size: 18px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    justify-content: center;
  }

  .hero-section {
   gap: 50px;
  }
  
  .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

/* iPad Pro (11") and iPad (10.2") */
@media (max-width: 834px) and (min-width: 768px) {
  .hero-image {
    max-width: 450px;
    min-width: 350px;
    margin-right: -60px;
  }

  .hero-section {
    gap: 30px !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .section-title {
    font-size: 38px;
  }
  
  .section-description {
    font-size: 17px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
  }
  
  .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media only screen and (max-width: 1024px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    justify-content: center;
  }
  
  .how-it-works-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media only screen and (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 100px 0 40px 0;
    margin-top: 0;
    gap: 0;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 0;
  }
  
  .hero-image {
    max-width: 80%;
    min-width: auto;
    width: 80%;
    margin: 40px auto 0;
    margin-right: auto;
  }
  
  .hero-title {
    font-size: 38px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .hero-buttons {
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }
  
  
  .stats-text {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .section-description {
    font-size: 18px;
  }
  
  .cta-title {
    font-size: 40px;
    padding: 20px;
  }
  
  .feature-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .how-it-works-image {
    max-width: 100%;
    margin: 20px 0;
  }
  
  .how-it-works-image img {
    max-height: 250px;
  }
  
  .how-we-help-section {
    padding: 50px 20px 0 20px;
  }
  
  .how-it-works-section {
    padding: 50px 20px 0 20px;
  }
  
  .features-grid {  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .testimonials-section {
    padding: 50px 20px 0 20px;
  }
  
  .testimonials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  
  .testimonial-card {
    width: 100%;
    max-width: 400px;
  }

  .stats-section {
    padding: 50px 30px 0 30px;
  }
}

@media only screen and (max-width: 480px) {
  .hero-section {
    margin-top: 0;
    padding: 80px 0 20px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .hero-content {
    padding-left: 0;
  }
  
  .hero-image {
    width: 90%;
    margin: 30px auto 0;
  }
  
  .hero-title {
    font-size: 38px;
    margin-top: 50px !important;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto;
  }
  

  
  
  .stats-text {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-description {
    font-size: 16px;
  }
  
  .cta-title {
    font-size: 32px;

  }
  
  .feature-card,
  .testimonial-card {
    padding: 20px;
  }
  
  .feature-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .feature-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
  }
  
  .how-it-works-image img {
    max-height: 200px;
  }
  
  .how-we-help-section {
    padding: 50px 20px 0 20px;
  }
  
  .how-it-works-section {
    padding: 50px 20px 0 20px;
  }
  
  .features-grid {  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .testimonials-section {
    padding: 50px 20px 0 20px;
  }
  
  .testimonials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  
  .testimonial-card {
    width: 100%;
    max-width: 400px;
  }
}

/* Layout Shift Prevention */
.hero-section {
  contain: layout;
}

.hero-title, .hero-subtitle {
  font-display: swap;
}

img {
  height: auto;
  max-width: 100%;
}

/* Smooth Image Loading */
.image-loading {
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

.image-loaded {
  opacity: 1;
}

/* Only hide images if JavaScript is working */
.js-enabled .image-loading {
  opacity: 0;
}

/* Skeleton loading for images */
.image-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
