/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* PackHub Brand Colors */
    --packhub-green: #159985;
    --packhub-blue: #005596;
    --packhub-dark-grey: #676b6d;
    --packhub-light-grey: #d8d8d8;
    --packhub-white: #ffffff;
    /* Legacy aliases */
    --lully-green: var(--packhub-green);
    --lully-blue: var(--packhub-blue);
    --lully-dark-grey: var(--packhub-dark-grey);
    --lully-light-grey: var(--packhub-light-grey);
    --lully-white: var(--packhub-white);
    
    /* Primary Colors */
    --primary-color: #005596; /* PackHub Blue */
    --primary-hover: #003d6b;
    --secondary-color: #333;
    --text-color: #333;
    --bg-color: #ffffff;
    --border-color: #e0e0e0;
    --spacing-unit: 1rem;
    
    /* Brand Gradient (Green to Blue) */
    --gradient-start: #159985; /* PackHub Green */
    --gradient-end: #005596; /* PackHub Blue */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

/* Enhanced smooth scrolling */
* {
    scroll-behavior: smooth;
}

/* Smooth transitions for all scrollable elements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.5s ease-in;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible; /* Allow dropdowns to show */
    border: none; /* No border */
    padding: 0; /* No padding on header itself */
    margin: 0; /* No margin */
}

.header a.logo {
    display: inline-block;
    line-height: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0; /* Added a bit more padding - about 10px */
    position: relative;
    overflow: visible; /* Allow dropdowns to extend */
    height: auto; /* Let content determine height */
    min-height: auto; /* No minimum height */
    max-height: none; /* No max height restriction */
    line-height: 1; /* Tight line height */
}

.logo {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
}

.logo img {
    height: 40px; /* Larger logo - back to a comfortable size */
    width: auto;
    display: block;
    max-width: 200px;
    object-fit: contain;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    vertical-align: middle; /* Align properly */
}

.main-nav {
    position: relative;
    overflow: visible; /* Allow dropdowns to show */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
    line-height: 1; /* Tight line height */
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0; /* No vertical padding */
    line-height: 1.2; /* Tight line height */
    display: inline-block;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Active navigation state */
.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-flex; /* Changed from flex to inline-flex */
    align-items: center; /* Vertically center the dropdown trigger with other nav items */
    gap: 0.25rem; /* Small gap between text and dropdown arrow */
    height: auto; /* Don't let dropdown affect parent height */
    overflow: visible; /* Allow dropdown menu to show */
}

/* Add a small invisible bridge between trigger and menu to make mouse movement easier */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem; /* Small bridge area */
    background: transparent;
    z-index: 1000; /* Below menu but above other content */
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.dropdown:hover .dropdown-toggle {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute !important; /* Force absolute - remove from document flow */
    top: calc(100% + 0.25rem) !important; /* Smaller gap - 4px instead of 8px for easier mouse movement */
    left: 0; /* Align to left edge of dropdown trigger */
    margin-top: 0; /* Remove margin since we're using calc in top */
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    list-style: none;
    min-width: 200px;
    width: max-content; /* Fit content width */
    max-width: 300px; /* Allow enough width for menu items */
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease; /* Faster transition */
    z-index: 1001; /* Higher than header z-index to float above content */
    border-radius: 4px;
    overflow: visible; /* Allow menu to be fully visible */
    display: flex;
    flex-direction: column; /* Ensure vertical stacking of menu items */
    pointer-events: none; /* Prevent interaction when hidden */
    /* Remove from document flow completely */
    margin: 0;
    height: auto;
}

/* Show menu when hovering over dropdown container OR the menu itself */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* Enable interaction when visible */
    transition-delay: 0s; /* No delay when showing */
}

.dropdown-menu li {
    padding: 0;
    display: block; /* Ensure list items are block-level (vertical) */
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

.dropdown-menu a.active {
    background-color: #e8f4f8;
    color: var(--primary-color);
    font-weight: 600;
    padding-left: 1.75rem;
}

.dropdown-menu a.active::before {
    transform: scaleY(1);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 32px;
    height: 24px;
}

.mobile-menu-toggle.racking-icon {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

/* Racking Uprights (Blue Vertical Bars) */
.racking-icon .racking-upright {
    width: 4px;
    height: 24px;
    background: var(--lully-blue);
    border-radius: 2px;
    flex-shrink: 0;
}

/* Racking Beams Wrapper - Contains stacked beams */
.racking-icon .racking-beams-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 20px;
    flex-shrink: 0;
}

/* Racking Beams (Orange Horizontal Bars) */
.racking-icon .racking-beam {
    width: 20px;
    height: 3px;
    background: #ff6600; /* Orange color matching warehouse racking */
    border-radius: 1px;
    flex-shrink: 0;
    display: block;
}

/* Legacy hamburger menu styles (for fallback) */
.mobile-menu-toggle:not(.racking-icon) {
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-toggle:not(.racking-icon) span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s;
}

/* Offcanvas Modal */
.offcanvas-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 2000;
    overflow-y: auto;
}

.offcanvas-modal[aria-hidden="false"] {
    right: 0;
}

.offcanvas-content {
    padding: 2rem;
}

.close-drawer {
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 2rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-drawer:hover {
    background-color: #f0f0f0;
}

.close-icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--text-color);
    font-weight: 300;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav li {
    position: relative;
}

.mobile-nav .dropdown-toggle {
    position: absolute;
    right: 0;
    top: 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    transform: rotate(0deg) !important;
    transform-origin: center center;
}

.mobile-nav .dropdown-toggle.is-open {
    transform: rotate(180deg) !important;
}

.mobile-nav .dropdown-toggle:hover {
    color: var(--primary-color);
}

.mobile-nav .dropdown-menu {
    display: none !important;
    list-style: none;
    padding: 0 !important;
    margin: 0.5rem 0 0 1rem !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    min-width: auto !important;
    width: auto !important;
    max-width: none !important;
    flex-direction: column !important;
    top: auto !important;
    left: auto !important;
    z-index: 2001 !important;
    height: auto !important;
    overflow: visible !important;
}

.mobile-nav .dropdown-menu.is-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #f8f9fa !important;
    padding: 0.5rem 0 !important;
}

.mobile-nav .dropdown-menu li {
    padding: 0;
}

.mobile-nav .dropdown-menu a {
    padding: 0.75rem 0;
    font-size: 0.95rem;
    color: var(--lully-dark-grey);
    border-bottom: 1px solid #f0f0f0;
}

/* Hero Section - Enhanced */
.hero {
    padding: 6rem 0 4rem 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        justify-content: center;
    }
}

/* Enhanced Typography Hierarchy */
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-color);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

/* Features Section - Continuous Flow */
.features {
    padding: 5rem 0;
    margin: 0;
    transition: background-color 0.5s ease;
    scroll-margin-top: 80px;
}

/* Features to next section - seamless */
.features + section,
.features + .content-section,
.features + .divider-wrapper {
    margin-top: 0;
    padding-top: 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 1.5rem;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-end));
    border-radius: 2px;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

.feature-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Enhanced Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e0e0e0;
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
    background: transparent; /* Ensure no background color */
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: #888;
}

.footer-logo {
    margin-bottom: 1rem;
    background: transparent; /* Ensure no background */
}

.footer-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    background: transparent; /* Ensure no background on image */
    display: block; /* Remove any inline spacing */
}

@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem;
    z-index: 3000;
    display: none;
}

.cookie-consent[aria-hidden="false"] {
    display: block;
}

/* Termly Content */
.termly-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.termly-embed {
    width: 100%;
    min-height: 800px;
    margin: 2rem 0;
}

.termly-embed iframe {
    width: 100%;
    min-height: 800px;
    border: none;
}

/* Page Header */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Page Content */
.page-content {
    padding: 3rem 0;
}

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

.page-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-body img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Case Studies */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.case-study-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.case-study-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-client {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.case-study-card h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.case-study-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.case-study-card h2 a:hover {
    color: var(--primary-color);
}

.case-study-excerpt {
    color: #666;
    margin: 1rem 0;
}

.case-study-industry {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

.case-study-date {
    color: #999;
    font-size: 0.875rem;
}

/* Case Study Detail */
.case-study-detail {
    padding: 2rem 0;
}

.case-study-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.client-logo {
    max-height: 40px;
    width: auto;
}

.case-study-section {
    margin: 3rem 0;
}

.case-study-results {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 3rem 0;
}

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

.result-item {
    text-align: center;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.result-metric {
    font-size: 1.125rem;
    margin-top: 0.5rem;
}

.result-description {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.875rem;
}

.case-study-testimonial {
    background: white;
    border-left: 4px solid var(--primary-color);
    padding: 2rem;
    margin: 3rem 0;
}

.case-study-testimonial blockquote {
    margin: 0;
    font-size: 1.25rem;
    font-style: italic;
}

.case-study-testimonial footer {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.article-card h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.article-card h2 a {
    color: var(--text-color);
    text-decoration: none;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.article-tags {
    margin-top: 1rem;
}

.tag {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Article Detail */
.article-detail {
    padding: 2rem 0;
}

.article-header {
    margin-bottom: 3rem;
}

.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-top: 2rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.author-bio {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

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

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* FAQ */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

/* Buttons */
/* Enhanced Button Styling */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sanity Images */
.sanity-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Content Sections - Continuous Flow */
.content-section {
    padding: 5rem 0;
    margin: 0;
    transition: background-color 0.5s ease, padding 0.3s ease;
    scroll-margin-top: 80px; /* Account for sticky header */
}

.content-section:first-of-type {
    padding-top: 4rem;
}

.content-section:last-of-type {
    padding-bottom: 6rem;
}

/* Smooth background transitions between sections */
.content-section + .content-section {
    margin-top: 0;
    padding-top: 4rem; /* Reduced gap for continuous feel */
}

/* Seamless flow - remove gaps */
section + section {
    margin-top: 0;
}

/* Hero to next section - seamless */
.hero + section,
.hero + .content-section {
    margin-top: 0;
    padding-top: 4rem;
}

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

/* Section Layouts */
.section-boxed .container {
    max-width: 1200px;
}

.section-full .container {
    max-width: 100%;
    padding: 0 2rem;
}

.centered-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Continuous scrolling - seamless transitions */
.content-section.section-bg-none + .content-section.section-bg-light,
.content-section.section-bg-light + .content-section.section-bg-none,
.content-section.section-bg-white + .content-section.section-bg-light,
.content-section.section-bg-light + .content-section.section-bg-white {
    transition: background-color 0.5s ease;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--gradient-end));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Section Backgrounds - Smooth Transitions */
.section-bg-none {
    background: transparent;
}

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

.section-bg-white {
    background: white;
}

.section-bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 6rem 0 !important;
}

/* Smooth gradient transitions */
.section-bg-gradient + .section-bg-none,
.section-bg-none + .section-bg-gradient {
    position: relative;
}

.section-bg-gradient::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(21, 153, 133, 0) 0%, rgba(0, 85, 150, 0) 100%);
    pointer-events: none;
}

.section-bg-gradient .section-title,
.section-bg-gradient .section-subtitle {
    color: white;
}

.text-light {
    color: white;
}

.text-light h2,
.text-light h3,
.text-light p {
    color: white;
}

/* Two Column Layouts - Seamless Integration */
.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 2rem 0;
}

.two-column-section.image-left {
    grid-template-columns: 1fr 1fr;
}

.two-column-section.image-left .column-image {
    order: -1;
}

.column-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.section-image {
    margin: 2rem 0;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Dividers - Subtle and Integrated */
.divider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 3rem 0;
    position: relative;
    transition: margin 0.3s ease;
}

/* Dividers between sections - tighter spacing */
.content-section + .divider-wrapper,
.features + .divider-wrapper,
.divider-wrapper + .content-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.divider-spacer {
    width: 100%;
}

.divider-blue-line {
    margin: 0 auto;
    background-color: #005596;
    border-radius: 2px;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.divider-blue-line:hover {
    opacity: 1;
}

.divider-gradient {
    margin: 0 auto;
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 2px;
}

.divider-dotted {
    margin: 0 auto;
    border: none;
    border-top: 2px dotted #005596;
    background: transparent;
}

.divider-thick {
    margin: 0 auto;
    background-color: #005596;
    border-radius: 4px;
}

/* Image Box Grid - Continuous Flow */
.image-box-grid-section {
    padding: 5rem 0;
    margin: 0;
}

.image-box-grid-section:first-of-type {
    padding-top: 4rem;
}

.image-box-grid-section:last-of-type {
    padding-bottom: 6rem;
}

.image-box-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.image-box-grid.columns-1 {
    grid-template-columns: 1fr;
}

.image-box-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.image-box-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.image-box-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.image-box {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box.animation-grow:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.image-box-image {
    width: 100%;
    overflow: hidden;
}

.image-box-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.image-box.animation-grow:hover .image-box-image img {
    transform: scale(1.1);
}

.image-box-content {
    padding: 1.5rem;
}

.image-box-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-box-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-box-title a:hover {
    color: var(--primary-color);
}

.image-box-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.image-box.image-position-left,
.image-box.image-position-right {
    display: flex;
    gap: 1.5rem;
}

.image-box.image-position-left .image-box-image {
    flex: 0 0 150px;
}

.image-box.image-position-right {
    flex-direction: row-reverse;
}

.image-box.image-position-right .image-box-image {
    flex: 0 0 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .two-column-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .two-column-section.image-left .column-image {
        order: 0;
    }
    
    .image-box-grid.columns-2,
    .image-box-grid.columns-3,
    .image-box-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Schedule Form */
.schedule-form {
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-form iframe {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form {
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.racking-icon {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.2rem;
    }
    
    .case-studies-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

