/* CleanTime - single source of truth CSS - auto-generated */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
@layer reset, base, layout, components, utilities;

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

    img, picture, video, canvas, svg {
        display: block;
        max-width: 100%;
    }

    button, input, select, textarea {
        font: inherit;
        color: inherit;
    }

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

    ul, ol {
        margin: 0;
        padding: 0;
    }
}

@layer base {
    :root {
        color-scheme: light dark;
        --container-max: 1380px;
        --container-padding: 1.5rem;
        --container-padding-wide: 2rem;
        
        /* Light mode defaults */
        --color-primary: #111111;
        --color-secondary: #333333;
        --color-text: #222222;
        --color-background: #ffffff;
        --color-surface: #f8fafc;
        --color-border: #e2e8f0;
        --color-nav-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        --color-footer-bg: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        --color-muted-text: #64748b;
        --color-accent: #0066ff;
        --color-floating-cta-text: #ffffff; /* Always white label for floating CTA */
        /* Hero overlay */
        --hero-overlay-start: rgba(0, 0, 0, 0.04);
        --hero-overlay-end: rgba(0, 0, 0, 0.18);
        
        /* Alternating background colors for flexible content */
        --color-alt-bg-1: #f8fafc;  /* Soft light gray for odd sections in light mode */
        --color-alt-bg-2: #ffffff;  /* White for even sections in light mode */
        
        /* Helper variables */
        --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);
        --transition-all: all 0.3s ease;
    }
    
    /* Dark mode - system preference */
    @media (prefers-color-scheme: dark) {
        :root {
            --color-primary: #ffffff;
            --color-secondary: #e0e0e0;
            --color-text: #e8e8e8;
            --color-background: #0f0f0f;
            --color-surface: #171717;
            --color-border: #2d2d2d;
            --color-nav-bg: linear-gradient(135deg, #171717 0%, #1f1f1f 100%);
            --color-footer-bg: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
            --color-muted-text: #ced4e0;
            --color-accent: #4d9fff;
            --color-floating-cta-text: #ffffff;
            /* Hero overlay */
            --hero-overlay-start: rgba(0, 0, 0, 0.05);
            --hero-overlay-end: rgba(0, 0, 0, 0.25);
            
            /* Alternating background colors for flexible content */
            --color-alt-bg-1: #1f1f1f;  /* Medium-dark gray for odd sections in dark mode */
            --color-alt-bg-2: #000000;  /* Black for even sections in dark mode */
            
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
        }
    }
    
    /* Explicit dark mode class override */
    .dark-mode {
        color-scheme: dark;
        --color-primary: #ffffff;
        --color-secondary: #e0e0e0;
        --color-text: #e8e8e8;
        --color-background: #0f0f0f;
        --color-surface: #171717;
        --color-border: #2d2d2d;
        --color-nav-bg: linear-gradient(135deg, #171717 0%, #1f1f1f 100%);
        --color-footer-bg: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
        --color-muted-text: #ced4e0;
        --color-accent: #4d9fff;
        /* Hero overlay */
        --hero-overlay-start: rgba(0, 0, 0, 0.05);
        --hero-overlay-end: rgba(0, 0, 0, 0.25);
        
        /* Alternating background colors for flexible content */
        --color-alt-bg-1: #1f1f1f;  /* Medium-dark gray for odd sections in dark mode */
        --color-alt-bg-2: #000000;  /* Black for even sections in dark mode */
        
        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    /* Explicit light mode class override */
    .light-mode {
        color-scheme: light;
        --color-primary: #111111;
        --color-secondary: #333333;
        --color-text: #222222;
        --color-background: #ffffff;
        --color-surface: #f8fafc;
        --color-border: #e2e8f0;
        --color-nav-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        --color-footer-bg: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        --color-muted-text: #64748b;
        --color-accent: #0066ff;
        --color-floating-cta-text: #ffffff;
        /* Hero overlay */
        --hero-overlay-start: rgba(0, 0, 0, 0.04);
        --hero-overlay-end: rgba(0, 0, 0, 0.18);
        
        /* Alternating background colors for flexible content */
        --color-alt-bg-1: #f8fafc;  /* Soft light gray for odd sections in light mode */
        --color-alt-bg-2: #ffffff;  /* White for even sections in light mode */
        
        --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);
    }

    @media (min-width: 1400px) {
        :root {
            --container-padding: var(--container-padding-wide);
        }
    }

    .container,
    .nav-container,
    .footer-container {
        width: 100%;
        max-width: min(100%, var(--container-max));
        margin-left: auto;
        margin-right: auto;
        padding-left: max(var(--container-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--container-padding), env(safe-area-inset-right, 0px));
    }

    .container-full {
        width: 100%;
        padding-left: max(var(--container-padding), env(safe-area-inset-left, 0px));
        padding-right: max(var(--container-padding), env(safe-area-inset-right, 0px));
    }

    .cleantime-theme {
        --primary-color: var(--color-primary);
        --secondary-color: var(--color-secondary);
        --background-color: var(--color-background);
        --text-color: var(--color-text);
        --card-background: var(--color-surface);
        --border-color: var(--color-border);
    }

    body {
        background-color: var(--color-background);
        font-family: 'Lato', Arial, sans-serif;
        color: var(--color-text);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        line-height: 1.5;
    }

    p {
        margin-bottom: 1em;
    }

    strong {
        font-weight: 700;
    }
}

@layer layout {
    main, .main-content {
        flex: 1;
        padding-top: 80px;
    }

    header, main, footer {
        width: 100%;
    }
}

@layer components {
    /* Navigation tweaks */
    .nav-logo-link {
        text-decoration: none;
        color: inherit;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    /* Home hero */
    .home-hero {
        position: relative;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-surface);
        overflow: hidden;
    }

    .home-hero__image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.9);
        z-index: 0;
    }

    .home-hero .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
        z-index: 1;
    }

    .home-hero .hero-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 120px 20px 80px;
    }

    .home-title {
        font-size: 3rem;
        letter-spacing: -0.02em;
        margin-bottom: 0.75rem;
    }

    .home-subtitle {
        font-size: 1.2rem;
        color: var(--color-muted-text);
        max-width: 820px;
        margin: 0 auto;
    }

    @media (max-width: 768px) {
        .home-hero {
            min-height: 60vh;
        }

        .home-hero .hero-content {
            padding: 100px 16px 60px;
        }

        .home-title {
            font-size: 2.4rem;
        }

        .home-subtitle {
            font-size: 1.05rem;
        }
    }

    /* Services grid */
    .services-section {
        padding: 80px 20px;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1.05rem;
        color: var(--color-muted-text);
        max-width: 820px;
        margin: 0 auto 28px;
    }

    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        align-items: stretch;
    }

    .service-card-link {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .service-card {
        position: relative;
        min-height: 220px;
        padding: 24px;
        border-radius: 16px;
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .service-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    }

    .service-card-with-bg {
        color: var(--color-text);
    }

    .service-card-background {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .service-card-background__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.9);
    }

    .service-card::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.65) 100%);
        z-index: 0;
    }

    .service-card-overlay {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .service-title {
        font-size: 1.4rem;
        margin: 0;
    }

    .service-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 16px;
        border-radius: 999px;
        background: var(--color-accent);
        color: var(--color-background);
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        border: none;
    }

    /* Gallery image helpers */
    .person-image__img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Form helpers */
    .offer-summary-list {
        margin: 0;
        padding-left: 20px;
    }

    /* Email templates */
    .email-body {
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.4;
        color: var(--color-primary);
        background: var(--color-background);
    }

    .email-heading {
        margin: 0 0 12px 0;
        font-size: 1.25rem;
    }

    .email-subheading {
        margin: 16px 0 8px;
        font-size: 1rem;
    }

    .email-list {
        margin: 0 0 12px 0;
        padding-left: 20px;
    }

    .email-preformatted {
        white-space: pre-wrap;
    }

    .email-meta {
        color: var(--color-muted-text);
        margin-top: 16px;
    }

    .email-table {
        width: 100%;
        border-collapse: collapse;
        margin: 0 0 12px 0;
    }

    .email-table-row {
        border-bottom: 1px solid var(--color-border);
    }

    .email-cell {
        padding: 8px 12px;
        vertical-align: top;
    }

    .email-cell--label {
        font-weight: 700;
        width: 200px;
    }

    .email-cell--value {
        width: auto;
    }


/* ===========================
   NAVIGATION STYLES
   ===========================*/

/* Cleantime Navigation Bar */
.cleantime-nav {
    background: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    width: 100%;
    max-width: min(100%, var(--container-max));
    margin-left: auto;
    margin-right: auto;
    padding-left: max(var(--container-padding), env(safe-area-inset-left, 0px));
    padding-right: max(var(--container-padding), env(safe-area-inset-right, 0px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Reduce nav spacing on mid-size screens to avoid overflow before mobile breakpoint */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo {
        margin-right: 20px;
    }

    .nav-link {
        padding: 18px;
        font-size: 13px;
    }
}

/* Logo container */
.nav-logo {
    position: relative;
    margin-right: 40px;
}

/* Logo text style - white theme */
.logo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    color: var(--color-secondary);
    position: relative;
    white-space: nowrap;
}

/* Animated overlay for logo */
.logo-text::before {
    content: 'CLEANTIME';
    position: absolute;
    top: 0;
    left: 0;
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    white-space: nowrap;
    
    /* Animation properties */
    clip-path: inset(0 100% 0 0);
    animation: cleanWaveEffect 45s infinite;
}

/* Keyframes for logo clean wave effect */
@keyframes cleanWaveEffect {
    0% {
        color: var(--color-text);
        text-shadow: 0 0 3px var(--color-text), 0 0 6px var(--color-secondary), 0 0 9px var(--color-secondary);
        clip-path: inset(0 100% 0 0%);
    }
    11.11% {
        color: var(--color-secondary);
        text-shadow: 0 0 4px var(--color-text), 0 0 7px var(--color-secondary), 0 0 10px var(--color-secondary);
        clip-path: inset(0 0% 0 0%);
    }
    22.22% {
        color: var(--color-secondary);
        text-shadow: 0 0 3px var(--color-secondary), 0 0 6px var(--color-secondary), 0 0 9px var(--color-muted-text);
        clip-path: inset(0 0% 0 0%);
    }
    33.33% {
        color: var(--color-muted-text);
        text-shadow: 0 0 2px var(--color-secondary), 0 0 5px var(--color-muted-text), 0 0 7px var(--color-muted-text);
        clip-path: inset(0 0% 0 0%);
    }
    44.44% {
        color: var(--color-muted-text);
        text-shadow: 0 0 2px var(--color-muted-text), 0 0 4px var(--color-muted-text), 0 0 6px var(--color-muted-text);
        clip-path: inset(0 0% 0 0%);
    }
    55.56% {
        color: var(--color-muted-text);
        text-shadow: 0 0 1px var(--color-muted-text), 0 0 3px var(--color-muted-text), 0 0 5px var(--color-muted-text);
        clip-path: inset(0 0% 0 0%);
    }
    66.67% {
        color: var(--color-muted-text);
        text-shadow: 0 0 1px var(--color-muted-text), 0 0 2px var(--color-muted-text);
        clip-path: inset(0 20% 0 0%);
    }
    77.78% {
        color: var(--color-muted-text);
        text-shadow: 0 0 1px var(--color-muted-text);
        clip-path: inset(0 60% 0 0%);
    }
    88.89% {
        color: var(--color-muted-text);
        text-shadow: none;
        clip-path: inset(0 90% 0 0%);
    }
    100% {
        color: var(--color-muted-text);
        text-shadow: none;
        clip-path: inset(0 100% 0 0%);
    }
}

/* Crisper logo animation in light mode: remove glow and add a subtle stroke */
.light-mode .logo-text,
.light-mode .logo-text::before {
    text-shadow: none;
    -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.08);
}

@keyframes cleanWaveEffectLight {
    0% {
        color: var(--color-text);
        text-shadow: none;
        clip-path: inset(0 100% 0 0);
    }
    20% {
        color: var(--color-secondary);
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
        clip-path: inset(0 0 0 0);
    }
    60% {
        color: var(--color-muted-text);
        text-shadow: none;
        clip-path: inset(0 20% 0 0);
    }
    100% {
        color: var(--color-muted-text);
        text-shadow: none;
        clip-path: inset(0 100% 0 0);
    }
}

.light-mode .logo-text::before {
    animation: cleanWaveEffectLight 45s infinite;
}

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

/* Mobile Menu Toggle Button (Hamburger) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--color-border);
    outline-offset: 2px;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 24px;
    color: var(--color-muted-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: lowercase;
    transition: all 0.3s ease;
    border-right: 1px solid var(--color-border);
}

.nav-item:last-child .nav-link {
    border-right: none;
}

.nav-link:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.1);
}

/* Subtle underline effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-text), var(--color-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Apple-style Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    width: 400px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    margin-top: 8px;
}

.nav-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--color-muted-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: capitalize;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transform: translateY(-1px);
}

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

.dropdown-item:hover::before {
    left: 100%;
}

/* Smooth arrow indicator */
.nav-dropdown .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-text), var(--color-secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-dropdown:hover .nav-link::after {
    width: 80%;
}

/* ===========================
   MAIN CONTENT AREA
   ===========================*/

.main-content {
    padding-top: 80px;
    flex: 1;
}

/* ===========================
   FOOTER STYLES
   ===========================*/

/* Cleantime Footer Styles */
.site-footer {
    background: var(--color-footer-bg);
    border-top: 2px solid var(--color-border);
    padding: 60px 20px 20px;
    margin-top: 20px;
}

.footer-container {
    /* Inherits sizing and padding from shared container styles */
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    color: var(--color-muted-text);
}

.footer-logos {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.footer-logo__image {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Responsive styles for footer logos */
@media (max-width: 768px) {
    .footer-logos {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .footer-logo__image {
        max-width: 120px;
        max-height: 50px;
    }
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 15px;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-address,
.footer-phone,
.footer-email {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-email a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    z-index: 2;
    position: relative;
}

.social-icon.facebook {
    background: #1877F2;
}

.social-icon.facebook::before {
    content: "f";
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-icon.linkedin {
    background: #0A66C2;
}

.social-icon.linkedin::before {
    content: "in";
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.social-icon.twitter {
    background: #000000;
}

.social-icon.twitter::before {
    content: "𝕏";
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.social-icon.instagram::before {
    content: "📷";
    font-size: 20px;
}

.footer-links {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-links a {
    color: var(--color-text);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: var(--color-muted-text);
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   ===========================*/

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .nav-logo {
        margin-right: 0;
        order: 2;
    }

    .nav-actions {
        order: 3;
        margin-left: auto;
        gap: 12px;
    }

    .nav-theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        z-index: 2001; /* Above the overlay */
        order: 1;
        flex-shrink: 0;
    }

    /* Full Screen Overlay */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        padding: 80px 20px 40px; /* Top padding clears fixed header */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth ease-out */
        z-index: 2000;
        overflow-y: auto;
        margin: 0;
        border: none;
        gap: 0;
    }

    /* Active State */
    .mobile-menu-open .nav-menu {
        transform: translateX(0);
        box-shadow: none; /* Remove any shadow from desktop styles */
    }

    /* Nav Items */
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Staggered animation for items */
    .mobile-menu-open .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-open .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .mobile-menu-open .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .mobile-menu-open .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .mobile-menu-open .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .mobile-menu-open .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-link {
        display: block;
        padding: 20px 0;
        font-size: 1.5rem; /* Larger font for mobile */
        font-weight: 500;
        color: var(--color-text);
        border: none;
        text-decoration: none;
        width: 100%;
        text-align: left;
    }
    
    /* Only affect NON-dropdown nav links on hover */
    .nav-item:not(.nav-dropdown) > .nav-link:hover {
        background: transparent;
        color: var(--color-muted-text);
    }
    
    /* Dropdown parent links should not change color on hover in mobile */
    .nav-dropdown > .nav-link {
        color: var(--color-text);
    }
    
    .nav-dropdown > .nav-link:hover {
        color: var(--color-text); /* Keep text color, don't fade */
    }
    
    /* Remove desktop underline */
    .nav-link::after {
        display: none !important;
    }

    /* Accordion Styles */
    .nav-dropdown .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Accordion Indicator */
    .nav-dropdown .nav-link::after {
        content: '+';
        display: block !important;
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: none;
        font-size: 1.5rem;
        font-weight: 300;
        transition: transform 0.3s ease;
    }

    .nav-dropdown.dropdown-open .nav-link::after {
        transform: rotate(45deg);
    }

    /* Dropdown Content (Accordion Body) */
    .dropdown-content {
        position: static;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none !important; /* Override desktop transform */
        transition: max-height 0.3s ease-in-out;
        margin: 0;
        border-radius: 0;
    }

    .nav-dropdown.dropdown-open .dropdown-content {
        max-height: 1000px; /* Allow expansion */
        transform: none !important; /* Override desktop transform on hover */
    }
    
    /* Override desktop hover transform */
    .nav-dropdown:hover .dropdown-content {
        transform: none !important;
    }

    .dropdown-grid {
        display: flex;
        flex-direction: column;
        padding: 10px 0 20px 0; /* No extra padding on container */
        gap: 5px;
    }

    .dropdown-item {
        padding: 12px 20px 12px 40px; /* More left padding to indent submenu items */
        color: var(--color-muted-text) !important; /* Force color fix */
        font-size: 1.1rem;
        background: transparent;
        opacity: 1 !important;
        visibility: visible !important;
        border: none;
        text-align: left; /* Ensure text aligns left */
        display: block;
        width: 100%;
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--color-text) !important;
        opacity: 1 !important;
    }
    
    /* Remove hover effect element */
    .dropdown-item::before {
        display: none !important;
    }

    .main-content {
        padding-top: 80px;
    }

    /* Footer Social Icons Mobile Styles */
    .social-links {
        gap: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .social-icon.linkedin::before {
        font-size: 14px;
    }

    .social-icon.instagram::before {
        font-size: 18px;
    }
}
@media (max-width: 480px) {
    .social-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    .social-icon.linkedin::before {
        font-size: 13px;
    }
    .social-icon.instagram::before {
        font-size: 16px;
    }
}

/* Very small screens - reduce padding and logo size */
@media (max-width: 480px) {
    .nav-container {
        padding: 10px 10px;
        gap: 10px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-text::before {
        font-size: 18px;
    }
}

/* Gallery specific styling for Cleantime */
.cleantime-theme .gallery-container {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.cleantime-theme .person-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.cleantime-theme .person-card:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.cleantime-theme .person-name {
    color: var(--primary-color);
}

.cleantime-theme .person-title {
    color: var(--secondary-color);
}

.cleantime-theme .contact-item a {
    color: var(--primary-color);
}

.cleantime-theme .contact-item a:hover {
    color: var(--secondary-color);
}

/* Button styling for Cleantime */
.cleantime-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: var(--color-background);
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.cleantime-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Typography for Cleantime */
.cleantime-theme h1, .cleantime-theme h2, .cleantime-theme h3 {
    color: var(--primary-color);
}

.cleantime-theme p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Links for Cleantime */
.cleantime-theme a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.cleantime-theme a:hover {
    color: var(--secondary-color);
}

/* ===========================
   CONTENT LAYOUT STYLES
   ===========================*/

.body-content,
.cta-content,
.flexible-content {
    padding: 40px 20px;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

/* Alternating backgrounds for flexible content blocks */
.flexible-content > *:nth-child(odd) {
    background: var(--color-alt-bg-1) !important;
    background-color: var(--color-alt-bg-1) !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid var(--color-border) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content > *:nth-child(even) {
    background: var(--color-alt-bg-2) !important;
    background-color: var(--color-alt-bg-2) !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid var(--color-border) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Alternative approach with class-based targeting */
.flexible-content .rich-text-block:nth-of-type(odd),
.flexible-content .heading-block:nth-of-type(odd),
.flexible-content .image-block:nth-of-type(odd),
.flexible-content .quote-block:nth-of-type(odd),
.flexible-content .text-with-image-block:nth-of-type(odd),
.flexible-content .cta-button-block:nth-of-type(odd),
.flexible-content .spacer-block:nth-of-type(odd),
.flexible-content .video-embed-block:nth-of-type(odd),
.flexible-content .text-with-video-block:nth-of-type(odd),
.flexible-content .raw-embed-block:nth-of-type(odd),
.flexible-content .text-with-raw-embed-block:nth-of-type(odd) {
    background: var(--color-alt-bg-1) !important;
    background-color: var(--color-alt-bg-1) !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid var(--color-border) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content .rich-text-block:nth-of-type(even),
.flexible-content .heading-block:nth-of-type(even),
.flexible-content .image-block:nth-of-type(even),
.flexible-content .quote-block:nth-of-type(even),
.flexible-content .text-with-image-block:nth-of-type(even),
.flexible-content .cta-button-block:nth-of-type(even),
.flexible-content .spacer-block:nth-of-type(even),
.flexible-content .video-embed-block:nth-of-type(even),
.flexible-content .text-with-video-block:nth-of-type(even),
.flexible-content .raw-embed-block:nth-of-type(even),
.flexible-content .text-with-raw-embed-block:nth-of-type(even) {
    background: var(--color-alt-bg-2) !important;
    background-color: var(--color-alt-bg-2) !important;
    margin: 0 -20px !important;
    padding: 40px 20px !important;
    border-left: 3px solid var(--color-border) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Override any width constraints from individual blocks */
.flexible-content > * {
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Ensure content within blocks doesn't exceed the container */
.flexible-content > * .rich-text-block,
.flexible-content > * .text-with-image-container,
.flexible-content > * .text-with-video-container,
.flexible-content > * .text-with-embed-container {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Override any background styles from individual blocks */
.flexible-content > *:nth-child(odd) *:not(img):not(.cta-button):not(.quote-block),
.flexible-content > *:nth-child(even) *:not(img):not(.cta-button):not(.quote-block) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Except for images and specific elements that need backgrounds */
.flexible-content > * img,
.flexible-content > * .cta-button,
.flexible-content > * .quote-block,
.flexible-content > * iframe,
.flexible-content > * .video-embed-block iframe,
.flexible-content > * .text-with-video-video iframe,
.flexible-content > * .embed-content blockquote,
.flexible-content > * .text-with-embed-embed blockquote {
    background: initial !important;
}

/* Universal override for any conflicting styles */
.flexible-content > *:nth-child(odd) {
    background: var(--color-alt-bg-1) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

.flexible-content > *:nth-child(even) {
    background: var(--color-alt-bg-2) !important;
    width: calc(100% + 40px) !important;
    max-width: calc(100% + 40px) !important;
    box-sizing: border-box !important;
}

/* Add subtle transitions for smooth appearance */
.flexible-content > div {
    transition: all 0.3s ease;
    position: relative;
    min-height: 1px; /* Ensure container has height */
}

/* Hover effect for interactive feel */
.flexible-content > div:hover {
    background: var(--color-surface) !important;
    background-color: var(--color-surface) !important;
    border-left-color: var(--color-border) !important;
}

/* Exclude non-default logo sections from flexible-content alternating backgrounds */
/* Default logo sections should follow the alternating pattern */
.flexible-content > .logo-section--light,
.flexible-content > .logo-section--dark,
.flexible-content > .logo-section--accent {
    /* Remove flexible-content background overrides - logo section's own styles will apply */
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: auto !important;
    max-width: auto !important;
}

/* More specific overrides for non-default logo section backgrounds */
.flexible-content > .logo-section--light:nth-child(odd),
.flexible-content > .logo-section--light:nth-child(even),
.flexible-content > .logo-section--dark:nth-child(odd),
.flexible-content > .logo-section--dark:nth-child(even),
.flexible-content > .logo-section--accent:nth-child(odd),
.flexible-content > .logo-section--accent:nth-child(even) {
    background: unset !important;
    background-color: unset !important;
}

/* Also handle if logo section is wrapped in a div */
.flexible-content > *:has(.logo-section--light),
.flexible-content > *:has(.logo-section--dark),
.flexible-content > *:has(.logo-section--accent) {
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: auto !important;
    max-width: auto !important;
}

.flexible-content > *:has(.logo-section--light):nth-child(odd),
.flexible-content > *:has(.logo-section--light):nth-child(even),
.flexible-content > *:has(.logo-section--dark):nth-child(odd),
.flexible-content > *:has(.logo-section--dark):nth-child(even),
.flexible-content > *:has(.logo-section--accent):nth-child(odd),
.flexible-content > *:has(.logo-section--accent):nth-child(even) {
    background: unset !important;
    background-color: unset !important;
}

/* Exclude custom flex sections from alternating background overrides */
.flexible-content > .flex-section:not(.has-bg-image),
.flexible-content > .flex-section:not(.has-bg-image):nth-child(odd),
.flexible-content > .flex-section:not(.has-bg-image):nth-child(even) {
    background: transparent !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Background-aware flexible sections (custom blocks) */
.flexible-content > .flex-section:not(.has-bg-image) {
    background: transparent !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border-left: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.flex-section {
    position: relative;
    overflow: hidden;
    width: 100%;
    color: var(--color-text);
}

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

.flex-section__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.flex-section__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-background);
    opacity: var(--overlay-opacity, 0.4);
    z-index: 1;
    pointer-events: none;
}

.flex-section__inner {
    position: relative;
    z-index: 2;
    max-width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: clamp(32px, 4vw, 80px) max(var(--container-padding), 1.25rem);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.flex-section.has-bg-image {
    color: var(--color-text);
}

.flex-section.bg-dark {
    background: var(--color-background);
}

.flex-section.bg-muted {
    background: var(--color-surface);
}

.flex-section.bg-light {
    background: var(--color-surface);
    color: var(--color-primary);
}

.flex-section.bg-accent {
    background: var(--color-surface);
}

.flex-section.bg-light .section-heading,
.flex-section.bg-light .section-intro,
.flex-section.bg-light .feature-item__title,
.flex-section.bg-light .feature-item__description,
.flex-section.bg-light .stat-card__label,
.flex-section.bg-light .timeline__date,
.flex-section.bg-light .timeline__title,
.flex-section.bg-light .faq-item__question,
.flex-section.bg-light .faq-item__answer,
.flex-section.bg-light .testimonial-card__quote,
.flex-section.bg-light .testimonial-card__name,
.flex-section.bg-light .testimonial-card__role,
.flex-section.bg-light .cta-strip,
.flex-section.bg-light .cta-strip__text {
    color: var(--color-primary);
}

.flex-section.bg-light .feature-item,
.flex-section.bg-light .stat-card,
.flex-section.bg-light .faq-item,
.flex-section.bg-light .timeline__item,
.flex-section.bg-light .testimonial-card,
.flex-section.bg-light .cta-strip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

.section-heading {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

.section-intro {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--color-muted-text);
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list,
.stats-grid,
.two-column-text__grid,
.timeline,
.faq-accordion,
.testimonial-carousel,
.cta-strip {
    width: 100%;
}

.two-column-text__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    align-items: start;
}

.two-column-text__intro {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    margin-bottom: clamp(14px, 2vw, 22px);
}

.two-column-text__after {
    margin-top: clamp(18px, 2vw, 26px);
    max-width: 100%;
    text-align: left;
}

.two-column-text__col {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 16px 18px;
    color: var(--color-muted-text);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.feature-item__icon {
    font-size: 1.35rem;
    line-height: 1;
}

.feature-item__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-item__description {
    color: var(--color-muted-text);
    font-size: 0.95rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
}

.stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1;
    color: currentColor;
}

.stat-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat-card__label {
    color: var(--color-muted-text);
    margin-top: 6px;
    font-size: 0.95rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: inherit;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
}

.faq-item__icon {
    font-size: 1.4rem;
    transition: transform 0.2s ease;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
}

.faq-item.is-open .faq-item__answer {
    padding: 0 16px 14px;
    max-height: 1000px;
}

.faq-item.is-open .faq-item__icon {
    transform: rotate(45deg);
}

.timeline {
    position: relative;
    display: grid;
    gap: 22px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline__item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    position: relative;
}

.timeline__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #666666;
    background: #ffffff;
    position: relative;
    top: 4px;
}

.timeline__content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
}

.timeline__date {
    font-size: 0.9rem;
    color: var(--color-muted-text);
    margin-bottom: 4px;
}

.timeline__title {
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline__body {
    color: var(--color-muted-text);
}

.timeline-block--center .timeline::before {
    left: 50%;
    transform: translateX(-50%);
}

.timeline-block--center .timeline__item {
    grid-template-columns: 1fr;
    text-align: center;
}

.timeline-block--center .timeline__dot {
    margin: 0 auto;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-carousel__track {
    display: flex;
    gap: 0;
    transition: transform 0.45s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.testimonial-card__quote {
    font-size: 1.2rem;
    font-weight: 600;
}

.testimonial-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 20px;
    justify-content: space-between;
}

.testimonial-card__person {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1 1 320px;
}

.testimonial-card__avatar {
    width: clamp(110px, 14vw, 200px);
    height: clamp(110px, 14vw, 200px);
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card__name {
    font-weight: 700;
}

.testimonial-card__role {
    color: var(--color-muted-text);
    font-size: 0.95rem;
}

.testimonial-card__logo img {
    max-height: clamp(200px, 28vw, 360px);
    width: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.testimonial-card__logo {
    flex: 0 1 520px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 640px) {
    .testimonial-card {
        padding: 18px;
    }
    .testimonial-card__meta {
        gap: 14px 16px;
    }
    .testimonial-card__logo {
        flex-basis: 100%;
        justify-content: flex-start;
    }
    .testimonial-card__logo img {
        max-height: 230px;
    }
}

.testimonial-card__link {
    color: var(--color-text);
    text-decoration: underline;
    font-weight: 600;
}

.testimonial-carousel__controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.testimonial-carousel__prev,
.testimonial-carousel__next {
    pointer-events: all;
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.testimonial-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.testimonial-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
}

.testimonial-carousel__dot.is-active {
    background: var(--color-text);
}

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
}

.cta-strip__text {
    font-size: 1.05rem;
    font-weight: 600;
    flex: 1;
}

.cta-strip__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 1024px) {
    .two-column-text__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
@media (max-width: 600px) {
    .two-column-text__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-heading {
        text-align: left;
    }

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

    .feature-list {
        grid-template-columns: 1fr;
    }

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

    .testimonial-carousel__controls {
        display: none;
    }

    .cta-strip {
        align-items: flex-start;
    }
}
/* ===========================
   FLEXIBLE CONTENT BLOCKS
   ===========================*/

/* Rich Text Block */
.rich-text-block {
    margin: 20px 0;
    line-height: 1.6;
    text-align: left !important;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible; /* Allow text to flow around floating images */
    word-wrap: break-word; /* Prevent text from overflowing */
    width: 100%;
}

.rich-text-block p {
    margin-bottom: 1em;
    color: var(--color-muted-text);
    text-align: left !important;
}

.rich-text-block ul, .rich-text-block ol {
    margin: 1em 0;
    padding-left: 2em;
    color: var(--color-muted-text);
    text-align: left !important;
}

.rich-text-block li {
    margin-bottom: 0.5em;
    text-align: left !important;
}

.rich-text-block blockquote {
    margin: 1.5em 0;
    padding: 1em;
    border-left: 4px solid var(--color-border);
    background: rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: var(--color-text);
    clear: both; /* Ensure blockquotes don't interfere with floating images */
    text-align: left !important;
}

/* Fix any centering from parent containers */
.flexible-content .rich-text-block,
.flexible-content .rich-text-block *,
.text-with-image-text,
.text-with-image-text * {
    text-align: left !important;
}

/* Override centering from flexible content container */
.flexible-content {
    text-align: left !important;
}

/* Heading Block */
.heading-block {
    text-align: center;
    margin: 30px 0;
}

.heading-block h1,
.heading-block h2,
.heading-block h3,
.heading-block h4,
.heading-block h5,
.heading-block h6 {
    color: var(--color-text);
    margin: 0;
    font-weight: bold;
}

/* Image Block */
.image-block {
    text-align: center;
    margin: 30px 0;
}

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

/* Quote Block */
.quote-block {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-border);
    font-style: italic;
    color: var(--color-text);
    text-align: left !important;
}

.quote-block blockquote {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.5;
    text-align: left !important;
}

.quote-block cite {
    display: block;
    margin-top: 15px;
    font-style: normal;
    font-weight: bold;
    text-align: left !important;
}

/* Spacer Block */
.spacer-block {
    margin: 0;
    padding: 0;
    height: 50px;
}

/* Video Embed Block */
.video-embed-block {
    margin: 30px 0;
    overflow: hidden;
}

.video-embed-block iframe {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.video-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--color-muted-text);
    font-style: italic;
    text-align: center;
}

/* Video alignment styles */
.video-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: left;
}

.video-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: right;
}

.video-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
    max-width: 80%;
}

.video-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

/* Text with Video Block */
.text-with-video-block {
    margin: 40px 0;
    overflow: hidden;
    width: 100%;
}

.text-with-video-container {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
    min-height: 200px;
}

.text-with-video-left {
    flex-direction: row;
}

.text-with-video-right {
    flex-direction: row-reverse;
}

.text-with-video-video {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 250px;
    overflow: hidden;
}

.text-with-video-video iframe {
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.text-with-video-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--color-muted-text);
    font-style: italic;
    text-align: center;
}

.text-with-video-text {
    flex: 1;
    color: var(--color-muted-text);
    line-height: 1.6;
    min-width: 0;
    max-width: 75%;
    overflow: hidden;
    word-wrap: break-word;
    text-align: left;
}

.text-with-video-text p {
    margin-bottom: 1em;
    text-align: left;
}

.text-with-video-text ul,
.text-with-video-text ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left;
}

.text-with-video-text li {
    margin-bottom: 0.5em;
    text-align: left;
}

/* Raw Embed Block */
.raw-embed-block {
    margin: 30px 0;
    overflow: hidden;
}

.raw-embed-block .embed-content {
    width: 100%;
    overflow: hidden;
}

.raw-embed-block .embed-content blockquote {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Instagram embed specific styling - force center regardless of alignment */
.raw-embed-block:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) {
    float: none !important;
    clear: both !important;
    margin: 30px auto !important;
    max-width: 80% !important;
    text-align: center !important;
    width: 100% !important;
}

.raw-embed-block:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) .embed-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.raw-embed-block .embed-content blockquote.instagram-media {
    width: 100% !important;
    max-width: 540px !important;
    min-width: 326px !important;
    margin: 0 auto !important;
    display: block !important;
    float: none !important;
}

/* Fallback for browsers without :has() support */
.embed-left .embed-content blockquote.instagram-media,
.embed-right .embed-content blockquote.instagram-media {
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.embed-center .embed-content {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
}

.embed-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--color-muted-text);
    font-style: italic;
    text-align: center;
}

/* Raw embed alignment styles */
.embed-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: left;
}

.embed-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 40%;
    clear: right;
}

.embed-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
    max-width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.embed-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

/* Text with Raw Embed Block */
.text-with-raw-embed-block {
    margin: 40px 0;
    overflow: hidden;
    width: 100%;
}

.text-with-embed-container {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
    min-height: 200px;
}

.text-with-embed-left {
    flex-direction: row;
}

.text-with-embed-right {
    flex-direction: row-reverse;
}

.text-with-embed-embed {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 250px;
    overflow: hidden;
}

.text-with-embed-embed .embed-content {
    width: 100%;
    overflow: hidden;
}

.text-with-embed-embed .embed-content blockquote {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

.text-with-embed-caption {
    margin-top: 8px;
    font-size: 0.9em;
    color: var(--color-muted-text);
    font-style: italic;
    text-align: center;
}

.text-with-embed-text {
    flex: 1;
    color: var(--color-muted-text);
    line-height: 1.6;
    min-width: 0;
    max-width: 75%;
    overflow: hidden;
    word-wrap: break-word;
    text-align: left;
}

.text-with-embed-text p {
    margin-bottom: 1em;
    text-align: left;
}

.text-with-embed-text ul,
.text-with-embed-text ol {
    margin: 1em 0;
    padding-left: 2em;
    text-align: left;
}

.text-with-embed-text li {
    margin-bottom: 0.5em;
    text-align: left;
}

/* Ensure all content is left-aligned within flexible content */
.flexible-content-block {
    text-align: left !important;
}

.flexible-content-block * {
    text-align: left !important;
}

/* Alignment styles */
.image-left {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
    max-width: 35%;
    clear: left;
}

.image-right {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-width: 35%;
    clear: right;
}

.image-center {
    text-align: center;
    clear: both;
    margin: 30px auto;
}

.image-full {
    clear: both;
    width: 100%;
    margin: 30px 0;
}

.image-full img {
    width: 100%;
}

/* Ensure text blocks that follow floating images wrap properly */
.flexible-content > div:has(.image-left) + div .rich-text-block,
.flexible-content > div:has(.image-right) + div .rich-text-block {
    overflow: hidden;
    text-align: left;
}

/* Alternative approach for browsers that don't support :has() */
.image-left + .rich-text-block,
.image-right + .rich-text-block {
    overflow: hidden;
    text-align: left;
}

/* Clearfix for containers with floating images */
.flexible-content > div::after {
    content: "";
    display: table;
    clear: both;
}

/* Special styling for content blocks within alternating backgrounds */
.flexible-content > div .rich-text-block,
.flexible-content > div .heading-block,
.flexible-content > div .image-block,
.flexible-content > div .quote-block {
    margin-top: 0;
    margin-bottom: 0;
}

/* Ensure CTA buttons stand out in alternating backgrounds */
.flexible-content > div .cta-button {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.flexible-content > div .cta-button:hover {
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
    transform: translateY(-3px);
}

/* ===========================
   CTA BUTTON STYLES
   ===========================*/

.cta-button,
.floating-offer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
    background: var(--color-accent);
    color: var(--color-floating-cta-text, #ffffff);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-button:hover,
.floating-offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 204, 0.45);
    background: #0071e3; /* Slightly brighter blue on hover */
    color: var(--color-floating-cta-text, #ffffff);
}

.cta-primary,
.cta-secondary,
.cta-outline {
    background: var(--color-accent);
    color: var(--color-floating-cta-text, #ffffff);
    border-color: var(--color-border);
}

/* Button Sizes */
.cta-small {
    font-size: 0.8rem;
    padding: 8px 16px;
}

.cta-medium {
    font-size: 1rem;
    padding: 12px 24px;
}

.cta-large {
    font-size: 1.2rem;
    padding: 18px 36px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.cta-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

/* Ensure proper text flow when image and text are in the same block */
.flexible-content > div .image-left ~ .rich-text-block,
.flexible-content > div .image-right ~ .rich-text-block {
    overflow: visible;
    margin-top: 0;
}

/* Ensure text doesn't overlap floating images in same block */
.flexible-content > div .image-left ~ * {
    margin-left: 0;
}

.flexible-content > div .image-right ~ * {
    margin-right: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .image-left, .image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .video-left, .video-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .video-center, .video-full {
        max-width: 100%;
    }
    
    .embed-left, .embed-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
    
    .embed-center, .embed-full {
        max-width: 100%;
    }
    
    .raw-embed-block .embed-content blockquote.instagram-media {
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
    }
    
    .text-with-video-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-with-video-video {
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .text-with-video-text {
        flex: none;
        max-width: 100%;
    }
    
    .text-with-embed-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .text-with-embed-embed {
        flex: none;
        max-width: 100%;
        min-width: auto;
    }
    
    .text-with-embed-text {
        flex: none;
        max-width: 100%;
    }
    
    .rich-text-block {
        padding: 0 10px;
    }
    
    .quote-block {
        padding: 20px;
        margin: 20px 0;
    }
    
    /* Adjust alternating backgrounds for mobile */
    .flexible-content > *:nth-child(odd),
    .flexible-content > *:nth-child(even) {
        margin: 0 -10px !important;
        padding: 30px 15px !important;
        border-left-width: 2px !important;
        width: calc(100% + 20px) !important;
        max-width: calc(100% + 20px) !important;
    }
    
    .flexible-content {
        padding: 20px 10px;
    }
    
    /* Ensure content within blocks doesn't exceed mobile container */
    .flexible-content > * .rich-text-block,
    .flexible-content > * .text-with-image-container,
    .flexible-content > * .text-with-video-container,
    .flexible-content > * .text-with-embed-container {
        max-width: 100% !important;
        padding: 0 !important;
    }
}

/* ===========================
   NEWS PAGE STYLES - CLEANTIME THEME
   ===========================*/

/* News Index page styling - Cleantime dark theme */
.cleantime-theme .news-hero {
    padding: 120px 20px 60px;
    text-align: center;
    background: var(--color-surface);
    color: var(--color-text);
}

.cleantime-theme .news-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.cleantime-theme .news-intro {
    font-size: 1.5rem;
    color: var(--color-muted-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
    font-weight: 400;
}

.cleantime-theme .news-content {
    padding: 80px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
    background-color: var(--color-background);
}

.cleantime-theme .news-items {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cleantime-theme .news-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 40px;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 
        /* Inner subtle gradients - white theme */
        inset 0 0 20px rgba(255, 255, 255, 0.1),
        inset 5px 0 15px rgba(255, 255, 255, 0.05),
        inset -5px 0 15px rgba(240, 240, 240, 0.05),
        inset 10px 0 30px rgba(255, 255, 255, 0.08),
        inset -10px 0 30px rgba(240, 240, 240, 0.08),
        inset 15px 0 50px rgba(255, 255, 255, 0.1),
        inset -15px 0 50px rgba(240, 240, 240, 0.1),
        inset 20px 0 80px rgba(255, 255, 255, 0.05),
        inset -20px 0 80px rgba(240, 240, 240, 0.05),
        inset 25px 0 120px rgba(255, 255, 255, 0.02),
        inset -25px 0 120px rgba(240, 240, 240, 0.02),
        /* Outer glow - white theme */
        0 0 15px rgba(255, 255, 255, 0.2),
        0 0 25px rgba(255, 255, 255, 0.15),
        0 0 35px rgba(240, 240, 240, 0.15),
        -5px 0 20px rgba(255, 255, 255, 0.1),
        5px 0 20px rgba(240, 240, 240, 0.1);
    transition: all 0.3s ease;
}

.cleantime-theme .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        /* Enhanced hover effect */
        inset 0 0 25px rgba(255, 255, 255, 0.15),
        inset 5px 0 20px rgba(255, 255, 255, 0.1),
        inset -5px 0 20px rgba(240, 240, 240, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 30px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(240, 240, 240, 0.2),
        0 10px 30px rgba(255, 255, 255, 0.15);
}

/* News item content layout */
.cleantime-theme .news-item-content {
    display: grid;
    gap: 30px;
    align-items: flex-start;
}

.cleantime-theme .news-item-content.has-image {
    grid-template-columns: 1fr 300px;
}

.cleantime-theme .news-item-content.has-image.image-left {
    grid-template-columns: 300px 1fr;
}

.cleantime-theme .news-item-content.has-image.image-top {
    grid-template-columns: 1fr;
    grid-template-areas: 
        "content";
}

.cleantime-theme .news-item-text {
    z-index: 1;
    position: relative;
}

.cleantime-theme .news-item-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-border);
}

.cleantime-theme .news-item-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Image position specific styles */
.cleantime-theme .image-top .news-item-image {
    margin-bottom: 20px;
}

.cleantime-theme .news-item-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.cleantime-theme .news-item-intro {
    font-size: 1.1rem;
    color: var(--color-muted-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cleantime-theme .news-item-body {
    font-size: 1rem;
    color: var(--color-secondary);
    line-height: 1.7;
}

.cleantime-theme .news-item-date {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    margin-top: 20px;
}

.cleantime-theme .no-news {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-muted-text);
    font-size: 1.2rem;
}

/* Mobile styles for cleantime news pages */
@media (max-width: 768px) {
    .cleantime-theme .news-hero {
        padding: 100px 20px 40px;
    }

    .cleantime-theme .news-title {
        font-size: 2.5rem;
    }

    .cleantime-theme .news-intro {
        font-size: 1.2rem;
    }

    .cleantime-theme .news-content {
        padding: 60px 20px;
    }

    .cleantime-theme .news-item {
        padding: 30px 20px;
    }

    .cleantime-theme .news-item-content.has-image,
    .cleantime-theme .news-item-content.has-image.image-left {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cleantime-theme .news-item-title {
        font-size: 1.5rem;
    }
}

/* More specific rules to ensure proper layout - Cleantime theme */
.template-newsindexpage.cleantime-theme .news-item-content {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left .news-item-image {
    order: 1 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-left .news-item-text {
    order: 2 !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 330px) !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image:not(.image-left) .news-item-image {
    order: 2 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    min-width: 300px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image:not(.image-left) .news-item-text {
    order: 1 !important;
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: calc(100% - 330px) !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top .news-item-image {
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.template-newsindexpage.cleantime-theme .news-item-content.has-image.image-top .news-item-text {
    order: 2 !important;
    flex: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Mobile responsive fixes - Cleantime theme */
@media (max-width: 768px) {
    .template-newsindexpage.cleantime-theme .news-item-content.has-image {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .template-newsindexpage.cleantime-theme .news-item-content.has-image .news-item-image {
        order: 1 !important;
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: auto !important;
    }
    
    .template-newsindexpage.cleantime-theme .news-item-content.has-image .news-item-text {
        order: 2 !important;
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ===========================
   CALCULATOR PAGE STYLES
   ===========================*/

/* Hero Section Styling */
.template-calculator-page .hero-section {
    position: relative;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
    background: var(--color-background);
}

.template-calculator-page .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.template-calculator-page .hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

/* Enhanced overlay for better text readability */
.template-calculator-page .hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}

.template-calculator-page.cleantime-theme .hero-background::before {
    background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}

/* Content overlay */
.template-calculator-page .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    padding: 90px 20px 20px 20px;
}

.template-calculator-page .hero-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Theme-specific hero title colors */
.template-calculator-page.cleantime-theme .hero-title {
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.3),
        0 0 40px rgba(255, 255, 255, 0.2),
        0 0 60px rgba(255, 255, 255, 0.1);
}

.template-calculator-page .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.template-calculator-page .hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.9;
}

.template-calculator-page .hero-text {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.template-calculator-page .hero-text p {
    margin-bottom: 1em;
}

/* Mobile responsive hero */
@media (max-width: 768px) {
    .template-calculator-page .hero-section {
        min-height: 18vh;
    }
    
    .template-calculator-page .hero-content {
        padding: 80px 20px 15px 20px;
    }
    
    .template-calculator-page .hero-title {
        font-size: 1.75rem;
    }
    
    .template-calculator-page .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .template-calculator-page .hero-text {
        font-size: 0.85rem;
    }
}

.calculator-section {
    padding: 60px 0;
    background: var(--color-background);
}

.calculator-intro {
    color: var(--color-text);
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-intro p {
    color: var(--color-muted-text);
    line-height: 1.6;
}

.calculator-form-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.calculator-form .form-group {
    margin-bottom: 40px;
}

.calculator-form .form-group h3 {
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Radio button styling */
.calculator-form .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.calculator-form .radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    min-width: 180px;
}

.calculator-form .radio-option:hover {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.calculator-form .radio-option input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.calculator-form .radio-option input[type="radio"]:checked + .radio-label {
    font-weight: 600;
    color: #007bff;
}

.calculator-form .radio-option:has(input:checked) {
    border-color: #007bff;
    background-color: rgba(0, 123, 255, 0.2);
}

/* Slider styling */
.calculator-form .slider-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-form #areaSlider {
    --slider-track-start: rgba(0, 123, 255, 0.25);
    --slider-track-end: rgba(0, 123, 255, 0.12);
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--slider-track-start), var(--slider-track-end));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.calculator-form #areaSlider::-webkit-slider-runnable-track,
.calculator-form #areaSlider::-moz-range-track {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--slider-track-start), var(--slider-track-end));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
}

.calculator-form #areaSlider:focus-visible {
    outline: 2px solid rgba(0, 123, 255, 0.35);
    outline-offset: 4px;
}

.calculator-form #areaSlider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.5);
    border: 2px solid #ffffff;
}

.calculator-form #areaSlider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.5);
}

.calculator-form .slider-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #007bff;
}

/* Quantities styling */
.calculator-form .quantities-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.calculator-form .quantity-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calculator-form .quantity-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--color-text);
}

.calculator-form .quantity-icon {
    font-size: 1.5rem;
}

.calculator-form .quantity-item input[type="number"] {
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.calculator-form .quantity-item input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.calculator-form .quantity-item input[type="number"]::-webkit-inner-spin-button,
.calculator-form .quantity-item input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
    opacity: 0.7;
}

/* Price display styling */
.calculator-form .price-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.calculator-form .price-display h2 {
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-text);
}

.calculator-form .price-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.calculator-form #calculatedPrice {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.calculator-form .price-period {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--color-text);
}

.calculator-form .price-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
    color: var(--color-text);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .calculator-form-container {
        padding: 25px;
        margin: 0 15px;
    }
    
    .calculator-form .radio-group {
        flex-direction: column;
    }
    
    .calculator-form .radio-option {
        min-width: auto;
    }
    
    .calculator-form .quantities-container {
        grid-template-columns: 1fr;
    }
    
    .calculator-form #calculatedPrice {
        font-size: 2.5rem;
    }
}

/* Theme-specific colors - Cleantime */
.template-calculator-page.cleantime-theme .calculator-form .radio-option:has(input:checked),
.template-calculator-page.cleantime-theme .calculator-form .radio-option:hover {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.2);
}

.template-calculator-page.cleantime-theme .calculator-form .radio-option input[type="radio"]:checked + .radio-label,
.template-calculator-page.cleantime-theme .calculator-form .slider-display,
.template-calculator-page.cleantime-theme .calculator-form .quantity-item input[type="number"]:focus {
    color: #28a745;
    border-color: #28a745;
}

.template-calculator-page.cleantime-theme .calculator-form #areaSlider {
    --slider-track-start: rgba(40, 167, 69, 0.24);
    --slider-track-end: rgba(40, 167, 69, 0.1);
}

.template-calculator-page.cleantime-theme .calculator-form #areaSlider:focus-visible {
    outline-color: rgba(40, 167, 69, 0.35);
}

.template-calculator-page.cleantime-theme .calculator-form #areaSlider::-webkit-slider-thumb,
.template-calculator-page.cleantime-theme .calculator-form #areaSlider::-moz-range-thumb {
    background: #28a745;
    border-color: #ffffff;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.5);
}

.template-calculator-page.cleantime-theme .calculator-form .price-section {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

/* ===========================
   Offer / Contact Form Styles
   ===========================*/
.offer-form-section {
    max-width: 880px;
    margin: 2rem auto;
    padding: 1.5rem 1.5rem 2rem;
    background: var(--color-surface);
    border-radius: 16px;
    border: 1px solid var(--color-border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.offer-form-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.offer-form-summary {
    background: #1a2430;
    border-radius: 12px;
    border: 1px solid #304b6e;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.offer-form-summary h3 {
    margin: 0 0 0.5rem;
}

.offer-form-summary-note {
    margin-top: 0.5rem;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.offer-form-section {
    color: var(--color-text);
}

.offer-form-section p,
.offer-form-section label,
.offer-form-section .offer-summary-list li,
.offer-form-section .offer-form-summary-note {
    color: var(--color-text);
}

.offer-form-section input,
.offer-form-section select,
.offer-form-section textarea {
    color: var(--color-text);
}

.offer-form-section ::placeholder {
    color: #d6d6d6;
}

.offer-form-section select option {
    color: #ffffff;
    background-color: #050505;
}

.offer-form-notice {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.offer-form-notice--success {
    background: #12351c;
    border: 1px solid #3ba35a;
}

.offer-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.offer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.offer-form-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.offer-form-field input,
.offer-form-field select,
.offer-form-field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-text);
}

.offer-form-field textarea {
    min-height: 200px;
}

.offer-form-field input:focus,
.offer-form-field select:focus,
.offer-form-field textarea:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.35);
}

.offer-form .btn.btn-primary {
    margin-top: 0.5rem;
}

.offer-form .error {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #ffb3b3;
}

@media (max-width: 768px) {
    .offer-form-section {
        margin: 1.5rem 0.5rem 2rem;
        padding: 1rem;
    }
    .offer-form-row,
    .offer-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Floating Offer CTA
   ===========================*/
.floating-offer-cta {
    position: fixed;
    right: 24px;
    top: 90px;
    z-index: 1100;
    max-width: 100vw;
    box-sizing: border-box;
}
@media (min-width: 1400px) {
    .floating-offer-cta {
        right: calc((100% - var(--container-max)) / 2 + 24px);
    }
}
@media (max-width: 768px) {
    .floating-offer-cta {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        border-radius: 0;
        text-align: center;
        width: 100%;
        max-width: 100vw;
        padding: 14px 20px;
        border-left: none;
        border-right: none;
        border-bottom: none;
        z-index: 999;
        box-sizing: border-box;
    }
    
    /* Hide floating CTA when mobile menu is open */
    body.mobile-menu-open .floating-offer-cta {
        display: none;
    }
}


/* Cookie Consent Styles - Cleantime Dark Theme */
/* Cookie Consent Banner */
#cookie-consent-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--color-surface);
border-top: 2px solid var(--color-border);
padding: 24px 20px;
z-index: 10000;
box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
transform: translateY(100%);
opacity: 0;
transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
max-height: 90vh;
overflow-y: auto;
}
#cookie-consent-banner.cookie-consent-visible {
transform: translateY(0);
opacity: 1;
}
.cookie-consent-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
gap: 20px;
}
.cookie-consent-text {
flex: 1;
}
.cookie-consent-text h3 {
color: var(--color-text);
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 12px;
letter-spacing: 0.3px;
}
.cookie-consent-text p {
color: var(--color-muted-text);
font-size: 0.95rem;
line-height: 1.6;
margin: 0;
}
.cookie-consent-text a {
color: var(--color-text);
text-decoration: underline;
transition: color 0.3s ease;
}
.cookie-consent-text a:hover {
color: var(--color-secondary);
}
.cookie-consent-buttons {
display: flex;
gap: 12px;
flex-wrap: wrap;
align-items: center;
}
.cookie-consent-btn {
padding: 12px 24px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: 2px solid transparent;
text-decoration: none;
display: inline-block;
text-align: center;
white-space: nowrap;
}
.cookie-consent-btn-primary {
background: var(--color-text);
color: var(--color-background);
border-color: var(--color-text);
}
.cookie-consent-btn-primary:hover {
background: var(--color-secondary);
border-color: var(--color-secondary);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}
.cookie-consent-btn-secondary {
background: transparent;
color: var(--color-text);
border-color: var(--color-text);
}
.cookie-consent-btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
border-color: var(--color-text);
}
.cookie-consent-btn-text {
background: transparent;
color: var(--color-muted-text);
border: none;
padding: 12px 16px;
text-decoration: underline;
}
.cookie-consent-btn-text:hover {
color: var(--color-text);
}
/* Cookie Consent Modal */
#cookie-consent-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(10px);
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
overflow-y: auto;
}
#cookie-consent-modal.cookie-consent-modal-visible {
opacity: 1;
visibility: visible;
}
.cookie-consent-modal-content {
background: var(--color-surface);
border: 2px solid var(--color-border);
border-radius: 12px;
padding: 40px;
max-width: 700px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
position: relative;
transform: scale(0.95);
transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
#cookie-consent-modal.cookie-consent-modal-visible .cookie-consent-modal-content {
transform: scale(1);
}
.cookie-consent-modal-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 30px;
}
.cookie-consent-modal-header h2 {
color: var(--color-text);
font-size: 1.8rem;
font-weight: 600;
margin: 0;
letter-spacing: 0.3px;
}
.cookie-consent-close-btn {
background: transparent;
border: none;
color: var(--color-text);
font-size: 2rem;
line-height: 1;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.3s ease;
flex-shrink: 0;
}
.cookie-consent-close-btn:hover {
background: rgba(255, 255, 255, 0.1);
transform: rotate(90deg);
}
.cookie-consent-modal-intro {
color: var(--color-muted-text);
font-size: 1rem;
line-height: 1.6;
margin-bottom: 30px;
}
.cookie-consent-categories {
display: flex;
flex-direction: column;
gap: 24px;
margin-bottom: 30px;
}
.cookie-consent-category {
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 8px;
}
.cookie-consent-category-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
}
.cookie-consent-category-title {
color: var(--color-text);
font-size: 1.1rem;
font-weight: 600;
margin: 0;
}
.cookie-consent-toggle {
position: relative;
width: 50px;
height: 26px;
flex-shrink: 0;
}
.cookie-consent-toggle input[type="checkbox"] {
opacity: 0;
width: 0;
height: 0;
}
.cookie-consent-toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.3);
transition: 0.3s;
border-radius: 26px;
}
.cookie-consent-toggle-slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: var(--color-text);
transition: 0.3s;
border-radius: 50%;
}
.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider {
background-color: #28a745;
}
.cookie-consent-toggle input:checked + .cookie-consent-toggle-slider:before {
transform: translateX(24px);
}
.cookie-consent-toggle input:disabled + .cookie-consent-toggle-slider {
opacity: 0.5;
cursor: not-allowed;
}
.cookie-consent-category-description {
color: var(--color-muted-text);
font-size: 0.9rem;
line-height: 1.5;
margin: 0;
}
.cookie-consent-modal-actions {
display: flex;
gap: 12px;
flex-wrap: wrap;
justify-content: flex-end;
padding-top: 20px;
border-top: 1px solid rgba(255, 255, 255, 0.2);
}
/* Mobile Responsive */
@media (max-width: 768px) {
#cookie-consent-banner {
padding: 20px 16px;
}
.cookie-consent-content {
gap: 16px;
}
.cookie-consent-text h3 {
font-size: 1.1rem;
}
.cookie-consent-text p {
font-size: 0.9rem;
}
.cookie-consent-buttons {
flex-direction: column;
width: 100%;
}
.cookie-consent-btn {
width: 100%;
padding: 14px 24px;
}
.cookie-consent-modal-content {
padding: 24px 20px;
margin: 10px;
}
.cookie-consent-modal-header h2 {
font-size: 1.5rem;
}
.cookie-consent-category {
padding: 16px;
}
.cookie-consent-modal-actions {
flex-direction: column;
}
.cookie-consent-modal-actions .cookie-consent-btn {
width: 100%;
}
}
/* Ensure banner appears below floating CTA */
@media (min-width: 769px) {
#cookie-consent-banner {
z-index: 10000; /* Below floating CTA which is 1100 */
}
}
/* Accessibility */
.cookie-consent-btn:focus,
.cookie-consent-close-btn:focus,
.cookie-consent-toggle input:focus + .cookie-consent-toggle-slider {
outline: 2px solid #ffffff;
outline-offset: 2px;
}
/* Prevent scrolling when modal/banner is open */
body.cookie-consent-open {
overflow: hidden;
}

/* home/templates/home/about_us_page.html */
/* About Us page styling */
.about-hero {
position: relative;
min-height: 70vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -2;
}
.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.5);
z-index: -1;
}
.hero-content {
max-width: 800px;
padding: 40px 20px;
z-index: 1;
}
.hero-title {
font-size: 4rem;
font-weight: 800;
margin-bottom: 20px;
color: var(--color-text);
text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 30px;
color: var(--color-secondary);
}
.hero-text {
font-size: 1.2rem;
line-height: 1.6;
color: var(--color-muted-text);
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
/* Legacy body content styles (only used as fallback) */
.about-content {
    padding: 80px 20px;
    max-width: var(--container-max);
    margin: 0 auto;
}
.content-body {
font-size: 1.2rem;
line-height: 1.8;
opacity: 0.9;
}
.content-body p {
margin-bottom: 25px;
}
.content-body h2, .content-body h3, .content-body h4 {
margin-top: 40px;
margin-bottom: 20px;
font-weight: 600;
}
.content-body h2 {
font-size: 2.5rem;
text-align: center;
}
.content-body h3 {
font-size: 2rem;
}
.content-body h4 {
font-size: 1.5rem;
}
.content-body ul, .content-body ol {
margin: 25px 0;
padding-left: 30px;
}
.content-body li {
margin-bottom: 10px;
}
.content-body blockquote {
border-left: 4px solid rgba(255,255,255,0.3);
padding-left: 30px;
margin: 30px 0;
font-style: italic;
opacity: 0.8;
}
/* Responsive design */
@media (max-width: 768px) {
.about-hero {
min-height: 50vh;
}
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.hero-text {
font-size: 1rem;
}
.about-content {
padding: 60px 20px;
}
.content-body {
font-size: 1.1rem;
}
.content-body h2 {
font-size: 2rem;
}
.content-body h3 {
font-size: 1.5rem;
}
}
/* home/templates/home/contact_page.html */
/* Hero Section Styles */
.hero-section {
position: relative;
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0;
}
/* Theme-specific hero backgrounds */
.cleantime-theme .hero-section {
background: var(--color-surface);
border-bottom: 2px solid var(--color-border);
}
/* Background image */
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.hero-background img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.4;
}
/* Enhanced overlay for better text readability */
.hero-background::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.cleantime-theme .hero-background::before {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
/* Content overlay */
.hero-content {
position: relative;
z-index: 2;
width: 100%;
text-align: center;
padding: 120px 20px 60px 20px;
}
.hero-container {
max-width: 800px;
margin: 0 auto;
position: relative;
z-index: 2;
}
/* Theme-specific hero title colors */
.cleantime-theme .hero-title {
color: var(--color-text);
text-shadow:
0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2),
0 0 60px rgba(255, 255, 255, 0.1);
}
.hero-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* Theme-specific hero subtitle colors */
.cleantime-theme .hero-subtitle {
color: var(--color-muted-text);
}
.hero-subtitle {
font-size: 1.1rem;
line-height: 1.6;
max-width: 600px;
margin: 0 auto 20px;
}
/* Contact Form Section */
.contact-form-section {
padding: 80px 20px;
min-height: 60vh;
}
/* Theme-specific form section backgrounds */
.cleantime-theme .contact-form-section {
background: #f5f5f5;
}
.contact-container {
max-width: 800px;
margin: 0 auto;
}
.contact-intro {
text-align: center;
margin-bottom: 40px;
font-size: 1.1rem;
line-height: 1.6;
}
/* Theme-specific intro colors */
.cleantime-theme .contact-intro {
color: #333333;
}
.contact-form-wrapper {
background: white;
padding: 40px;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.form-title {
font-size: 1.8rem;
font-weight: 600;
margin-bottom: 30px;
text-align: center;
}
/* Theme-specific form title colors */
.cleantime-theme .form-title {
color: var(--color-primary);
}
/* Form Field Styling */
.form-fields {
display: grid;
gap: 20px;
margin-bottom: 30px;
}
.form-field {
display: flex;
flex-direction: column;
}
.form-label {
font-weight: 500;
margin-bottom: 8px;
font-size: 0.95rem;
}
/* Theme-specific label colors */
.cleantime-theme .form-label {
color: var(--color-secondary);
}
.required {
color: #e74c3c;
margin-left: 4px;
}
/* Form Input Styling */
.form-field input,
.form-field textarea,
.form-field select {
padding: 12px 16px;
border: 2px solid #e1e8ed;
border-radius: 8px;
font-size: 1rem;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
background: white;
width: 100%;
box-sizing: border-box;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
/* Theme-specific focus colors */
.cleantime-theme .form-field input:focus,
.cleantime-theme .form-field textarea:focus,
.cleantime-theme .form-field select:focus {
border-color: var(--color-border);
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}
.form-field textarea {
min-height: 120px;
resize: vertical;
}
/* Radio button styling */
.form-field input[type="radio"] {
width: auto;
margin-right: 8px;
}
/* Error styling */
.form-field.error input,
.form-field.error textarea,
.form-field.error select {
border-color: #e74c3c;
box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}
.field-errors {
color: #e74c3c;
font-size: 0.85rem;
margin-top: 5px;
}
.field-help {
color: #666;
font-size: 0.85rem;
margin-top: 5px;
}
/* Form Actions */
.form-actions {
text-align: center;
}
.form-submit {
padding: 16px 32px;
font-size: 1.1rem;
font-weight: 600;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
min-width: 200px;
}
/* Theme-specific button colors */
.cleantime-theme .form-submit {
background: var(--color-text);
color: var(--color-background);
}
.cleantime-theme .form-submit:hover {
background: #f5f5f5;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}
/* Success Message */
.form-success {
text-align: center;
padding: 40px;
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.form-success h2 {
font-size: 2rem;
margin-bottom: 20px;
color: #27ae60;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2rem;
}
.hero-content {
padding: 100px 15px 40px 15px;
}
.contact-form-section {
padding: 60px 15px;
}
.contact-form-wrapper {
padding: 30px 20px;
}
.form-title {
font-size: 1.5rem;
}
.form-submit {
width: 100%;
}
}
/* home/templates/home/jobs_page.html */
/* Hero Section Styles */
.hero-section {
position: relative;
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0;
}
/* Theme-specific hero backgrounds */
.cleantime-theme .hero-section {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.hero-background img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.3;
}
.hero-content {
position: relative;
z-index: 2;
width: 100%;
text-align: center;
padding: 80px 20px;
}
.hero-container {
max-width: 800px;
margin: 0 auto;
}
/* Theme-specific hero title colors */
.cleantime-theme .hero-title {
color: var(--color-text);
text-shadow:
0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2),
0 0 60px rgba(255, 255, 255, 0.1);
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* Theme-specific subtitle colors */
.cleantime-theme .hero-subtitle {
color: var(--color-muted-text);
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 30px;
line-height: 1.4;
}
/* Theme-specific hero text colors */
.cleantime-theme .hero-text {
color: var(--color-text);
}
.cleantime-theme .hero-text * {
color: inherit;
}
.hero-text {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 30px;
}
.hero-cta {
margin-top: 40px;
}
/* Main Content Section Styles */
.main-content-section {
padding: 80px 0;
background: #fff;
}
.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.jobs-content {
font-size: 1.1rem;
line-height: 1.8;
color: #555;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.hero-content {
padding: 60px 20px;
}
.main-content-section {
padding: 60px 0;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
}
.hero-content {
padding: 40px 20px;
}
}
/* home/templates/home/job_application_page.html */
/* Job application form styling */
.application-hero {
text-align: center;
padding: 120px 20px 60px;
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
color: var(--color-text);
}
.application-title {
font-size: 3rem;
font-weight: 700;
margin-bottom: 20px;
color: var(--color-text);
}
.application-intro {
font-size: 1.2rem;
opacity: 0.9;
max-width: 800px;
margin: 0 auto;
color: var(--color-secondary);
}
.application-content {
max-width: 800px;
margin: 0 auto;
padding: 60px 20px;
color: var(--color-secondary);
}
.application-form {
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 15px;
padding: 40px;
color: #e8e8e8;
}
.form-group {
margin-bottom: 25px;
}
.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
margin-bottom: 25px;
}
.form-label {
display: block;
font-weight: 600;
margin-bottom: 8px;
font-size: 1rem;
color: var(--color-text);
}
.required {
color: #ff6666;
}
.form-input, .form-select, .form-textarea {
width: 100%;
padding: 12px 16px;
border: 2px solid rgba(255,255,255,0.2);
border-radius: 8px;
background: rgba(255,255,255,0.1);
color: inherit;
font-size: 1rem;
transition: all 0.3s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
outline: none;
border-color: rgba(255,255,255,0.5);
background: rgba(255,255,255,0.15);
}
.form-textarea {
min-height: 120px;
resize: vertical;
}
.radio-group {
display: flex;
gap: 20px;
margin-top: 8px;
}
.radio-item {
display: flex;
align-items: center;
gap: 8px;
}
.radio-input {
width: auto;
margin: 0;
}
.submit-button {
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
border: 2px solid rgba(255,255,255,0.3);
color: inherit;
padding: 15px 40px;
font-size: 1.1rem;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 20px;
}
.submit-button:hover {
background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2));
border-color: rgba(255,255,255,0.5);
transform: translateY(-2px);
}
.form-help {
font-size: 0.9rem;
opacity: 0.7;
margin-top: 5px;
}
.form-errors {
margin-top: 5px;
}
.error {
color: #ff6666;
font-size: 0.9rem;
margin-bottom: 5px;
}
/* Style Wagtail form fields */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
select, textarea {
width: 100%;
padding: 12px 16px;
border: 2px solid var(--color-border);
border-radius: 8px;
background: rgba(255,255,255,0.1);
color: var(--color-text);
font-size: 1rem;
transition: all 0.3s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus,
input[type="date"]:focus, select:focus, textarea:focus {
outline: none;
border-color: rgba(255,255,255,0.5);
background: rgba(255,255,255,0.15);
}
/* Fix select dropdown options - dark background with white text */
select option {
background: var(--color-surface);
color: var(--color-text);
padding: 8px 12px;
}
/* Postal code field - taller vertical padding */
.postal-code-input {
padding: 24px 16px !important;
min-height: 64px !important;
box-sizing: border-box !important;
}
/* Date input placeholder styling */
input[type="text"][placeholder*="esim."] {
font-style: italic;
opacity: 0.7;
}
input[type="text"][placeholder*="esim."]:focus {
opacity: 1;
font-style: normal;
}
textarea {
min-height: 120px;
resize: vertical;
}
label {
display: block;
font-weight: 600;
margin-bottom: 8px;
font-size: 1rem;
}
.thank-you {
text-align: center;
padding: 60px 20px;
}
.thank-you-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
color: #66ff66;
}
.thank-you-text {
font-size: 1.2rem;
opacity: 0.9;
max-width: 600px;
margin: 0 auto;
}
/* Responsive design */
@media (max-width: 768px) {
.application-hero {
padding: 100px 20px 40px;
}
.application-title {
font-size: 2rem;
}
.application-form {
padding: 30px 20px;
}
.form-row {
grid-template-columns: 1fr;
gap: 0;
}
.radio-group {
flex-direction: column;
gap: 10px;
}
}
/* Hide floating "Pyyd? tarjous" button only on job application flows */
.template-jobapplication .floating-offer-cta,
.template-job-application-landing .floating-offer-cta {
    display: none !important;
}
/* home/templates/home/job_application_page_landing.html */
/* Landing Page Styles */
.landing-hero {
min-height: 80vh;
display: flex;
align-items: center;
justify-content: center;
padding: 80px 20px;
text-align: center;
}
/* Theme-specific backgrounds */
.cleantime-theme .landing-hero {
    background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
    color: var(--color-text);
}
.landing-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}
.landing-content {
    background: #3a3f47;
    backdrop-filter: none;
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid #4a515c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
/* Success Icon */
.success-icon {
    margin-bottom: 30px;
    display: inline-block;
}
/* Theme-specific icon colors */
.cleantime-theme .success-icon {
    color: var(--color-text);
}
/* Typography */
.landing-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--color-text);
}
.landing-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: #e2e8f0;
}
.landing-message {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: #d9e3f0;
}
.landing-message p {
    margin-bottom: 20px;
}
/* Action Buttons */
.landing-actions {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
display: inline-block;
padding: 15px 30px;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
font-size: 1.1rem;
transition: all 0.3s ease;
border: 2px solid transparent;
}
/* Theme-specific primary button colors */
.cleantime-theme .btn-primary {
    background: #0ea5e9;
    color: #0b1220;
    border-color: #0ea5e9;
}
.cleantime-theme .btn-primary:hover {
    background: #0284c7;
    color: #0b1220;
    border-color: #0284c7;
}
/* Secondary button styles */
.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border-color: #64748b;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: #94a3b8;
    text-decoration: none;
}
/* Responsive Design */
@media (max-width: 768px) {
.landing-content {
padding: 40px 20px;
}
.landing-title {
font-size: 2.5rem;
}
.landing-subtitle {
font-size: 1.2rem;
}
.landing-actions {
flex-direction: column;
}
.btn-primary, .btn-secondary {
width: 100%;
text-align: center;
}
}
@media (max-width: 480px) {
.landing-title {
font-size: 2rem;
}
.landing-subtitle {
font-size: 1rem;
}
.landing-message {
font-size: 1rem;
}
.landing-hero {
padding: 40px 20px;
}
}
/* home/templates/home/news_page.html */
/* News page specific styles */
.news-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 120px 20px 60px;
    color: var(--text-color, #333);
}
.news-header {
text-align: center;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid var(--border-color, #ddd);
}
.news-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 15px;
color: var(--primary-color, #333);
line-height: 1.2;
}
.news-date {
font-size: 1rem;
color: var(--secondary-color, #666);
font-style: italic;
}
.news-intro {
font-size: 1.2rem;
line-height: 1.6;
margin-bottom: 30px;
color: var(--text-color, #555);
font-weight: 500;
text-align: center;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
/* Layout containers */
.news-content {
display: flex;
gap: 40px;
align-items: flex-start;
margin-top: 40px;
}
.news-content.image-top {
flex-direction: column;
align-items: center;
}
.news-content.image-left {
flex-direction: row;
}
.news-content.image-right {
flex-direction: row-reverse;
}
/* Text content */
.news-text {
flex: 1;
min-width: 0; /* Allows text to shrink */
}
.news-text h2, .news-text h3, .news-text h4 {
color: var(--primary-color, #333);
margin-top: 30px;
margin-bottom: 15px;
}
.news-text p {
font-size: 1.1rem;
line-height: 1.7;
margin-bottom: 20px;
color: var(--text-color, #444);
}
.news-text ul, .news-text ol {
margin-bottom: 20px;
padding-left: 30px;
}
.news-text li {
margin-bottom: 8px;
line-height: 1.6;
}
/* Image container */
.news-image-container {
flex: 0 0 auto;
max-width: 500px;
position: relative;
}
.news-content.image-top .news-image-container {
max-width: 800px;
margin-bottom: 30px;
}
.news-content.image-left .news-image-container,
.news-content.image-right .news-image-container {
width: 400px;
}
.news-image {
width: 100%;
height: auto;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-image:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
/* Responsive design */
@media (max-width: 768px) {
.news-container {
padding: 100px 15px 40px;
}
.news-title {
font-size: 2rem;
}
.news-content {
flex-direction: column !important;
gap: 25px;
}
.news-content.image-right {
flex-direction: column !important;
}
.news-image-container {
width: 100% !important;
max-width: 100% !important;
}
.news-text {
width: 100%;
}
.news-intro {
font-size: 1.1rem;
}
.news-text p {
font-size: 1rem;
}
}
@media (max-width: 480px) {
.news-title {
font-size: 1.7rem;
}
.news-container {
padding: 90px 10px 30px;
}
.news-content {
gap: 20px;
}
}
/* Theme-specific adjustments */
.cleantime-theme .news-container {
background-color: var(--background-color, #000);
color: var(--text-color, #fff);
}
.cleantime-theme .news-container {
background-color: var(--background-color, #0a0f0a);
color: var(--text-color, #b8d8b8);
}
/* home/templates/home/references_page.html */
/* Hero Section Styles */
.hero-section {
position: relative;
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0;
}
/* Theme-specific hero backgrounds */
.cleantime-theme .hero-section {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.hero-background img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.3;
}
.hero-content {
position: relative;
z-index: 2;
width: 100%;
text-align: center;
padding: 80px 20px;
}
.hero-container {
max-width: 800px;
margin: 0 auto;
}
/* Theme-specific hero title colors */
.cleantime-theme .hero-title {
color: var(--color-text);
text-shadow:
0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2),
0 0 60px rgba(255, 255, 255, 0.1);
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* Theme-specific subtitle colors */
.cleantime-theme .hero-subtitle {
color: var(--color-muted-text);
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 30px;
line-height: 1.4;
}
/* Theme-specific hero text colors */
.cleantime-theme .hero-text {
color: var(--color-text);
}
.cleantime-theme .hero-text * {
color: inherit;
}
.hero-text {
font-size: 1.1rem;
line-height: 1.6;
margin-bottom: 40px;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.hero-cta {
margin-top: 30px;
}
/* Main content section */
.main-content-section {
padding: 60px 0;
}
.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}
.references-content {
font-size: 1.1rem;
line-height: 1.8;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.hero-text {
font-size: 1rem;
}
.hero-content {
padding: 60px 20px;
}
}
@media (max-width: 480px) {
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1.1rem;
}
.hero-section {
min-height: 50vh;
}
}
/* home/templates/home/service_page.html */
/* Page Header Styles (with background image support) */
.page-header {
position: relative;
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0;
}
/* Background image */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
height: 100%;
z-index: 1;
}
.header-background picture {
display: block;
width: 100%;
height: 100%;
}
.header-background img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.4;
display: block;
aspect-ratio: 16 / 9;
}
/* Content overlay */
.header-content {
position: relative;
z-index: 2;
width: 100%;
text-align: center;
padding: 120px 20px 60px 20px;
color: #ffffff;
}
/* Theme-specific header backgrounds (when no image) */
.cleantime-theme .page-header:not(:has(.header-background)) {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
border-bottom: 2px solid #ffffff;
}
/* Fallback for browsers that don't support :has() */
.cleantime-theme .page-header {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
border-bottom: 2px solid #ffffff;
}
/* Enhanced overlay for better text readability */
.page-header .header-background::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
.cleantime-theme .header-background::before {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
.page-header .header-content,
.page-header .header-content h1,
.page-header .header-content h2,
.page-header .header-content p {
    color: var(--color-text);
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6);
}
.header-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
/* Theme-specific page title colors */
.cleantime-theme .page-title {
color: #ffffff;
text-shadow:
0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2),
0 0 60px rgba(255, 255, 255, 0.1);
}
.page-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* Theme-specific intro text colors */
.cleantime-theme .page-intro {
color: #cccccc;
}
.page-intro {
font-size: 1.1rem;
line-height: 1.6;
max-width: 600px;
margin: 0 auto;
}
.page-intro p {
margin-bottom: 15px;
}
/* Main Content Section */
.main-content-section {
padding: 60px 20px;
}
/* Theme-specific content backgrounds */
.cleantime-theme .main-content-section {
background: #f5f5f5;
}
.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
}
/* Theme-specific service content text colors */
.cleantime-theme .service-content {
color: #333333;
}
.service-content {
font-size: 1.1rem;
line-height: 1.8;
}
/* Theme-specific heading colors */
.cleantime-theme .service-content h2 {
color: #1a1a1a;
}
.service-content h2 {
font-size: 2rem;
font-weight: 600;
margin: 40px 0 20px 0;
}
/* Theme-specific h3 colors */
.cleantime-theme .service-content h3 {
color: #333333;
}
.service-content h3 {
font-size: 1.5rem;
font-weight: 500;
margin: 30px 0 15px 0;
}
.service-content p {
margin-bottom: 20px;
}
.service-content ul, .service-content ol {
margin: 20px 0;
padding-left: 30px;
}
.service-content li {
margin-bottom: 10px;
}
/* Theme-specific blockquote borders */
.cleantime-theme .service-content blockquote {
border-left: 4px solid #ffffff;
color: #1a1a1a;
}
.service-content blockquote {
padding-left: 20px;
margin: 30px 0;
font-style: italic;
}
/* Flexible content styling */
.flexible-content {
min-height: 200px;
}
/* Responsive Design */
@media (max-width: 768px) {
.page-header {
min-height: 250px;
}
.header-content {
padding: 100px 20px 40px 20px;
}
.page-title {
font-size: 2rem;
}
.page-intro {
font-size: 1rem;
}
.main-content-section {
padding: 40px 20px;
}
.service-content h2 {
font-size: 1.5rem;
}
.service-content h3 {
font-size: 1.3rem;
}
}
/* home/templates/home/yksikko_sivu.html */
/* Hero Section Styles */
.hero-section {
position: relative;
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
margin-bottom: 0;
}
/* Theme-specific hero backgrounds */
.cleantime-theme .hero-section {
background: linear-gradient(135deg, var(--hero-overlay-start) 0%, var(--hero-overlay-end) 100%);
}
.hero-background {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
}
.hero-background img {
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.3;
}
.hero-content {
position: relative;
z-index: 2;
width: 100%;
text-align: center;
padding: 80px 20px;
}
.hero-container {
max-width: 800px;
margin: 0 auto;
}
/* Theme-specific hero title colors */
.cleantime-theme .hero-title {
color: var(--color-text);
text-shadow:
0 0 20px rgba(255, 255, 255, 0.3),
0 0 40px rgba(255, 255, 255, 0.2),
0 0 60px rgba(255, 255, 255, 0.1);
}
.hero-title {
font-size: 3.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
/* Theme-specific subtitle colors */
.cleantime-theme .hero-subtitle {
color: var(--color-muted-text);
}
.hero-subtitle {
font-size: 1.5rem;
font-weight: 300;
margin-bottom: 30px;
line-height: 1.4;
}
/* Theme-specific hero text colors */
.cleantime-theme .hero-text {
color: var(--color-text);
}
.cleantime-theme .hero-text * {
color: inherit;
}
.hero-text {
font-size: 1.1rem;
line-height: 1.6;
max-width: 600px;
margin: 0 auto;
}
.hero-text p {
margin-bottom: 15px;
}
/* Hero CTA Button */
.hero-cta {
margin-top: 30px;
}
/* Main Content Section */
.main-content-section {
padding: 80px 20px;
}
/* Theme-specific content backgrounds */
.cleantime-theme .main-content-section {
background: #f5f5f5;
}
.content-container {
    max-width: var(--container-max);
    margin: 0 auto;
}
/* Theme-specific content text colors */
.cleantime-theme .organization-content {
color: #333333;
}
.organization-content {
font-size: 1.1rem;
line-height: 1.8;
}
/* Theme-specific heading colors */
.cleantime-theme .organization-content h2 {
color: #1a1a1a;
}
.organization-content h2 {
font-size: 2rem;
font-weight: 600;
margin: 40px 0 20px 0;
}
/* Theme-specific h3 colors */
.cleantime-theme .organization-content h3 {
color: #333333;
}
.organization-content h3 {
font-size: 1.5rem;
font-weight: 500;
margin: 30px 0 15px 0;
}
.organization-content p {
margin-bottom: 20px;
}
.organization-content ul, .organization-content ol {
margin: 20px 0;
padding-left: 30px;
}
.organization-content li {
margin-bottom: 10px;
}
/* Theme-specific blockquote borders */
.cleantime-theme .organization-content blockquote {
border-left: 4px solid #ffffff;
color: #1a1a1a;
}
.organization-content blockquote {
padding-left: 20px;
margin: 30px 0;
font-style: italic;
}
/* Responsive Design */
@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}
.hero-subtitle {
font-size: 1.2rem;
}
.hero-text {
font-size: 1rem;
}
.hero-content {
padding: 40px 20px;
}
.main-content-section {
padding: 40px 20px;
}
.organization-content h2 {
font-size: 1.5rem;
}
.organization-content h3 {
font-size: 1.3rem;
}
}
/* home/templates/home/blocks/card_grid_block.html */
.card-grid-block {
margin: 40px 0;
}
.card-grid-block__heading {
font-size: 2rem;
margin-bottom: 10px;
text-align: center;
}
.card-grid-block__intro {
margin-bottom: 24px;
color: #4b5563;
text-align: center;
}
.card-grid {
display: grid;
gap: 24px;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card-grid-block[data-columns="2"] .card-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-block[data-columns="3"] .card-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid-block[data-columns="4"] .card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-grid-block[data-columns="5"] .card-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card-grid-block[data-columns="6"] .card-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card-grid__item {
background: #0f172a;
color: #e5e7eb;
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-grid--elevated .card-grid__item {
box-shadow: 0 14px 40px rgba(15, 23, 42, 0.32);
}
.card-grid--flat .card-grid__item {
box-shadow: none;
border: 1px solid rgba(255, 255, 255, 0.08);
background: #111827;
}
.card-grid__item:hover {
transform: translateY(-4px);
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.38);
}
.card-grid__media img {
display: block;
width: 100%;
height: 180px;
object-fit: cover;
}
.card-grid__body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
height: 100%;
}
.card-grid__title {
margin: 0;
font-size: 1.2rem;
font-weight: 700;
color: #f8fafc;
}
.card-grid__text {
margin: 0;
color: #cbd5e1;
}
.card-grid__button {
margin-top: auto;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 16px;
border-radius: 10px;
background: #38bdf8;
color: #0b1224;
font-weight: 700;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
box-shadow: 0 10px 24px rgba(56, 189, 248, 0.35);
}
.card-grid__button:hover {
transform: translateY(-1px);
box-shadow: 0 14px 30px rgba(56, 189, 248, 0.45);
}
@media (max-width: 768px) {
.card-grid {
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.card-grid__media img {
height: 160px;
}
}
@media (max-width: 540px) {
.card-grid-block__heading {
font-size: 1.6rem;
}
.card-grid {
grid-template-columns: 1fr;
}
}
/* home/templates/home/blocks/carousel_block.html */
.carousel-block {
margin: 40px 0;
}
.flex-section.carousel-block {
margin: 0;
}
.carousel-block__heading { font-size: 2rem; margin-bottom: 8px; }
.carousel-block__subheading { margin: 0 0 20px; color: #6b7280; }
.carousel {
position: relative;
overflow: hidden;
border-radius: 12px;
background: #0f172a;
color: #f8fafc;
}
.carousel__track {
display: flex;
gap: 16px;
padding: 0 6px 10px;
transition: transform 0.45s ease;
}
.carousel__slide {
position: relative;
flex: 0 0 calc((100% - ((var(--visible-count, 1) - 1) * 16px)) / var(--visible-count, 1));
background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(15,23,42,0.6));
border-radius: 10px;
overflow: hidden;
min-width: 0;
}
.carousel__media {
position: relative;
aspect-ratio: 4 / 5;
min-height: 260px;
width: 100%;
overflow: hidden;
background: #0f172a;
}
.carousel__media img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: brightness(0.85);
}
.carousel__content {
position: absolute;
inset: auto 0 0 0;
padding: 32px;
background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 100%);
}
.carousel__title { margin: 0 0 12px; font-size: 1.6rem; font-weight: 700; }
.carousel__text { margin: 0 0 16px; color: #e5e7eb; max-width: 720px; }
.carousel__button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 18px;
background: #38bdf8;
color: #0b1224;
border-radius: 999px;
text-decoration: none;
font-weight: 600;
box-shadow: 0 10px 30px rgba(56,189,248,0.35);
transition: all 0.2s ease;
}
.carousel__button:hover {
transform: translateY(-1px);
box-shadow: 0 14px 36px rgba(56,189,248,0.45);
}
.carousel__arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 44px; height: 44px;
border-radius: 50%;
background: rgba(15,23,42,0.7);
color: #f8fafc;
border: none;
font-size: 22px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
backdrop-filter: blur(6px);
transition: all 0.2s ease;
z-index: 10;
}
.carousel__arrow:hover {
background: rgba(15,23,42,0.9);
transform: translateY(-50%) scale(1.05);
}
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }
.carousel__dots {
position: absolute;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
padding: 8px 12px;
background: rgba(15,23,42,0.6);
border-radius: 999px;
backdrop-filter: blur(6px);
z-index: 10;
}
.carousel__dot {
width: 10px; height: 10px;
border-radius: 50%;
background: rgba(248,250,252,0.5);
border: none;
cursor: pointer;
transition: all 0.2s ease;
}
.carousel__dot.is-active {
background: #38bdf8;
transform: scale(1.2);
}
@media (max-width: 960px) {
.carousel__media { min-height: 240px; }
.carousel__content { padding: 24px; }
.carousel__title { font-size: 1.4rem; }
}
@media (max-width: 640px) {
.carousel__media { min-height: 200px; }
.carousel__content { padding: 20px; }
.carousel__arrow { width: 38px; height: 38px; font-size: 18px; }
}
/* home/templates/home/blocks/cta_button_block.html */
.cta-button-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin: 20px auto;
text-align: center;
}
.cta-button-wrapper {
display: inline-flex;
justify-content: center;
align-items: center;
}
/* Match floating CTA colors regardless of style */
.cta-button-container .cta-button {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.35);
    text-decoration: none;
}
/* home/templates/home/blocks/cta_section_block.html */
/* CTA Section Styles */
.cta-section {
padding: 60px 20px;
margin: 40px 0;
text-align: center;
}
.cta-container {
max-width: 800px;
margin: 0 auto;
}
.cta-title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
line-height: 1.2;
}
.cta-text {
font-size: 1.2rem;
margin-bottom: 30px;
line-height: 1.6;
}
.cta-buttons {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 15px;
margin-top: 30px;
}
/* Background Styles */
.cta-bg-default {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.cta-bg-light {
    background: #ffffff;
    border: 1px solid #e9ecef;
}
.cta-bg-dark {
background: #2d3436;
color: #ffffff;
}
/* Theme-specific accent backgrounds */
.cleantime-theme .cta-bg-accent {
background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
color: #ffffff;
}
/* Responsive Design */
@media (max-width: 768px) {
.cta-title {
font-size: 2rem;
}
.cta-text {
font-size: 1.1rem;
}
.cta-buttons {
flex-direction: column;
align-items: center;
}
.cta-section {
padding: 40px 20px;
}
}
/* home/templates/home/blocks/image_block.html */
.image-block {
margin: 20px 0;
}
.image-block figure {
margin: 0;
}
.image-block img {
max-width: 100%;
height: auto;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.image-block figcaption {
margin-top: 8px;
font-size: 0.9em;
color: #666;
font-style: italic;
}
/* Alignment styles */
.image-left {
float: left;
margin-right: 20px;
margin-bottom: 10px;
max-width: 40%;
}
.image-right {
float: right;
margin-left: 20px;
margin-bottom: 10px;
max-width: 40%;
}
.image-center {
text-align: center;
clear: both;
}
.image-full {
clear: both;
width: 100%;
}
.image-full img {
width: 100%;
}
/* Mobile responsive */
@media (max-width: 768px) {
.image-left, .image-right {
float: none;
max-width: 100%;
margin: 20px 0;
}
}
/* home/templates/home/blocks/logo_section_block.html */
.logo-section {
padding: 60px 0;
transition: all 0.3s ease;
}
/* Background styles */
/* Default style inherits from flexible-content alternating backgrounds */
.logo-section--default {
/* No background override - inherits from flexible-content */
}
/* Other styles override flexible-content with !important */
.logo-section--light {
background: #f8f9fa !important;
background-color: #f8f9fa !important;
}
.logo-section--dark {
background: #2d3748 !important;
background-color: #2d3748 !important;
color: white;
}
.logo-section--accent {
background: var(--accent-color, #e2e8f0) !important;
background-color: var(--accent-color, #e2e8f0) !important;
}
.logo-section__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.logo-section__title {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 20px;
color: inherit;
}
.logo-section__subtitle {
font-size: 1.2rem;
margin-bottom: 50px;
color: inherit;
opacity: 0.8;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.logo-section__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 40px;
align-items: center;
justify-items: center;
}
.logo-item {
display: flex;
align-items: center;
justify-content: center;
min-height: 80px;
padding: 20px;
transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-item:hover {
transform: translateY(-5px);
}
.logo-item__link {
display: block;
text-decoration: none;
transition: opacity 0.3s ease;
}
.logo-item__link:hover {
opacity: 0.8;
}
.logo-item__image {
max-width: 100%;
max-height: 80px;
width: auto;
height: auto;
object-fit: contain;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.logo-section {
padding: 40px 0;
}
.logo-section__title {
font-size: 2rem;
}
.logo-section__subtitle {
font-size: 1.1rem;
margin-bottom: 30px;
}
.logo-section__grid {
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 30px;
}
.logo-item {
min-height: 60px;
padding: 15px;
}
.logo-item__image {
max-height: 60px;
}
}
@media (max-width: 480px) {
.logo-section__grid {
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}
.logo-item {
min-height: 50px;
padding: 10px;
}
.logo-item__image {
max-height: 50px;
}
}
/* Animation for logos */
.logo-item {
opacity: 0;
animation: fadeInUp 0.6s ease forwards;
}
.logo-item:nth-child(1) { animation-delay: 0.1s; }
.logo-item:nth-child(2) { animation-delay: 0.2s; }
.logo-item:nth-child(3) { animation-delay: 0.3s; }
.logo-item:nth-child(4) { animation-delay: 0.4s; }
.logo-item:nth-child(5) { animation-delay: 0.5s; }
.logo-item:nth-child(6) { animation-delay: 0.6s; }
.logo-item:nth-child(7) { animation-delay: 0.7s; }
.logo-item:nth-child(8) { animation-delay: 0.8s; }
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* home/templates/home/blocks/quote_block.html */
.quote-block {
margin: 30px 0;
clear: both;
}
.quote-block blockquote {
margin: 0;
padding: 0;
border: none;
background: none;
}
.quote-text {
font-size: 1.2em;
line-height: 1.6;
margin: 0 0 15px 0;
font-style: italic;
}
.quote-footer {
font-size: 0.9em;
color: #666;
}
.quote-author {
font-weight: 600;
font-style: normal;
}
.quote-title {
color: #888;
}
.quote-title:before {
content: " — ";
}
/* Default style */
.quote-default {
text-align: center;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
.quote-default .quote-text {
font-size: 1.4em;
color: #555;
}
.quote-default .quote-text:before {
content: """;
font-size: 1.5em;
color: #ccc;
}
.quote-default .quote-text:after {
content: """;
font-size: 1.5em;
color: #ccc;
}
/* Highlighted style */
.quote-highlighted {
background: linear-gradient(135deg, #f8f9fa, #e9ecef);
padding: 30px;
border-radius: 12px;
border-left: 5px solid #007bff;
position: relative;
}
.quote-highlighted .quote-text {
font-size: 1.3em;
color: #333;
font-weight: 500;
}
.quote-highlighted .quote-footer {
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #dee2e6;
}
/* Minimal style */
.quote-minimal {
border-left: 3px solid #ddd;
padding-left: 20px;
font-style: italic;
}
.quote-minimal .quote-text {
font-size: 1.1em;
color: #666;
margin-bottom: 10px;
}
.quote-minimal .quote-footer {
font-size: 0.85em;
text-align: right;
}
/* Mobile responsive */
@media (max-width: 768px) {
.quote-block {
margin: 20px 0;
}
.quote-highlighted {
padding: 20px;
}
.quote-text {
font-size: 1.1em !important;
}
}
/* home/templates/home/blocks/raw_embed_block.html */
.raw-embed-block {
margin: 30px 0;
overflow: hidden;
}
.embed-left {
float: left;
margin-right: 25px;
margin-bottom: 15px;
max-width: 40%;
clear: left;
}
.embed-right {
float: right;
margin-left: 25px;
margin-bottom: 15px;
max-width: 40%;
clear: right;
}
.embed-center {
text-align: center;
clear: both;
margin: 30px auto;
max-width: 80%;
}
.embed-full {
clear: both;
width: 100%;
margin: 30px 0;
}
.embed-content {
width: 100%;
overflow: hidden;
}
.embed-content blockquote {
margin: 0 auto !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
/* Instagram embed specific styling - force center regardless of alignment */
.raw-embed-block:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media),
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) {
float: none !important;
clear: both !important;
margin: 30px auto !important;
max-width: 80% !important;
text-align: center !important;
width: 100% !important;
}
.raw-embed-block:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-left:has(.embed-content blockquote.instagram-media) .embed-content,
.raw-embed-block.embed-right:has(.embed-content blockquote.instagram-media) .embed-content {
display: flex !important;
justify-content: center !important;
align-items: center !important;
width: 100% !important;
}
.embed-content blockquote.instagram-media {
width: 100% !important;
max-width: 540px !important;
min-width: 326px !important;
margin: 0 auto !important;
display: block !important;
float: none !important;
}
/* Fallback for browsers without :has() support */
.embed-left .embed-content blockquote.instagram-media,
.embed-right .embed-content blockquote.instagram-media {
float: none !important;
margin-left: auto !important;
margin-right: auto !important;
}
.embed-center .embed-content {
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
.embed-center .embed-content blockquote.instagram-media {
width: 100% !important;
max-width: 540px !important;
min-width: 326px !important;
}
.embed-caption {
margin-top: 8px;
font-size: 0.9em;
color: #cccccc;
font-style: italic;
text-align: center;
}
/* Mobile responsive */
@media (max-width: 768px) {
.embed-left, .embed-right {
float: none;
max-width: 100%;
margin: 20px 0;
}
.embed-center, .embed-full {
max-width: 100%;
}
.embed-content blockquote {
max-width: 100% !important;
min-width: auto !important;
}
.embed-content blockquote.instagram-media {
max-width: 100% !important;
min-width: 100% !important;
width: 100% !important;
}
}
/* home/templates/home/blocks/text_with_image_block.html */
.text-with-image-block {
margin: 20px 0 !important;
overflow: visible !important;
}
.text-with-image-container {
display: flex !important;
align-items: flex-start !important;
gap: 35px !important;
width: 100% !important;
flex-wrap: nowrap !important;
}
.text-with-image-image {
flex: 0 0 25% !important;
max-width: 25% !important;
min-width: 180px !important;
}
.text-with-image-image figure {
margin: 0 !important;
position: relative !important;
overflow: hidden !important;
}
.text-with-image-image img {
width: 100% !important;
height: auto !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1) !important;
display: block !important;
}
.text-with-image-image figcaption {
margin-top: 8px !important;
font-size: 0.9em !important;
color: #cccccc !important;
font-style: italic !important;
text-align: center !important;
}
.text-with-image-text {
flex: 1 !important;
color: #cccccc !important;
line-height: 1.6 !important;
min-width: 0 !important;
max-width: 75% !important;
overflow: hidden !important;
word-wrap: break-word !important;
text-align: left !important;
}
.text-with-image-link {
display: block !important;
color: inherit !important;
text-decoration: none !important;
}
.text-with-image__overlay {
position: absolute !important;
inset: 0 !important;
display: flex !important;
align-items: flex-end !important;
padding: 12px 14px !important;
background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%) !important;
color: #ffffff !important;
font-weight: 600 !important;
letter-spacing: 0.01em !important;
border-radius: 8px !important;
box-sizing: border-box !important;
}
.text-with-image__overlay:empty {
display: none !important;
}
.text-with-image-text p {
margin-bottom: 1em !important;
text-align: left !important;
}
.text-with-image-text ul,
.text-with-image-text ol {
margin: 1em 0 !important;
padding-left: 2em !important;
text-align: left !important;
}
.text-with-image-text li {
margin-bottom: 0.5em !important;
text-align: left !important;
}
/* Ensure all text elements are left-aligned */
.text-with-image-text * {
text-align: left !important;
}
/* Override any alternating background interference */
.flexible-content > div .text-with-image-container {
display: flex !important;
flex-wrap: nowrap !important;
}
.flexible-content > div .text-with-image-image {
float: none !important;
position: static !important;
}
.flexible-content > div .text-with-image-text {
float: none !important;
position: static !important;
overflow: hidden !important;
}
/* Mobile responsive */
@media (max-width: 768px) {
.text-with-image-container {
flex-direction: column !important;
gap: 30px !important;
}
.text-with-image-image {
flex: none !important;
max-width: 100% !important;
order: 1 !important;
}
.text-with-image-text {
order: 2 !important;
max-width: 100% !important;
}
/* For left image position on mobile, keep image first */
.text-with-image-left .text-with-image-image {
order: 1 !important;
}
.text-with-image-left .text-with-image-text {
order: 2 !important;
}
.text-with-image__overlay {
padding: 10px 12px !important;
font-size: 0.95rem !important;
}
}
/* home/templates/home/blocks/text_with_raw_embed_block.html */
.text-with-raw-embed-block {
margin: 40px 0 !important;
overflow: hidden !important;
width: 100% !important;
}
.text-with-embed-container {
display: flex !important;
align-items: flex-start !important;
gap: 35px !important;
width: 100% !important;
min-height: 200px !important;
}
.text-with-embed-left {
flex-direction: row !important;
}
.text-with-embed-right {
flex-direction: row-reverse !important;
}
.text-with-embed-embed {
flex: 0 0 25% !important;
max-width: 25% !important;
min-width: 250px !important;
overflow: hidden !important;
}
.text-with-embed-embed .embed-content {
width: 100% !important;
overflow: hidden !important;
}
.text-with-embed-embed .embed-content blockquote {
width: 100% !important;
max-width: 100% !important;
min-width: auto !important;
margin: 0 !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.text-with-embed-caption {
margin-top: 8px !important;
font-size: 0.9em !important;
color: #cccccc !important;
font-style: italic !important;
text-align: center !important;
}
.text-with-embed-text {
flex: 1 !important;
color: #cccccc !important;
line-height: 1.6 !important;
min-width: 0 !important;
max-width: 75% !important;
overflow: hidden !important;
word-wrap: break-word !important;
text-align: left !important;
}
.text-with-embed-text p {
margin-bottom: 1em !important;
text-align: left !important;
}
.text-with-embed-text ul,
.text-with-embed-text ol {
margin: 1em 0 !important;
padding-left: 2em !important;
text-align: left !important;
}
.text-with-embed-text li {
margin-bottom: 0.5em !important;
text-align: left !important;
}
/* Ensure all text elements are left-aligned */
.text-with-embed-text * {
text-align: left !important;
}
/* Mobile responsive */
@media (max-width: 768px) {
.text-with-embed-container {
flex-direction: column !important;
gap: 20px !important;
}
.text-with-embed-embed {
flex: none !important;
max-width: 100% !important;
min-width: auto !important;
}
.text-with-embed-text {
flex: none !important;
max-width: 100% !important;
}
}
/* home/templates/home/blocks/text_with_video_block.html */
.text-with-video-block {
margin: 20px 0 !important;
overflow: visible !important;
}
.text-with-video-container {
display: flex !important;
align-items: flex-start !important;
gap: 35px !important;
width: 100% !important;
flex-wrap: nowrap !important;
}
.text-with-video-video {
flex: 0 0 25% !important;
max-width: 25% !important;
min-width: 300px !important;
}
.text-with-video-video .video-content {
width: 100% !important;
position: relative !important;
padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
height: 0 !important;
overflow: hidden !important;
border-radius: 8px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.text-with-video-video .video-content iframe {
position: absolute !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
border-radius: 8px !important;
}
.text-with-video-caption {
margin-top: 8px !important;
font-size: 0.9em !important;
color: #cccccc !important;
font-style: italic !important;
text-align: center !important;
}
.text-with-video-text {
flex: 1 !important;
color: #cccccc !important;
line-height: 1.6 !important;
min-width: 0 !important;
max-width: 75% !important;
overflow: hidden !important;
word-wrap: break-word !important;
text-align: left !important;
}
.text-with-video-text p {
margin-bottom: 1em !important;
text-align: left !important;
}
.text-with-video-text ul,
.text-with-video-text ol {
margin: 1em 0 !important;
padding-left: 2em !important;
text-align: left !important;
}
.text-with-video-text li {
margin-bottom: 0.5em !important;
text-align: left !important;
}
/* Ensure all text elements are left-aligned */
.text-with-video-text * {
text-align: left !important;
}
/* Override any alternating background interference */
.flexible-content > div .text-with-video-container {
display: flex !important;
flex-wrap: nowrap !important;
}
.flexible-content > div .text-with-video-video {
float: none !important;
position: static !important;
}
.flexible-content > div .text-with-video-text {
float: none !important;
position: static !important;
overflow: hidden !important;
}
/* Mobile responsive */
@media (max-width: 768px) {
.text-with-video-container {
flex-direction: column !important;
gap: 30px !important;
}
.text-with-video-video {
flex: none !important;
max-width: 100% !important;
min-width: auto !important;
order: 1 !important;
}
.text-with-video-text {
order: 2 !important;
max-width: 100% !important;
}
/* For left video position on mobile, keep video first */
.text-with-video-left .text-with-video-video {
order: 1 !important;
}
.text-with-video-left .text-with-video-text {
order: 2 !important;
}
}
/* home/templates/home/blocks/video_embed_block.html */
.video-embed-block {
margin: 30px 0;
overflow: hidden;
}
.video-left {
float: left;
margin-right: 25px;
margin-bottom: 15px;
max-width: 40%;
clear: left;
}
.video-right {
float: right;
margin-left: 25px;
margin-bottom: 15px;
max-width: 40%;
clear: right;
}
.video-center {
text-align: center;
clear: both;
margin: 30px auto;
max-width: 80%;
}
.video-full {
clear: both;
width: 100%;
margin: 30px 0;
}
.video-content {
width: 100%;
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.video-content iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 8px;
}
.video-caption {
margin-top: 8px;
font-size: 0.9em;
color: #cccccc;
font-style: italic;
text-align: center;
}
/* Mobile responsive */
@media (max-width: 768px) {
.video-left, .video-right {
float: none;
max-width: 100%;
margin: 20px 0;
}
.video-center, .video-full {
max-width: 100%;
}
}
/* gallery/templates/gallery/person_gallery_page.html */
.gallery-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 2rem 1rem;
}
.gallery-intro {
text-align: center;
margin-bottom: 3rem;
font-size: 1.1rem;
color: #666;
}
.person-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
.person-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.person-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.person-image {
width: 100%;
height: 300px;
object-fit: cover;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 3rem;
font-weight: bold;
}
.person-info {
padding: 1.5rem;
}
.person-name {
font-size: 1.4rem;
font-weight: 600;
color: #2c3e50;
margin-bottom: 0.5rem;
}
.person-title {
font-size: 1rem;
color: #667eea;
font-weight: 500;
margin-bottom: 1rem;
}
.person-contact {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.contact-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: #666;
font-size: 0.9rem;
}
.contact-item a {
color: #667eea;
text-decoration: none;
transition: color 0.3s ease;
}
.contact-item a:hover {
color: #764ba2;
}
.contact-icon {
width: 16px;
height: 16px;
opacity: 0.7;
}
.no-people {
text-align: center;
padding: 3rem;
color: #666;
font-style: italic;
}
@media (max-width: 768px) {
.person-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.gallery-container {
padding: 1rem;
}
}
/* Cleantime theme specific centering */
.cleantime-theme .gallery-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    max-width: var(--container-max) !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}
.cleantime-theme .person-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 1.75rem !important;
    width: 100% !important;
}
.cleantime-theme .person-card {
    flex: none !important;
    max-width: none !important;
}

/* Full-bleed hero sections while keeping centered content */
.home-hero,
.hero-section,
.page-header,
.landing-hero,
.application-hero,
.about-hero,
.news-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Footer logos: keep crisp, aligned, and evenly spaced */
.footer-logos {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 20px;
row-gap: 16px;
justify-content: flex-start;
}
.footer-logo {
display: flex;
align-items: center;
justify-content: flex-start;
min-height: 0;
}
.footer-logo__image {
max-height: 68px;
max-width: 200px;
width: auto;
height: auto;
object-fit: contain;
display: block;
padding: 0;
background: transparent;
border: none;
box-shadow: none;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
@media (max-width: 768px) {
.footer-logo__image {
max-height: 56px;
max-width: 160px;
}
}

@layer utilities {
    :where(.is-hidden) {
        display: none !important;
    }

    :where(.no-underline) {
        text-decoration: none !important;
    }

    :where(.text-center) {
        text-align: center !important;
    }

    :where(.flex) {
        display: flex !important;
    }

    :where(.sr-only) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ===========================
   THEME TOGGLE BUTTON
   ===========================*/

.theme-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    box-shadow: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-theme-toggle {
    flex-shrink: 0;
    z-index: 2001;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    background: var(--color-background);
    border-color: var(--color-muted-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    outline: none;
}

.theme-toggle:focus-visible {
    box-shadow: 0 0 0 2px var(--color-border), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.theme-toggle .moon {
    display: none;
}

.dark-mode .theme-toggle .moon {
    display: block;
}

.dark-mode .theme-toggle .sun {
    display: none;
}

/* ===========================
   THEME TOGGLE
   ===========================*/

/* 
   THEME TOGGLE HTML + JS + CSS
   Paste the following code into base.html (preferably near the nav in <body>):
   
   <!-- THEME TOGGLE - paste into <body> (preferably near the nav) -->
   <button id="theme-toggle" aria-label="Vaihda vaalea / tumma teema" class="theme-toggle">
     <span class="sun">☀️</span>
     <span class="moon">🌙</span>
   </button>
   
   <script>
     // Theme toggle script – works with the classes you added
     const toggle = document.getElementById('theme-toggle');
     if (toggle) {
       const root = document.documentElement;
   
       // Load saved preference or respect system
       if (localStorage.theme === 'dark') {
         root.classList.add('dark-mode');
         root.classList.remove('light-mode');
       } else if (localStorage.theme === 'light') {
         root.classList.add('light-mode');
         root.classList.remove('dark-mode');
       } else {
         // no saved preference → follow system
         if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
           root.classList.add('dark-mode');
         } else {
           root.classList.add('light-mode');
         }
       }
   
       toggle.addEventListener('click', () => {
         if (root.classList.contains('dark-mode')) {
           root.classList.replace('dark-mode', 'light-mode');
           localStorage.theme = 'light';
         } else {
           root.classList.replace('light-mode', 'dark-mode');
           localStorage.theme = 'dark';
         }
       });
     }
   </script>
   
   <style>
     .theme-toggle {
       position: fixed;
       bottom: 20px;
       right: 20px;
       z-index: 1000;
       width: 52px;
       height: 52px;
       border-radius: 50%;
       background: var(--color-surface);
       border: 2px solid var(--color-border);
       color: var(--color-text);
       box-shadow: 0 4px 15px rgba(0,0,0,0.2);
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center;
       font-size: 24px;
       transition: var(--transition-all);
     }
     
     .theme-toggle:hover {
       transform: scale(1.1);
       box-shadow: 0 6px 20px rgba(0,0,0,0.3);
     }
     
     .theme-toggle .moon {
       display: none;
     }
     
     .dark-mode .theme-toggle .moon {
       display: block;
     }
     
     .dark-mode .theme-toggle .sun {
       display: none;
     }
   </style>
*/
