/*-----------------------------------*\
 * #style.css
 * copyright 2025 Hestia
\*-----------------------------------*/

/**
 * TABLE OF CONTENTS
 * -----------------
 * 1.  CUSTOM PROPERTIES (VARIABLES)
 * 2.  RESET & BASE STYLES
 * 3.  REUSED COMPONENTS & UTILITY CLASSES
 * 4.  SITE HEADER & NAVIGATION
 * 5.  SITE FOOTER
 * 6.  GENERIC PAGE & SECTION STYLES
 * 7.  HOMEPAGE-SPECIFIC STYLES
 * 8.  SUB-PAGE SPECIFIC STYLES
 * 9.  MODALS & OVERLAYS
 * 10. MEDIA QUERIES (RESPONSIVENESS)
*/


/*-----------------------------------*\
 * #1. CUSTOM PROPERTIES (VARIABLES)
\*-----------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&family=Poppins:wght@400;500;600&display=swap');

:root {

  /** Colors */
  --kappel: hsl(170, 75%, 41%);
  --selective-yellow: hsl(42, 94%, 55%);
  --radical-red: hsl(351, 83%, 61%);
  --radical-green: hsl(185, 100%, 19%);
  --white: hsl(0, 0%, 100%);
  /*--isabelline: hsl(36, 33%, 94%);*/
  --isabelline: hsl(0, 0%, 100%);
  --platinum: hsl(0, 0%, 90%);
  --light-gray: hsl(0, 0%, 80%);
  --gray-web: hsl(0, 0%, 50%);
  --quick-silver: hsl(0, 0%, 65%);
  --gray-x-11: hsl(0, 0%, 73%);
  --eerie-black-1: hsl(0, 0%, 9%);
  --eerie-black-2: hsl(180, 3%, 7%);
  --kappel_15: hsla(170, 75%, 41%, 0.15);
  --black_80: hsla(0, 0%, 0%, 0.8);
  --white_50: hsla(0, 0%, 100%, 0.5);
  --black_50: hsla(0, 0%, 0%, 0.5);
  --black_30: hsla(0, 0%, 0%, 0.3);

  /** Gradient */
  --gradient: linear-gradient(-90deg, hsl(151, 58%, 46%) 0%, hsl(170, 75%, 41%) 100%);

  /** Typography */
  --ff-league_spartan: 'League Spartan', sans-serif;
  --ff-poppins: 'Poppins', sans-serif;

  --fs-1: 6.5rem;
  --fs-2: 4.5rem;
  --fs-3: 2.3rem;
  --fs-4: 1.8rem;
  --fs-5: 1.5rem;
  --fs-6: 1.4rem;
  --fs-7: 1.3rem;

  --fw-500: 500;
  --fw-600: 600;

  /** Spacing */
  --section-padding: 120px;

  /** Shadow */
  --shadow-1: 0 6px 15px 0 hsla(0, 0%, 0%, 0.05);
  --shadow-2: 0 10px 30px hsla(0, 0%, 0%, 0.06);
  --shadow-3: 0 10px 50px 0 hsla(220, 53%, 22%, 0.1);

  /** Radius */
  --radius-pill: 500px;
  --radius-circle: 50%;
  --radius-3: 3px;
  --radius-5: 5px;
  --radius-10: 10px;

  /** Transition */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.33, 0.85, 0.4, 0.96);

}


/*-----------------------------------*\
 * #2. RESET & BASE STYLES
\*-----------------------------------*/

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

li { list-style: none; }

a,
img,
span,
data,
input,
button,
ion-icon { display: block; }

a {
  color: inherit;
  text-decoration: none;
}

img { height: auto; }

input,
button {
  background: none;
  border: none;
  font: inherit;
}

input { width: 100%; }
button { cursor: pointer; }
ion-icon { pointer-events: none; }
address { font-style: normal; }

html {
  font-family: var(--ff-poppins);
  font-size: 10px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
  background-color: var(--white);
  color: var(--gray-web);
  font-size: 1.6rem;
  line-height: 1.75;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  position: relative; /* Ensure child elements respect overflow */
}

body.modal-open,
body.nav-active {
  overflow: hidden;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background-color: hsl(0, 0%, 98%); }
::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }
::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }


/*-----------------------------------*\
 * #3. REUSED COMPONENTS & UTILITY CLASSES
\*-----------------------------------*/

.container {
  padding-inline: 15px;
  max-width: 1200px;
  margin-inline: auto;
}

.section { padding-block: var(--section-padding); }

.shape {
  position: absolute;
  display: none;
}

.has-bg-image {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.h1,
.h2,
.h3 {
  color: var(--eerie-black-1);
  font-family: var(--ff-league_spartan);
  line-height: 1.2;
}

.h1, .h2 { font-weight: var(--fw-600); }
.h1 { font-size: var(--fs-1); }
.h2 { font-size: var(--fs-2); }
.h3 { font-size: var(--fs-3); font-weight: var(--fw-500); }

.section-title { text-align: center; }
.section-title .span { display: inline-block; color: var(--kappel); }
.section-subtitle { font-size: var(--fs-5); text-transform: uppercase; font-weight: 500; letter-spacing: 1px; text-align: center; margin-block-end: 15px; }
.section-text { text-align: center; margin-block: 15px 25px; }

.btn {
  background-color: var(--kappel);
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: max-content;
  padding: 15px 30px;
  border-radius: var(--radius-5);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--gradient);
  z-index: -1;
  border-radius: inherit;
  transform: translateX(-100%);
  transition: var(--transition-2);
}

.btn:is(:hover, :focus)::before { transform: translateX(0); }
.btn:disabled { background-color: var(--light-gray); cursor: not-allowed; }
.btn:disabled::before { display: none; }

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--light-gray);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-list {
  display: grid;
  gap: 30px;
}

.back-top-btn {
  position: fixed;
  bottom: 40px;
  right: 30px;
  background-color: var(--kappel);
  color: var(--white);
  font-size: 20px;
  padding: 15px;
  border-radius: var(--radius-circle);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-1);
}

.back-top-btn.active {
  transform: translateY(-10px);
  opacity: 1;
  pointer-events: all;
}


/*-----------------------------------*\
 * #4. SITE HEADER & NAVIGATION
\*-----------------------------------*/

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  padding-block: 12px;
  box-shadow: var(--shadow-1);
  z-index: 4;
}

.header.active {
  position: fixed;
  animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Language switcher */
.lang-switch,
.lang-switch-actions {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-size: 1.4rem;
  font-weight: 600;
  margin-right: 8px;
  white-space: nowrap;
}
.lang-switch a,
.lang-switch-actions a { 
  color: var(--eerie-black-1); 
  opacity: 0.85;
  text-decoration: none;
  padding: 2px 4px;
  transition: var(--transition-1);
}
.lang-switch a:hover,
.lang-switch-actions a:hover { 
  color: var(--kappel); 
  opacity: 1; 
}
.lang-switch a[aria-current="language"],
.lang-switch-actions a[aria-current="language"] {
  color: var(--kappel);
  text-decoration: underline;
  opacity: 1;
}
.lang-switch span { color: var(--gray-web); }

.header .logo img {
  width: 130px; /* Smaller logo on mobile */
}

.header-action-btn {
  color: var(--eerie-black-1);
  font-size: 24px;
  transition: var(--transition-1);
}

.header-action-btn:is(:hover, :focus) { color: var(--kappel); }

/* Mobile Navigation - Complete Rewrite */
@media (max-width: 1199px) {
  /* Mobile Navigation Container */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }

  .navbar.active {
    transform: translateX(0);
  }

  /* Mobile Navigation Header */
  .navbar .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
  }

  /* Mobile Navigation List */
  .navbar-list { 
    display: block;
    padding: 15px 20px;
    margin: 0;
    list-style: none;
  }
  
  .navbar-item { 
    border-bottom: 1px solid #e5e5e5;
  }
  
  .navbar-link { 
    display: block;
    padding: 12px 0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar-link:hover { 
    color: #007bff;
  }

  /* Mobile Close Button */
  .nav-close-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .nav-close-btn:hover { 
    color: #007bff;
    background-color: #f0f0f0;
  }
  
  /* Mobile Menu Toggle Button - Show on all mobile/tablet devices */
  .header-action-btn[data-nav-toggler] {
    display: block; /* Show on mobile/tablet */
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
  }
  
  /* Mobile Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Header Actions */
  .header .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Additional mobile-specific styles for smaller screens */
@media (max-width: 767px) {
  .navbar {
    max-width: 280px !important;
  }
  
  .navbar .wrapper {
    padding: 10px 15px !important;
  }
  
  .navbar-list {
    padding: 10px 15px !important;
  }
  
  .navbar-link {
    padding-block: 12px !important;
    font-size: 16px !important;
  }
}

/* Mobile navbar wrapper styles are now in the mobile media query above */

/* Mobile navbar styles are now in the mobile media query above */

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--black_80);
  pointer-events: none;
  opacity: 0;
  z-index: 999;
  transition: var(--transition-1);
}

@media (max-width: 1199px) {
  .overlay {
    display: block !important;
  }
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* .header .btn.has-before { display: none; } */


/*-----------------------------------*\
 * #5. SITE FOOTER
\*-----------------------------------*/

.footer {
  background-repeat: no-repeat;
  background-color: var(--eerie-black-2);
  color: var(--gray-x-11);
  font-size: var(--fs-5);
  overflow-x: hidden; /* Prevent overflow */
  width: 100%;
  box-sizing: border-box;
}

.footer-top { 
  display: grid; 
  gap: 30px;
  padding-inline: 15px; /* Add horizontal padding for mobile */
}
.footer-brand-text { margin-block: 20px; }
.footer-brand .wrapper { 
  display: flex; 
  gap: 5px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}
.footer-brand .wrapper .span { font-weight: var(--fw-500); }
.footer-link { transition: var(--transition-1); }
.footer-link:is(:hover, :focus) { color: var(--kappel); }

.footer-list-title {
  color: var(--white);
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-block-end: 10px;
}

.footer-list .footer-link { padding-block: 5px; }
.newsletter-form { 
  margin-block: 20px 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
}

.newsletter-form .input-field {
  background-color: var(--white);
  padding: 15px 18px;
  border-radius: var(--radius-5);
  font-size: var(--fs-6);
  border: 2px solid transparent;
  transition: var(--transition-1);
  color: var(--eerie-black-1);
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width calculation */
  min-width: 0; /* Remove fixed min-width that causes overflow */
}

.newsletter-form .input-field:focus {
  outline: none;
  border-color: var(--kappel);
  box-shadow: 0 0 0 3px hsla(170, 75%, 41%, 0.1);
}

.newsletter-form .input-field::placeholder {
  color: var(--gray-web);
  opacity: 0.8;
}

.newsletter-form .btn { 
  width: 100%; /* Change from min-width to width */
  justify-content: center;
  padding: 15px 25px;
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  box-sizing: border-box; /* Include padding in width calculation */
}
.social-list { display: flex; gap: 25px; }
.social-link { font-size: 20px; }

.footer-bottom {
  border-block-start: 1px solid var(--eerie-black-1);
  padding-block: 30px;
}

.copyright { text-align: center; }
.copyright-link { color: var(--kappel); display: inline-block; }


/*-----------------------------------*\
 * #6. GENERIC PAGE & SECTION STYLES
\*-----------------------------------*/

/** Page Hero (for sub-pages) */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
  background-color: var(--isabelline);
}

.page-hero .section-title .span { color: var(--kappel); }
.page-hero .section-text { max-width: 80ch; margin-inline: auto; font-size: var(--fs-5); }
.page-nav { text-align: center; padding-bottom: 60px; border-bottom: 1px solid var(--platinum); margin-top: 40px; }
.page-nav a { display: inline-block; margin: 5px 15px; font-weight: 500; color: var(--kappel); transition: var(--transition-1); font-size: 1.5rem;}
.page-nav a:hover { text-decoration: underline; }

/** FAQ Accordion */
.faq-list { list-style: none; }
.faq-card { background-color: var(--white); border-radius: var(--radius-5); overflow: hidden; box-shadow: var(--shadow-1); }
.faq-card:not(:last-child) { margin-bottom: 20px; }
.faq-card .card-action { background-color: transparent; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; gap: 20px; text-align: left; }
.faq-card .card-action.active { background-color: var(--kappel); }
.faq-card .card-action.active .card-title, .faq-card .card-action.active ion-icon { color: var(--white); }
.faq-card .card-title { color: var(--eerie-black-1); font-family: var(--ff-league_spartan); font-size: var(--fs-5); font-weight: var(--fw-600); transition: var(--transition-1); }
.faq-card .action-icon { flex-shrink: 0; }
.faq-card ion-icon { color: var(--kappel); font-size: 1.8rem; transition: var(--transition-1); --ionicon-stroke-width: 50px; }
.faq-card .card-action.active .open, .faq-card .card-action .close { display: none; }
.faq-card .card-action .open, .faq-card .card-action.active .close { display: block; }
.faq-card .card-content { font-size: var(--fs-6); color: var(--gray-web); padding-inline: 25px; max-height: 0; overflow: hidden; transition: var(--transition-2); }
.faq-card .card-content p { padding-block: 20px; border-top: 1px solid var(--platinum); }
.faq-card .card-action.active + .card-content { max-height: 500px; }
.faq-cta-link { display: block; text-align: center; margin-top: 30px; font-weight: 500; color: var(--kappel); }

/** Trust Bar */
.trust-bar { padding-block: 15px; background-color: hsla(170, 75%, 41%, 0.1); border-bottom: 1px solid var(--platinum); }
.trust-bar ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 40px; }
.trust-bar li { color: var(--gray-web); font-weight: 500; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.trust-bar ion-icon { color: var(--kappel); font-size: 2rem; --ionicon-stroke-width: 50px; }

/** CTA Section */
.cta-section { text-align: center; }
.cta-section.dark { background-color: var(--eerie-black-1); color: var(--white); }
.cta-section.dark .section-title, .cta-section.dark .section-text { color: var(--white); }
.cta-section .btn { margin-inline: auto; }
.cta-section .sub-link { display: inline-block; margin-top: 20px; color: var(--gray-x-11); text-decoration: underline; transition: var(--transition-1); }
.cta-section .sub-link:hover { color: var(--white); }

/** Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; box-shadow: var(--shadow-3); border-radius: var(--radius-10); overflow: hidden; margin-top: 30px; }
.comparison-table th, .comparison-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--platinum); font-size: 1.5rem; }
.comparison-table thead { background-color: var(--eerie-black-1); color: var(--white); font-family: var(--ff-league_spartan); font-size: var(--fs-5); }
.comparison-table tbody tr:nth-child(odd) { background-color: var(--white); }
.comparison-table tbody tr:nth-child(even) { background-color: hsl(210, 33%, 98%); }
.comparison-table td:first-child { font-weight: 600; color: var(--eerie-black-1); }
.comparison-table .icon-no { color: var(--radical-red); font-weight: 900; margin-right: 8px; }
.comparison-table .icon-yes { color: var(--kappel); font-weight: 900; margin-right: 8px; }


/*-----------------------------------*\
 * #7. HOMEPAGE-SPECIFIC STYLES
\*-----------------------------------*/

/** Hero Slideshow */
.hero-slideshow {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.hero-slideshow::after { content: ''; position: absolute; inset: 0; background-color: hsla(0, 0%, 0%, 0.6); z-index: 1; }
.hero-background-slider { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.hero-slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 2s ease-in-out; animation: kenburns 20s ease-in-out infinite; }
.hero-slide.active { opacity: 1; }

@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(-2%, 2%); }
  100% { transform: scale(1) translate(0, 0); }
}

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; margin-inline: auto; }
.hero-content .section-title, .hero-content .hero-text { color: var(--white); }
.hero-content .section-title { font-size: 4.5rem; text-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.5); }
.hero-slideshow .btn { margin-inline: auto; margin-top: 30px; }

/** Problem Section with Stats */
.problem-section { padding-block: 100px; }
.problem-section .container { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }
.problem-section .section-subtitle, .problem-section .section-title { text-align: left; }
.stats-counter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.stats-counter-item { 
  text-align: center; 
  padding: 25px 20px; 
  background-color: var(--isabelline); 
  border-radius: var(--radius-10); 
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.stats-counter-item .counter-value { font-family: var(--ff-league_spartan); font-size: 4.5rem; font-weight: 800; color: var(--kappel); line-height: 1; }
.stats-counter-item .counter-label { font-size: 1.5rem; color: var(--gray-web); margin-top: 10px; line-height: 1.4; }

/** Feature Section (Cards as buttons) */
.feature-content { background-color: hsla(170, 75%, 41%, 0.05); padding: 25px; border-radius: var(--radius-10); height: 100%; }
.feature .section-subtitle, .feature .section-title, .feature .section-text { text-align: left; }
.feature .section-subtitle { font-size: var(--fs-6); }
.feature .section-title { font-size: var(--fs-3); }
.feature .section-text { font-size: var(--fs-6); }
.feature .section-title a { transition: var(--transition-1); }
.feature .section-title a:hover { color: var(--kappel); }
.feature .btn-secondary { background-color: var(--white); color: var(--kappel); font-family: var(--ff-league_spartan); font-size: var(--fs-5); font-weight: var(--fw-600); max-width: max-content; padding: 10px 25px; border-radius: var(--radius-5); border: 1px solid var(--kappel); transition: var(--transition-1); }
.feature .btn-secondary:is(:hover, :focus) { background-color: var(--kappel); color: var(--white); }
.feature-card { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; min-height: 320px; background-size: cover; background-position: center; border-radius: var(--radius-10); overflow: hidden; transition: var(--transition-2); }
.feature-card:is(:hover, :focus-within) { transform: scale(1.02); }
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 40%, hsla(0, 0%, 0%, 0.8) 205%); z-index: -1;}
.feature-card .card-title { color: var(--white); font-size: var(--fs-3); line-height: 1.2; text-shadow: 0 2px 4px hsla(0, 0%, 0%, 0.5); transition: var(--transition-1); }
.feature-card:is(:hover, :focus) .card-title { color: var(--selective-yellow); }

/** Learn Section */
.learn-card { padding: 10px; text-align: center; border-radius: var(--radius-5); background-color: hsla(170, 75%, 41%, 0.05); }
.learn-card .card-icon { background-color: hsla(170, 75%, 41%, 0.1); width: 80px; height: 80px; display: grid; place-items: center; border-radius: var(--radius-circle); margin-inline: auto; margin-block-end: 30px; }
.learn-card .card-text { color: var(--eerie-black-1); font-size: var(--fs-5); margin-block: 15px 25px; }

/** Why Hestia Section - Enhanced */
.whyhestia {
  padding-block: 120px;
  background: linear-gradient(135deg, var(--white) 0%, var(--isabelline) 100%);
  position: relative;
  overflow: hidden;
}
.whyhestia::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--kappel-10), transparent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}
.whyhestia::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--selective-yellow-10), transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 1;
}
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}
.whyhestia .container { 
  display: grid; 
  grid-template-columns: 1fr;
  gap: 50px; 
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}
.whyhestia-interactive-slides { 
  position: relative;
  z-index: 1;
  order: 1;
  width: 100%;
  max-width: 100%;
  background: var(--white);
  border-radius: var(--radius-15);
  box-shadow: 0 10px 30px hsla(0, 0%, 0%, 0.1);
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
}
.whyhestia-slide {
  display: none;
  padding: 40px 30px;
  text-align: center;
  animation: slideInUp 0.6s ease-out;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.whyhestia-slide.active {
  display: flex;
}
.whyhestia-slide .slide-icon {
  font-size: 4rem;
  color: var(--kappel);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--kappel-10), var(--selective-yellow-10));
  padding: 20px;
  border-radius: var(--radius-circle);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whyhestia-slide .slide-content {
  max-width: 400px;
  text-align: center;
}
.whyhestia-slide .slide-title {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  color: var(--eerie-black-1);
  margin-bottom: 15px;
  line-height: 1.3;
}
.whyhestia-slide .slide-description {
  font-size: var(--fs-6);
  color: var(--gray-web);
  line-height: 1.6;
  text-align: center;
}
.slide-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--isabelline);
  border-top: 1px solid var(--platinum);
}
.slide-prev, .slide-next {
  background: var(--kappel);
  color: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-1);
  font-size: 1.6rem;
}
.slide-prev:hover, .slide-next:hover {
  background: var(--kappel-alpha-80);
  transform: scale(1.1);
}
.slide-indicators {
  display: flex;
  gap: 10px;
}
.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  background: var(--platinum);
  border: none;
  cursor: pointer;
  transition: var(--transition-1);
}
.slide-indicator.active {
  background: var(--kappel);
}
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.whyhestia-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  order: 2;
  padding: 20px 0;
  width: 100%;
  max-width: 100%;
}
.whyhestia :is(.section-subtitle, .section-title, .section-text) { 
  text-align: left; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.whyhestia .section-subtitle {
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  color: var(--kappel);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.whyhestia .section-title {
  line-height: 1.2;
  word-break: break-word;
  font-size: var(--fs-2);
  margin-bottom: 25px;
  color: var(--eerie-black-1);
  font-weight: var(--fw-600);
}
.whyhestia .section-title .span {
  color: var(--kappel);
  position: relative;
}
.whyhestia .section-title .span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--kappel), var(--selective-yellow));
  border-radius: 2px;
  transform: scaleX(0);
  animation: scaleX 0.8s ease-out 1s forwards;
}
@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleX {
  to {
    transform: scaleX(1);
  }
}
.whyhestia-list {
  margin-top: 20px;
}
.whyhestia-item { 
  margin-block: 20px; 
  display: flex; 
  align-items: center; 
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid hsla(170, 75%, 41%, 0.1);
  transition: var(--transition-1);
  cursor: pointer;
}
.whyhestia-item:hover {
  background: hsla(170, 75%, 41%, 0.05);
  padding-left: 10px;
  border-radius: var(--radius-5);
}
.whyhestia-item ion-icon { 
  color: var(--selective-yellow); 
  font-size: 24px; 
  --ionicon-stroke-width: 50px;
  background: linear-gradient(135deg, var(--selective-yellow-10), var(--kappel-10));
  padding: 8px;
  border-radius: var(--radius-circle);
  transition: var(--transition-1);
}
.whyhestia-item:hover ion-icon {
  transform: scale(1.1) rotate(10deg);
  background: linear-gradient(135deg, var(--selective-yellow), var(--kappel));
  color: var(--white);
}
.whyhestia-item .span { 
  color: var(--eerie-black-1); 
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: var(--transition-1);
}
.whyhestia-item:hover .span {
  color: var(--kappel);
  transform: translateX(5px);
}

/** How It Works (Alt Process) Section */
.how-it-works-alt { padding-block: 100px; }
.how-it-works-alt .title-wrapper { text-align: center; margin-bottom: 60px; }
.how-it-works-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.how-it-works-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  text-align: center;
  background: var(--white); 
  padding: 40px 25px; 
  border-radius: var(--radius-10); 
  border: 1px solid var(--platinum);
  height: 280px;
  transition: var(--transition-2);
}
.how-it-works-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2);
}
.how-it-works-item .item-icon { 
  font-size: 4rem; 
  color: var(--kappel); 
  margin-bottom: 20px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsla(170, 75%, 41%, 0.1);
  border-radius: var(--radius-circle);
}
.how-it-works-item .h3 { 
  font-size: var(--fs-5); 
  margin-bottom: 15px;
  color: var(--eerie-black-1);
}
.how-it-works-item p { 
  color: var(--gray-web);
  line-height: 1.6;
}

/** Testimonials Slider */
.testimonials .section-header { text-align: center; margin-bottom: 60px; }
.testimonials-slider .testimonials-item { position: relative; padding: 30px; background-color: var(--white); border: 1px solid var(--platinum); border-radius: var(--radius-10); z-index: 1; height: 100%; }
.testimonials-item .profile { display: flex; align-items: center; margin-bottom: 20px; }
.testimonials-item .profile .profile-image { width: 60px; height: 60px; border-radius: var(--radius-circle); overflow: hidden; margin-right: 15px; border: 2px solid var(--kappel); }
.testimonials-item .profile .profile-desc { display: flex; flex-direction: column; }
.profile .profile-desc span:nth-child(1) { font-family: var(--ff-league_spartan); font-size: var(--fs-4); font-weight: var(--fw-600); color: var(--kappel); }
.profile .profile-desc span:nth-child(2) { font-size: var(--fs-6); color: var(--gray-web); }
.testimonials-item > p { font-size: var(--fs-6); line-height: 1.6; color: var(--gray-web); margin-bottom: 25px; }
.testimonials-item .quote { position: absolute; top: 20px; right: 20px; z-index: -1; }
.testimonials-item .quote i { font-size: 5rem; color: var(--kappel); opacity: 0.08; }
.testimonials-item .ratings { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--platinum); }
.testimonials-item .ratings i { font-size: 1.6rem; color: var(--selective-yellow); }
.testimonials { position: relative; }
.testimonials .owl-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; }
.testimonials .owl-nav button.owl-prev { position: absolute; left: -60px; }
.testimonials .owl-nav button.owl-next { position: absolute; right: -60px; }
.testimonials .owl-nav button.owl-prev, .testimonials .owl-nav button.owl-next { width: 50px; height: 50px; background-color: var(--white) !important; border: 2px solid var(--platinum) !important; color: var(--kappel) !important; border-radius: var(--radius-circle) !important; transition: var(--transition-1); font-size: 1.8rem !important; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-2); }
.testimonials .owl-nav button.owl-prev:hover, .testimonials .owl-nav button.owl-next:hover { background-color: var(--kappel) !important; color: var(--white) !important; border-color: var(--kappel) !important; box-shadow: var(--shadow-3); }
.testimonials .owl-dots { margin-top: 40px; text-align: center; }
.testimonials .owl-dots .owl-dot span { background-color: var(--platinum) !important; width: 12px; height: 12px; margin: 0 5px; transition: var(--transition-1); }
.testimonials .owl-dots .owl-dot.active span { background-color: var(--kappel) !important; }

/** Benefits & Comparison Section */
.benefits-comparison { padding-block: 100px; background-color: var(--isabelline); }
.benefits-header { text-align: center; max-width: 800px; margin-inline: auto; margin-bottom: 60px; }
.benefits-header .section-text { margin-bottom: 40px; }

/* Comparison Table Wrapper */
.comparison-wrapper { margin-bottom: 80px; overflow-x: auto; }
.comparison-table { 
  width: 100%; 
  border-collapse: collapse; 
  background-color: var(--white);
  border-radius: var(--radius-10);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  margin: 0 auto;
}
.comparison-table thead {
  background: linear-gradient(135deg, var(--kappel) 0%, var(--radical-green) 100%);
  color: var(--white);
}
.comparison-table th {
  padding: 20px;
  font-family: var(--ff-league_spartan);
  font-weight: var(--fw-600);
  font-size: var(--fs-5);
  text-align: center;
}
.comparison-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--platinum);
  text-align: center;
  font-size: var(--fs-6);
  transition: var(--transition-1);
}
.comparison-table tbody tr:hover {
  background-color: hsla(170, 75%, 41%, 0.05);
}
.comparison-table td:first-child {
  font-weight: var(--fw-600);
  color: var(--eerie-black-1);
  text-align: left;
  background-color: var(--white);
}
.comparison-table .icon-yes {
  color: var(--kappel);
  font-weight: 900;
  margin-right: 8px;
  font-size: 1.8rem;
}
.comparison-table .icon-no {
  color: var(--radical-red);
  font-weight: 900;
  margin-right: 8px;
  font-size: 1.8rem;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

/* Benefits Cards Section - Homepage */
.benefits-cards-section {
  padding-block: 80px;
}
.benefits-cards-section .benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 0;
}
.benefit-card {
  background-color: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-10);
  text-align: center;
  box-shadow: var(--shadow-1);
  transition: var(--transition-2);
  border-top: 4px solid var(--kappel);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--kappel) 0%, var(--selective-yellow) 100%);
  transition: var(--transition-2);
}
.benefit-card:hover::before {
  left: 0;
}
.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-3);
}
.benefit-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--kappel) 0%, var(--radical-green) 100%);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: var(--transition-2);
}
.benefit-icon ion-icon {
  font-size: 3.5rem;
  color: var(--white);
}
.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}
.benefit-title {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  color: var(--eerie-black-1);
  margin-bottom: 15px;
}
.benefit-text {
  color: var(--gray-web);
  line-height: 1.7;
  font-size: var(--fs-6);
}

/* CTA Button */
.benefits-cta {
  text-align: center;
}
.benefits-cta .btn {
  margin-inline: auto;
  padding: 18px 40px;
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
}


/** Financial Goals Section (from homeowner.html) */
.resource-hub-section { padding-block: 80px; }
.section-heading { text-align: center; margin-bottom: 50px; }
.section-heading .h2 { margin-bottom: 10px; }

/* Interactive Financial Goals Styling */
.financial-goals { 
  padding-block: 100px;
}

.financial-goals-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: start;
}

/* Left Column Styles */
.goals-left-column {
  order: 1;
}

.goals-header {
  text-align: center;
  margin-bottom: 40px;
}

.goals-header .h2 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  color: var(--eerie-black-1);
  margin-bottom: 15px;
  line-height: 1.3;
  max-width: 100%;
}

.goals-header .span {
  color: var(--kappel);
}

.goals-subheadline {
  font-size: var(--fs-5);
  color: var(--gray-web);
  line-height: 1.6;
}

/* Goal Buttons Grid - Flexbox Layout for Better Spacing */
.goals-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
  align-items: center;
  width: 100%;
}

/* Button rows */
.goals-button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Row 1: 2 buttons */
.goals-button-row.row-1 {
  justify-content: center;
}

/* Row 2: 3 buttons */
.goals-button-row.row-2 {
  justify-content: center;
}

/* Row 3: 2 buttons */
.goals-button-row.row-3 {
  justify-content: center;
}

.goal-button {
  background-color: var(--white);
  color: var(--eerie-black-1);
  font-family: var(--ff-poppins);
  font-size: 1.4rem;
  font-weight: 500;
  padding: 15px 25px;
  border: 1px solid var(--platinum);
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-1);
  text-align: center;
  box-shadow: var(--shadow-1);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: fit-content;
  justify-self: center;
  min-width: 120px;
  margin: 0;
}

.goal-button:hover {
  border-color: var(--kappel);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.goal-button.active {
  background-color: hsla(170, 75%, 41%, 0.05);
  border-color: var(--kappel);
  color: var(--eerie-black-1);
  box-shadow: var(--shadow-2);
}

.goal-button span {
  display: block;
  width: 100%;
}

/* Dynamic Content Box */
.goals-dynamic-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-10);
  border-left: 4px solid var(--kappel);
  box-shadow: var(--shadow-1);
}

.dynamic-title {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-4);
  font-weight: 600;
  color: var(--eerie-black-1);
  margin-bottom: 15px;
}

.dynamic-description {
  font-size: var(--fs-6);
  color: var(--gray-web);
  line-height: 1.7;
}

/* Right Column Styles */
.goals-right-column {
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.goals-image-container {
  position: relative;
  width: 800px;
  height: 800px;
  border-radius: 80%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /*border: 4px solid var(--kappel);*/
  box-shadow: var(--shadow-2);
}

.goal-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.goal-image.active {
  opacity: 1;
  visibility: visible;
}

/*-----------------------------------*\
 * #8. SUB-PAGE SPECIFIC STYLES
\*-----------------------------------*/

/** Estimate Page (estimate.html) */
.estimate-section { padding-block: 20px 60px; background-color: var(--isabelline); }
.estimate-section .h1 { text-align: center; }
.calculator-wrapper { max-width: 800px; margin-inline: auto; background-color: var(--white); padding: 30px 40px; border-radius: var(--radius-10); box-shadow: var(--shadow-3); margin-block-start: 40px; overflow: hidden; }
.stepper-wrapper { position: relative; width: 100%; margin-bottom: 50px; }
#progress-line, .progress-bar-line-background { position: absolute; top: 17px; left: 0; height: 4px; width: 100%; border-radius: var(--radius-pill); }
.progress-bar-line-background { background-color: var(--platinum); z-index: 0; }
#progress-line { background-color: var(--kappel); width: 0%; z-index: 1; transition: width 0.5s ease; }
.stepper-container { position: relative; display: flex; justify-content: space-between; z-index: 2; }
.stepper-item { display: flex; flex-direction: column; align-items: center; text-align: center; width: 65px; }
.stepper-icon { width: 35px; height: 35px; background-color: var(--white); border: 3px solid var(--platinum); border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: var(--platinum); transition: all 0.4s ease; }
.stepper-label { font-size: 1.3rem; color: var(--gray-web); font-weight: 500; margin-top: 10px; }
.stepper-item.active .stepper-icon { color: var(--white); background-color: var(--kappel); border-color: var(--kappel); transform: scale(1.1); }
.stepper-item.active .stepper-label { color: var(--kappel); font-weight: 600; }
.form-section { display: none; }
.form-section.active { display: block; animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.form-title { font-family: var(--ff-league_spartan); font-size: var(--fs-2); font-weight: 700; text-align: center; color: var(--eerie-black-1); margin-bottom: 10px; }
.form-subtitle { font-size: 1.6rem; text-align: center; color: var(--gray-web); margin-bottom: 30px; max-width: 60ch; margin-inline: auto; }
.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.btn-back, .btn-restart { color: var(--gray-web); font-size: 1.4rem; padding: 10px; }
.btn-restart:hover, .btn-back:hover { color: var(--radical-red); }
.form-submit-btn { margin-left: auto; }
.form-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.input-wrapper { position: relative; margin-bottom: 25px; }
.input-wrapper .input-field { background-color: hsl(210, 33%, 97%); color: var(--eerie-black-1); font-size: var(--fs-5); padding: 15px 20px 15px 50px; border: 1px solid var(--platinum); border-radius: var(--radius-5); width: 100%; }
.input-field.input-error { border-color: var(--radical-red); }
.input-wrapper .input-label { position: absolute; left: 50px; top: 15px; font-size: var(--fs-5); color: var(--gray-web); pointer-events: none; transition: 0.2s ease; }
.input-wrapper .input-field:focus + .input-label, .input-wrapper .input-field:not(:placeholder-shown) + .input-label { top: -8px; left: 45px; font-size: 1.2rem; background-color: var(--white); padding: 0 5px; color: var(--kappel); }
.input-wrapper ion-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--light-gray); }
.radio-tile-group { display: grid; grid-template-columns: 1fr; gap: 15px; }
.radio-tile-group input[type="radio"] { display: none; }
.radio-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px 15px; border: 2px solid var(--platinum); border-radius: var(--radius-10); cursor: pointer; transition: 0.2s ease; height: 100%; }
.radio-tile ion-icon { font-size: 2.8rem; color: var(--gray-web); margin-bottom: 10px; }
.radio-tile .tile-text { font-family: var(--ff-league_spartan); font-size: 1.6rem; font-weight: 600; text-align: center; }
.radio-tile-group input:checked + .radio-tile { border-color: var(--kappel); background-color: hsla(170, 75%, 41%, 0.05); }
.slider-wrapper { margin-top: 20px; }
.slider-label { display: flex; justify-content: space-between; font-family: var(--ff-league_spartan); font-size: 1.4rem; }
.consent-box { height: 120px; overflow-y: auto; background-color: #f8f9fa; border: 1px solid var(--platinum); padding: 15px; margin-block: 20px; font-size: 1.2rem; }
.consent-check { display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-top: 15px; cursor: pointer; }
.final-screen-icon { text-align: center; margin-bottom: 20px; }
.final-screen-icon ion-icon { font-size: 6rem; color: var(--kappel); }
#estimate-result { margin-bottom: 30px; padding: 25px; border-radius: var(--radius-10); border: 1px solid; }
#estimate-result.success { border-color: var(--kappel); background-color: hsla(170, 75%, 41%, 0.05); }
#estimate-result.error { border-color: var(--radical-red); background-color: hsla(351, 83%, 61%, 0.05); }
.result-title { font-family: var(--ff-league_spartan); font-size: var(--fs-4); font-weight: 700; text-align: left; }
#estimate-result.success .result-title { color: var(--kappel); }
#estimate-result.error .result-title { color: var(--radical-red); }
#estimate-result ul { list-style: none; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--platinum); }
#estimate-result li { display: flex; justify-content: space-between; padding: 8px 0; }
#estimate-result strong { font-family: var(--ff-league_spartan); color: var(--eerie-black-1); font-size: 1.8rem; }
.repayment-card { border: 1px solid var(--platinum); border-radius: var(--radius-10); padding: 25px; }
.repayment-details { margin-top: 25px; padding-top: 25px; border-top: 1px solid var(--platinum); }
.repayment-details div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.repayment-details strong { font-family: var(--ff-league_spartan); font-size: 2rem; }
.appreciation-slider { width: 100%; margin-top: 15px; }
.disclaimer-box { border: 1px solid var(--platinum); border-radius: var(--radius-5); background-color: #f8f9fa; padding: 20px; text-align: left; margin-top: 30px; }
.disclaimer-box p, .disclaimer-box li { font-size: 1.3rem; color: var(--gray-web); margin-bottom: 10px; }
.disclaimer-box ul { list-style-position: inside; padding-left: 5px; }

/** About Pages (whoweare.html, commitments.html, about.html) */
.about-section, .concept-section { padding-block: 100px; }
.about-section:nth-child(odd), .concept-section:nth-child(odd) { background-color: var(--isabelline); }
.about-section .container, .concept-section .container { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; max-width: 1100px; }
.about-content .h2, .concept-content .h2 { font-size: var(--fs-2); margin-bottom: 20px; }
.about-banner img, .concept-banner img { width: 100%; height: auto; border-radius: var(--radius-10); box-shadow: var(--shadow-3); }
.concept-content .key-takeaways { list-style: none; margin-top: 30px; }
.concept-content .key-takeaways li { position: relative; padding-left: 25px; margin-bottom: 10px; font-size: 1.6rem; }
.concept-content .key-takeaways li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--kappel); }

.ceo-letter-section { padding-block: 80px; }
.ceo-letter-section .container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; max-width: 1000px; }
.ceo-photo img { width: 100%; max-width: 300px; height: auto; border-radius: var(--radius-10); margin: 0 auto; box-shadow: var(--shadow-3); object-fit: cover; }
.ceo-signature { font-family: 'Dancing Script', cursive; font-size: 2.5rem; color: var(--eerie-black-1); margin-top: 15px; }

.pillars-section { padding-block: 80px; background-color: var(--isabelline); }
.pillars-tabs { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 50px; }
.pillar-tab-btn { background-color: var(--white); color: var(--gray-web); padding: 20px; border-radius: var(--radius-10); box-shadow: var(--shadow-1); font-family: var(--ff-league_spartan); font-size: 1.8rem; font-weight: 600; transition: var(--transition-1); border: 2px solid transparent; }
.pillar-tab-btn:hover { border-color: var(--kappel); color: var(--kappel); }
.pillar-tab-btn.active { background-color: var(--kappel); color: var(--white); box-shadow: var(--shadow-2); border-color: var(--kappel); }
.pillar-content { display: none; grid-template-columns: 1fr; gap: 50px; align-items: center; animation: fadeIn 0.6s ease-in-out; }
.pillar-content.active { display: grid; }

.team-section { padding-block: 80px; background-color: var(--isabelline); text-align: center; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 50px; }
.team-member-card { text-align: center; }
.team-member-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; box-shadow: var(--shadow-2); }
.team-member-card .member-name { font-family: var(--ff-league_spartan); font-size: var(--fs-4); font-weight: 600; }
.team-member-card .member-title { color: var(--kappel); font-size: 1.5rem; margin-bottom: 10px; }

/** Products Page (products.html) */
.solution-section.homeowner-section { background-color: var(--eerie-black-1); color: var(--white); }
.homeowner-section .h2, .homeowner-section .section-text { color: var(--white); }
.solution-intro { text-align: center; max-width: 900px; margin-inline: auto; margin-bottom: 60px; }
.solution-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.solution-card { background: var(--white); border-radius: var(--radius-10); box-shadow: var(--shadow-2); padding: 40px; display: flex; flex-direction: column; height: 100%; border-top: 5px solid; transition: var(--transition-2); }
.solution-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-3); }
.solution-card.series-a { border-color: var(--kappel); }
.solution-card.series-b { border-color: var(--selective-yellow); }
.solution-card .card-subtitle { font-family: var(--ff-league_spartan); font-weight: 700; color: var(--kappel); text-transform: uppercase; letter-spacing: 1px; }
.solution-card .card-title { font-size: var(--fs-3); margin-block: 10px 15px; }
.solution-card .card-text { margin-bottom: 20px; flex-grow: 1; }
.solution-card ul { list-style: none; margin-bottom: 30px; }
.solution-card ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.solution-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--kappel); }
.homeowner-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.use-case-card { text-align: center; }
.use-case-card .card-icon { font-size: 4rem; color: var(--kappel); margin-bottom: 15px; }
.use-case-card .h3 { font-family: var(--ff-league_spartan); font-size: var(--fs-4); color: var(--white); }

/** Resources & News Pages (resources.html, news.html) */
.resource-hub-section, .resource-section { padding-block: 80px; }
.category-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; margin-bottom: 80px; }
.category-card { background: var(--white); padding: 25px 20px; border-radius: var(--radius-10); box-shadow: var(--shadow-1); transition: var(--transition-2); }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); color: var(--kappel); }
.category-card ion-icon { font-size: 3rem; margin-bottom: 10px; color: var(--kappel); }
.category-card .h3 { font-size: var(--fs-5); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.article-card { background: var(--white); border-radius: var(--radius-10); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition-2); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-3); }
.article-card .card-banner { width: 100%; height: 200px; overflow: hidden; }
.article-card .card-banner img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.article-card .card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 1.3rem; color: var(--gray-web); margin-bottom: 15px; }
.article-card .card-category { color: var(--kappel); font-weight: 600; }
.article-card .card-title { font-size: var(--fs-4); line-height: 1.4; margin-bottom: 15px; flex-grow: 1; }
.article-card .card-title a:hover { color: var(--kappel); }

/** Reach Us Page (reach-us.html) */
.reach-us-hero { padding: 200px 0 120px; background-image: linear-gradient(to top, hsla(170, 75%, 20%, 0.8), hsla(170, 75%, 20%, 0.9)), url('../assets/images/about-1.jpg'); background-size: cover; background-position: center; text-align: center; color: var(--white); }
.reach-us-hero .h1 { color: var(--white); }
.reach-us-hero .section-text { max-width: 70ch; margin: 20px auto 0; color: var(--platinum); opacity: 0.9; }
.contact-options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.contact-card { background-color: var(--white); border-radius: var(--radius-10); overflow: hidden; box-shadow: var(--shadow-2); transition: var(--transition-2); height: 100%; display: flex; flex-direction: column; }
.contact-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-3); }
.contact-card .card-icon { background-color: var(--kappel); color: var(--white); font-size: 3rem; padding: 30px; display: flex; align-items: center; justify-content: center; }
.contact-card .card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.contact-card .card-content .h3 { font-size: var(--fs-3); margin-bottom: 15px; color: var(--eerie-black-1); }
.contact-card .card-content .card-text { margin-bottom: 30px; flex-grow: 1; }
.contact-details-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.contact-info-list ion-icon { font-size: 2.8rem; color: var(--kappel); flex-shrink: 0; }
.contact-info-list .info-title { font-family: var(--ff-league_spartan); font-weight: 600; font-size: var(--fs-5); color: var(--eerie-black-1); }
.contact-info-list a:hover { color: var(--kappel); }
.contact-map iframe { width: 100%; height: 450px; border: 0; border-radius: var(--radius-10); }


/*-----------------------------------*\
 * #9. MODALS & OVERLAYS
\*-----------------------------------*/

/** Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--eerie-black-2); color: var(--platinum); padding: 20px; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 15px; z-index: 1000; box-shadow: 0 -5px 15px hsla(0, 0%, 0%, 0.1); border-top: 1px solid var(--eerie-black-1); }
.cookie-banner.active { display: flex; }
.cookie-text { font-size: 1.4rem; line-height: 1.6; max-width: 90ch; }
.cookie-link { color: var(--kappel); text-decoration: underline; display: inline; }
.cookie-link:hover { text-decoration: none; }
.cookie-banner .btn { padding: 8px 25px; font-size: 1.4rem; flex-shrink: 0; }

/** Generic Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: hsla(0, 0%, 0%, 0.7); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 15px; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-content { background-color: var(--white); border-radius: var(--radius-10); box-shadow: var(--shadow-3); width: 100%; max-width: 800px; max-height: 85vh; display: flex; flex-direction: column; overflow: hidden; animation: slideInUp 0.4s ease; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 25px; border-bottom: 1px solid var(--platinum); flex-shrink: 0; }
.modal-title { font-family: var(--ff-league_spartan); font-size: var(--fs-3); color: var(--eerie-black-1); }
.modal-close { font-size: 3rem; font-weight: 300; color: var(--gray-web); cursor: pointer; line-height: 1; transition: var(--transition-1); }
.modal-close:hover { color: var(--radical-red); }
.modal-body { padding: 25px; overflow-y: auto; font-size: 1.5rem; }
@keyframes slideInUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ====================================================== */
/* ===== DUPLICATE COOKIE BANNER CSS REMOVED ===== */
/* ====================================================== */


/** Generic Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.7);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-3);
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid var(--platinum);
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-3);
  color: var(--eerie-black-1);
}

.modal-close {
  font-size: 3rem;
  font-weight: 300;
  color: var(--gray-web);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-1);
}
.modal-close:hover { color: var(--radical-red); }

.modal-body {
  padding: 25px;
  overflow-y: auto;
  font-size: 1.5rem;
}

.modal-body h4 {
  font-family: var(--ff-league_spartan);
  font-size: var(--fs-5);
  font-weight: 600;
  color: var(--kappel);
  margin-top: 20px;
  margin-bottom: 10px;
}

/* --- Mobile styles for banner --- */
@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 20px 30px;
  }
  .cookie-text {
    margin-right: 20px;
  }
}

/*-----------------------------------*\
 * #10. LANDSCAPE MODE RESTRICTION & MEDIA QUERIES
\*-----------------------------------*/

/** Disable landscape mode on mobile phones */
@media (max-width: 767px) and (orientation: landscape) {
  body {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
  
  body::before {
    content: "Please rotate your device to portrait mode for the best viewing experience.";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--eerie-black-1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--ff-league_spartan);
    font-size: 2rem;
    font-weight: 600;
    z-index: 9999;
    padding: 20px;
    line-height: 1.4;
  }
}

/*-----------------------------------*\
 * #RESPONSIVE MEDIA QUERIES
\*-----------------------------------*/

/** Mobile-First Enhancements (Added) */
@media (max-width: 767px) {
  :root {
    --fs-1: 4.0rem; /* Smaller H1 on mobile */
    --fs-2: 3.2rem; /* Smaller H2 on mobile */
    --section-padding: 75px; /* Reduced section padding */
  }

  .hero-content .section-title { font-size: 4rem; }
  .calculator-wrapper { padding: 20px; }
  .stepper-label { font-size: 1.1rem; }
  .problem-section .container { grid-template-columns: 1fr; }
  
  /* Financial Goals Mobile */
  .goals-header .h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
  .goals-image-container { width: 250px; height: 250px; }
  .goals-button-row { gap: 15px; flex-wrap: wrap; }
  
  /* Fix hero section behind fixed header on mobile */
  .hero-slideshow {
    padding-top: 80px; /* Add padding to account for fixed header */
  }
  
  /* Fix other sections behind fixed header on mobile */
  .section:first-of-type {
    padding-top: 100px;
  }
}

/** Responsive for screens larger than 575px */
@media (min-width: 575px) {
  .container { max-width: 520px; }
  .grid-list { grid-template-columns: 1fr 1fr; }
  .radio-tile-group { grid-template-columns: 1fr 1fr; }
  .newsletter-form { 
    display: flex; 
    align-items: center; 
    gap: 15px;
    flex-direction: row;
    max-width: 100%; /* Prevent overflow */
  }
  .newsletter-form .input-field { 
    margin-block-end: 0;
    flex: 1 1 auto; /* Allow shrinking */
    min-width: 0; /* Remove fixed min-width */
    width: auto; /* Reset width for flex */
  }
  .newsletter-form .btn { 
    width: auto; /* Reset width for flexbox */
    min-width: max-content;
    flex-shrink: 0;
    white-space: nowrap;
  }
}

/** Responsive for screens larger than 768px */
@media (min-width: 768px) {
  .container { max-width: 720px; }
  .header .logo img { width: 162px; }
  .header .btn { display: flex; padding: 10px 30px; margin-inline: 0; }
  /* Ensure header actions stay on same line */
  .header-actions { white-space: nowrap; }
  .cookie-banner { flex-direction: row; justify-content: space-between; text-align: left; padding: 20px 30px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .how-it-works-grid { grid-template-columns: repeat(2, 1fr); }
  .how-it-works-item { height: 300px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-cards-section .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .category-nav { grid-template-columns: repeat(4, 1fr); }
  /* Tablet styles for whyhestia section */
  .whyhestia .container {
    gap: 50px;
    max-width: 960px;
  }
  .whyhestia-interactive-slides {
    min-height: 380px;
  }
  .whyhestia-slide {
    min-height: 300px;
    padding: 40px 30px;
  }
  .whyhestia-content {
    padding: 30px 0;
  }
  .whyhestia .section-title {
    font-size: var(--fs-3);
  }
  .whyhestia .section-subtitle {
    font-size: var(--fs-6);
  }
  .whyhestia-item .span {
    font-size: var(--fs-6);
  }
  /* Interactive Financial Goals - Desktop */
  .financial-goals-content { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
  .goals-header { text-align: center; }
  .goals-header .h2 { font-size: var(--fs-2); }
  .goals-buttons-grid { gap: 30px; max-width: 600px; }
  .goals-button-row { gap: 30px; }
  .goals-image-container { width: 350px; height: 350px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .ceo-letter-section .container { grid-template-columns: 300px 1fr; }
  .pillars-tabs { grid-template-columns: repeat(3, 1fr); }
}

/** Responsive for screens larger than 992px */
@media (min-width: 992px) {
  .container { max-width: 960px; }
  .grid-list { grid-template-columns: repeat(3, 1fr); }
  .problem-section .container { grid-template-columns: 1fr 0.8fr; }
  .feature .grid-list { grid-template-columns: repeat(3, 1fr); }
  .how-it-works-grid { grid-template-columns: repeat(4, 1fr); }
  .how-it-works-item { height: 320px; }
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-cards-section .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .whyhestia .container {
    grid-template-columns: 1fr 1fr; 
    align-items: center; 
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .whyhestia-interactive-slides { 
    order: 1;
    width: 100%;
    max-width: 100%;
    min-height: 450px;
  }
  .whyhestia-content {
    order: 2;
    width: 100%;
    max-width: 100%;
    padding: 40px 0;
  }
  .whyhestia-slide {
    min-height: 350px;
    padding: 50px 40px;
  }
  .whyhestia-slide .slide-title {
    font-size: var(--fs-2);
  }
  .about-section .container, .concept-section .container { grid-template-columns: 1fr 1fr; }
  .about-section:nth-child(even) .about-banner, .concept-section:nth-child(even) .concept-banner { grid-column: 1 / 2; grid-row: 1 / 2; }
  .pillar-content { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .pillar-content:nth-child(odd) .pillar-content-banner { order: 2; }
  .solution-grid { grid-template-columns: 1fr 1fr; }
  .homeowner-grid { grid-template-columns: repeat(4, 1fr); }
  .article-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-details-grid { grid-template-columns: 1fr 1fr; }
  .case-study-card { grid-template-columns: 1fr 1fr; }
  .case-study-card:nth-child(even) img { grid-column: 2 / 3; grid-row: 1 / 2; }
}

/** Responsive for screens larger than 1200px (Desktop) */
@media (min-width: 1200px) {
  :root {
    --fs-1: 6.5rem;
    --fs-2: 4.5rem;
    --section-padding: 120px;
  }

  .container { max-width: 1185px; }
  .shape { display: block; }
  
  /* Desktop Header & Navigation */
  .navbar .wrapper { display: none; }
  .overlay { display: none; }
  .header-action-btn[data-nav-toggler] { display: none !important; } /* Hide hamburger on desktop */
  .navbar { 
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    z-index: auto !important;
    transition: none !important;
    left: auto !important;
    top: auto !important;
  }
  .navbar.active { 
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    z-index: auto !important;
    transition: none !important;
    left: auto !important;
    top: auto !important;
  }
  .navbar-list { display: flex; align-items: center; gap: 40px; padding: 0; }
  .navbar-item:not(:last-child) { border-block-end: none; }
  .navbar-link { padding-block: 20px; font-weight: 500; }
  .header .btn { margin-inline: 0; }
  /* --- FIX: Desktop Header Alignment & Height --- */
  .header .container {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Logo | Nav (stretches) | Button Group */
    align-items: center;
  }

  .navbar {
    padding-inline: 40px; /* Add space around the navigation */
  }

  .navbar-list {
    justify-content: flex-end; /* Pushes nav items to the right */
  }

  .navbar-link {
    padding-block: 15px; /* --- FIX: Reduced height of the navbar */
  }

  /* Desktop Dropdown Menu */
  .navbar-item { position: relative; }
  .navbar-link i { font-size: 1rem; margin-left: 8px; transition: var(--transition-1); }
  .navbar-item:hover .navbar-link i { transform: rotate(180deg); }
  .dropdown-menu { display: flex; position: absolute; top: 120%; left: 50%; transform: translateX(-50%); width: 500px; padding: 20px; background-color: var(--white); border-radius: var(--radius-10); border: 1px solid var(--platinum); box-shadow: var(--shadow-3); z-index: 10; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, top 0.3s ease, visibility 0.3s; }
  .navbar-item:hover > .dropdown-menu { top: 100%; visibility: visible; opacity: 1; }
  .dropdown-submenu { width: 50%; padding: 0 15px; }
  .dropdown-submenu:not(:first-child) { border-left: 1px solid var(--platinum); }
  .dropdown-submenu h5 { font-family: var(--ff-league_spartan); font-size: var(--fs-5); font-weight: var(--fw-600); color: var(--kappel); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--platinum); }
  .dropdown-submenu li a { display: block; padding: 10px 15px; margin: 0 -15px; border-radius: var(--radius-5); font-size: var(--fs-6); color: var(--gray-web); transition: var(--transition-1); }
  .dropdown-submenu li a:hover { color: var(--kappel); background-color: hsla(170, 75%, 41%, 0.05); }

  /* Other Desktop Adjustments */
  .hero-slideshow .btn, .problem-section .btn { margin-inline: 0; }
  .whyhestia-banner .img-holder { margin-inline: 0; }
  .footer .grid-list { grid-template-columns: 1fr 0.6fr 0.6fr 1.2fr; }
}

/*-----------------------------------*\
 * #11. MOBILE REFINEMENTS & FIXES
\*-----------------------------------*/

/* ====================================================== */
/* ===== ADD THIS NEW SECTION TO THE END OF YOUR FILE ===== */
/* ====================================================== */

/*-----------------------------------*\
 * #11. MOBILE REFINEMENTS & FIXES
\*-----------------------------------*/

/* --- FIX: Center Hero Button on Mobile --- */
.hero-content .btn {
  margin-inline: auto;
}

/* --- FIX: Styles for Mobile Navigation Accordion --- */
@media (max-width: 1199px) {
  /* This targets the main link inside a dropdown item */
  .navbar-item.has-dropdown > .navbar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* This is the actual dropdown menu */
  .navbar-item .dropdown-menu {
    display: none; /* Hide by default */
    background-color: hsla(170, 75%, 41%, 0.05);
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: var(--radius-5);
  }

  /* When JS adds the 'active' class, the menu becomes visible */
  .navbar-item.has-dropdown.active > .dropdown-menu {
    display: block;
  }
  
  /* Styles for the sub-sections within the mobile dropdown */
  .navbar-item .dropdown-submenu {
    width: 100%;
    padding: 0;
  }

  .navbar-item .dropdown-submenu:not(:first-child) {
    margin-top: 10px; /* Add space between submenus */
  }

  .navbar-item .dropdown-submenu h5 {
    font-size: 1.3rem;
    color: var(--kappel);
    padding-bottom: 5px;
    margin-bottom: 5px;
    text-transform: uppercase;
  }

  .navbar-item .dropdown-submenu li a {
    padding: 8px 10px;
    font-size: var(--fs-6);
  }
}

/* --- General Mobile Layout Enhancements --- */
@media (max-width: 767px) {
  .problem-section .container {
    grid-template-columns: 1fr;
  }

  .feature .grid-list {
    grid-template-columns: 1fr;
  }
  
  /* Fix footer overflow on mobile */
  .footer .grid-list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-list {
    max-width: 100%;
  }
  
  /* Ensure newsletter form doesn't overflow */
  .footer-list:last-child {
    max-width: 100%;
    overflow-x: hidden;
  }
}


/*-----------------------------------*\
 * #COMMITMENTS PAGE STYLES
\*-----------------------------------*/

.commitment-hero {
  padding: 180px 0 100px;
  background-image: linear-gradient(to top, hsla(170, 75%, 20%, 0.8), hsla(170, 75%, 20%, 0.7)), url('/assets/images/11229.jpeg');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
}
.commitment-hero .section-subtitle { color: var(--white); opacity: 0.9; }
.commitment-hero .h1 { color: var(--white); text-shadow: 0 2px 5px hsla(0, 0%, 0%, 0.3); }

.ceo-letter-section { padding-block: 100px; }
.ceo-letter-section .container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; max-width: 1000px; }
.ceo-photo img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: var(--shadow-3); }
.ceo-letter .h2 { margin-bottom: 20px; }
.ceo-signature { font-family: var(--ff-league_spartan); font-size: 1.8rem; font-weight: 600; color: var(--eerie-black-1); margin-top: 20px; }
.ceo-signature span { font-weight: 400; color: var(--gray-web); font-size: 1.5rem; }

.impact-metrics-section { padding-block: 80px; background-color: var(--isabelline); }
.impact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; text-align: center; }
.impact-card .card-icon { font-size: 4rem; color: var(--kappel); margin-bottom: 10px; }
.impact-number { font-family: var(--ff-league_spartan); font-size: 5rem; font-weight: 700; color: var(--eerie-black-1); }
.impact-label { font-size: 1.6rem; font-weight: 500; color: var(--gray-web); }

.pillars-section { padding-block: 100px; }
.pillars-section .section-heading { text-align: center; margin-bottom: 60px; }
.pillars-tabs { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 50px; }
.pillar-tab-btn { background-color: var(--white); border: 1px solid var(--platinum); color: var(--gray-web); padding: 20px; border-radius: var(--radius-pill); font-family: var(--ff-league_spartan); font-size: 1.8rem; font-weight: 600; transition: var(--transition-1); }
.pillar-tab-btn:hover { border-color: var(--kappel); color: var(--kappel); }
.pillar-tab-btn.active { background-color: var(--kappel); color: var(--white); border-color: var(--kappel); }

.pillar-content { display: none; grid-template-columns: 1fr; gap: 50px; align-items: stretch; }
.pillar-content.active { display: grid; animation: fadeIn 0.6s ease-in-out; }
.pillar-content-banner { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  height: 75%; 
  min-height: 300px; 
}
.pillar-content-banner img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: var(--radius-10); 
  box-shadow: var(--shadow-2); 
}
.pillar-content-details ul { list-style: none; margin-top: 20px; }
.pillar-content-details ul li { position: relative; padding-left: 25px; margin-bottom: 10px; }
.pillar-content-details ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; color: var(--kappel); }

.final-cta-section { padding-block: 100px; text-align: center; background-color: var(--isabelline); }
.final-cta-section .btn { margin-inline: auto; }

/* Scroll Reveal Animation */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .ceo-letter-section .container { grid-template-columns: 200px 1fr; }
  .impact-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-tabs { grid-template-columns: repeat(3, 1fr); }
  .pillar-content { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .pillar-content:nth-child(even) .pillar-content-banner { order: 2; }
}



/* ====================================================== */
/* ===== FIX FOR EQUAL HEIGHT FEATURE CARDS ===== */
/* ====================================================== */

.feature .grid-list {
  align-items: stretch; /* This tells all grid items to stretch to the same height */
}

.feature-content,
.feature-card {
  height: 100%; /* Ensure the cards themselves fill the stretched grid area */
}

/* Use flexbox to help the text content card organize itself within the new height */
.feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centers the content inside */
}

/* ====================================================== */
/* ===== FIX FOR TESTIMONIAL PROFILE IMAGES ===== */
/* ====================================================== */

/**
 * Targets the image inside the circular container.
 */
.testimonials-item .profile .profile-image img {
  width: 100%;      /* Make the image's width match the container's width */
  height: 100%;     /* Make the image's height match the container's height */
  object-fit: cover;  /* This is the key property: it zooms and crops the image to fill the space without stretching it. */
}


/*-----------------------------------*\
 * #11. DEFINITIVE MOBILE NAVIGATION FIXES
\*-----------------------------------*/

@media (max-width: 1199px) {

  /** 
   * FIX 1: Keep Header Fixed at the Top
   * This forces the header to stay visible at the top of the screen.
   */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    animation: none; /* Disable the slide-in animation on mobile */
    background-color: var(--white); /* Ensure a solid background */
    z-index: 1001; /* Ensure it's above navbar content */
  }

  /** 
   * FIX 2: Solid White Background & Full Height
   * This ensures the menu panel covers the page content.
   */
  .navbar.active {
    background-color: var(--white);
    height: 100vh;
    overflow-y: auto;
  }

  /**
   * FIX 3: Correct Dropdown Link Layout
   * This forces the text to the left and the icon to the right.
   */
  .navbar-item.has-dropdown > .navbar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .navbar-item.has-dropdown > .navbar-link i {
    margin-left: 15px;
    pointer-events: none;
  }

  /**
   * FIX 4: Styling the Dropdown Menu Itself
   */
  .navbar-item .dropdown-menu {
    display: none;
    background-color: hsla(170, 75%, 41%, 0.05);
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: var(--radius-5);
  }

  .navbar-item.has-dropdown.active > .dropdown-menu {
    display: block;
  }

  .navbar-item .dropdown-submenu { width: 100%; padding: 0; }
  .navbar-item .dropdown-submenu:not(:first-child) { margin-top: 10px; }
  .navbar-item .dropdown-submenu h5 { color: var(--kappel); }
  .navbar-item .dropdown-submenu li a { padding: 8px 10px; }
}

/* --- Enhanced Mobile Header Layout --- */
@media (max-width: 767px) {
  .header .btn.has-before {
    display: none !important; /* Hide the calculator button on mobile */
  }
  
  .header-actions {
    flex-shrink: 0; /* Prevent the actions from shrinking */
  }
  
  /* Goals grid displays 2 columns on mobile */
  .goals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Tablet Header Layout (768px - 1199px) --- */
@media (min-width: 768px) and (max-width: 1199px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping */
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Keep items on same line */
  }
  
  .header .btn {
    font-size: 1.4rem; /* Slightly smaller text on tablet */
    padding: 8px 20px; /* Smaller padding */
  }
}

/* =============================== */
/* Why Hestia layout (MN index)    */
/* =============================== */
/* Keep container as a single column wrapper; the inner banner controls columns */
.whyhestia .container { display: block; }

/* Center the heading across full width (override section-specific left-align) */
.whyhestia-heading { text-align: center; margin-bottom: 30px; width: 100%; display: block; }
.whyhestia-heading .section-subtitle,
.whyhestia-heading .section-title { text-align: center !important; margin-left: auto; margin-right: auto; }
.whyhestia-heading .section-title { font-size: var(--fs-2) !important; }

/* Two-column banner: image left, text right (stacks on mobile) */
.whyhestia-banner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 992px) {
  .whyhestia-banner { grid-template-columns: 1fr 1fr; }
  .whyhestia-banner-img { order: 1; }
  .whyhestia-content { order: 2; }
}


/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 20px;
}

.lang-link {
  color: var(--gray-web);
  font-weight: 500;
  font-size: 1.4rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.lang-link:hover {
  color: var(--kappel);
}

.lang-link.active {
  color: var(--kappel);
  font-weight: 700;
}

.lang-separator {
  color: var(--platinum);
  font-size: 1.4rem;
}

/* Navigation Menu Spacing Fixes - Added to prevent cramping */
@media (min-width: 1200px) {
  /* Reduce gap between navigation items to fit all items */
  .navbar-list {
    display: flex;
    align-items: center;
    gap: 20px !important; /* Reduced from 40px */
    padding: 0;
    white-space: nowrap;
  }

  /* Ensure navbar items don't wrap */
  .navbar-item {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Adjust navbar link padding and font size */
  .navbar-link {
    padding: 15px 10px !important; /* Added horizontal padding */
    font-size: 1.35rem !important; /* Slightly smaller font */
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }

  /* Language switcher adjustments */
  .navbar-item .language-switcher {
    margin-left: 10px;
  }

  .language-switcher .lang-link {
    font-size: 1.25rem !important;
  }

  /* Make header container more flexible */
  .header .container {
    max-width: 1280px; /* Increase max width for more space */
  }

  /* Adjust dropdown icon size */
  .navbar-link i {
    font-size: 0.85rem !important;
    margin-left: 4px;
  }

  /* Make the button slightly smaller to save space */
  .header-actions .btn {
    font-size: 1.35rem;
    padding: 12px 18px;
  }

  .header-actions .btn .span {
    font-size: 1.35rem;
  }
}

/* For screens between 1200px and 1400px */
@media (min-width: 1200px) and (max-width: 1400px) {
  .navbar-list {
    gap: 15px !important;
  }
  
  .navbar-link {
    font-size: 1.3rem !important;
    padding: 15px 8px !important;
  }
}

/* For very large screens */
@media (min-width: 1400px) {
  .header .container {
    max-width: 1350px;
  }
  
  .navbar-list {
    gap: 30px !important;
  }
  
  .navbar-link {
    font-size: 1.4rem !important;
    padding: 15px 12px !important;
  }
}
