/*
    base_theme.css
    Foundational styling for the static site.
    Focuses on readability, accessibility, and responsive design to support LLMO and user experience.
*/

/* == Variables & Resets == */
/* 
    - CSS Custom Properties (Variables) for colors, fonts, spacing for consistency.
    - Basic reset (e.g., box-sizing: border-box, margin/padding reset for common elements).
*/
:root {
    /* Brand Colors - Dynamic from business_info or fallback defaults */
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #ffc107;
    --text-color: #333;
    --background-color: #fff;
    --light-gray-color: #f8f9fa;
    --border-color: #dee2e6;

    /* Example Typography */
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-serif: Georgia, "Times New Roman", Times, serif;
    --base-font-size: 16px;
    --line-height-base: 1.6;

    /* Example Spacing */
    --spacing-unit: 8px;
}

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

body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure {
    margin: 0;
    padding: 0;
}

/* == Global Styles & Typography == */
/*
    - Body: background-color, text-color, font-family, line-height.
    - Headings (h1-h6): font sizes, margins, font-weight. Emphasis on clear hierarchy.
    - Paragraphs: margins for readability.
    - Links: color, text-decoration. Hover/focus states for accessibility.
    - Lists (ul, ol): styling, padding/margin for readability.
    - Basic table styling.
*/
body {
    font-family: var(--font-family-sans-serif);
    font-size: var(--base-font-size);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
    font-weight: 600;
    line-height: 1.2;
    /* Add specific font sizes for hierarchy */
}

h1 { font-size: 2.5rem; } /* Example */
h2 { font-size: 2rem; }   /* Example */
h3 { font-size: 1.75rem; }/* Example */

p {
    margin-bottom: calc(var(--spacing-unit) * 2); /* 16px */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    padding-left: calc(var(--spacing-unit) * 3); /* 24px */
    margin-bottom: calc(var(--spacing-unit) * 2);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* == Layout & Containers == */
/*
    - .container: max-width, margin auto for centering content.
    - Basic grid or flexbox utilities if needed for simple layouts.
*/
.container {
    width: 90%;
    max-width: 1140px; /* Common max-width */
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(var(--spacing-unit) * 2); /* 16px */
    padding-right: calc(var(--spacing-unit) * 2);
}

/* == Header & Footer Styles (Structure from header/footer.template.html) == */
.site-header, .site-footer {
    padding: calc(var(--spacing-unit) * 2) 0;
    background-color: var(--light-gray-color); /* Example */
    border-bottom: 1px solid var(--border-color); /* Example for header */
}

.site-footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.main-navigation ul, .footer-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-navigation li + li, .footer-navigation li + li {
    margin-left: calc(var(--spacing-unit) * 2);
}

.copyright {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.copyright p {
    margin: 0;
}

/* Main Navigation */
.main-navigation {
    display: inline-block;
    vertical-align: middle;
}

/* Desktop Navigation */
#desktop-nav {
    display: flex;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.nav-menu a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

/* Active states for desktop navigation */
.nav-item.active > a,
.nav-item.active-parent > a {
    color: #0066cc;
    font-weight: 600;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.8em;
    margin-left: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Ensure dropdown menu links have visible text color */
.dropdown-menu a {
    color: #333;
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

/* Desktop hover behavior */
@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Touch device click behavior */
@media (hover: none) and (pointer: coarse) {
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
}

/* Fallback for all devices when aria-expanded is true */
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

/* Mobile Navigation Wrapper - Hidden by default on desktop */
.mobile-nav-wrapper {
    display: none;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Mobile Navigation Menu - Enhanced Design */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-menu[aria-hidden="false"] {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-nav-menu[aria-hidden="false"] .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-nav-close:hover {
    background-color: #e9ecef;
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-link,
.mobile-submenu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    min-height: 48px; /* Improved touch target */
}

.mobile-nav-link:hover,
.mobile-submenu-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-nav-link.active,
.mobile-submenu-link.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.mobile-nav-link.active:hover {
    background-color: var(--primary-color);
    color: white;
    transform: none;
}

/* Mobile Submenu - Enhanced */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu[aria-hidden="false"] {
    max-height: 500px; /* Adjust based on content */
}

.mobile-submenu-item {
    border-bottom: 1px solid #e9ecef;
}

.mobile-submenu-item:last-child {
    border-bottom: none;
}

.mobile-submenu-link {
    padding-left: 3rem;
    font-size: 0.95rem;
    min-height: 44px;
}

.submenu-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    min-height: 48px;
    transition: all 0.3s ease;
}

.submenu-toggle:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateX(4px);
}

.submenu-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: auto;
    padding-left: 1rem;
}

.submenu-toggle[aria-expanded="true"] .submenu-arrow {
    transform: rotate(45deg);
}

/* Mobile Navigation Active State */
body.mobile-nav-open {
    overflow: hidden;
    height: 100vh;
}

/* Ensure mobile menu works across different screen sizes */
@media (max-width: 320px) {
    .mobile-nav-content {
        width: 100%;
        max-width: 100vw;
    }
    
    .mobile-nav-header {
        padding: 1rem;
    }
    
    .mobile-nav-link,
    .mobile-submenu-link {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Enhanced focus management for mobile navigation */
.mobile-nav-toggle:focus,
.mobile-nav-close:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.mobile-nav-link:focus,
.mobile-submenu-link:focus,
.submenu-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    background-color: var(--primary-color);
    color: white;
}

/* Mobile Navigation - Enhanced Responsive Design */

/* Always show mobile nav on phones and small tablets */
@media (max-width: 1024px) {
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }
    
    /* Hide desktop nav on smaller screens */
    #desktop-nav {
        display: none;
    }
    
    /* Show mobile nav elements */
    .mobile-nav-wrapper {
        display: flex;
        align-items: center;
    }
    
    .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.75rem;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
    
    .mobile-nav-toggle:hover {
        background-color: #f5f5f5;
    }
    
    .mobile-nav-toggle:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Enhanced hamburger animation */
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Large tablets - show desktop nav but be ready to hide if overflow */
@media (min-width: 1025px) and (max-width: 1200px) {
    .navigation-overflow-detected #desktop-nav {
        display: none;
    }
    
    .navigation-overflow-detected .mobile-nav-wrapper {
        display: flex;
        align-items: center;
    }
    
    .navigation-overflow-detected .mobile-nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.75rem;
        background: none;
        border: none;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }
}



/* == LLMO-Supportive Styles == */
/*
    - Clear separation of content sections (if applicable through classes).
    - Styling for blockquotes, code blocks for clarity if content requires it.
    - Ensuring good contrast ratios (can be checked with accessibility tools).
    - Focus on semantic HTML elements being styled appropriately (e.g., `<strong>`, `<em>`).
*/
blockquote {
    border-left: 4px solid var(--border-color);
    padding-left: calc(var(--spacing-unit) * 2);
    margin: calc(var(--spacing-unit) * 2) 0;
    font-style: italic;
    color: #555;
}

/* == Responsive Design Rules (Mobile-First Approach Example) == */
/* 
    - Start with base styles for small screens.
    - Use @media queries to add/adjust styles for larger screens (min-width).
    - Example breakpoints: tablets, desktops.
*/

/* For tablets and larger */
@media (min-width: 768px) {
    .container {
        width: 85%;
    }
    /* Adjust typography or layout as needed */
}

/* For desktops and larger */
@media (min-width: 992px) {
    .container {
        width: 80%;
    }
    /* Further adjustments */
}

/* For large desktops */
@media (min-width: 1200px) {
    /* Specific styles for very large screens if necessary */
}

/* == Accessibility Considerations == */
/*
    - :focus-visible styling for keyboard navigation.
    - Hidden content (sr-only) for screen readers if needed.
*/
.sr-only { /* Screen-reader only */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Add focus styles for keyboard navigation for better accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--background-color), 0 0 0 4px var(--accent-color);
}

/* Active states for navigation */
.nav-item.active > a,
.nav-item.active-parent > a {
    color: #0066cc;
    font-weight: 600;
}

/* Footer Styles */
.footer-navigation {
    border-bottom: 1px solid #555;
    padding-bottom: 1rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #fff;
}

/* == Modern Component Styles == */

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.85;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #004494;
    border-color: #004494;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: white;
    color: var(--primary-color);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Feature Cards with Grid Layout */
.features-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Services Section and Grid */
.services-section {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-content::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #333;
}

.author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Content Sections */
.content-section {
    padding: 3rem 0;
}

.section-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Transition Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Adjustments for Modern Components */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.25rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

/* == Service Page Styles == */

/* Service Hero Section */
.service-hero-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
    text-align: center;
}

.service-hero-section.hero-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.service-hero-section.hero-with-image .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.service-hero-section.hero-with-image .container {
    position: relative;
    z-index: 2;
}

.service-hero-section.hero-with-image .service-hero-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.service-hero-section.hero-with-image .service-hero-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-hero-section.hero-with-image .btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.service-hero-section.hero-with-image .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.service-hero-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.service-hero-cta .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.service-hero-cta .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Service Overview Section */
.service-overview {
    padding: 3rem 0;
}

/* Benefits Section */
.service-benefits-section {
    padding: 4rem 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.benefit-item:hover {
    background-color: #f8f9fa;
}

.benefit-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.benefit-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Service Details Section */
.service-details-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* FAQ Section */
.service-faq-section {
    padding: 4rem 0;
    background-color: white;
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Service CTA Section */
.service-cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.service-cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.service-cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Related Services Section */
.related-services-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.related-service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.related-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-service-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-service-card h3 a:hover {
    color: var(--primary-color);
}

.related-service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Service Concepts Section */
.service-concepts-section {
    padding: 3rem 0;
    background-color: white;
    border-top: 1px solid #e0e0e0;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.concept-card {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.concept-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Adjustments for Service Pages */
@media (max-width: 768px) {
    .service-hero-title {
        font-size: 2rem;
    }
    
    .service-hero-description {
        font-size: 1.125rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-cta-content h2 {
        font-size: 2rem;
    }
    
    .related-services-grid,
    .concepts-grid {
        grid-template-columns: 1fr;
    }
}

/* == Info Page Styles == */

/* Info Hero Section */
.info-hero-section {
    background-color: #f8f9fa;
    color: #333;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.info-hero-section.hero-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 35vh;
    max-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
    border-bottom: none;
}

.info-hero-section.hero-with-image .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.info-hero-section.hero-with-image .container {
    position: relative;
    z-index: 2;
}

.info-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.info-hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-hero-description {
    font-size: 1.125rem;
    color: #666;
    line-height: 1.6;
}

/* Info Content Layout */
.info-content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.info-main-content {
    min-width: 0;
}

/* Info Content Sections */
.info-content-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.info-content-section:last-of-type {
    border-bottom: none;
}

.info-section-heading {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.info-section-content {
    color: #666;
    line-height: 1.8;
}

.info-section-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #444;
}

.info-section-content h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #555;
}

.info-section-content ul,
.info-section-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.info-section-content li {
    margin-bottom: 0.5rem;
}

/* No Content Message */
.no-content-message {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-style: italic;
}

/* Info CTA Section */
.info-cta-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.info-cta-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-cta-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.info-cta-section .btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.info-cta-section .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sidebar Styles */
.info-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar-widget {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

/* Key Info Widget */
.key-info-content .info-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.key-info-content .info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.key-info-content strong {
    color: #333;
    display: inline-block;
    min-width: 80px;
}

/* Facts Widget */
.facts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.facts-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.5;
}

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

/* Questions Widget */
.questions-list .question-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.question-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    background-color: white;
    transition: background-color 0.3s ease;
}

.question-item summary:hover {
    background-color: #f0f0f0;
}

.question-item[open] summary {
    background-color: #f0f0f0;
}

.answer-content {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Related Links Widget */
.related-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links-list li {
    margin-bottom: 0.75rem;
}

.related-links-list a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-links-list a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Info Concepts Section */
.info-concepts-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.info-concepts-section .concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.info-concepts-section .concept-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.info-concepts-section .concept-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.concept-content {
    color: #666;
    line-height: 1.6;
}

/* Info FAQ Section */
.info-faq-section {
    padding: 4rem 0;
    background-color: white;
}

.info-faq-section .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

/* Responsive Adjustments for Info Pages */
@media (max-width: 992px) {
    .info-content-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-sidebar {
        position: static;
        max-height: none;
        margin-top: 3rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 1200px) {
    .info-hero-section.hero-with-image {
        min-height: 30vh;
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .info-hero-section.hero-with-image {
        min-height: 25vh;
        max-height: 300px;
    }
    
    .info-hero-title {
        font-size: 2rem;
    }
    
    .info-section-heading {
        font-size: 1.75rem;
    }
    
    .info-concepts-section .concepts-grid,
    .info-faq-section .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .info-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .info-hero-section.hero-with-image {
        min-height: 20vh;
        max-height: 250px;
    }
}

/* Responsive image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure images don't break layout */
.feature-card img,
.service-card img {
    margin: 0 auto;
}

/* Logo styling */
.logo img {
    max-height: 60px;
    width: auto;
}

/* == End of Styles == */

/* == Modern Section-Based Layout System == */
/* This new system works alongside existing layouts for backward compatibility */

/* Base Section Styles */
.section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.section-sm {
    padding: 2rem 0;
}

.section-lg {
    padding: 6rem 0;
}

.section-xl {
    padding: 8rem 0;
}

/* Section Background Variants */
.section-white {
    background-color: #ffffff;
}

.section-light {
    background-color: #f8f9fa;
}

.section-dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
    color: #ffffff;
}

.section-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.section-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

/* Section Content Wrapper */
.section-content {
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.align-left {
    text-align: left;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 0;
}

.section-dark .section-subtitle {
    color: #e9ecef;
}

/* Modern Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Feature Cards - Modern Style */
.card {
    background: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 0;
}

/* Hero Section - Modern Full Width */
.hero-modern {
    min-height: 35vh;
    max-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-modern.hero-tall {
    min-height: 50vh;
    max-height: 600px;
}

.hero-modern .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 0;
}

.hero-modern.hero-centered .hero-content {
    margin: 0 auto;
    text-align: center;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
}

/* Testimonial Cards - Modern */
.testimonial-modern {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    color: #6c757d;
    font-size: 0.9rem;
}

/* CTA Section - Modern */
.cta-modern {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
}

.cta-modern h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-modern .btn {
    margin: 0 0.5rem;
}

/* FAQ Section - Modern */
.faq-modern {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    margin: 0;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    max-height: 500px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.two-column.reverse {
    direction: rtl;
}

.two-column.reverse > * {
    direction: ltr;
}

/* This ensures the pain points section has dark text */
.two-column h2, .two-column p, .two-column li {
    color: var(--text-color);
}

/* Make sure .lead-magnet-content has background color */
.lead-magnet-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--primary-color);
}

/* Image Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ACS IT-Inspired Specific Components */

/* Lead Magnet Section - Overlapping class removed to prevent floating icons */

.lead-magnet-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    border-radius: 8px;
    background-color: var(--primary-color);
}

.lead-magnet-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--background-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.lead-magnet-text {
    flex: 1;
}

.lead-magnet-cta {
    flex-shrink: 0;
}

/* Pain Points List */
.pain-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pain-points-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.pain-points-list li::before {
    content: "✗";
    color: var(--accent-color, #dc3545);
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Solution Benefits */
.solution-benefits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solution-benefit h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.solution-benefit p {
    margin: 0;
    line-height: 1.6;
}

/* Content Image Layout */
.content-image-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-image-layout.image-left {
    grid-template-columns: 1fr 1fr;
}

.content-image-layout .image-column {
    order: 2;
}

.content-image-layout.image-left .image-column {
    order: 1;
}

.content-image-layout.image-left .content-column {
    order: 2;
}

.placeholder-image {
    background: var(--light-gray-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    color: #6c757d;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-image i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Trust Indicators Grid */
.trust-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.trust-item {
    padding: 2rem 1rem;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.trust-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Process Steps Grid */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-step {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.step-number {
    font-size: 2rem;
    font-weight: bold;
}

.step-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-description {
    line-height: 1.6;
    margin: 0;
}

/* Testimonials Grid */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.testimonial-content {
    text-align: left;
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    justify-content: flex-start;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-placeholder {
    width: 60px;
    height: 60px;
    background: var(--light-gray-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

.author-info {
    flex: 1;
}

.author-name {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-details {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Stars Rating */
.stars {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 2rem;
    letter-spacing: 0.25rem;
}

/* Hero Overlay Variants */
.hero-overlay {
    position: relative;
}

.bg-overlay-dark {
    background: rgba(0, 0, 0, 0.6);
}

/* Column Helper */
.column {
    display: flex;
    flex-direction: column;
}

/* Responsive Adjustments for ACS Components */
@media (max-width: 1200px) {
    .hero-modern {
        min-height: 30vh;
        max-height: 400px;
    }
    
    .hero-modern.hero-tall {
        min-height: 40vh;
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-lg {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .two-column,
    .content-image-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .content-image-layout.image-left .image-column,
    .content-image-layout .image-column {
        order: 1;
    }
    
    .content-image-layout.image-left .content-column,
    .content-image-layout .content-column {
        order: 2;
    }
    
    .lead-magnet-content {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-modern {
        min-height: 25vh;
        max-height: 300px;
    }
    
    .hero-modern.hero-tall {
        min-height: 35vh;
        max-height: 400px;
    }
    
    .hero-modern .hero-content {
        padding: 1.5rem 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-modern {
        min-height: 20vh;
        max-height: 250px;
    }
    
    .hero-modern.hero-tall {
        min-height: 30vh;
        max-height: 350px;
    }
    
    .hero-modern .hero-content {
        padding: 1rem 0;
    }
    
    .trust-indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes for Sections */
.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Section Animation Classes */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
} 
/* Ensure text in primary sections is visible */
.section-primary * { color: #ffffff; }

/* Contact Page Styles */
.contact-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

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

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Contact Information Styles */
.contact-info {
    background: var(--light-gray-color);
    padding: 2rem;
    border-radius: 8px;
    height: fit-content;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.contact-detail i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.contact-detail div {
    flex: 1;
}

.contact-detail p {
    margin: 0;
    line-height: 1.5;
}

.contact-detail a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.contact-detail a:hover {
    text-decoration: underline;
}

/* Two Column Layout for Contact Page */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.column-content {
    display: flex;
    flex-direction: column;
}

/* Responsive Contact Styles */
@media (max-width: 768px) {
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
}