/* =========================
   Clean Minimal Shared CSS
   ========================= */

:root {
  --font-main: 'Lato', sans-serif;
  --color-primary: #FF4B1F;
  --color-primary-light: #ff7e5f;
  --color-primary-dark: #d63c13;
  --color-complementary: #192a56;
  --color-text-on-complementary: #fff;
  --color-background: #fff;
  --color-text: #222;
  --color-text-light: #444;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* 1. Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  font-family: var(--font-main);
  margin: 0; padding: 0;
  width: 100vw; max-width: 100vw;
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden !important;
  
}
img { max-width: 100%; height: auto; display: block; }

/* 2. Typography */
h1, .h1-heading { font-size: clamp(5rem, 10vw, 4.5rem); margin: 0.7em 0 0.4em 0; }
h2, .h2-heading { font-size: clamp(1.5rem, 4vw, 2.5rem); margin: 0.6em 0 0.3em 0; }
h3, .h3-heading { font-size: clamp(1.2rem, 3vw, 2rem); margin: 0.5em 0 0.2em 0; }
h4, .h4-heading { font-size: clamp(1rem, 2.5vw, 1.5rem); margin: 0.4em 0 0.2em 0; }
p, .paragraph-lg, .paragraph-xl, .paragraph-sm, .paragraph-xxl {
  font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.6; margin: 0 0 1em 0;
}
ul, ol { margin: 0 0 1em 1.5em; }
li { margin-bottom: 0.5em; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { text-decoration: underline; color: #d63c13; }
.detail-text-bold { font-weight: 700; }
.utility-text-justify { text-align: justify; }

/* Header Image */
.header-main-image {
  max-width: 420px;
  width: 80%;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 3. Layout */
.container, .section {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 5vw;
  padding-right: 5vw;
  overflow: visible;
}
.grid-layout { 
  display: grid; 
  gap: 2rem; 
  margin: 0 auto; /* Add margin auto to center the grid */
}
.flex-horizontal, .flex-vertical { display: flex; flex-wrap: wrap; gap: 1rem; }
.flex-horizontal { flex-direction: row; }
.flex-vertical { flex-direction: column; }
.offer-proposal-large {width: 60rem}

/* Add x-center class */
.x-center {
  justify-content: center;
  align-items: center;
}

/* 4. Navigation */
.main-navbar {
  position: sticky; top: 0; left: 0; width: 100vw; z-index: 1002;
  background: var(--color-background); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 5vw; transition: box-shadow 0.3s, background 0.3s;
  overflow: visible; /* Ensure links are not clipped */
}
.main-navbar .nav-logo {
  display: flex !important; 
  align-items: center !important; 
  font-weight: 700 !important; 
  font-size: 1.3rem !important;
  color: var(--color-primary, #FF4B1F) !important; 
  text-decoration: none !important; 
  gap: 0.7rem !important; 
  letter-spacing: 0.03em !important; 
  transition: color 0.2s !important;
  font-family: var(--font-main, 'Lato', sans-serif) !important;
}
.main-navbar .nav-logo svg { width: 2.2rem; height: 2.2rem; display: block; }
.main-navbar .nav-logo .logo-image { 
  width: 2.2rem; 
  height: 2.2rem; 
  display: block; 
  border-radius: 6px;
  filter: contrast(1.3) brightness(1.1);
  transition: filter 0.2s ease;
}
.main-navbar .nav-logo .logo-image:hover {
  filter: contrast(1.5) brightness(1.2);
}
.main-navbar .main-nav-links {
  display: flex; 
  gap: 2.2rem; 
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0; /* Allow shrinking */
}
.main-navbar .main-nav-link {
  font-size: 1.2rem; color: var(--color-text); text-decoration: none; font-weight: 500;
  padding: 0.4em 0.9em; border-radius: 0.4em; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative; outline: none;
  white-space: nowrap; /* Prevent text wrapping */
  flex-shrink: 0; /* Prevent links from shrinking too much */
}
.main-navbar .main-nav-link.active,
.main-navbar .main-nav-link:focus,
.main-navbar .main-nav-link:hover {
  background: rgba(255,75,31,0.15); 
  color: var(--color-primary); 
  box-shadow: 0 2px 8px rgba(255,75,31,0.12);
  font-weight: 500;
}
.main-navbar .main-nav-link:after {
  content: '';
  display: block;
  height: 2px;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 0.25s;
  position: absolute;
  left: 20%;
  bottom: 0.2em;
}
.main-navbar .main-nav-link.active:after,
.main-navbar .main-nav-link:focus:after,
.main-navbar .main-nav-link:hover:after {
  width: 60%;
}

/* Make active links more prominent */
.main-navbar .main-nav-link.active:after {
  width: 60%;
  left: 20%;
  background: var(--color-primary);
  height: 3px;
}

/* High-specificity active state for navigation */
.main-navbar .main-nav-link.active {
  background: rgba(255, 75, 31, 0.3) !important;
  color: var(--color-primary) !important;
  font-weight: 500;
}

.nav-hamburger {
  display: flex; /* Show hamburger on mobile */
  position: fixed; /* Keep it fixed in the viewport */
  top: 1.2rem;
  right: 1.2rem;
  z-index: 2100; /* Keep it above the menu overlay */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.2em;
  height: 2.2em;
  background: none; /* No background on the button itself */
  border: none;
  cursor: pointer;
  transition: transform 0.3s; /* Transition for button rotation */
}

.nav-hamburger.active {
  transform: rotate(90deg); /* Rotate the button when active */
  /* Remove the background - only the spans should have color */
}

.nav-hamburger span {
  display: block; /* Ensure spans are block elements */
  height: 3px;
  width: 100%;
  background: var(--color-primary); /* Default bar color */
  border-radius: 2px;
  margin: 0.25em 0;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1); /* Transition for bar transformation */
  position: relative;
  opacity: 1;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background: #b32a00; /* Dark orange color for active bars */
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
  /* Background is not needed when hidden */
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background: #b32a00; /* Dark orange color for active bars */
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 75, 31, 0.08);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.language-switcher:hover {
  background: rgba(255, 75, 31, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 75, 31, 0.15);
  text-decoration: none;
}

.language-switcher-flag {
  font-size: 1.3rem;
  line-height: 1;
}

.language-switcher-text {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Add language switcher to navbar layout */
.main-navbar .main-nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

/* Mobile positioning for language switcher */
@media (max-width: 991px) {
  .language-switcher {
    position: fixed;
    top: 1.2rem;
    right: 4.5rem;
    z-index: 2100;
    padding: 0.5rem 0.7rem;
    gap: 0.3rem;
  }
  
  .language-switcher-text {
    font-size: 0.85rem;
  }
}

/* Desktop positioning - part of nav links */
/* Medium screens - prevent navigation overflow */
@media (min-width: 900px) and (max-width: 1300px) {
  .main-navbar .main-nav-links {
    gap: 1.2rem !important;
  }
  
  .main-navbar .main-nav-link {
    font-size: 1.1rem !important;
    padding: 0.35em 0.7em !important;
  }
}

@media (min-width: 992px) {
  .main-navbar .main-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  
  .language-switcher {
    margin-left: 0.5rem;
  }
}

/* 5. Buttons & Forms */
.button, .w-button {
  font-size: clamp(1rem, 2vw, 1.2rem); padding: 0.75em 1.5em; border-radius: 0.5em;
  background: var(--color-primary); color: var(--color-background); border: none; cursor: pointer; transition: background 0.2s;
}
.button:hover, .w-button:hover { background: #d63c13; }
input, textarea, select {
  font-size: 1em; width: 100%; max-width: 100%; box-sizing: border-box; padding: 0.5em; border: 1px solid #ccc; border-radius: 0.3em;
}

/* 6. Cards/Components */
.feature-cards-section { width: 100%; padding: 3rem 0; background: transparent; }
.feature-cards-container { display: flex; gap: 2rem; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.feature-card {
  background: var(--color-background); 
  border-radius: 1.2rem; 
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem 2.5rem 1.5rem; 
  max-width: 350px; 
  min-width: 260px; 
  flex: 1 1 300px;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  transition: box-shadow 0.3s, transform 0.3s;
  will-change: transform, box-shadow; 
  opacity: 1; 
  transform: none;
  border: none;
}
.feature-card:hover, .feature-card:focus-within {
  box-shadow: var(--shadow-md); 
  transform: translateY(-4px); 
  z-index: 2;
}
.feature-card-image { width: 100%; max-width: 180px; border-radius: 0.8rem; margin-bottom: 1.2rem; }
.feature-card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.7rem; text-align: center; }
.feature-card-desc { font-size: 1.05rem; color: var(--color-text-light); margin-bottom: 1.5rem; text-align: center; }
.feature-card-btn {
  display: inline-block; background: var(--color-primary); color: var(--color-background);
  padding: 0.7em 1.5em; border-radius: 0.5em; font-weight: 600; text-decoration: none; transition: background 0.2s; margin-top: auto;
}
.feature-card-btn:hover, .feature-card-btn:focus { background: #d63c13; }

/* 7. Responsive Adjustments */
@media (max-width: 991px) {
  .grid-layout[class*="desktop-"] { 
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 700px) {
  .grid-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .container, .section:not([class*="utility-margin-top"]) { padding-left: 3vw; padding-right: 3vw; margin-top: 1rem; }
  .w-row, .w-col, .card, .button-group, .sg-selector-wrapper-x {
    flex-direction: column; width: 100%; max-width: 100%; margin-left: 0; margin-right: 0;
  }
  .nav.accent-primary-nav {
    display: none;
  }
  
  .main-navbar .main-nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    background: var(--color-background);
    padding: 0;
    box-shadow: none;
    flex-direction: column;
    gap: 1.0rem;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 2000;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  
  .main-navbar .main-nav-links.open {
    display: flex;
    transform: translateX(0);
    background: var(--color-background) !important;
    opacity: 1 !important;
  }
  
  .main-nav-link {
    font-size: 2rem;
    padding: 0.8em 1.2em;
    margin: 0.3em 0;
    border-radius: 0.7em;
    text-align: center;
    width: 90vw;
    max-width: 500px;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
  }
  
  /* Mobile navigation hover/touch effects */
  .main-nav-link:hover,
  .main-nav-link:focus,
  .main-nav-link:active,
  .main-nav-link.active {
    background: rgba(255,75,31,0.15);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(255,75,31,0.12);
  }
  
  /* Mobile Hamburger Specific Styles - Consolidated */
  .main-navbar .nav-hamburger {
    display: flex; /* Show hamburger on mobile */
    position: fixed; /* Keep it fixed in the viewport */
    top: 1.2rem;
    right: 1.2rem;
    z-index: 2100; /* Keep it above the menu overlay */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.2em;
    height: 2.2em;
    background: none; /* No background on the button itself */
    border: none;
    cursor: pointer;
    transition: transform 0.3s; /* Transition for button rotation */
  }
  
  .main-navbar .nav-hamburger.active {
    transform: rotate(90deg); /* Rotate the button when active */
    /* Remove the background - only the spans should have color */
  }
  
  .main-navbar .nav-hamburger span {
    display: block; /* Ensure spans are block elements */
    height: 3px;
    width: 100%;
    background: var(--color-primary); /* Default bar color */
    border-radius: 2px;
    margin: 0.25em 0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1); /* Transition for bar transformation */
    position: relative;
    opacity: 1;
  }
  
  .main-navbar .nav-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: #b32a00; /* Dark orange color for active bars */
  }
  
  .main-navbar .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    /* Background is not needed when hidden */
  }
  
  .main-navbar .nav-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: #b32a00; /* Dark orange color for active bars */
  }
  
  /* Prevent body scroll when mobile menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}
@media (max-width: 479px) {
  .container, .section:not([class*="utility-margin-top"]) { padding-left: 2vw; padding-right: 2vw; margin-top: 1rem; }
}
@media (min-width: 701px) {
  .main-navbar .nav-hamburger {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .feature-card {
    max-width: 95vw !important;
    min-width: 0 !important;
  }
  /* Hide cards only if menu is open (example: .main-navbar.menu-open) */
  .main-navbar.menu-open ~ main .feature-card {
    opacity: 0 !important;
  }
}

/* Shareds */

.section.accent-primary-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

/* CGU / CGV */

header .mentions-legales-section {
  background-color: white;
  color: #FF4B1F;
  text-align: center;
  padding: 20px; 
}
nav .mentions-legales-section {
  background: #e9ecef;
  padding: 10px 20px;
  text-align: center;
}
nav a .mentions-legales-section {
  margin: 0 15px;
  color: #FF4B1F;
  text-decoration: none;
  font-weight: bold;
}
nav a:hover .mentions-legales-section {
  text-decoration: underline;
}
main .mentions-legales-section {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  background: white;
}
h1, h2 .mentions-legales-section{
  margin-top: 0;
}
h2 .mentions-legales-section {
  color: #FF4B1F;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
section .mentions-legales-section {
  margin-bottom: 40px;
}
ul .mentions-legales-section {
  padding-left: 20px;
}

@media (max-width: 768px) {
  body .mentions-legales-section {
    font-size: 16px;
  }
  nav a .mentions-legales-section {
    display: block;
    margin: 10px 0;
  }
}

/* Mentions Légales */

main .mentions-legales-section {
  padding: 20px;
  max-width: 900px;
  margin: auto;
  background: white;
}
h1, h2 .mentions-legales-section {
  margin-top: 0;
}
h2 .mentions-legales-section {
  color: #FF4B1F;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}
section .mentions-legales-section {
  margin-bottom: 30px;
}
ul .mentions-legales-section {
  padding-left: 20px;
}
a .mentions-legales-section {
  color: #FF4B1F;
  text-decoration: none;
}
a:hover .mentions-legales-section {
  text-decoration: underline;
}
@media (max-width: 768px) {
  header, main .mentions-legales-section {
    padding: 15px;
  }
}
@media (max-width: 480px) {
  body .mentions-legales-section {
    font-size: 15px;
  }
}

.legal-content {
  height: fit-content; /* Make sidebar only as tall as its content */
}

.legal-content p, .legal-content li {
  line-height: 1.7;
  color: #333;
}

.legal-content a {
  font-weight: 600;
}

@media (min-width: 768px) {
  .grid-layout.desktop-2-column-uneven {
    grid-template-columns: 2.5fr 1fr; /* Main content takes ~70%, sidebar ~30% */
  }
}

.legal-content h2 {
  margin-top: 2rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p, .legal-content li {
  line-height: 1.7;
  color: #333;
}

.legal-content a {
  font-weight: 600;
}

.legal-sidebar {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content; /* Make sidebar only as tall as its content */
}

.utility-margin-bottom-1rem {
  margin-bottom: 1rem;
}

.utility-margin-bottom-2rem {
  margin-bottom: 2rem;
}

.utility-margin-top-auto {
  margin-top: auto;
}

/* Add missing utility classes */
.utility-element-align-center {
  margin-left: auto;
  margin-right: auto;
}

/* Desktop 2-column grid layout */
.grid-layout.desktop-2-column {
  grid-template-columns: 1fr 1fr;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Add missing utility margin classes */
.utility-margin-top-0 {
  margin-top: 0;
}

.utility-margin-top-0-5rem {
  margin-top: 0.5rem;
}

.utility-margin-top-1rem {
  margin-top: 1rem;
}

.utility-margin-top-2rem {
  margin-top: 2rem !important;
}

.utility-margin-top-3rem {
  margin-top: 3rem;
}

.utility-margin-top-4rem {
  margin-top: 4rem;
}

.utility-margin-top-5rem {
  margin-top: 5rem;
}

.utility-margin-top-6rem {
  margin-top: 6rem;
}

.utility-margin-top-7rem {
  margin-top: 7rem;
}

.utility-margin-top-8rem {
  margin-top: 8rem;
}

.footer-social-link:hover { background-color: rgba(255,75,31,0.1); color: var(--color-primary); box-shadow: 0 2px 8px rgba(255,75,31,0.08); }

body .inverse-footer {
  background-color: var(--color-complementary);
  color: var(--color-text-on-complementary);
}

body .inverse-footer a {
  color: var(--color-text-on-complementary);
}

body .inverse-footer a:hover {
  opacity: .8;
}

/* =========================
   FIX: About Page Hero
   ========================= */
.about-page .custom-hero-offset-left {
  position: relative;
  transform: none;
  margin: 0 auto;
  padding: 2rem 0;
}

/* =========================
   FIX: List Items Alignment
   ========================= */
li.paragraph-3,
.agilite-right ul li,
ul li.paragraph-3 {
  text-align: left;
}

.agilite-right ul {
  text-align: left;
  padding-left: 1.2rem;
}

/* Footer Styles are now in css/footer.css */

/* AI Process Transformation Section */
.ai-process-section {
  padding: 0rem 1rem;
  text-align: center;
}

.ai-process-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ai-process-section blockquote {
  margin: 1.5rem auto;
  font-style: italic;
  color: #444;
  border-left: 4px solid #eee;
  padding: 1rem 1.5rem;
  max-width: 66vw;
  text-align: left;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.title-orange {
  color: #FF4B1F;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: var(--color-background);
  margin: 2% auto;
  padding: 2.5rem;
  width: 95%;
  max-width: 1400px;
  border-radius: 1rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
}

.modal-title {
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
}

.modal-table-container {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 1.05rem; /* Slightly larger font for better readability */
}

.modal-table th {
  padding: 1.5rem; /* Increased padding */
  text-align: left;
  border: 1px solid #ddd;
  font-weight: 600; /* Enhanced font weight */
}

.modal-table td {
  padding: 1.5rem; /* Increased padding */
  border: 1px solid #ddd;
  line-height: 1.6; /* Improved line height for readability */
}

.modal-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.modal-table td:first-child {
  font-weight: bold;
  width: 20%; /* Set a consistent width for the first column */
}

.modal-benefits-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.modal-benefits-list {
  list-style-type: none;
  padding-left: 0;
}

.modal-benefits-list li {
  margin-bottom: 0.5rem;
}

.modal-closing-text {
  margin-top: 2rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 1rem;
    width: 99%;
    max-width: 100vw;
  }
  .modal-table th,
  .modal-table td {
    padding: 0.75rem;
    font-size: 1rem;
  }
  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

/* Process Table Styles */
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

@media screen and (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 1.5rem;
    width: 95%;
  }

  .modal-table th,
  .modal-table td {
    padding: 0.75rem;
    font-size: 0.9rem;
  }

  .modal-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.custom-method-list {
  font-size: 0.95rem;
  margin: 0.5rem 0 0.5rem 1.5rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}
.custom-method-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Add responsive styles for larger screens */
@media (min-width: 1200px) {
  .modal-content {
    padding: 3rem;
  }
  
  .modal-table th,
  .modal-table td {
    padding: 1.75rem;
  }
}

/* Two-Column Info Layout */
.info-row {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-col-left {
  flex: 1;
  padding-right: 1.5rem;
  font-weight: bold;
  text-align: left !important;
}

.info-col-right {
  flex: 3;
  text-align: left !important;
}

/* Add !important to ensure text alignment works */
.utility-text-align-left {
  text-align: left !important;
}

@media (max-width: 768px) {
  .info-row {
    flex-direction: column;
  }
  
  .info-col-left {
    padding-right: 0;
    margin-bottom: 0.5rem;
  }
}

/* Parallax Header Styles */
.parallax-header {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)); /* Stronger gradient overlay for better text readability */
  z-index: 1;
}

.parallax-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 4rem 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.parallax-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin-top: 1rem;
  font-weight: 700;
}

.parallax-content p {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  font-size: 1.5rem;
  max-width: 800px;
  margin: 1rem auto 0;
}

.parallax-content .header-main-image {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  max-width: 420px;
  width: 80%;
  height: auto;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
}

/* Media query for mobile devices where fixed attachment doesn't work well */
@media (max-width: 768px) {
  .parallax-header {
    background-attachment: scroll;
    min-height: 500px;
  }
  
  .parallax-content h1 {
    font-size: 2.5rem;
  }
  
  .parallax-content p {
    font-size: 1.2rem;
  }
}

/* Custom class for contact card images */
.image-contact-card {
  width: 40em !important;
  height: 15em !important;
  max-width: 25em !important; /* Override the global img max-width: 100% rule */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  border-radius: 1.2rem; /* Matches the style of other images */
}

/* Center the contact buttons horizontally */
.grid-layout li.flex-horizontal.flex-vertical {
  align-items: center !important;
  text-align: center !important;
}

.grid-layout li.flex-horizontal.flex-vertical .button {
  margin: 0 auto !important;
}

/* Remove underline from contact buttons */
.button.contactbutton, 
.button.contactbutton.w-button {
  text-decoration: none !important;
}

/* Mobile responsive for contact card images */
@media (max-width: 768px) {
  .image-contact-card {
    width: 90% !important;
    height: 200px !important;
    max-width: 300px !important;
  }
}

@media (max-width: 480px) {
  .image-contact-card {
    width: 95% !important;
    height: 180px !important;
    max-width: 280px !important;
  }
}

/* Automation header - mobile-first responsive design */
.automation-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
  background: var(--primary-color, #FF4B1F);
  color: white;
  overflow: hidden;
}

.automation-header .header-content {
  flex: 1;
  max-width: 100%;
}

.automation-header .header-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.automation-header .header-content p {
  font-size: 1.1rem;
  line-height: 1.4;
}

.automation-header .header-image {
  flex-shrink: 0;
  max-width: 100%;
}

.automation-header .header-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1rem;
}

/* Desktop and larger screens */
@media (min-width: 768px) {
  .automation-header {
    flex-direction: row;
    text-align: left;
    padding: 3rem 2rem;
    gap: 3rem;
  }
  
  .automation-header .header-content {
    flex: 2;
  }
  
  .automation-header .header-content h1 {
    font-size: 3rem;
  }
  
  .automation-header .header-content p {
    font-size: 1.3rem;
  }
  
  .automation-header .header-image {
    flex: 1;
  }
  
  .automation-header .header-image img {
    max-width: 400px;
  }
}

/* Aides header - reuses automation-header base styles */
.aides-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
  background: var(--primary-color, #FF4B1F);
  color: white;
  overflow: hidden;
}

.aides-header .header-content {
  flex: 1;
  max-width: 100%;
}

.aides-header .header-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.aides-header .header-content p {
  font-size: 1.1rem;
  line-height: 1.4;
}

.aides-header .header-image {
  flex-shrink: 0;
  max-width: 100%;
  order: -1; /* Image appears first on mobile */
}

.aides-header .header-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 1rem;
}

/* Index header - reuses automation-header base styles */
.index-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 1.5rem;
  background: var(--primary-color, #FF4B1F);
  color: white;
  overflow: hidden;
}

.index-header .header-content {
  flex: 1;
  max-width: 100%;
}

.index-header .header-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.index-header .header-content p {
  font-size: 1.1rem;
  line-height: 1.4;
}

.index-header .header-image {
  flex-shrink: 0;
  max-width: 100%;
  order: -1; /* Image appears first on mobile */
}

.index-header .header-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 1.5rem;
}

/* Desktop styles for aides and index headers */
@media (min-width: 768px) {
  .aides-header,
  .index-header {
    flex-direction: row;
    text-align: left;
    padding: 3rem 2rem;
    gap: 3rem;
  }
  
  .aides-header .header-content,
  .index-header .header-content {
    flex: 2;
  }
  
  .aides-header .header-content h1,
  .index-header .header-content h1 {
    font-size: 3rem;
  }
  
  .aides-header .header-content p,
  .index-header .header-content p {
    font-size: 1.3rem;
  }
  
  .aides-header .header-image,
  .index-header .header-image {
    flex: 1;
    order: 0; /* Reset order for desktop */
  }
  
  .aides-header .header-image img {
    max-width: 400px;
  }
  
  .index-header .header-image img {
    max-width: 420px;
  }
}

/* About header - mobile-first responsive design with carousel */
.about-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  gap: 2rem;
  background: var(--primary-color, #FF4B1F);
  color: white;
  overflow: hidden;
}

.about-header .header-content {
  flex: 1;
  max-width: 100%;
}

.about-header .header-content h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

/* Simple carousel that always shows images */
.about-header .header-carousel {
  width: 100%;
  overflow: hidden; /* Hide scrollbar but keep overflow content */
  padding: 1rem 0;
}

.about-header .carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0 1rem;
  -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in Chrome, Safari and Opera */
.about-header .carousel-track::-webkit-scrollbar {
  display: none;
}

.about-header .carousel-item {
  flex: 0 0 280px;
  height: 280px;
}

.about-header .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

/* Desktop styles */
@media (min-width: 768px) {
  /* .about-header {
    padding: 3rem 2rem;
    gap: 3rem;
  }
   */
  .about-header .header-content h1 {
    font-size: 2.5rem;
  }
  
  .about-header .carousel-item {
    flex: 0 0 400px;
    height: 400px;
  }
  
  .about-header .carousel-item img {
    border-radius: 1.5rem;
  }
}

/* Contact Form Container */
.contact-form-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 15px;
}

@media (max-width: 768px) {
  .contact-form-container {
    width: 100%;
    padding: 0 10px;
  }
}

/* Form styling improvements */
#email-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#email-form label {
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}

#email-form input[type="text"],
#email-form input[type="email"],
#email-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

#email-form input[type="text"]:focus,
#email-form input[type="email"]:focus,
#email-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 75, 31, 0.2);
}

#email-form input[type="submit"] {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
  align-self: flex-start;
}

#email-form input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
}

/* Improved mobile header responsiveness */
@media (max-width: 768px) {
  /* Fix for header structure */
  .section.utility-overflow-clip.accent-primary-section {
    padding: 1.5rem 0.5rem;
    overflow: hidden;
  }
  
  /* Text content fixes */
  .w-layout-grid.grid-layout.tablet-1-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .w-layout-grid.grid-layout.tablet-1-column > div {
    width: 100%;
    text-align: center;
  }
  
  .h1-heading {
    font-size: 2.2rem;
    margin: 0.5em 0 0.3em;
    word-break: break-word;
    hyphens: auto;
  }
  
  .h3-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  /* Fix for all nested containers */
  .utility-position-relative.flex-horizontal {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
  
  .grid-layout.desktop-9-column {
    justify-content: center;
    width: 100%;
  }
  
  .utility-aspect-4x3 {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Critical fix: Override any conflicting width settings */
  .image.cover-image {
    margin: 0 auto;
    max-width: 90%;
    width: 90% !important; /* Override width: auto from responsive-overrides.css */
    height: auto !important;
    object-fit: contain;
    display: block !important;
  }
}

/* Fix for mobile header image centering */
@media (max-width: 768px) {
  /* Reset grid layout for mobile to ensure proper centering */
  header .grid-layout.desktop-9-column {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Target the direct container of the image */
  header .utility-aspect-4x3 {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Target the image itself with high specificity */
  header .utility-aspect-4x3 img.image.cover-image,
  header .utility-aspect-4x3 img {
    width: 100% !important; /* Force full width */
    max-width: 100% !important; /* Override any max-width */
    margin: 0 auto !important; /* Center horizontally */
    display: block !important; /* Ensure block display */
    height: auto !important; /* Maintain aspect ratio */
    object-fit: contain !important; /* Ensure image fits properly */
    position: static !important; /* Remove any absolute positioning */
    transform: none !important; /* Remove any transforms */
  }
  
  /* Ensure the parent container doesn't have conflicting styles */
  header .utility-position-relative.flex-horizontal {
    display: block !important; /* Change to block to avoid flex issues */
    width: 100% !important;
    text-align: center !important;
  }
}

/* ============================================
   FINAL OVERRIDE: Ensure nav-logo consistency
   This rule must be at the end to override all other styles
   ============================================ */
.main-navbar .nav-logo,
nav.main-navbar a.nav-logo,
.main-navbar > a.nav-logo {
  font-family: 'Lato', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  color: #FF4B1F !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  font-style: normal !important;
  text-decoration: none !important;
}

/* Improved mobile header responsiveness */