/* ====================================
   CSS VARIABLES - BRAND COLORS
   ==================================== */
:root {
    --color-primary: #b61f29;
    --color-light-grey: #ededed;
    --color-medium-grey: #d4d4d4;
    --color-background: #f9f9f9;
    --color-dark-grey: #51514f;
    --color-white: #fff;
    --color-text: #333;
}

/* Skip to content — visually hidden until focused */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    font-weight: 600;
    text-decoration: none;
}

.skip-to-content:focus {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

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

/* Prevent images and embedded content from causing overflow */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: clip;
    width: 100%;
}

/* Container for centered content with max-width */
.container-width {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.container-standard {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Unified section container - ensures all sections have same width and centered alignment */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
}

/* Text Selection Styling - Red Highlight */
::selection {
    background-color: #b61f29;
    color: white;
}

/* Header Styles */
header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-light-grey);
    padding: 1.25rem 2rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 55px;
    width: auto;
    max-width: 150px;
    max-height: 55px;
}

header nav {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 7px;
    z-index: 1001;
    transition: all 0.3s ease;
    align-items: center;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark-grey);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 12px rgb(0 0 0 / 10%);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 5rem 0 2rem;
}

.mobile-nav-overlay.active {
    right: 0;
}

.mobile-nav-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.mobile-nav-overlay nav {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-overlay nav > a {
    padding: 1rem 1.5rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-light-grey);
    transition: all 0.2s ease;
    position: relative;
}

.mobile-nav-overlay nav > a::after {
    display: none !important;
}

.mobile-nav-overlay nav > a:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
}

.mobile-nav-overlay nav > a.active {
    background-color: var(--color-background);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
}

.mobile-nav-overlay .nav-cta {
    margin: 1rem 1.5rem;
    text-align: center;
    border-bottom: none;
    border-radius: 5px;
    padding: 0.875rem 1.5rem;
}

/* Mobile Nav - Expandable Menu Item */
.mobile-nav-item {
    position: relative;
    border-bottom: 1px solid var(--color-light-grey);
}

.mobile-nav-item > .menu-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--color-dark-grey);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.mobile-nav-item > .menu-label:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
}

.mobile-nav-item .submenu-toggle {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    color: var(--color-primary);
}

.mobile-nav-item.expanded .submenu-toggle {
    transform: rotate(180deg);
}

/* Mobile Submenu */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--color-background);
}

.mobile-submenu.expanded {
    max-height: 500px;
}

.mobile-submenu a {
    display: block;
    padding: 0.875rem 1.5rem 0.875rem 2.5rem;
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-submenu a::after {
    display: none !important;
}

.mobile-submenu a::before {
    content: "→";
    position: absolute;
    left: 1.5rem;
    color: var(--color-primary);
    font-size: 0.8rem;
}

.mobile-submenu a:hover {
    background-color: rgb(0 0 0 / 5%);
    color: var(--color-primary);
}

.mobile-submenu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile Navigation Backdrop */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgb(0 0 0 / 50%);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

header nav a {
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

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

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

header nav a:hover::after {
    width: 100%;
}

header nav a.active {
    color: var(--color-primary);
}

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

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.0625rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    position: relative;
}

/* Button-specific styles to make it look like a link */
.nav-dropdown > button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.nav-dropdown:hover > a,
.nav-dropdown:hover > button {
    color: var(--color-primary);
}

.nav-dropdown:hover > a::after,
.nav-dropdown:hover > button::after {
    width: 100%;
}

.nav-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0 0 0 / 12%);
    border-radius: 5px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Add invisible bridge to prevent dropdown from closing */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: transparent;
    z-index: 999;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nav-dropdown .dropdown-content a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    white-space: nowrap;
}

.nav-dropdown .dropdown-content a::after {
    display: none !important;
}

.nav-dropdown .dropdown-content a:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 1.5rem;
}

.nav-dropdown .dropdown-content a.active {
    color: var(--color-primary);
    background-color: var(--color-background);
    border-left-color: var(--color-primary);
}

/* Mega Menu Styles */
.mega-menu .mega-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    min-width: 240px;
    box-shadow: 0 4px 16px rgba(0 0 0 / 12%);
    border-radius: 5px;
    padding: 1rem 0;
    margin-top: 0.5rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.mega-menu:hover .mega-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.mega-menu-column a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.mega-menu-column a::after {
    display: none !important;
}

.mega-menu-column a:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    padding-left: 1.75rem;
}

.mega-menu-column a.active {
    color: var(--color-primary);
    background-color: var(--color-background);
    border-left-color: var(--color-primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #951822 100%);
    color: var(--color-white) !important;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgb(182 31 41 / 20%);
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgb(182 31 41 / 30%);
}

/* Language Switcher */
.lang-switcher-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.lang-switcher-btn:hover {
    opacity: 1;
}

.lang-switcher > .lang-switcher-btn::after {
    display: none;
}

.lang-dropdown {
    min-width: 175px;
    right: 0;
    left: auto;
}


/* Mobile language switcher */
.mobile-lang-switcher {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--color-border, #e0e0e0);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.mobile-lang-switcher a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--color-dark-grey);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-lang-switcher a::after {
    display: none !important;
}

.mobile-lang-switcher a:hover,
.mobile-lang-switcher a.active {
    color: var(--color-primary);
}


/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    margin-bottom: 2rem;
}

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

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Footer Styles */
/* Footer styles moved to comprehensive footer section below */

/* ====================================
   CUSTOMER SUCCESS PAGE STYLES
   ==================================== */

/* Hero Section with KPIs */
.hero-with-kpis {
    text-align: center;
    padding: 3rem 2rem 2rem;
    background-image:
        linear-gradient(rgb(0 0 0 / 50%), rgb(0 0 0 / 50%)),
        url('../assets/images/events-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 2.5rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    position: relative;
}

/* Customer Success page variant - no background image */
.hero-with-kpis.no-background {
    background-image: none;
    background-color: var(--color-light-grey);
}

.hero-with-kpis.no-background h1,
.hero-with-kpis.no-background p {
    color: var(--color-dark-grey);
    text-shadow: none;
}

.hero-with-kpis.fade-in-visible {
    opacity: 1;
}

.hero-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.hero-with-kpis h1 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgb(0 0 0 / 30%);
}

.hero-with-kpis p {
    font-size: 1.1rem;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
}

/* KPIs Section */
.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.kpi-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    border-color: var(--color-primary);
}

.kpi-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
}

.kpi-label {
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    line-height: 1.4;
}

/* Featured Success Stories */
.featured-stories {
    margin: 2rem 0;
}

.featured-stories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-intro {
    text-align: center;
    font-size: 1rem;
    color: var(--color-dark-grey);
    margin-bottom: 2rem;
}

.success-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.success-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.success-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 10%);
    border-color: var(--color-medium-grey);
}

.card-logo {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-logo img {
    max-width: 160px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-info {
    border-top: 1px solid var(--color-light-grey);
    border-bottom: 1px solid var(--color-light-grey);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    color: var(--color-dark-grey);
    font-weight: 500;
}

.info-row .value {
    color: var(--color-text);
    font-weight: 600;
}

.card-description {
    color: var(--color-dark-grey);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.key-results {
    background-color: var(--color-background);
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.key-results h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.key-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-results li {
    padding: 0.4rem 0;
    color: var(--color-dark-grey);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.25rem;
}

.key-results li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
    margin-top: auto;
}

.card-link:hover {
    color: #951822;
    transform: translateX(4px);
}

/* Quotes Section */
.quotes-section {
    margin: 2rem 0;
    padding: 2rem 1rem;
    background-color: var(--color-background);
}

.quotes-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Quote card styles moved to customer-story.css to avoid conflicts */

/* Customer Logos Carousel */
.customer-logos {
    margin: 3.5rem 0;
    padding: 2.5rem 0;
    background-color: var(--color-background);
}

.customer-logos h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.logo-carousel-container {
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
    padding: 2rem 0;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.logo-carousel {
    display: flex;
    gap: 4rem;
    animation: scroll 120s linear infinite;
    width: fit-content;
}

.logo-carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.logo-item img {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
    opacity: 1;
    filter: grayscale(0%);
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

.logo-item:hover img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.15);
}

/* Industries Section */
.industries-section {
    margin: 3.5rem 0;
}

.industries-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Filter Section */
.filter-section {
    text-align: center;
    margin-top: 3rem;
}

.filter-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.filter-section .section-intro {
    color: var(--color-dark-grey);
    margin-bottom: 2rem;
}

/* Industry Filter Pills */
.industry-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1400px;
}

.filter-pill {
    background: var(--color-white);
    border: 1px solid var(--color-medium-grey);
    border-radius: 5px;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    color: var(--color-dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.filter-pill:hover {
    border-color: var(--color-primary);
    background-color: var(--color-background);
}

.filter-pill.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.filter-pill .count {
    font-weight: 400;
    opacity: 0.85;
}

/* Customer Grid */
.customers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
    width: 100%;
    box-sizing: border-box;
}

/* Detailed Customer Cards */
.customer-detail-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: left;
}

.customer-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    border-color: var(--color-primary);
}

.customer-detail-card.hidden-card {
    display: none;
}

.customer-card-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.customer-card-logo img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.customer-detail-card:hover .customer-card-logo img {
    opacity: 1;
}

.customer-card-logo span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    text-align: left;
}

.customer-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 1rem;
    text-align: left;
}

.customer-card-meta {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.25rem 0;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--color-dark-grey);
    font-weight: 500;
    text-align: left;
}

.meta-value {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 600;
    text-align: left;
}

.customer-card-description {
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    line-height: 1.5;
    margin: 1rem 0 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.customer-card-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    align-self: flex-start;
    text-align: left;
}

.customer-card-link:hover {
    color: #951822;
    text-decoration: underline;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 5px;
    margin: 2rem 0;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #b61f29;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease;
    border: 2px solid #b61f29;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #b61f29;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease;
    border: 2px solid #b61f29;
    cursor: pointer;
}

.btn-secondary:hover {
    transform: scale(1.05);
}

/* Primary Button Inverted - For use on red backgrounds */
.btn-primary-inverted {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: #b61f29;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary-inverted:hover {
    transform: scale(1.05);
    background-color: rgb(255 255 255 / 90%);
}

/* Secondary Button Inverted - For use on red backgrounds */
.btn-secondary-inverted {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-secondary-inverted:hover {
    transform: scale(1.05);
    background-color: rgb(255 255 255 / 10%);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #951822;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgb(0 0 0 / 30%);
}

/* Responsive Design - Show hamburger when nav doesn't fit */
@media (width <= 1100px) {
    /* Show hamburger menu when nav starts to wrap */
    .hamburger-menu {
        display: flex;
    }

    /* Hide desktop navigation */
    header nav {
        display: none;
    }
}

/* Mobile specific adjustments */
@media (width <= 768px) {
    header {
        padding: 1.25rem 1.5rem;
    }

    .header-container {
        flex-direction: row;
        gap: 1rem;
    }

    .logo img {
        height: 45px;
        max-width: 120px;
        max-height: 45px;
    }

    /* Improve touch targets */
    a, button, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better spacing for mobile */
    main {
        padding: 1.5rem;
    }

    section {
        margin-bottom: 2rem;
    }

    /* Scroll to top button - smaller on mobile */
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

    .hero-simple h1 {
        font-size: 2rem;
    }

    .hero-simple p {
        font-size: 1rem;
    }

    .kpis {
        grid-template-columns: 1fr;
    }

    .success-cards {
        grid-template-columns: 1fr;
    }

    .hero-with-kpis h1 {
        font-size: 2rem;
    }

    .hero-with-kpis p {
        font-size: 1rem;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
    }

    .logo-item {
        min-width: 140px;
    }

    .logo-item img {
        max-width: 100px;
        max-height: 40px;
    }

    .industry-filters {
        gap: 0.75rem;
    }

    .filter-pill {
        font-size: 0.875rem;
        padding: 0.6rem 1.1rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .customers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .customer-detail-card {
        padding: 1.5rem;
    }

    .customer-card-title {
        font-size: 1.1rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}

/* ====================================
   EVENTS PAGE STYLES
   ==================================== */

/* Bee360 Events, Conferences, and Past Events Sections */
.bee360-events-section,
.conferences-section,
.past-events-section {
    margin: 2rem 0;
    padding: 2rem 1rem;
    background-color: var(--color-background);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.bee360-events-section.fade-in-visible,
.conferences-section.fade-in-visible,
.past-events-section.fade-in-visible {
    opacity: 1;
}


.past-event-header {
    background: var(--color-medium-grey);
    color: var(--color-text);
}

.badge-past {
    background-color: #e0e0e0;
    color: var(--color-dark-grey);
}

/* Event Highlights Button */
.event-highlights-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.event-highlights-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateX(2px);
}

.bee360-events-section h2,
.conferences-section h2,
.past-events-section h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Compact Filter Bar */
.compact-filters {
    background: var(--color-background);
    border-radius: 5px;
    padding: 1rem;
    margin: 1.5rem auto;
    max-width: 1400px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.compact-filters.fade-in-visible {
    opacity: 1;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-group-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-dropdown label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark-grey);
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-medium-grey);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.filter-select:hover {
    border-color: var(--color-primary);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgb(182 31 41 / 10%);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.event-search-input-compact {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid var(--color-medium-grey);
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.event-search-input-compact:focus {
    outline: none;
    border-color: var(--color-primary);
}

.event-search-input-compact::placeholder {
    color: var(--color-medium-grey);
}

.clear-filters-btn-compact {
    background: var(--color-white);
    border: 1px solid var(--color-medium-grey);
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--color-dark-grey);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
}

.clear-filters-btn-compact:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.results-count-compact {
    font-size: 0.875rem;
    color: var(--color-dark-grey);
    font-weight: 500;
    white-space: nowrap;
}

.results-count-compact #resultsCount {
    font-weight: 700;
    color: var(--color-primary);
}

/* Events List - Modern */
.events-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    overflow: hidden;
}

/* Event List Item */
.event-card {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-grey);
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    opacity: 0;
    transform: translateY(20px);
}

.event-card.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card:last-child {
    border-bottom: none;
}

.event-card:nth-child(even) {
    background-color: var(--color-background);
}

.event-card:hover {
    background-color: #fff8f8;
    box-shadow: inset 3px 0 0 var(--color-primary);
}

/* Event Date Badge */
.event-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-light-grey);
    color: var(--color-text);
    border-radius: 5px;
    padding: 0.75rem;
    min-width: 140px;
}

/* Upcoming events - Red theme */
.bee360-events-section .event-card-header {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Past events - Grey theme (default) */
.past-events-section .event-card-header {
    background: var(--color-light-grey);
    color: var(--color-text);
}

.event-date {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.event-date-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.event-date-time {
    font-size: 0.7rem;
    margin-top: 0.25rem;
    opacity: 0.85;
}

/* Event Content - Middle Section */
.event-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.event-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
}

.event-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-dark-grey);
}

.detail-icon {
    min-width: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    display: inline-block;
    vertical-align: middle;
}

.detail-text {
    color: var(--color-text);
    line-height: 1.4;
}

.detail-text strong {
    color: var(--color-dark-grey);
    font-weight: 600;
}

/* Event Type Badges - Compact */
.event-type-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-webinar {
    background-color: #e3f2fd;
    color: #1565c0;
}

.badge-afterwork {
    background-color: #fff9e6;
    color: #f57c00;
}

.badge-product-update {
    background-color: #fde8e9;
    color: #b61f29;
}

.badge-conference {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.badge-online {
    background-color: #f5f5f5;
    color: #666;
}

/* Event Actions - Right Section */
.event-card-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 160px;
}

.event-register-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.event-register-btn:hover {
    background-color: #951822;
    transform: translateX(2px);
}

.calendar-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: 100%;
}

.calendar-download-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateX(2px);
}

/* Empty State */
.events-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-dark-grey);
    background: var(--color-background);
}

.events-empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.events-empty-state p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Event cards on tablet (between hamburger breakpoint and mobile) */
@media (width > 768px) and (width <= 1100px) {
    .event-card {
        grid-template-columns: 110px 1fr auto;
        gap: 1rem;
        padding: 1rem 1.25rem;
    }

    .event-card-header {
        min-width: 110px;
        padding: 0.6rem;
    }

    .event-date {
        font-size: 1.25rem;
    }
}

/* Responsive Design for Events Page */
@media (width <= 768px) {
    .compact-filters {
        padding: 0.875rem;
    }

    .filter-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-group-dropdown {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: 0;
    }

    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .event-search-input-compact {
        width: 100%;
    }

    .clear-filters-btn-compact,
    .results-count-compact {
        width: 100%;
        text-align: center;
    }

    /* Event List Mobile Layout */
    .event-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .event-card-header {
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .event-date {
        font-size: 1.25rem;
    }

    .event-date-month {
        font-size: 0.7rem;
    }

    .event-date-time {
        font-size: 0.65rem;
    }

    .event-title {
        font-size: 1rem;
    }

    .event-details {
        flex-direction: column;
        gap: 0.5rem;
    }

    .event-card-footer {
        flex-direction: column;
        justify-content: stretch;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
    }

    .event-register-btn,
    .calendar-download-btn,
    .event-highlights-btn {
        width: 100%;
    }
}

/* ====================================
   LEGAL PAGES STYLES
   ==================================== */

/* Legal Page Layout */
.legal-page {
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 3rem 2rem;
}

.legal-page h1 {
    font-size: 2.75rem;
    color: var(--color-dark-grey);
    font-weight: 700;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-primary);
    letter-spacing: -0.5px;
}

.legal-page h2 {
    font-size: 1.625rem;
    color: var(--color-dark-grey);
    font-weight: 700;
    margin: 4rem 0 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    letter-spacing: -0.3px;
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page h3 {
    font-size: 1.25rem;
    color: var(--color-dark-grey);
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    letter-spacing: -0.2px;
}

/* Red links for legal pages */
.legal-page a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-page a:hover {
    color: #951822;
    text-decoration: underline;
}

.legal-page p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
    max-width: 800px;
}

.legal-page strong {
    color: var(--color-dark-grey);
    font-weight: 600;
}

.legal-page br {
    line-height: 2;
}

/* Contact boxes for legal pages */
.contact-box {
    background-color: #fafafa;
    border-left: 3px solid var(--color-primary);
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgb(0 0 0 / 5%);
    transition: box-shadow 0.3s ease;
}

.contact-box:hover {
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}

.contact-box p {
    margin-bottom: 1.25rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.contact-box strong {
    color: var(--color-dark-grey);
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.intro-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    padding: 2.5rem;
    border-radius: 5px;
    margin-bottom: 3.5rem;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
}

.intro-section h2 {
    margin-top: 0;
    font-size: 1.875rem;
    color: var(--color-dark-grey);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
}

.intro-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.intro-section p:last-child {
    margin-bottom: 0;
}

.intro-section p strong {
    color: var(--color-dark-grey);
}

.intro-section .intro-text p strong {
    color: #eae066;
}

/* Quick Links Section */
.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
    box-sizing: border-box;
}

.quick-link-item {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.quick-link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    border-color: var(--color-primary);
}

.quick-link-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    color: var(--color-text);
}

.quick-link-item p {
    margin: 0;
}

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

.link-arrow:hover {
    color: #951822;
    text-decoration: underline;
}

/* Legal Documents Table */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.legal-documents-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-white);
}

.legal-documents-table thead {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
}

.legal-documents-table thead th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-documents-table thead th:first-child {
    width: 20%;
}

.legal-documents-table thead th:nth-child(2) {
    width: 55%;
}

.legal-documents-table thead th:last-child {
    width: 25%;
}

.legal-documents-table tbody tr {
    border-bottom: 1px solid var(--color-light-grey);
    transition: background-color 0.3s ease;
}

.legal-documents-table tbody tr:last-child {
    border-bottom: none;
}

.legal-documents-table tbody tr:hover {
    background-color: #fff8f8;
}

.legal-documents-table tbody td {
    padding: 1.5rem;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-documents-table tbody td strong {
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
}

.legal-documents-table tbody td:nth-child(2) {
    color: var(--color-dark-grey);
}

/* Download Links Column */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.download-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.download-links a:hover {
    color: #951822;
    text-decoration: underline;
}

/* Privacy Policy & Imprint Styles */
.legal-page ul {
    margin: 1.5rem 0 2rem;
    line-height: 1.8;
    list-style: none;
    padding-left: 0;
}

.legal-page ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.legal-page ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.legal-page ol {
    margin: 1.5rem 0 2rem;
    line-height: 1.8;
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.legal-page li {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1rem;
}

.legal-page ol > li {
    counter-increment: item;
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1rem;
}

.legal-page ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
    width: 2.5rem;
}

/* Nested lists */
.legal-page ul ul,
.legal-page ol ol {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-page ul ul li::before {
    content: "◦";
    font-size: 1rem;
}

/* Table of Contents Styling */
.table-of-contents {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-primary);
    border-radius: 5px;
    padding: 2rem;
    padding-left: 2rem !important;
    margin: 2rem 0 3rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 4%);
    counter-reset: toc-counter;
    list-style: none;
}

.table-of-contents li {
    margin-bottom: 0.75rem;
    padding-left: 2.75rem;
    position: relative;
    line-height: 1.6;
}

.table-of-contents > li::before {
    content: counter(toc-counter) ".";
    counter-increment: toc-counter;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 700;
    width: 2.5rem;
    text-align: left;
    line-height: 1.6;
}

.table-of-contents a {
    color: var(--color-dark-grey);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    line-height: 1.6;
}

.table-of-contents a:hover {
    color: var(--color-primary);
    text-decoration: none;
    transform: translateX(5px);
}

/* Responsive Legal Pages */
@media (width <= 768px) {
    .legal-page {
        padding: 2rem 1.5rem;
    }

    .legal-page h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .legal-page h2 {
        font-size: 1.375rem;
        margin: 3rem 0 1rem;
        padding-top: 1.5rem;
    }

    .legal-page h3 {
        font-size: 1.125rem;
        margin: 2rem 0 0.75rem;
    }

    .intro-section {
        padding: 1.75rem;
        margin-bottom: 2.5rem;
    }

    .intro-section h2 {
        font-size: 1.5rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }

    .legal-documents-table thead th,
    .legal-documents-table tbody td {
        padding: 1rem;
        font-size: 0.875rem;
    }

    .legal-documents-table thead th {
        font-size: 0.85rem;
    }

    .download-links a {
        font-size: 0.85rem;
    }
}

/* ====================================
   FOOTER STYLES - COMPREHENSIVE
   ==================================== */

footer {
    background-color: var(--color-dark-grey);
    color: var(--color-white);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-subheading {
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

.footer-section p {
    color: var(--color-medium-grey);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--color-medium-grey);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-contact {
    grid-column: 1;
}

.footer-contact .address {
    margin-bottom: 1rem;
}

.footer-contact .find-us-link {
    color: var(--color-white);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.footer-contact .find-us-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.footer-pages,
.footer-legal,
.footer-social {
    display: flex;
    flex-direction: column;
}

.footer-pages ul,
.footer-legal ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-pages li,
.footer-legal li,
.footer-social li {
    margin-bottom: 0.75rem;
}

.footer-pages a,
.footer-legal a,
.footer-social a {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-bottom: 0;
}

.social-links a:hover {
    background-color: var(--color-white);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    fill: var(--color-white);
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: var(--color-primary);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgb(255 255 255 / 10%);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-medium-grey);
    font-size: 0.875rem;
}

/* Responsive Footer */
@media (width <= 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (width <= 768px) {
    footer {
        padding: 2rem 1.5rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-contact {
        grid-column: 1;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .social-links {
        justify-content: flex-start;
    }
}

/* ====================================
   COOKIE BANNER (GDPR COMPLIANCE)
   ServiceNow-inspired centered modal design
   ==================================== */

/* Cookie banner overlay */
#cookieBannerOverlay {
    position: fixed;
    inset: 0;
    background-color: rgb(0 0 0 / 60%);
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#cookieBannerOverlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

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

/* Cookie banner container - Centered modal */
.cookie-banner {
    background-color: var(--color-white);
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 8px 32px rgb(0 0 0 / 20%);
    border-radius: 12px;
    animation: slideIn 0.4s ease-out;
    position: relative;
}

/* Detailed view - larger modal */
.cookie-banner.cookie--detailed {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Cookie banner header */
.cookie-banner-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.cookie-banner-header h2 {
    font-size: 1.75rem;
    color: #333;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.cookie-banner-logo {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

/* Back button for detailed view */
.cookie-btn-back {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.cookie-btn-back:hover {
    color: #951822;
}

/* Cookie banner content */
.cookie-banner-content {
    margin-bottom: 2rem;
}

.cookie-banner-content p,
.cookie-banner-intro p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.cookie-banner-content a,
.cookie-banner-intro a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-banner-content a:hover,
.cookie-banner-intro a:hover {
    text-decoration: underline;
}

.cookie-banner-intro {
    margin-bottom: 1.5rem;
}

/* Cookie categories */
.cookie-categories {
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-light-grey);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-category {
    border-bottom: 1px solid var(--color-light-grey);
    padding: 1rem;
    background-color: #fafafa;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-category-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cookie-category-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-title {
    flex: 1;
}

.cookie-category-title strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cookie-category-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-left: 1.75rem;
}

.cookie-category-warning {
    background-color: #fff8e6;
    border-left: 3px solid #ffa500;
    padding: 0.75rem;
    margin-top: 0.75rem;
    margin-left: 1.75rem;
    border-radius: 5px;
    font-size: 0.875rem;
    color: #666;
}

.cookie-category-warning strong {
    color: #ff8c00;
}

/* Cookie banner actions - ServiceNow style buttons */
.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cookie-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-family: inherit;
}

/* Primary button (Accept All) - Dark button like ServiceNow */
.cookie-btn-primary {
    background-color: #2d2d2d;
    color: var(--color-white);
}

.cookie-btn-primary:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
}

/* Secondary buttons (Essential Only, Manage Preferences) */
.cookie-btn-secondary {
    background-color: #2d2d2d;
    color: var(--color-white);
}

.cookie-btn-secondary:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 25%);
}

/* Cookie banner footer */
.cookie-banner-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.875rem;
}

.cookie-banner-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-banner-footer a:hover {
    color: #951822;
    text-decoration: underline;
}

/* Cookie settings link in footer */
.cookie-settings-link {
    cursor: pointer;
    color: var(--color-white);
    text-decoration: underline;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.3rem 0.25rem;
    font: inherit;
    display: inline-block;
}

.cookie-settings-link:hover {
    color: var(--color-primary);
}

/* Responsive cookie banner */
@media (width <= 768px) {
    #cookieBannerOverlay.show {
        padding: 1rem;
        align-items: center;
    }

    .cookie-banner {
        padding: 2rem 1.5rem;
        border-radius: 8px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookie-banner.cookie--detailed {
        max-height: 95vh;
    }

    .cookie-banner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-banner-header h2 {
        font-size: 1.5rem;
    }

    .cookie-banner-logo {
        height: 35px;
    }

    .cookie-btn-back {
        top: 1rem;
        right: 1.5rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cookie-btn {
        width: 100%;
        min-width: auto;
    }

    .cookie-category-description,
    .cookie-category-warning {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/* ====================================
   BOOKING PAGE STYLES
   ==================================== */

/* Booking Hero Section */
.booking-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #951822 100%);
    color: var(--color-white);
    margin-bottom: 3rem;
}

.booking-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.booking-hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* What to Expect Section */
.what-to-expect {
    padding: 3rem 2rem;
    background-color: var(--color-background);
    margin-bottom: 3rem;
}

.what-to-expect h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.expect-card {
    background: var(--color-white);
    padding: 2rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expect-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 12%);
}

.expect-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.expect-card h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.expect-card p {
    color: var(--color-dark-grey);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Team Selection Section */
.team-selection {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
}

.team-selection h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 2.5rem auto 0;
    width: 100%;
    box-sizing: border-box;
}

.team-member-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgb(0 0 0 / 15%);
}

.team-member-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-white) 100%);
    border-bottom: 1px solid var(--color-light-grey);
}

.team-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.team-info h3 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

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

.team-region {
    font-size: 0.9rem;
    color: var(--color-dark-grey);
    margin: 0;
}

.team-member-body {
    padding: 2rem;
}

.team-bio {
    color: var(--color-dark-grey);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-schedule {
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 5px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: inherit;
}

.btn-schedule:hover {
    background-color: #951822;
    transform: translateY(-2px);
}

.scheduler-embed {
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-light-grey);
    padding-top: 1.5rem;
}

.scheduler-embed iframe {
    border-radius: 5px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}

/* FAQ Section */
.faq-section {
    padding: 3rem 2rem;
    background-color: var(--color-background);
    margin-bottom: 3rem;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

.faq-container {
    max-width: 1400px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: inherit;
}

.faq-question:hover {
    background-color: var(--color-background);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 300;
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

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

.faq-answer p {
    color: var(--color-dark-grey);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* Alternative Contact Section */
.alternative-contact {
    padding: 3rem 2rem;
    text-align: center;
}

.alternative-contact h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.alternative-contact > p {
    color: var(--color-dark-grey);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.contact-option {
    background: var(--color-background);
    padding: 2rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-option h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.contact-option p {
    color: var(--color-dark-grey);
    line-height: 1.6;
    margin: 0;
}

.contact-option a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-option a:hover {
    color: #951822;
    text-decoration: underline;
}

/* Responsive Design for Booking Page */
@media (width <= 768px) {
    .booking-hero h1 {
        font-size: 2rem;
    }

    .booking-hero p {
        font-size: 1.1rem;
    }

    .expect-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-member-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .team-photo {
        width: 120px;
        height: 120px;
    }

    .team-member-body {
        padding: 1.5rem;
    }

    .btn-schedule {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Demo Topics Section */
.demo-topics {
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.demo-topics h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.topic-card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: 5px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgb(0 0 0 / 10%);
    border-color: var(--color-primary);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    font-size: 1.125rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.topic-card p {
    color: var(--color-dark-grey);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for demo topics */
@media (width <= 768px) {
    .demo-topics {
        padding: 2rem 1.5rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .topic-card {
        padding: 1.5rem;
    }

    .topic-card h3 {
        font-size: 1rem;
    }
}

/* ====================================
   ENHANCED MOBILE BREAKPOINT - Very Small Screens
   ==================================== */
@media (width <= 480px) {
    /* Reduce padding on very small screens */
    main {
        padding: 1rem;
    }

    header {
        padding: 1rem;
    }

    /* Ensure logo doesn't overflow on small screens */
    .logo img {
        height: 40px;
        max-width: 100px;
        max-height: 40px;
    }

    .hero-with-kpis {
        padding: 2rem 1rem 1.5rem;
    }

    .booking-hero {
        padding: 2.5rem 1rem 2rem;
    }

    .what-to-expect,
    .team-selection,
    .faq-section,
    .alternative-contact,
    .demo-topics {
        padding: 2rem 1rem;
    }

    /* Ensure all sections respect container width */
    section {
        width: 100%;
        overflow-x: hidden;
    }

    /* Reduce heading sizes on very small screens */
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Ensure all containers respect viewport */
    .kpis,
    .success-cards,
    .quotes-grid,
    .customers-grid,
    .quick-links,
    .expect-grid,
    .team-grid,
    .contact-options,
    .topics-grid {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ====================================
   CRITICAL MOBILE OVERFLOW FIX - DISABLED
   This broad override was preventing centered content containers from working.
   Mobile-specific fixes are still active in @media queries below.
   ==================================== */


/* [style*="max-width"] override - DISABLED
   This was preventing inline max-width values from working. */


/* ====================================
   ENHANCED MOBILE BREAKPOINT - Extra Small Screens (≤400px)
   ==================================== */
@media (width <= 400px) {
    /* Extra constraints for logo on very small screens */
    .logo img {
        height: 35px;
        max-width: 90px;
        max-height: 35px;
    }

    /* Aggressive font size reduction for very small screens */
    h1,
    .hero-content h1,
    .hero-with-kpis h1,
    [style*="font-size: 4rem"],
    [style*="font-size: 3.5rem"],
    [style*="font-size: 3rem"] {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    h2 {
        font-size: 1.3rem !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    p {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
    }

    /* Reduce all padding to minimum */
    .hero-with-kpis,
    .hero-content,
    .content-section,
    section {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    /* Ensure buttons don't overflow */
    .btn,
    .nav-cta,
    a[class*="btn"] {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        text-align: center !important;
    }

    /* Fix button containers */
    div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }

    /* Ensure all images respect viewport */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix logo slider if present */
    .logo-slider,
    .logo-track {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ====================================
   ADDITIONAL MOBILE FIXES (≤480px)
   ==================================== */
@media (width <= 480px) {
    /* Ensure hero headings don't overflow */
    h1,
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }

    /* Override any inline styles that cause overflow */
    [style*="font-size: 4rem"],
    [style*="font-size: 3.5rem"],
    [style*="font-size: 3rem"],
    [style*="font-size: 2.5rem"] {
        font-size: 1.75rem !important;
    }

    [style*="font-size: 1.4rem"] {
        font-size: 1.1rem !important;
    }

    /* Ensure sections respect viewport */
    section,
    .content-section,
    .hero-with-kpis {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Fix any containers with max-width */
    [style*="max-width: 900px"],
    [style*="max-width: 1200px"],
    [style*="max-width: 1400px"] {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
