/**
 * OperateForYou - Main Stylesheet
 * Pastel colors, glassmorphism, modern SaaS aesthetic
 */

/* ============================================
   CSS VARIABLES & THEME SETTINGS
   ============================================ */
:root {
    /* Pastel Color Palette */
    --sage-green: #A8C9A1;
    --sage-green-dark: #8AB583;
    --powder-blue: #B8D8E8;
    --powder-blue-dark: #9AC4DA;
    --warm-ivory: #FFF8F0;
    --blush-pink: #F9E6E6;
    --blush-pink-dark: #F0C9C9;
    --soft-lavender: #E0D9F0;
    --soft-lavender-dark: #C8BDE0;
    
    /* Neutral Colors - Enhanced for Day Mode readability */
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(45, 52, 54, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    /* Layout */
    --header-height: 80px;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
    --container-wide: 1400px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-dark: #F8F9FA;
    --text-medium: #DFE6E9;
    --text-light: #B2BEC3;
    --bg-white: #2D3436;
    --bg-light: #1E272E;
    
    --glass-bg: rgba(45, 52, 54, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BASE STYLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

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

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

p {
    margin-bottom: 1rem;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--sage-green-dark) 0%, var(--powder-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 0px;
}

/* Dark mode: same colors with white border for visibility */
[data-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, var(--sage-green-dark) 0%, var(--powder-blue-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1.5px white;
    filter: none;
}

/* Handwritten font for testimonials */
.handwritten {
    font-family: 'Caveat', 'Pacifico', cursive;
    font-size: 1.4em;
    line-height: 1.4;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-sm {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-height: 48px;
    cursor: pointer;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--sage-green-dark) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    border-color: var(--sage-green);
    color: var(--sage-green-dark);
    transform: translateY(-3px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--powder-blue) 0%, var(--powder-blue-dark) 100%);
    color: var(--text-dark);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Dark mode: Button contrast fixes */
[data-theme="dark"] .btn-secondary {
    background: rgba(45, 52, 54, 0.8);
    color: #F5F5F5;
    border-color: rgba(168, 201, 161, 0.3);
}

[data-theme="dark"] .btn-secondary:hover {
    background: rgba(168, 201, 161, 0.2);
    border-color: var(--sage-green);
    color: white;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-small .btn__icon {
    width: 16px;
    height: 16px;
}

.about-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.about-cta-actions .btn {
    min-width: 132px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-sm);
}

.about-cta-actions .btn-primary {
    box-shadow: 0 4px 12px rgba(138, 181, 131, 0.28);
}

.about-cta-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(26, 32, 44, 0.12);
}

.about-cta-actions .btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   CARDS (Critical: Equal height, button aligned)
   ============================================ */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage-green);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: white;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.375rem;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-medium);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch;
}

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

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

.hero--compact {
    min-height: auto;
    padding: calc(var(--header-height) + 32px) 0 40px;
}

.hero--compact .hero-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 10px;
}

.hero--compact .hero-subtitle {
    margin-bottom: 0;
}

/* ============================================
   HEADER & NAVIGATION (Glassmorphism)
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-normal);
}

.header-scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: var(--header-height);
    position: relative;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    justify-self: start;
    min-width: 0;
    padding: 6px 0;
    text-decoration: none;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

[data-theme="dark"] .logo img {
    filter: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: clamp(16px, 1.8vw, 28px);
    min-width: 0;
}

.nav-link {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(0.8125rem, 0.75rem + 0.2vw, 0.9375rem);
    color: var(--text-dark);
    position: relative;
    padding: 8px 2px;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--sage-green), var(--powder-blue));
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    justify-self: end;
}

/* Theme Toggle */
.theme-toggle {
    width: 48px;
    height: 26px;
    background: var(--text-light);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background var(--transition-normal);
    z-index: 996;
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-normal);
}

[data-theme="dark"] .theme-toggle {
    background: var(--sage-green);
}

[data-theme="dark"] .theme-toggle::after {
    transform: translateX(22px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-overlay {
        display: none !important;
    }

    .header > .header-inner.container {
        max-width: none;
        width: 100%;
        padding-left: clamp(28px, 4vw, 56px);
        padding-right: clamp(28px, 3vw, 48px);
    }

    .logo {
        padding: 2px 0;
    }

    .logo img {
        width: 58px;
        height: 58px;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--warm-ivory) 0%, var(--blush-pink) 50%, var(--soft-lavender) 100%);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.95) 0%, rgba(30, 39, 46, 0.9) 50%, rgba(45, 52, 54, 0.95) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: blob-float 20s infinite ease-in-out;
}

.hero-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--sage-green);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-blob-2 {
    width: 500px;
    height: 500px;
    background: var(--powder-blue);
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.hero-blob-3 {
    width: 400px;
    height: 400px;
    background: var(--blush-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-title {
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: text-shadow var(--transition-normal);
}

/* Dark mode: enhanced text shadow for contrast without background box */
[data-theme="dark"] .hero-title {
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(168, 201, 161, 0.2),
        -1px -1px 0 rgba(0, 0, 0, 0.3),
        1px -1px 0 rgba(0, 0, 0, 0.3),
        -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

[data-theme="dark"] .hero-title:hover {
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(168, 201, 161, 0.4),
        -1px -1px 0 rgba(0, 0, 0, 0.3),
        1px -1px 0 rgba(0, 0, 0, 0.3),
        -1px 1px 0 rgba(0, 0, 0, 0.3),
        1px 1px 0 rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 32px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
}

/* Dark mode: enhanced subtitle visibility */
[data-theme="dark"] .hero-subtitle {
    color: #F5F5F5;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

/* Hero content wrapper for dark mode readability - REMOVED background box, using text-shadow instead */
[data-theme="dark"] .hero-content {
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    border: none;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* Inner pages: same hero dimensions as homepage, centered content layout */
.hero-content-centered {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-content-centered.hero-content-narrow {
    max-width: 800px;
}

.hero-content-centered .hero-subtitle {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-centered {
    justify-content: center;
}

/* Homepage hero */
.hero--home {
    min-height: clamp(520px, 72vh, 760px);
}

.hero-content--home {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 640px;
}

.hero-title--home {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    text-wrap: balance;
}

.hero-title--home .hero-title__line {
    display: block;
}

.hero-title--home .hero-title__line--accent {
    margin: 0.06em 0;
}

.hero-subtitle--home {
    font-size: clamp(1.05rem, 1.45vw, 1.2rem);
    line-height: 1.65;
    max-width: 34rem;
    margin-bottom: 16px;
    text-wrap: pretty;
}

.hero-trust-line {
    margin: 0 0 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-medium);
    letter-spacing: 0.01em;
}

[data-theme="dark"] .hero-trust-line {
    color: rgba(245, 245, 245, 0.82);
}

.hero-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
    width: 100%;
    max-width: 36rem;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.35;
}

.hero-highlights .material-icons {
    font-size: 18px;
    color: var(--sage-green);
}

.hero-content--home .hero-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    background: var(--sage-green);
    color: #fff;
    border: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    backdrop-filter: none;
}

.hero-content--home .hero-cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 36rem;
}

.hero-content--home .hero-cta .btn,
.hero-content--home .hero-cta .btn-large {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    justify-content: center;
    border-radius: 12px;
    box-sizing: border-box;
    white-space: nowrap;
}

.hero-content--home .hero-cta .btn-large .material-icons {
    font-size: 20px;
}

.hero-content--home .hero-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(45, 52, 54, 0.14);
    box-shadow: 0 1px 2px rgba(45, 52, 54, 0.06);
}

.hero-content--home .hero-cta .btn-secondary:hover {
    background: #fff;
    border-color: var(--sage-green);
    color: var(--sage-green-dark);
}

[data-theme="dark"] .hero-content--home .hero-cta .btn-secondary {
    background: rgba(45, 52, 54, 0.88);
    border-color: rgba(168, 201, 161, 0.28);
    box-shadow: none;
}

@media (max-width: 639px) {
    .hero-content--home .hero-cta .btn,
    .hero-content--home .hero-cta .btn-large {
        min-height: 46px;
        padding: 11px 16px;
        font-size: 0.875rem;
    }
}

/* Homepage hero — tablet & mobile: mirror desktop layout, no glass card */
@media (max-width: 1023px) {
    .hero--home {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(8px, 2vw, 20px);
        min-height: auto;
        padding: calc(var(--header-height) + 18px) 0 36px;
    }

    .hero--home > .container {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: 0;
    }

    .hero--home .hero-graphic {
        display: block;
        grid-column: 2;
        grid-row: 1;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        align-self: center;
        justify-self: end;
        width: clamp(150px, 34vw, 240px);
        height: clamp(150px, 34vw, 240px);
        margin-right: max(12px, env(safe-area-inset-right));
        opacity: 0.58;
        pointer-events: none;
        z-index: 0;
    }

    .hero--home .hero-graphic-icon {
        font-size: clamp(72px, 16vw, 110px);
        opacity: 0.42;
    }

    .hero--home .hero-3d {
        animation: morph 15s ease-in-out infinite;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        box-shadow: var(--shadow-md);
        border-color: rgba(123, 174, 127, 0.22);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .hero-content--home {
        max-width: none;
        width: 100%;
        padding: 0;
        text-align: left;
        align-items: flex-start;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .hero-title--home {
        font-size: clamp(1.5rem, 5.4vw, 2.15rem);
        line-height: 1.14;
        margin-bottom: 12px;
    }

    .hero-subtitle--home {
        font-size: clamp(0.875rem, 2.8vw, 1rem);
        line-height: 1.5;
        margin-bottom: 10px;
        max-width: 28rem;
    }

    .hero-trust-line {
        margin-bottom: 18px;
        font-size: 0.8125rem;
    }

    .hero-content--home .hero-cta {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: min(100%, 18rem);
    }

    .hero-content--home .hero-cta .btn,
    .hero-content--home .hero-cta .btn-large {
        white-space: normal;
        padding: 11px 14px;
        font-size: 0.875rem;
        line-height: 1.25;
        min-height: 44px;
    }

    .hero-content--home .hero-cta .btn-large .material-icons {
        font-size: 18px;
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .hero--home {
        padding: calc(var(--header-height) + 14px) 0 28px;
    }

    .hero-content--home .hero-badge {
        font-size: 0.625rem;
        padding: 6px 12px;
        margin-bottom: 12px;
    }

    .hero-title--home {
        font-size: clamp(1.375rem, 6.4vw, 1.875rem);
    }

    .hero-subtitle--home {
        font-size: 0.875rem;
    }

    .hero-trust-line {
        font-size: 0.75rem;
        margin-bottom: 16px;
    }
}

.hero-badge {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title-lg {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

.hero-content-detail {
    max-width: 900px;
}

.hero-meta {
    display: flex;
    gap: 24px;
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta-item .material-icons {
    font-size: 18px;
}

.hero-industry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-industry-badge .material-icons {
    color: var(--sage-green);
}

.hero-industry-badge span:last-child {
    font-weight: 600;
}

.hero-subtitle-lg {
    font-size: 1.3rem;
}

/* Case study detail hero */
.hero--case-study {
    min-height: auto;
    padding: calc(var(--header-height) + 16px) 0 36px;
    align-items: flex-start;
    background: var(--bg-white);
}

[data-theme="dark"] .hero--case-study {
    background: var(--bg-light);
}

.hero--case-study .hero-bg {
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: linear-gradient(135deg, var(--warm-ivory) 0%, rgba(232, 213, 196, 0.55) 45%, var(--soft-lavender) 100%);
}

[data-theme="dark"] .hero--case-study .hero-bg {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.95) 0%, rgba(30, 39, 46, 0.88) 50%, rgba(45, 52, 54, 0.95) 100%);
}

.hero--case-study .hero-blob-1 {
    width: clamp(200px, 50vw, 440px);
    height: clamp(200px, 50vw, 440px);
    top: -28%;
    right: -10%;
}

.hero--case-study .hero-blob-2 {
    width: clamp(180px, 44vw, 380px);
    height: clamp(180px, 44vw, 380px);
    bottom: -22%;
    left: -10%;
}

.hero--case-study .hero-blob-3 {
    width: clamp(160px, 36vw, 320px);
    height: clamp(160px, 36vw, 320px);
    top: 42%;
    left: 55%;
    transform: translate(-50%, -50%);
    animation: blob-float-centered 20s infinite ease-in-out;
    animation-delay: -10s;
}

.case-study-hero-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.case-study-breadcrumb {
    margin-bottom: 4px;
}

.case-study-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: min(820px, 100%);
    text-align: left;
}

.case-study-hero-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sage-green-dark);
}

.case-study-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.case-study-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-medium);
}

.case-study-hero-meta-item .material-icons {
    font-size: 17px;
    color: var(--sage-green);
    flex-shrink: 0;
}

.case-study-hero-meta-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light);
    flex-shrink: 0;
}

.case-study-hero-title {
    font-size: clamp(1.5rem, 2.8vw, 2.375rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    margin: 0;
    max-width: min(40rem, 100%);
    text-wrap: balance;
}

[data-theme="dark"] .case-study-hero-title {
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .hero--case-study {
        padding: calc(var(--header-height) + 20px) 0 44px;
    }

    .case-study-hero-container {
        gap: 18px;
    }

    .case-study-hero-eyebrow {
        margin-bottom: 12px;
        font-size: 0.75rem;
    }

    .case-study-hero-meta {
        margin-bottom: 18px;
        gap: 10px 14px;
    }

    .case-study-hero-meta-item {
        font-size: 0.9375rem;
    }
}

@media (max-width: 479px) {
    .case-study-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .case-study-hero-meta-sep {
        display: none;
    }

    .case-study-hero-title {
        font-size: clamp(1.375rem, 5.2vw, 1.75rem);
        line-height: 1.28;
    }
}

/* Blog detail hero */
.hero--blog {
    min-height: auto;
    padding: calc(var(--header-height) + 20px) 0 32px;
}

.hero-content-blog {
    max-width: min(960px, 100%);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.hero-meta--blog {
    margin-bottom: 14px;
    gap: 16px;
    font-size: 0.875rem;
    justify-content: flex-start;
}

.hero-title-blog {
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    line-height: 1.3;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .hero--blog {
        padding: calc(var(--header-height) + 24px) 0 36px;
    }

    .hero-meta--blog {
        margin-bottom: 16px;
    }
}

.hero-title-md {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero-graphic {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    pointer-events: none;
}

.hero-graphic-icon {
    font-size: 150px;
    opacity: 0.3;
    color: var(--text-dark);
}

[data-theme="dark"] .hero-graphic-icon {
    color: var(--text-dark);
    opacity: 0.35;
}

.hero-3d {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--glass-bg) 0%, var(--glass-border) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morph 15s ease-in-out infinite;
    box-shadow: var(--shadow-xl);
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

/* Desktop hero: wider text column with side graphic */
@media (min-width: 1024px) {
    .hero {
        min-height: 58vh;
        padding: calc(var(--header-height) + 24px) 0 40px;
    }

    .hero--case-study {
        min-height: auto;
        padding: calc(var(--header-height) + 20px) 0 36px;
    }

    .hero--blog {
        min-height: auto;
        padding: calc(var(--header-height) + 20px) 0 32px;
    }

    .hero--service {
        min-height: auto;
        padding: calc(var(--header-height) + 24px) 0 44px;
        align-items: flex-start;
    }

    .hero-title {
        margin-bottom: 14px;
    }

    .hero-subtitle {
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .hero-cta {
        gap: 12px;
    }

    /* Full-bleed hero: background spans the viewport; content stays centered */
    .hero:has(.hero-graphic) {
        display: grid;
        grid-template-columns: 1fr minmax(0, 780px) minmax(260px, 480px) 1fr;
        align-items: center;
        gap: clamp(24px, 3vw, 56px);
        width: 100%;
        max-width: none;
        margin: 0;
        padding: calc(var(--header-height) + 24px) 0 40px;
        box-sizing: border-box;
    }

    .hero:has(.hero-graphic) .hero-bg {
        position: absolute;
        inset: 0;
        width: auto;
        height: auto;
        /* Stay out of grid tracks so it covers the full hero including side space */
        grid-column: unset;
        grid-row: unset;
        z-index: 0;
    }

    .hero:has(.hero-graphic) > .container {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .hero:has(.hero-graphic) .hero-content {
        max-width: none;
        width: 100%;
    }

    .hero:has(.hero-graphic) .hero-content--home {
        max-width: none;
        padding-right: clamp(8px, 2vw, 24px);
    }

    .hero--home {
        min-height: clamp(480px, 62vh, 680px);
    }

    .hero:has(.hero-graphic) .hero-graphic {
        position: relative;
        grid-column: 3;
        grid-row: 1;
        z-index: 1;
        top: auto;
        right: auto;
        transform: none;
        justify-self: center;
        width: 100%;
        max-width: 480px;
        height: auto;
        aspect-ratio: 1;
    }

    .hero-content-centered .hero-title,
    .hero-content-detail .hero-title {
        margin-bottom: 12px;
    }

    .hero-content-centered .hero-subtitle,
    .hero-content-detail .hero-subtitle {
        margin-bottom: 18px;
    }

    .hero-badge {
        margin-bottom: 14px;
    }

    .hero-meta {
        margin-bottom: 14px;
        gap: 18px;
    }

    .hero-industry-badge {
        margin-bottom: 14px;
    }

    .hero-graphic-icon {
        font-size: 220px;
        opacity: 0.32;
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    background: var(--bg-light);
    margin-bottom: 0;
}

.services .container {
    max-width: var(--container-wide);
    padding-left: 16px;
    padding-right: 16px;
}

.services .card-grid-4 {
    gap: 14px;
}

.services .service-card {
    padding: 22px;
}

.service-card {
    background: var(--bg-white);
    border: none;
}

.service-card-top {
    min-height: 168px;
}

.service-card-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-card-title {
    font-size: 1.35rem;
    min-height: 2.6em;
    line-height: 1.3;
}

.service-card-text {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-deliverables {
    margin: 16px 0;
    min-height: 118px;
}

.service-card-deliverables-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--sage-green-dark);
    white-space: nowrap;
}

.service-deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-medium);
}

.service-deliverable-icon {
    flex-shrink: 0;
    font-size: 17px;
    color: var(--sage-green);
    margin-top: 1px;
}

.service-card-footer {
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.service-card-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.service-card-btn .material-icons {
    font-size: 18px;
}

.service-card .card-icon {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
}

/* Ensure proper section separation */
.section.services + .section.benefits {
    padding-top: 100px;
}

/* ============================================
   WHY CHOOSE US / BENEFITS - Compact Visual Design
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition:
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        background-color 0.28s ease;
}

.benefit-item:hover {
    border-color: rgba(168, 201, 161, 0.45);
    box-shadow: 0 10px 28px rgba(26, 32, 44, 0.08);
    background: linear-gradient(180deg, rgba(168, 201, 161, 0.07) 0%, var(--bg-white) 42%);
}

.benefit-item:focus-within {
    border-color: rgba(168, 201, 161, 0.55);
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.18);
}

.benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(168, 201, 161, 0.28);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.benefit-item:hover .benefit-icon {
    box-shadow: 0 6px 18px rgba(168, 201, 161, 0.38);
    transform: translateY(-1px);
}

.benefit-content h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.28s ease;
}

.benefit-item:hover .benefit-content h3 {
    color: var(--sage-green-dark);
}

.benefit-content p {
    color: var(--text-medium);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
    transition: color 0.28s ease;
}

.benefit-item:hover .benefit-content p {
    color: var(--text-dark);
}

@media (prefers-reduced-motion: reduce) {
    .benefit-item,
    .benefit-icon,
    .benefit-content h3,
    .benefit-content p {
        transition: none;
    }

    .benefit-item:hover .benefit-icon {
        transform: none;
    }
}

@media (min-width: 1024px) {
    .benefits-grid .benefit-item:nth-child(5) {
        grid-column: 2;
    }

    .benefits-grid .benefit-item:nth-child(6) {
        grid-column: 3;
    }
}

/* ============================================
   CASE STUDIES
   ============================================ */
.case-study-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.case-study-card:focus-visible,
a.case-study-card-horizontal:focus-visible {
    outline: 2px solid var(--sage-green-dark);
    outline-offset: 3px;
}

.case-study-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-study-card:hover .case-study-image {
    transform: scale(1.05);
}

.case-study-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.case-study-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-study-tag {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-study-results {
    font-size: 0.875rem;
    color: var(--sage-green-dark);
    font-weight: 600;
    margin-bottom: 16px;
}

/* Case Studies listing grid (index + related) */
.case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

.case-studies-index-grid {
    gap: clamp(24px, 3vw, 32px);
}

.case-studies-index-grid > .case-study-card--listing {
    min-width: 0;
}

@media (max-width: 991px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.case-studies-grid--related {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
    .case-studies-grid--related {
        grid-template-columns: repeat(2, 1fr);
    }
}

.case-study-card--listing,
.case-study-card--related {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.case-study-card--listing {
    background: var(--bg-white);
    border: 1px solid rgba(123, 174, 127, 0.14);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.case-study-card--listing:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123, 174, 127, 0.32);
}

.case-study-card--listing:hover .case-study-card__title {
    color: var(--sage-green-dark);
}

.case-study-card__media {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.case-study-card--listing .case-study-card__media,
.case-study-card--related .case-study-card__media {
    height: auto;
    aspect-ratio: 16 / 9;
}

.case-study-card__media--generated {
    background: #151c22;
}

.case-study-card--listing .content-card-media .content-card-media__overlay {
    padding: 14px 16px 16px;
}

.case-study-card--listing .content-card-media__caption {
    padding: 10px 12px 11px;
    border-radius: 10px;
}

.case-study-card--listing .content-card-media__caption::before {
    width: 1.75rem;
    margin-bottom: 0.45rem;
}

.case-study-card--listing .content-card-media .content-card-media__headline {
    font-size: 0.98rem;
    line-height: 1.38;
    font-weight: 600;
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.case-study-card--related .content-card-media .content-card-media__overlay {
    padding: clamp(16px, 2.4vw, 20px);
}

.case-study-card--related .content-card-media .content-card-media__headline {
    font-size: clamp(1rem, 2.1vw, 1.15rem);
}

.case-study-card--related .case-study-card__media {
    height: auto;
    aspect-ratio: 16 / 9;
}

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

.case-study-card__placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--sage-green), var(--powder-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-card__placeholder .material-icons {
    font-size: 72px;
    color: white;
}

.case-study-card__badge-wrap {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
}

.case-study-card__badge {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.case-study-card__body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 12px;
}

.case-study-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 2px;
}

.case-study-card__client {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.case-study-card__title {
    font-size: 1.125rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin: 0;
    transition: color 0.2s ease;
    overflow-wrap: break-word;
}

.case-study-card__results {
    color: var(--sage-green-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.case-study-card__results .material-icons {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.case-study-card__results-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.case-study-card__challenge {
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
    flex: 1;
    overflow-wrap: break-word;
}

.case-study-card__footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(123, 174, 127, 0.14);
}

.case-study-card__cta {
    pointer-events: none;
    white-space: nowrap;
}

.case-study-card--related .case-study-card__badge-inline {
    display: inline-block;
    background: var(--sage-green);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.case-study-card--listing .case-study-card__badge-inline {
    display: inline-block;
    background: rgba(123, 174, 127, 0.12);
    color: var(--sage-green-dark);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.case-study-card--related .case-study-card__excerpt {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .case-studies-index-grid {
        gap: 28px;
    }

    .case-study-card--listing .case-study-card__body {
        padding: 24px 24px 22px;
    }

    .case-study-card--listing .case-study-card__title {
        font-size: 1.2rem;
    }
}

[data-theme="dark"] .case-study-card--listing {
    background: rgba(45, 52, 54, 0.72);
    border-color: rgba(168, 201, 161, 0.18);
}

[data-theme="dark"] .case-study-card--listing:hover {
    border-color: rgba(168, 201, 161, 0.34);
}

[data-theme="dark"] .case-study-card__footer {
    border-top-color: rgba(168, 201, 161, 0.16);
}

@media (max-width: 767px) {
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-studies-grid--related {
        grid-template-columns: 1fr;
    }

    .card.case-study-card--listing,
    .card.case-study-card--related {
        padding: 0;
    }

    .case-study-card--listing {
        min-height: 0;
    }

    .case-study-card__media {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .case-study-card--related .case-study-card__media {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .case-study-card__body {
        padding: 20px;
        gap: 10px;
    }

    .case-study-card__title {
        font-size: 1.125rem;
    }

    .case-study-card__results {
        font-size: 0.9375rem;
    }

    .case-study-card__challenge {
        font-size: 0.9375rem;
    }

    .case-study-card__badge-wrap {
        padding: 16px;
    }

    .case-study-card__placeholder .material-icons {
        font-size: 56px;
    }
}

/* Case Study detail page (show) */
.section--light {
    background: var(--bg-light);
}

.case-study-detail {
    padding: 0;
    overflow: hidden;
    height: auto;
}

.case-study-detail__media {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sage-green), var(--powder-blue));
}

/* Custom photo upload: container height follows the image's natural aspect ratio */
.case-study-detail__media--uploaded {
    height: auto;
}

.case-study-detail__media--uploaded .case-study-detail__image {
    width: 100%;
    height: auto;
    display: block;
}

/* Default banner (no upload or generated SVG cover): compact fixed height */
.case-study-detail__media--placeholder {
    aspect-ratio: 32 / 9;
    max-height: 320px;
    height: auto;
}

.case-study-detail__media--placeholder .case-study-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.case-study-detail__inner {
    padding: 48px;
}

.case-study-detail__section {
    margin-bottom: 48px;
}

.case-study-detail__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.3;
}

.case-study-detail__heading .material-icons {
    font-size: 28px;
    flex-shrink: 0;
}

.case-study-detail__heading--challenge {
    color: var(--sage-green-dark);
}

.case-study-detail__heading--solution {
    color: var(--powder-blue-dark);
}

.case-study-detail__heading--results {
    color: white;
}

.case-study-detail__body {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-medium);
    padding-left: 40px;
    border-left: 4px solid transparent;
}

.case-study-detail__body--challenge {
    border-left-color: var(--sage-green);
}

.case-study-detail__body--solution {
    border-left-color: var(--powder-blue);
}

.case-study-detail__results {
    background: linear-gradient(135deg, var(--sage-green), var(--powder-blue));
    border-radius: var(--radius-lg);
    padding: 48px;
    color: white;
}

.case-study-detail__results-body {
    font-size: 1.25rem;
    line-height: 1.9;
    padding-left: 40px;
}

@media (max-width: 767px) {
    .card.case-study-detail {
        padding: 0;
    }

    .case-study-detail__inner {
        padding: 20px;
    }

    .case-study-detail__section {
        margin-bottom: 28px;
    }

    .case-study-detail__heading {
        gap: 10px;
        margin-bottom: 16px;
        font-size: 1.25rem;
    }

    .case-study-detail__heading .material-icons {
        font-size: 24px;
    }

    .case-study-detail__body {
        font-size: 1rem;
        line-height: 1.75;
        padding-left: 16px;
    }

    .case-study-detail__results {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }

    .case-study-detail__results-body {
        font-size: 1.0625rem;
        line-height: 1.75;
        padding-left: 16px;
    }
}

/* Horizontal Case Studies Layout */
.case-studies-horizontal {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.case-studies-horizontal::-webkit-scrollbar {
    height: 8px;
}

.case-studies-horizontal::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

.case-studies-horizontal::-webkit-scrollbar-thumb {
    background: var(--sage-green);
    border-radius: var(--radius-full);
}

.case-study-card-horizontal {
    flex: 0 0 340px;
    min-height: 420px;
    max-height: 420px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.case-study-card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.case-study-image-wrapper-horizontal {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.case-study-image-horizontal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-study-card-horizontal:hover .case-study-image-horizontal {
    transform: scale(1.05);
}

.case-study-image-placeholder {
    background: linear-gradient(135deg, var(--sage-green), var(--powder-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-image-placeholder .material-icons {
    font-size: 64px;
    color: white;
}

.case-study-overlay-horizontal {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 16px;
}

.case-study-overlay-horizontal .case-study-tag {
    margin-bottom: 0;
}

.case-study-content-horizontal {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    gap: 12px;
}

.case-study-content-horizontal .case-study-title {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    /* Text truncation for title */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.2rem;
}

.case-study-content-horizontal .case-study-results {
    display: none;
}

.case-study-content-horizontal {
    padding: 20px 24px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    gap: 16px;
    justify-content: space-between;
}

.case-study-content-horizontal .case-study-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    line-height: 1.35;
    font-weight: 600;
    color: var(--text-dark);
    /* Text truncation for title */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.9rem;
}

.case-study-content-horizontal .btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    margin-top: 0;
    align-self: flex-start;
}

/* Responsive for horizontal case studies */
@media (max-width: 767px) {
    .case-study-card-horizontal {
        flex: 0 0 300px;
        min-height: 380px;
        max-height: 380px;
    }
    
    .case-studies-horizontal {
        gap: 16px;
        padding: 16px 0;
    }
    
    .case-study-image-wrapper-horizontal {
        height: 200px;
    }
    
    .case-study-content-horizontal {
        padding: 16px 20px 16px;
        gap: 12px;
    }
    
    .case-study-content-horizontal .case-study-title {
        font-size: 1.1rem;
        line-height: 1.35;
        max-height: 4.5rem;
        -webkit-line-clamp: 3;
    }
    
    .case-study-content-horizontal .btn-sm {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
    background: linear-gradient(135deg, var(--warm-ivory) 0%, var(--blush-pink) 100%);
    overflow: hidden;
}

[data-theme="dark"] .testimonials {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.95) 0%, rgba(30, 39, 46, 0.98) 100%);
}

[data-theme="dark"] .testimonials .section-header h2,
[data-theme="dark"] .testimonials .section-header p {
    color: var(--text-dark);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonial-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 3px solid var(--sage-green);
}

.testimonial-quote {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 16px;
    flex-grow: 1;
}

.testimonial-author {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-company {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.testimonial-stars {
    color: #FFC107;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

/* Marquee Carousel Styles */
.testimonials-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

.testimonials-marquee {
    width: 100%;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 16px;
    animation: scroll-marquee 30s linear infinite;
    width: max-content;
}

.testimonials-marquee:hover .testimonials-track {
    animation-play-state: paused;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 320px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(168, 201, 161, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sage-green);
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.testimonial-company-slide {
    color: var(--text-medium);
    font-size: 0.85rem;
    margin: 0;
}

.testimonial-stars-slide {
    color: #FFC107;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-medium);
    margin: 0;
}

.marquee-fade-left,
.marquee-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
}

/* Light mode - match section background */
.marquee-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--warm-ivory), transparent);
}

.marquee-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--blush-pink), transparent);
}

/* Dark mode - pure black fade */
[data-theme="dark"] .marquee-fade-left {
    background: linear-gradient(to right, #1A1A1A, transparent);
}

[data-theme="dark"] .marquee-fade-right {
    background: linear-gradient(to left, #1A1A1A, transparent);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonial Carousel */
.testimonial-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ============================================
   SERVICE DETAIL PAGE
   ============================================ */
.hero--service {
    min-height: auto;
    padding: calc(var(--header-height) + 16px) 0 28px;
    align-items: flex-start;
    background: var(--bg-white);
}

[data-theme="dark"] .hero--service {
    background: var(--bg-light);
}

.hero--service .hero-bg {
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: linear-gradient(135deg, var(--warm-ivory) 0%, var(--blush-pink) 50%, var(--soft-lavender) 100%);
}

[data-theme="dark"] .hero--service .hero-bg {
    background: linear-gradient(135deg, rgba(45, 52, 54, 0.95) 0%, rgba(30, 39, 46, 0.9) 50%, rgba(45, 52, 54, 0.95) 100%);
}

.hero--service .hero-blob-1 {
    width: clamp(220px, 55vw, 480px);
    height: clamp(220px, 55vw, 480px);
    top: -30%;
    right: -12%;
}

.hero--service .hero-blob-2 {
    width: clamp(200px, 48vw, 420px);
    height: clamp(200px, 48vw, 420px);
    bottom: -25%;
    left: -12%;
}

.hero--service .hero-blob-3 {
    width: clamp(180px, 40vw, 360px);
    height: clamp(180px, 40vw, 360px);
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blob-float-centered 20s infinite ease-in-out;
    animation-delay: -10s;
}

@keyframes blob-float-centered {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(calc(-50% + 16px), calc(-50% - 16px)) scale(1.06); }
    50% { transform: translate(calc(-50% - 12px), calc(-50% + 12px)) scale(0.94); }
    75% { transform: translate(calc(-50% + 12px), calc(-50% + 16px)) scale(1.03); }
}

.service-hero-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    font-size: 0.8125rem;
    color: var(--text-medium);
    overflow: hidden;
}

.hero .service-breadcrumb {
    display: none;
}

.service-breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.service-breadcrumb a:hover {
    color: var(--sage-green-dark);
}

.service-breadcrumb .material-icons {
    font-size: 16px;
    color: var(--text-light);
    flex-shrink: 0;
}

.service-breadcrumb__current {
    color: var(--text-dark);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.service-hero-content {
    max-width: none;
    width: 100%;
    min-width: 0;
}

.hero-title-service {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle-service {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.65;
    max-width: 56ch;
    margin-bottom: 20px;
}

.hero-cta-service {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta-service .btn-small .material-icons {
    font-size: 18px;
}

.service-detail-section {
    padding-top: clamp(24px, 4vw, 40px);
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
    align-items: start;
}

.service-detail-main {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vw, 28px);
    min-width: 0;
}

.service-detail-card {
    padding: clamp(24px, 3.5vw, 36px);
    height: auto;
}

.service-detail-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-detail-card__title .material-icons {
    font-size: 22px;
    color: var(--sage-green);
}

.service-detail-card--benefits .service-detail-card__title .material-icons {
    color: var(--powder-blue-dark);
}

.service-detail-card__lead {
    color: var(--text-medium);
    font-size: 0.975rem;
    line-height: 1.6;
    margin: -4px 0 20px;
}

.service-detail-card__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
}

.service-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-medium);
    font-size: 0.975rem;
    line-height: 1.55;
}

.service-check-list .material-icons {
    font-size: 20px;
    color: var(--sage-green);
    margin-top: 1px;
    flex-shrink: 0;
}

.service-check-list--benefits .material-icons {
    color: var(--powder-blue-dark);
}

.service-detail-card--deliverables {
    border-left: 4px solid var(--sage-green);
}

.service-detail-card--benefits {
    border-left: 4px solid var(--powder-blue);
}

.service-detail-card--proprietorship {
    border-left: 4px solid var(--soft-lavender-dark);
}

.service-detail-card--proprietorship .service-detail-card__title .material-icons {
    color: var(--soft-lavender-dark);
}

.service-detail-card--faq .faq-list {
    max-width: none;
    margin: 0;
}

.service-faq-list .faq-item {
    background: var(--bg-light);
}

.service-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-detail-sidebar .service-sidebar-card {
    padding: 26px 24px;
    height: auto;
}

.service-sidebar-card {
    padding: 26px 24px;
    height: auto;
}

.service-sidebar-card--pricing {
    background: linear-gradient(
        135deg,
        rgba(123, 174, 127, 0.1) 0%,
        rgba(184, 216, 232, 0.14) 100%
    );
    border-color: rgba(123, 174, 127, 0.22);
}

[data-theme="dark"] .service-sidebar-card--pricing {
    background: linear-gradient(
        135deg,
        rgba(123, 174, 127, 0.14) 0%,
        rgba(45, 52, 54, 0.88) 100%
    );
    border-color: rgba(168, 201, 161, 0.24);
}

.service-sidebar-card--trust h3 {
    margin-bottom: 14px;
}

.service-sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.service-sidebar-card__header .material-icons {
    font-size: 22px;
    color: var(--sage-green);
}

.service-sidebar-card__header h3,
.service-sidebar-card--trust h3 {
    font-size: 1.0625rem;
    margin: 0;
    color: var(--text-dark);
}

.service-sidebar-card__price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--sage-green-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-sidebar-card__note {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-medium);
    margin: 0;
}

.service-trust-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-trust-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-medium);
}

.service-trust-list .material-icons {
    font-size: 18px;
    color: var(--sage-green);
    margin-top: 1px;
    flex-shrink: 0;
}

.service-sidebar-cta {
    width: 100%;
    justify-content: center;
}

.service-related {
    background: var(--bg-white);
}

.service-related-card {
    padding: 24px 22px;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--glass-border);
    background: var(--bg-white);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--sage-green), var(--powder-blue));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-related-card:hover {
    border-color: rgba(168, 201, 161, 0.45);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-related-card:hover::before {
    opacity: 1;
}

.service-related-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 201, 161, 0.18) 0%, rgba(184, 216, 232, 0.28) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-green-dark);
    flex-shrink: 0;
}

.service-related-card__icon .material-icons {
    font-size: 24px;
}

.service-related-card__title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
    line-height: 1.35;
}

.service-related-card__text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-medium);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-related-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sage-green-dark);
    text-decoration: none;
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-related-card__cta .material-icons {
    font-size: 18px;
    transition: transform var(--transition-fast);
}

.service-related-card__cta:hover {
    color: var(--text-dark);
    gap: 10px;
}

.service-related-card__cta:hover .material-icons {
    transform: translateX(2px);
}

@media (min-width: 768px) {
    .hero--service {
        padding: calc(var(--header-height) + 24px) 0 40px;
    }

    .service-hero-container {
        gap: 22px;
    }

    .hero-subtitle-service {
        margin-bottom: 24px;
    }

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

@media (min-width: 1024px) {
    .hero--service {
        padding: calc(var(--header-height) + 28px) 0 48px;
    }

    .service-hero-container {
        gap: 24px;
    }

    .hero-title-service {
        margin-bottom: 14px;
    }

    .hero-subtitle-service {
        margin-bottom: 28px;
    }

    .service-detail-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 32px;
    }

    .service-detail-sidebar {
        position: sticky;
        top: calc(var(--header-height) + 24px);
    }
}

@media (max-width: 1023px) {
    .service-detail-sidebar {
        order: -1;
    }
}

/* ============================================
   PROCESS / HOW IT WORKS
   ============================================ */
.process {
    background: var(--bg-light);
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-green), var(--powder-blue), var(--soft-lavender));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 170px;
}

.process-number {
    width: 68px;
    height: 68px;
    background: var(--bg-white);
    border: 3px solid var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sage-green-dark);
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.process-icon {
    font-size: 27px;
    color: var(--powder-blue-dark);
    margin-bottom: 14px;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-medium);
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    background: var(--bg-white);
}

section#service-pricing {
    padding: clamp(32px, 4vw, 52px) 0;
}

section#service-pricing .section-header {
    margin-bottom: 24px;
}

section#service-pricing .section-header h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    margin-bottom: 6px;
    line-height: 1.3;
}

section#service-pricing .section-header p {
    font-size: 0.875rem;
    line-height: 1.45;
    max-width: 480px;
}

.pricing-card--inquiry {
    cursor: pointer;
}

.pricing-card--inquiry:focus-visible {
    outline: 2px solid var(--sage-green);
    outline-offset: 3px;
}

.pricing-card {
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured h3,
.pricing-card.featured .pricing-price,
.pricing-card.featured .pricing-features li {
    color: white;
}

.pricing-card:hover {
    border-color: var(--sage-green);
    transform: translateY(-6px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-6px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-badge {
    display: inline-block;
    background: var(--blush-pink);
    color: var(--text-dark);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

[data-theme="dark"] .pricing-badge {
    background: rgba(168, 201, 161, 0.3);
    color: var(--sage-green);
    border: 1px solid rgba(168, 201, 161, 0.5);
}

.pricing-card.featured .pricing-badge {
    background: rgba(255,255,255,0.3);
    color: white;
}

[data-theme="dark"] .pricing-card.featured .pricing-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
}

.pricing-price {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.2;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-medium);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    flex: 1 1 auto;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 1rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--sage-green);
    font-weight: bold;
}

.pricing-card.featured .pricing-features li::before {
    color: white;
}

.pricing-card .btn {
    padding: 12px 24px;
    font-size: 0.9375rem;
    margin-top: auto;
    width: 100%;
}

.pricing .card-grid-3 {
    align-items: stretch;
    gap: 32px;
}

.pricing-card .card-footer {
    margin-top: auto;
    padding-top: 0;
    width: 100%;
}

@media (min-width: 1024px) {
    .pricing .card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px;
    }

    .pricing-card {
        padding: 36px 32px;
    }

    .pricing-card .card-title {
        font-size: 1.375rem;
    }

    .pricing-price {
        font-size: 2.25rem;
    }
}

/* ============================================
   FAQ SECTION - Enhanced Visibility & Hover Effects
   ============================================ */
.faq {
    background: var(--bg-light);
}

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

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
}

/* Light mode: subtle border and enhanced background */
.faq-item {
    border-color: rgba(168, 201, 161, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(168, 201, 161, 0.1);
}

/* Dark mode: stronger contrast */
[data-theme="dark"] .faq-item {
    background: rgba(45, 52, 54, 0.9);
    border-color: rgba(168, 201, 161, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(168, 201, 161, 0.15);
}

/* Hover effect - visual cue with animation */
.faq-item:hover {
    transform: translateX(4px);
    border-color: var(--sage-green);
    box-shadow: 0 4px 12px rgba(168, 201, 161, 0.25), 0 0 0 2px rgba(168, 201, 161, 0.3);
}

[data-theme="dark"] .faq-item:hover {
    transform: translateX(4px);
    border-color: var(--sage-green);
    box-shadow: 0 4px 16px rgba(168, 201, 161, 0.4), 0 0 0 2px rgba(168, 201, 161, 0.5);
    background: rgba(45, 52, 54, 0.95);
}

/* Active state with enhanced visibility */
.faq-item.active {
    border-color: var(--sage-green);
    box-shadow: 0 4px 16px rgba(168, 201, 161, 0.2), 0 0 0 2px rgba(168, 201, 161, 0.2);
}

[data-theme="dark"] .faq-item.active {
    box-shadow: 0 4px 20px rgba(168, 201, 161, 0.3), 0 0 0 2px rgba(168, 201, 161, 0.4);
    background: rgba(45, 52, 54, 0.98);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-dark);
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--warm-ivory) 0%, rgba(168, 201, 161, 0.1) 100%);
    padding-left: 24px;
}

[data-theme="dark"] .faq-question:hover {
    background: linear-gradient(135deg, rgba(168, 201, 161, 0.15) 0%, rgba(184, 216, 232, 0.1) 100%);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-item:hover .faq-icon {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(168, 201, 161, 0.4);
}

[data-theme="dark"] .faq-item:hover .faq-icon {
    box-shadow: 0 4px 16px rgba(168, 201, 161, 0.5);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg) scale(1.1);
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

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

.faq-answer-content {
    padding: 0 20px 16px;
    color: var(--text-medium);
    line-height: 1.6;
}

[data-theme="dark"] .faq-answer-content {
    color: var(--text-light);
}

/* ============================================
   LEAD GENERATION FORM
   ============================================ */
.lead-gen {
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    color: white;
}

.lead-gen .section-header h2,
.lead-gen .section-header p {
    color: white;
}

.lead-gen-cta {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.btn-lead-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 18px 28px 18px 20px;
    min-height: auto;
    background: #ffffff;
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(26, 32, 44, 0.14);
    text-align: left;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.btn-lead-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(26, 32, 44, 0.18);
    border-color: rgba(255, 255, 255, 0.9);
}

.btn-lead-cta:active {
    transform: translateY(-1px);
}

.btn-lead-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--sage-green-dark) 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-lead-cta__icon .material-icons {
    font-size: 24px;
}

.btn-lead-cta__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.btn-lead-cta__label {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.btn-lead-cta__hint {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-medium);
}

.btn-lead-cta__arrow {
    margin-left: 4px;
    font-size: 22px;
    color: var(--sage-green-dark);
    transition: transform var(--transition-normal);
}

.btn-lead-cta:hover .btn-lead-cta__arrow {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .btn-lead-cta {
        width: 100%;
        max-width: 360px;
        padding: 16px 18px;
        gap: 14px;
    }

    .btn-lead-cta__icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .btn-lead-cta__label {
        font-size: 1rem;
    }

    .btn-lead-cta__hint {
        font-size: 0.75rem;
    }
}

#service-inquiry {
    padding: clamp(40px, 5vw, 64px) 0;
}

#service-inquiry .section-header {
    margin-bottom: 24px;
}

#service-inquiry .section-header h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.875rem);
    margin-bottom: 8px;
    line-height: 1.3;
}

#service-inquiry .section-header p {
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 520px;
    opacity: 0.95;
}

#service-inquiry .lead-form {
    padding: clamp(28px, 4vw, 36px);
}

.lead-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-input::placeholder,
.form-textarea::placeholder {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-select {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 2px solid var(--text-light);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    color: var(--text-dark);
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color-scheme: light;
}

.form-select::-ms-expand {
    display: none;
}

[data-theme="dark"] .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B2BEC3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    color-scheme: dark;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.form-select:focus {
    outline: none;
    border-color: var(--sage-green);
    background-color: var(--bg-white);
}

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

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
}

/* Blog post share buttons (article detail) */
.blog-share {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
    text-align: left;
}

.blog-share__heading {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--text-dark);
    text-align: left;
}

.blog-share__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: clamp(6px, 1.2vw, 10px);
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.blog-share__actions::-webkit-scrollbar {
    display: none;
}

.blog-share__btn {
    width: clamp(30px, 6vw, 36px);
    height: clamp(30px, 6vw, 36px);
    min-width: clamp(30px, 6vw, 36px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    color: #ffffff;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.blog-share__btn svg {
    width: clamp(14px, 3.2vw, 16px);
    height: clamp(14px, 3.2vw, 16px);
    fill: currentColor;
}

.blog-share__btn .material-icons {
    font-size: clamp(14px, 3.2vw, 16px);
}

.blog-share__btn:hover,
.blog-share__btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.blog-share__btn:focus-visible {
    outline: 2px solid var(--sage-green-dark);
    outline-offset: 2px;
}

.blog-share__btn--facebook {
    background: #1877f2;
}

.blog-share__btn--x {
    background: #000000;
}

.blog-share__btn--linkedin {
    background: #0a66c2;
}

.blog-share__btn--whatsapp {
    background: #25d366;
}

.blog-share__btn--copy {
    background: var(--text-medium);
}

.blog-share__btn--native {
    background: var(--sage-green-dark);
}

.blog-share__feedback {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sage-green-dark);
    text-align: left;
}

@media (max-width: 767px) {
    .blog-share {
        margin-top: 32px;
        padding-top: 24px;
    }

    .blog-share__heading {
        font-size: 0.9375rem;
        margin-bottom: 10px;
    }

    .blog-share__actions {
        gap: 8px;
    }

    .blog-share__btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .blog-share__btn svg {
        width: 15px;
        height: 15px;
    }

    .blog-share__btn .material-icons {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .blog-share__actions {
        overflow-x: visible;
    }
}

/* Blog detail page (show) */
.blog-detail-section {
    padding-top: clamp(24px, 4vw, 40px);
}

.blog-detail-layout {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
}

.blog-detail {
    padding: 0;
    overflow: hidden;
    height: auto;
    margin: 0;
    max-width: none;
}

.blog-detail__media {
    margin: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #151c22;
}

.blog-detail__media-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.blog-detail__media-inner .blog-detail__image,
.blog-detail__media .content-card-media__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.content-card-media--detail .content-card-media__overlay {
    padding: clamp(20px, 4vw, 32px) clamp(22px, 4.5vw, 36px) clamp(22px, 4vw, 34px);
}

.content-card-media--detail .content-card-media__caption {
    padding: 14px 18px 16px;
    border-radius: 14px;
}

.content-card-media--detail .content-card-media__headline {
    font-size: clamp(1.2rem, 3.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.32;
    -webkit-line-clamp: 3;
}

.content-card-media--detail .content-card-media__tag {
    font-size: 0.6875rem;
    padding: 6px 12px;
}

.blog-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.blog-detail__inner {
    padding: clamp(28px, 4vw, 48px);
}

.blog-detail__body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-medium);
    word-wrap: break-word;
}

.blog-detail__body > :first-child {
    margin-top: 0;
}

.blog-detail__body > :last-child {
    margin-bottom: 0;
}

.blog-detail__body h1,
.blog-detail__body h2,
.blog-detail__body h3,
.blog-detail__body h4 {
    color: var(--text-dark);
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.35;
}

.blog-detail__body h2 {
    font-size: 1.375rem;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.blog-detail__body h3 {
    font-size: 1.125rem;
    margin: 1.5rem 0 0.625rem;
}

.blog-detail__body h4 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
}

.blog-detail__body p {
    margin: 0 0 1.125rem;
}

.blog-detail__body ul,
.blog-detail__body ol {
    margin: 0 0 1.125rem;
    padding-left: 1.375rem;
}

.blog-detail__body li {
    margin-bottom: 0.375rem;
}

.blog-detail__body li:last-child {
    margin-bottom: 0;
}

.blog-detail__body a {
    color: var(--sage-green-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-detail__body a:hover {
    color: var(--text-dark);
}

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

.blog-detail__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--sage-green);
    background: var(--bg-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-dark);
    font-style: italic;
}

.blog-detail__body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.blog-detail__body hr {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 2rem 0;
}

.blog-detail .blog-share {
    margin-top: 36px;
    padding-top: 28px;
}

.blog-detail__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.blog-detail__body th,
.blog-detail__body td {
    border: 1px solid var(--glass-border);
    padding: 12px 14px;
    text-align: left;
}

.blog-detail__body th {
    background: var(--bg-light);
    font-weight: 600;
}

.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.blog-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.blog-category-pill:hover,
.blog-category-pill.is-active {
    background: var(--sage-green);
    border-color: var(--sage-green);
    color: white;
}

.blog-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(123, 174, 127, 0.15);
    color: var(--sage-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-category-badge--hero {
    margin-right: 8px;
}

.blog-service-cta {
    margin-top: 36px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(123, 174, 127, 0.12), rgba(137, 207, 240, 0.12));
    border: 1px solid rgba(123, 174, 127, 0.25);
}

.blog-service-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.blog-service-cta p {
    color: var(--text-medium);
    margin-bottom: 18px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .blog-detail-layout,
    .hero-content-blog {
        max-width: 960px;
    }

    .blog-detail__inner {
        padding: 48px 56px;
    }
}

@media (max-width: 767px) {
    .blog-detail-section {
        padding-top: 20px;
    }

    .card.blog-detail {
        padding: 0;
    }

    .blog-detail__inner {
        padding: 20px;
    }

    .blog-detail__body {
        font-size: 1rem;
        line-height: 1.7;
    }

    .blog-detail__body h2 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    .blog-detail__body h3 {
        font-size: 1.0625rem;
    }

    .hero-meta--blog {
        justify-content: flex-start;
        gap: 12px;
    }

    .hero-title-blog {
        font-size: clamp(1.5rem, 5.5vw, 1.875rem);
    }

    .blog-detail .blog-share {
        margin-top: 28px;
        padding-top: 20px;
    }
}

/* ============================================
   BLOG SECTION
   ============================================ */
.blog {
    background: var(--bg-white);
}

.blog-card {
    background: var(--bg-light);
    overflow: hidden;
    padding: 0;
}

/* Blog index listing cards */
.blog-index-grid {
    align-items: stretch;
}

.blog-card--listing {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(123, 174, 127, 0.14);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.blog-card--listing:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(123, 174, 127, 0.32);
}

.blog-card__media-link {
    display: block;
    flex-shrink: 0;
    text-decoration: none;
}

.blog-card--listing .blog-card__media,
.blog-card--listing .blog-image-wrapper {
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
    border-radius: 0;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 22px 22px 20px;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 14px;
}

.blog-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.blog-card__meta-item .material-icons {
    font-size: 15px;
}

.blog-card__title {
    margin: 0 0 12px;
    font-size: 1.125rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--listing:hover .blog-card__title a {
    color: var(--sage-green-dark);
}

.blog-card__excerpt {
    margin: 0 0 18px;
    color: var(--text-medium);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(123, 174, 127, 0.14);
}

.blog-card__author {
    font-size: 0.8125rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.blog-card__cta {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .blog-index-grid {
        gap: 28px;
    }

    .blog-card--listing .blog-card__media,
    .blog-card--listing .blog-image-wrapper {
        aspect-ratio: 16 / 9;
    }

    .blog-card__body {
        padding: 24px 24px 22px;
    }

    .blog-card__title {
        font-size: 1.2rem;
        min-height: 3.24em;
    }

    .blog-card__excerpt {
        min-height: 4.95em;
    }
}

[data-theme="dark"] .blog-card--listing {
    background: rgba(45, 52, 54, 0.72);
    border-color: rgba(168, 201, 161, 0.18);
}

[data-theme="dark"] .blog-card--listing:hover {
    border-color: rgba(168, 201, 161, 0.34);
}

[data-theme="dark"] .blog-card__footer {
    border-top-color: rgba(168, 201, 161, 0.16);
}

.blog-image-wrapper {
    overflow: hidden;
    height: 220px;
}

.blog-card__media--generated {
    position: relative;
    background: #151c22;
}

/* Shared blog + case study card image overlays */
.content-card-media {
    position: relative;
    overflow: hidden;
    --card-accent: var(--sage-green);
    background: #151c22;
}

.content-card-media__bg,
.blog-card__svg-bg,
.case-study-card__svg-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transition: transform var(--transition-slow);
}

.content-card-media__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(14px, 2.4vw, 20px);
    background: linear-gradient(
        180deg,
        rgba(6, 10, 14, 0.58) 0%,
        rgba(6, 10, 14, 0.1) 34%,
        rgba(6, 10, 14, 0.52) 62%,
        rgba(6, 10, 14, 0.94) 100%
    );
    pointer-events: none;
}

.content-card-media--generated .content-card-media__overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 12, 16, 0.42) 0%,
        rgba(8, 12, 16, 0.06) 34%,
        rgba(8, 12, 16, 0.38) 58%,
        rgba(8, 12, 16, 0.88) 100%
    );
}

.content-card-media--photo .content-card-media__overlay {
    background: linear-gradient(
        180deg,
        rgba(6, 10, 14, 0.62) 0%,
        rgba(6, 10, 14, 0.14) 30%,
        rgba(6, 10, 14, 0.62) 58%,
        rgba(6, 10, 14, 0.96) 100%
    );
}

.content-card-media__top {
    position: absolute;
    top: clamp(14px, 2.4vw, 18px);
    left: clamp(14px, 2.4vw, 18px);
    right: clamp(14px, 2.4vw, 18px);
}

.content-card-media__bottom {
    width: 100%;
    max-width: 100%;
    padding-top: 0.35rem;
}

.content-card-media__accent-bar {
    display: block;
    width: 2.5rem;
    height: 3px;
    border-radius: 999px;
    background: var(--card-accent);
    margin-bottom: 0.65rem;
    box-shadow: 0 0 14px color-mix(in srgb, var(--card-accent) 65%, transparent);
}

.content-card-media__tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(8, 12, 16, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.96);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.2;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-media__headline {
    margin: 0;
    width: 100%;
    max-width: 100%;
    color: #ffffff;
    font-size: clamp(1.02rem, 2.3vw, 1.24rem);
    font-weight: 700;
    line-height: 1.33;
    letter-spacing: -0.02em;
    text-align: left;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card--listing .content-card-media .content-card-media__overlay,
.blog-marquee-slide .content-card-media .content-card-media__overlay {
    padding: clamp(16px, 2.4vw, 20px);
}

.blog-card--related .content-card-media .content-card-media__overlay {
    padding: 14px 16px 16px;
}

.blog-card--related .content-card-media .content-card-media__headline {
    font-size: 0.98rem;
    -webkit-line-clamp: 2;
}

.blog-card:hover .content-card-media__bg,
.case-study-card:hover .content-card-media__bg,
.case-study-card:hover .case-study-card__image {
    transform: scale(1.05);
}

.case-study-card__media--generated {
    background: #151c22;
}

.blog-card__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 88%, #0f1419) 0%, #151c22 58%, #0d1116 100%);
}

.blog-card__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}

.blog-card__glow--primary {
    width: 72%;
    height: 88%;
    top: -28%;
    right: -18%;
    background: color-mix(in srgb, var(--card-accent) 55%, #ffffff);
    opacity: 0.42;
}

.blog-card__glow--secondary {
    width: 48%;
    height: 56%;
    bottom: -22%;
    left: -12%;
    background: var(--card-accent);
    opacity: 0.34;
}

.blog-card__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 85%);
}

.blog-card--related .blog-card__media {
    height: 180px;
    aspect-ratio: auto;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-cover-placeholder {
    object-position: center;
}

.blog-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-medium);
    margin-bottom: 12px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-excerpt {
    color: var(--text-medium);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Compact Blog Cards for Homepage */
#blog .blog-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#blog .blog-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#blog .blog-meta {
    margin-bottom: 8px;
    font-size: 0.8rem;
}

#blog .blog-title {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

#blog .card-footer {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    align-items: flex-end;
}

#blog .card-footer .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ============================================
   BLOG SLIDER - Card Carousel with Navigation
   ============================================ */
.blog-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 20px 0 60px 0;
}

.blog-marquee-container {
    width: 100%;
    overflow: hidden;
}

.blog-marquee-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.blog-marquee-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blog-marquee-slide .blog-card {
    display: flex;
    flex-direction: column;
    height: 420px;
    min-height: 420px;
    padding: 2px;
}

.blog-marquee-slide .blog-image-wrapper {
    margin: -2px -2px 0 -2px;
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
}

.blog-marquee-slide .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-marquee-slide .blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
    min-height: 0;
}

.blog-marquee-slide .blog-meta {
    flex-shrink: 0;
    margin-bottom: 8px;
}

.blog-marquee-slide .blog-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 12px;
    /* Text truncation with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.08rem;
    flex-shrink: 0;
}

.blog-marquee-slide .card-footer {
    margin-top: auto;
    padding-top: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.blog-marquee-slide .card-footer .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Slider Navigation Buttons - Side overlapped */
.blog-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--sage-green);
    color: var(--sage-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    box-shadow: var(--shadow-md);
}

.blog-slider-btn:hover {
    opacity: 1;
    background: var(--sage-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.blog-slider-btn.prev {
    left: -20px;
}

.blog-slider-btn.next {
    right: -20px;
}

.blog-slider-btn .material-icons {
    font-size: 20px;
}

.blog-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ============================================
   CASE STUDIES SLIDER - Card Carousel
   ============================================ */
.case-studies--ambient,
.blog--ambient {
    position: relative;
    overflow: hidden;
    --section-accent: #457B9D;
    --section-fade-top: var(--bg-white);
    --section-fade-bottom: var(--bg-light);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--section-accent) 16%, var(--bg-white)) 0%,
        color-mix(in srgb, var(--section-accent) 7%, var(--bg-white)) 42%,
        var(--bg-white) 100%
    );
    transition: background 0.9s ease;
}

.blog--ambient {
    --section-fade-top: var(--bg-light);
    --section-fade-bottom: var(--bg-light);
}

.case-studies--ambient::before,
.case-studies--ambient::after,
.blog--ambient::before,
.blog--ambient::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: clamp(56px, 9vw, 112px);
    pointer-events: none;
    z-index: 2;
}

.case-studies--ambient::before,
.blog--ambient::before {
    top: 0;
    background: linear-gradient(
        180deg,
        var(--section-fade-top) 0%,
        color-mix(in srgb, var(--section-fade-top) 42%, transparent) 52%,
        transparent 100%
    );
}

.case-studies--ambient::after,
.blog--ambient::after {
    bottom: 0;
    background: linear-gradient(
        0deg,
        var(--section-fade-bottom) 0%,
        color-mix(in srgb, var(--section-fade-bottom) 42%, transparent) 52%,
        transparent 100%
    );
}

[data-theme="dark"] .case-studies--ambient,
[data-theme="dark"] .blog--ambient {
    --section-fade-top: var(--bg-white);
    --section-fade-bottom: var(--bg-light);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--section-accent) 22%, #1e272e) 0%,
        color-mix(in srgb, var(--section-accent) 10%, #151c22) 48%,
        #151c22 100%
    );
}

[data-theme="dark"] .blog--ambient {
    --section-fade-top: var(--bg-light);
    --section-fade-bottom: var(--bg-light);
}

.section-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-ambient::before,
.section-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.42;
    transition: background 0.9s ease, opacity 0.9s ease;
}

.section-ambient::before {
    width: min(58vw, 520px);
    height: min(48vw, 420px);
    top: -12%;
    right: -8%;
    background: var(--section-accent);
}

.section-ambient::after {
    width: min(50vw, 440px);
    height: min(42vw, 360px);
    bottom: -8%;
    left: -6%;
    background: color-mix(in srgb, var(--section-accent) 72%, #ffffff);
    opacity: 0.28;
}

.case-studies--ambient > .container,
.blog--ambient > .container {
    position: relative;
    z-index: 1;
}

.case-studies-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 20px 0 40px 0;
}

.case-studies-marquee-container {
    width: 100%;
    overflow: hidden;
}

.case-studies-marquee-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
    will-change: transform;
}

.case-studies-marquee-slide {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.case-study-card {
    background: var(--bg-light);
    overflow: hidden;
    padding: 0;
    height: 100%;
}

.case-study-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    padding: 2px;
    text-decoration: none;
    color: inherit;
}

.case-study-card__link:focus-visible {
    outline: 2px solid var(--sage-green);
    outline-offset: 3px;
    border-radius: var(--radius-lg);
}

.case-studies-marquee-slide .case-study-card__link {
    height: 420px;
    min-height: 420px;
}

.case-studies-marquee-slide .case-study-card__media,
.case-study-card__link > .case-study-card__media {
    position: relative;
    margin: -2px -2px 0 -2px;
    height: 200px;
    min-height: 200px;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    flex-shrink: 0;
    --card-accent: #457B9D;
    background: #151c22;
}

.case-study-card__backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 88%, #0f1419) 0%, #151c22 58%, #0d1116 100%);
}

.case-study-card__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(28px);
    pointer-events: none;
}

.case-study-card__glow--primary {
    width: 72%;
    height: 88%;
    top: -28%;
    right: -18%;
    background: color-mix(in srgb, var(--card-accent) 55%, #ffffff);
    opacity: 0.42;
}

.case-study-card__glow--secondary {
    width: 48%;
    height: 56%;
    bottom: -22%;
    left: -12%;
    background: var(--card-accent);
    opacity: 0.34;
}

.case-study-card__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.case-study-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.case-study-card:hover .case-study-card__image {
    transform: scale(1.05);
}

.case-study-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sage-green), var(--powder-blue));
}

.case-study-card__placeholder .material-icons {
    font-size: 48px;
    color: #fff;
}

.case-study-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
    min-height: 0;
}

.case-studies-marquee-slide .case-study-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--text-medium);
    flex-shrink: 0;
}

.case-studies-marquee-slide .case-study-card__title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0 0 12px;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.62rem;
    flex-shrink: 0;
}

.case-study-card--listing .case-study-card__title {
    display: block;
    overflow: visible;
    max-height: none;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    text-overflow: unset;
}

.case-study-card--listing .case-study-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 2px;
    font-size: inherit;
    color: inherit;
    flex-shrink: unset;
}

.case-studies-marquee-slide .card-footer {
    margin-top: auto;
    padding-top: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
}

.case-studies-marquee-slide .card-footer .btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Slider Navigation Buttons */
.case-studies-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--sage-green);
    color: var(--sage-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    box-shadow: var(--shadow-md);
}

.case-studies-slider-btn:hover {
    opacity: 1;
    background: var(--sage-green);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.case-studies-slider-btn.prev {
    left: -20px;
}

.case-studies-slider-btn.next {
    right: -20px;
}

.case-studies-slider-btn .material-icons {
    font-size: 20px;
}

.case-studies-slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.case-studies-suggestions {
    background: var(--bg-light);
    padding-top: 0;
}

.case-studies-suggestions .section-header {
    margin-bottom: 8px;
}

/* Tablet */
@media (max-width: 1023px) {
    .case-studies-marquee-slide {
        flex: 0 0 calc(50% - 12px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .case-studies-marquee-slide {
        flex: 0 0 100%;
    }
    
    .case-studies-slider-btn.prev {
        left: 10px;
    }
    
    .case-studies-slider-btn.next {
        right: 10px;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-card__title {
    margin: 0 0 28px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
}

.contact-item:first-of-type {
    padding-top: 0;
}

.contact-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
}

.contact-details {
    flex: 1;
    min-width: 0;
}

.contact-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.3;
    color: var(--text-dark);
}

.contact-details p {
    margin: 0 0 4px;
    line-height: 1.5;
}

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

.contact-details__primary {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-details__primary a {
    color: inherit;
    text-decoration: none;
}

.contact-details__primary a:hover {
    color: var(--sage-green-dark);
}

.contact-details__secondary {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.contact-details p,
.contact-details a {
    white-space: normal;
    word-break: break-word;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: clamp(28px, 3vw, 36px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

#contact-form {
    padding: clamp(48px, 6vw, 72px) 0;
}

#contact-form .contact-grid {
    align-items: start;
    gap: clamp(28px, 4vw, 40px);
}

.contact-form-wrapper .section-header {
    text-align: left;
    margin-bottom: 20px;
}

.contact-form-wrapper .section-header h2 {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    margin-bottom: 8px;
    line-height: 1.25;
}

.contact-form-wrapper .section-header p {
    font-size: 0.9375rem;
    line-height: 1.55;
    max-width: none;
    margin: 0;
}

.contact-form-wrapper .lead-form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
}

/* ============================================
   FOOTER
   ============================================ */
/* Blog section - reduced bottom padding to minimize gap before footer */
.blog.section {
    padding-bottom: 32px;
}

/* View All Articles button container - reduced margin */
.blog .text-center.mt-4 {
    margin-top: 16px;
    margin-bottom: 0;
}

/* Footer - reduced top padding to minimize gap after blog section */
.footer {
    background: #1A202C;
    color: white;
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 28px;
    margin-bottom: 42px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0;
    margin-bottom: 18px;
    border: none;
    color: white;
}

.footer-logo img {
    width: auto;
    height: 72px;
    max-width: 220px;
    display: block;
    object-fit: contain;
}

.footer-about p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ffffff;
}

.footer-title {
    color: white;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.footer-links li .material-icons {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    color: #ffffff;
}

.footer-links a {
    color: #ffffff;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    line-height: 0;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex-shrink: 0;
    display: block;
    fill: currentColor;
}

.social-link:hover {
    color: var(--sage-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
    white-space: nowrap;
    color: #ffffff;
}

.service-areas {
    color: var(--sage-green);
    font-weight: 500;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 8px;
}

.footer-legal-link:hover {
    color: var(--sage-green);
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 40px);
}

.legal-page h2 {
    font-size: 1.25rem;
    margin: 28px 0 10px;
}

.legal-page p,
.legal-page li {
    color: var(--text-medium);
    line-height: 1.7;
}

.legal-page a {
    color: var(--sage-green-dark);
    text-decoration: underline;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

/* Quick Inquiry Button - Draggable & Snaps to Edge */
.quick-inquiry-btn {
    position: fixed;
    left: 0;
    /* Slightly below vertical center on first load */
    top: calc(50% + 72px);
    transform: translateY(-50%);
    z-index: 1005;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 0 14px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 144px;
    min-height: 144px;
    max-height: 144px;
    width: 43px;
    min-width: 43px;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, left 0.3s ease, background 0.3s ease, color 0.3s ease;
    overflow: hidden;
}

.quick-inquiry-btn.docked-right {
    left: auto;
    right: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    box-shadow: none;
}

.quick-inquiry-btn:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.quick-inquiry-btn.docked-right:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.quick-inquiry-btn:active,
.quick-inquiry-btn.dragging {
    cursor: grabbing;
    transition: none;
}

.quick-inquiry-btn .material-icons {
    font-size: 20px;
    flex-shrink: 0;
}

/* Arrow icon - horizontal chevron pointing into the page */
.quick-inquiry-btn .arrow-icon {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Right docked: chevron points left (into page) */
.quick-inquiry-btn.docked-right .arrow-icon {
    transform: none;
}

/* Left docked: chevron points right (into page) */
.quick-inquiry-btn:not(.docked-right) .arrow-icon {
    transform: scaleX(-1);
}

/* Dark mode styles - opposite colors */
[data-theme="dark"] .quick-inquiry-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.2);
    color: #000000;
    box-shadow: none;
}

[data-theme="dark"] .quick-inquiry-btn.docked-right {
    box-shadow: none;
    border-left-color: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .quick-inquiry-btn:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .quick-inquiry-btn.docked-right:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Button (middle of stack) */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 1005;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Call Button (top of stack) */
.call-btn {
    position: fixed;
    bottom: 156px;
    right: 30px;
    z-index: 1005;
    width: 56px;
    height: 56px;
    background: var(--powder-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.call-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Scroll to Top Button (bottom of stack) */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 30px;
    z-index: 1005;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   MODAL (Quick Inquiry Popup)
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--blush-pink);
    color: var(--text-dark);
}

[data-theme="dark"] .modal-close:hover {
    background: rgba(168, 201, 161, 0.3);
    color: var(--sage-green);
}

.modal-body {
    padding: 16px;
}

/* Quick Inquiry Modal - sleek form styling */
#quickInquiryModal .modal {
    display: flex;
    flex-direction: column;
    border: 4px solid rgba(168, 201, 161, 0.35);
    box-shadow: 0 24px 64px rgba(26, 32, 44, 0.18);
    overflow: hidden;
    max-width: 550px;
    max-height: min(90vh, 720px);
}

#quickInquiryModal .modal-header {
    flex-shrink: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(168, 201, 161, 0.12) 0%, rgba(184, 216, 232, 0.14) 100%);
    border-bottom: 1px solid rgba(168, 201, 161, 0.16);
}

#quickInquiryModal .modal-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

#quickInquiryModal .modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(168, 201, 161, 0.2);
}

#quickInquiryModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 13px;
    margin: 0 14px 14px;
    border: 1px solid rgba(168, 201, 161, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

#quickInquiryModal .lead-form-modal {
    display: flex;
    flex-direction: column;
}

#quickInquiryModal .lead-form-modal .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 11px;
}

#quickInquiryModal .lead-form-modal .form-group {
    margin-bottom: 11px;
}

#quickInquiryModal .lead-form-modal .form-label {
    display: block;
    margin-bottom: 2px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

#quickInquiryModal .lead-form-modal .form-input,
#quickInquiryModal .lead-form-modal .form-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(113, 128, 150, 0.28);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(26, 32, 44, 0.04);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

#quickInquiryModal .lead-form-modal .form-select {
    width: 100%;
    padding: 11px 36px 11px 13px;
    border: 1px solid rgba(113, 128, 150, 0.28);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.92);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    color: var(--text-dark);
    font-size: 0.9375rem;
    line-height: 1.4;
    box-shadow: inset 0 1px 2px rgba(26, 32, 44, 0.04);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    color-scheme: light;
}

#quickInquiryModal .lead-form-modal .form-select::-ms-expand {
    display: none;
}

#quickInquiryModal .lead-form-modal .form-select:invalid {
    color: rgba(113, 128, 150, 0.75);
}

#quickInquiryModal .lead-form-modal .form-input::placeholder,
#quickInquiryModal .lead-form-modal .form-textarea::placeholder {
    color: rgba(113, 128, 150, 0.75);
    font-size: 0.8125rem;
}

#quickInquiryModal .lead-form-modal .form-input:hover,
#quickInquiryModal .lead-form-modal .form-select:hover,
#quickInquiryModal .lead-form-modal .form-textarea:hover {
    border-color: rgba(168, 201, 161, 0.55);
}

#quickInquiryModal .lead-form-modal .form-input:focus,
#quickInquiryModal .lead-form-modal .form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.18);
}

#quickInquiryModal .lead-form-modal .form-select:focus {
    outline: none;
    border-color: var(--sage-green);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.18);
}

#quickInquiryModal .lead-form-modal .form-textarea {
    min-height: 79px;
    max-height: min(160px, 22vh);
    resize: vertical;
    overflow-y: auto;
}

#quickInquiryModal .lead-form-modal .form-submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    margin-top: 8px;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--sage-green) 0%, #95b88f 55%, var(--sage-green-dark) 100%);
    box-shadow: 0 -10px 20px rgba(248, 249, 250, 0.95), 0 8px 20px rgba(168, 201, 161, 0.35);
}

#quickInquiryModal .lead-form-modal .form-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 -10px 20px rgba(248, 249, 250, 0.95), 0 10px 24px rgba(168, 201, 161, 0.42);
}

#quickInquiryModal .lead-form-modal .form-submit:active {
    transform: translateY(0);
}

[data-theme="dark"] #quickInquiryModal .modal {
    border: 4px solid rgba(168, 201, 161, 0.35);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] #quickInquiryModal .modal-header {
    background: linear-gradient(135deg, rgba(168, 201, 161, 0.14) 0%, rgba(184, 216, 232, 0.08) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] #quickInquiryModal .modal-body {
    background: linear-gradient(180deg, rgba(30, 39, 46, 0.98) 0%, rgba(45, 52, 54, 1) 100%);
    border-color: rgba(168, 201, 161, 0.28);
}

[data-theme="dark"] #quickInquiryModal .modal-close {
    background: rgba(45, 52, 54, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-input,
[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-textarea {
    background-color: rgba(30, 39, 46, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-select {
    background-color: rgba(30, 39, 46, 0.85);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B2BEC3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
    color-scheme: dark;
}

[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-select:invalid {
    color: rgba(178, 190, 195, 0.85);
}

[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-input:focus,
[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-textarea:focus {
    background-color: rgba(30, 39, 46, 1);
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.22);
}

[data-theme="dark"] #quickInquiryModal .lead-form-modal .form-select:focus {
    background-color: rgba(30, 39, 46, 1);
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.22);
}

/* Modal Form - Support for 2-column layout */
.lead-form-modal .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.lead-form-modal .form-group {
    margin-bottom: 16px;
}

.lead-form-modal .form-group:last-child {
    margin-bottom: 0;
}

/* Mobile: Modal form single column */
@media (max-width: 767px) {
    #quickInquiryModal .modal {
        width: 94%;
        max-width: 550px;
        max-height: 92vh;
    }

    #quickInquiryModal .modal-header {
        padding: 16px 18px;
    }

    #quickInquiryModal .modal-body {
        padding: 13px;
        margin: 0 12px 12px;
    }

    #quickInquiryModal .lead-form-modal .form-textarea {
        max-height: min(140px, 20vh);
    }

    .lead-form-modal .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .lead-form-modal .form-group {
        margin-bottom: 12px;
    }

    #quickInquiryModal .lead-form-modal .form-input,
    #quickInquiryModal .lead-form-modal .form-select,
    #quickInquiryModal .lead-form-modal .form-textarea {
        font-size: 16px;
    }
}

/* Career Apply Modal */
#careerApplyModal .modal,
.career-apply-modal {
    display: flex;
    flex-direction: column;
    border: 4px solid rgba(168, 201, 161, 0.35);
    box-shadow: 0 24px 64px rgba(26, 32, 44, 0.18);
    overflow: hidden;
    max-width: 580px;
    max-height: min(92vh, 760px);
}

#careerApplyModal .modal-header {
    flex-shrink: 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(168, 201, 161, 0.12) 0%, rgba(184, 216, 232, 0.14) 100%);
    border-bottom: 1px solid rgba(168, 201, 161, 0.16);
}

#careerApplyModal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    margin: 0 14px 14px;
    border: 1px solid rgba(168, 201, 161, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.95) 0%, rgba(255, 255, 255, 1) 100%);
}

.career-apply-form {
    display: flex;
    flex-direction: column;
}

.career-apply-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.career-apply-form .form-group {
    margin-bottom: 12px;
}

.career-apply-form .form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.career-apply-form .form-input,
.career-apply-form .form-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(113, 128, 150, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font-size: 0.9375rem;
    box-shadow: inset 0 1px 2px rgba(26, 32, 44, 0.04);
}

.career-apply-form .form-textarea {
    min-height: 88px;
    max-height: min(140px, 20vh);
    resize: vertical;
    overflow-y: auto;
}

.career-apply-form .form-input:focus,
.career-apply-form .form-textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(168, 201, 161, 0.18);
}

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

.career-file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed rgba(168, 201, 161, 0.55);
    border-radius: 12px;
    background: rgba(168, 201, 161, 0.08);
    cursor: pointer;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
    text-align: center;
}

.career-file-label:hover {
    border-color: var(--sage-green);
    background: rgba(168, 201, 161, 0.14);
}

.career-file-label .material-icons {
    font-size: 32px;
    color: var(--sage-green-dark);
}

.career-file-label__text {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.career-file-label__hint {
    font-size: 0.75rem;
    color: var(--text-medium);
}

.career-file-name {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: var(--text-medium);
    word-break: break-all;
}

.career-apply-submit {
    position: sticky;
    bottom: 0;
    z-index: 2;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 -10px 20px rgba(248, 249, 250, 0.95), 0 8px 20px rgba(168, 201, 161, 0.35);
}

@media (max-width: 767px) {
    #careerApplyModal .modal,
    .career-apply-modal {
        width: 94%;
        max-height: 92vh;
    }

    .career-apply-form .form-row {
        grid-template-columns: 1fr;
    }

    .career-apply-form .form-input,
    .career-apply-form .form-textarea {
        font-size: 16px;
    }
}

.modal-success {
    text-align: center;
    padding: 48px;
}

.modal-success .material-icons {
    font-size: 64px;
    color: var(--sage-green);
    margin-bottom: 24px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary { color: var(--sage-green); }
.text-secondary { color: var(--powder-blue-dark); }
.bg-primary { background-color: var(--sage-green); }
.bg-secondary { background-color: var(--powder-blue); }
.bg-light { background-color: var(--bg-light); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loading Spinner */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

[data-theme="dark"] .alert-success {
    background: rgba(168, 201, 161, 0.2);
    color: var(--sage-green);
    border: 1px solid rgba(168, 201, 161, 0.4);
}

.alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

[data-theme="dark"] .alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

/* Form Alerts */
.form-alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease;
}

.form-alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-alert-error {
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

[data-theme="dark"] .form-alert-success {
    background: rgba(168, 201, 161, 0.2);
    color: var(--sage-green);
    border: 1px solid rgba(168, 201, 161, 0.4);
}

[data-theme="dark"] .form-alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.4);
}

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

/* Tablet: 768px - 1023px */
@media (max-width: 1023px) {
    :root {
        --section-padding: 60px;
    }
    
    .section {
        padding: var(--section-padding) 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .blog-card--listing .blog-card__media,
    .blog-card--listing .blog-image-wrapper {
        height: auto;
        aspect-ratio: 16 / 10;
    }

    .services .card-grid-4 {
        gap: 16px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .benefit-item {
        padding: 16px 12px;
    }
    
    .benefit-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .benefit-content h3 {
        font-size: 0.95rem;
    }
    
    .process-steps {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        max-width: 40%;
        flex: 0 0 40%;
    }
    
    .testimonial-carousel {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-info {
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .hero-graphic {
        width: 300px;
        height: 300px;
        right: 2%;
        opacity: 0.7;
    }
    
    .lead-form {
        padding: 32px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }

    #contact-form .contact-grid {
        gap: 24px;
    }

    .contact-form-wrapper .section-header {
        margin-bottom: 16px;
    }

    .contact-form-wrapper .section-header h2 {
        font-size: 1.25rem;
    }

    .contact-form-wrapper .section-header p {
        font-size: 0.875rem;
    }

    .contact-form-wrapper .lead-form {
        padding: 0;
    }
    
    /* Pricing - Tablet: Keep 3 columns side-by-side with compact spacing */
    .pricing .card-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .pricing-card {
        padding: 16px;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
    
    .pricing-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .pricing-badge {
        font-size: 0.7rem;
        padding: 2px 10px;
        margin-bottom: 6px;
    }
    
    .pricing-card .card-title {
        font-size: 1rem;
    }
    
    .pricing-price {
        font-size: 1.5rem;
    }
    
    .pricing-price span {
        font-size: 0.8rem;
    }
    
    .pricing-features {
        margin-bottom: 12px;
    }
    
    .pricing-features li {
        padding: 5px 0;
        font-size: 0.8rem;
        gap: 6px;
        line-height: 1.35;
    }
    
    .pricing-card .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    /* Blog Marquee - Tablet: Show 2 cards */
    .blog-marquee-slide {
        flex: 0 0 calc(50% - 12px);
    }
    
    .blog-marquee-slide .blog-card {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    
    .blog-marquee-slide .blog-image-wrapper {
        height: 180px;
        min-height: 180px;
    }
    
    .case-studies-marquee-slide .case-study-card__link {
        height: 400px;
        min-height: 400px;
        max-height: 400px;
    }
    
    .case-studies-marquee-slide .case-study-card__media {
        height: 180px;
        min-height: 180px;
    }
    
    .blog-marquee-track {
        gap: 24px;
    }

    /* Tablet Navigation - slide-in menu */
    .nav {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        bottom: 0;
        width: min(85vw, 320px);
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex: none;
        padding: 60px 20px 100px;
        gap: 0;
        z-index: 998;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    }

    [data-theme="dark"] .nav {
        background: rgba(30, 39, 46, 0.98);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav.mobile-open {
        transform: translateX(0);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-overlay.active {
        display: block;
        opacity: 1;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    body.menu-open #main-content,
    body.menu-open .footer {
        filter: blur(6px);
        transition: filter 0.3s ease;
    }

    body.menu-open .whatsapp-btn,
    body.menu-open .call-btn,
    body.menu-open .scroll-top,
    body.menu-open .quick-inquiry-btn {
        z-index: 996;
        filter: blur(6px);
        pointer-events: none;
        transition: filter 0.3s ease;
    }

    .nav-link {
        display: block;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5;
        padding: 14px 0;
        white-space: normal;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

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

    [data-theme="dark"] .nav-link {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        color: var(--sage-green);
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--sage-green);
        background: transparent;
    }

    .nav-services {
        border-bottom: 1px solid #e5e7eb;
    }

    [data-theme="dark"] .nav-services {
        border-bottom-color: rgba(255, 255, 255, 0.16);
    }

    .nav-services-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-dark);
        background: none;
        border: none;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    [data-theme="dark"] .nav-services-toggle {
        color: #ffffff;
    }

    .nav-services-toggle:hover {
        color: var(--sage-green);
    }

    .nav-services-toggle .material-icons {
        font-size: 20px;
        transition: transform 0.3s ease;
    }

    .nav-services-toggle.expanded .material-icons {
        transform: rotate(180deg);
    }

    .nav-services-submenu {
        display: none;
        padding-left: 16px;
        padding-bottom: 8px;
    }

    .nav-services-submenu.show {
        display: block;
    }

    .nav-services-submenu a {
        display: block;
        padding: 8px 0;
        font-size: 0.875rem;
        color: #4B5563;
        text-decoration: none;
        transition: all 0.15s ease;
    }

    [data-theme="dark"] .nav-services-submenu a {
        color: #D1D5DB;
    }

    .nav-services-submenu a:hover {
        color: var(--sage-green);
    }

    .nav-actions {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(243, 244, 246, 0.8);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    [data-theme="dark"] .nav-actions {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .nav-call-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 16px;
        background: white;
        border: 1px solid #D1D5DB;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.15s ease;
    }

    [data-theme="dark"] .nav-call-btn {
        background: rgba(45, 52, 54, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
    }

    .nav-call-btn:hover {
        border-color: var(--sage-green);
        color: var(--sage-green);
    }

    [data-theme="dark"] .nav-call-btn:hover {
        border-color: var(--sage-green);
        color: var(--sage-green);
    }

    .nav-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 20px;
        background: linear-gradient(135deg, var(--sage-green) 0%, var(--powder-blue) 100%);
        border: 1px solid var(--sage-green);
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 500;
        color: white;
        text-decoration: none;
        transition: all 0.15s ease;
    }

    .nav-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(168, 201, 161, 0.4);
    }

    .mobile-menu-btn {
        display: flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1003;
    }

    .mobile-menu-btn span {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--text-dark);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    [data-theme="dark"] .mobile-menu-btn span {
        background: #ffffff;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .header-actions .btn {
        display: none;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .footer-logo img {
        height: 62px;
        max-width: 190px;
    }
}

/* Mobile: 320px - 767px */
@media (max-width: 767px) {
    :root {
        --section-padding: 48px;
    }
    
    html {
        font-size: 15px;
    }
    
    .container,
    .container-wide {
        padding: 0 12px;
    }
    
    .section {
        padding: var(--section-padding) 0;
    }
    
    .section-header {
        margin-bottom: 32px;
        padding: 0 8px;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 1rem;
    }

    #service-inquiry {
        padding: 36px 0;
    }

    #service-inquiry .section-header {
        margin-bottom: 18px;
    }

    #service-inquiry .section-header h2 {
        font-size: 1.375rem;
        margin-bottom: 6px;
    }

    #service-inquiry .section-header p {
        font-size: 0.875rem;
    }

    #service-inquiry .lead-form {
        padding: 24px 20px;
    }

    section#service-pricing {
        padding: 28px 0;
    }

    section#service-pricing .section-header {
        margin-bottom: 18px;
    }

    section#service-pricing .section-header h2 {
        font-size: 1.25rem;
        margin-bottom: 4px;
    }

    section#service-pricing .section-header p {
        font-size: 0.8125rem;
    }

    .service-detail-sidebar .service-sidebar-card {
        padding: 22px 20px;
    }

    .hero-meta {
        justify-content: center;
    }

    .hero-meta.hero-meta--blog {
        justify-content: flex-start;
    }

    .hero--case-study {
        padding: calc(var(--header-height) + 16px) 0 28px;
    }

    .hero--blog {
        padding: calc(var(--header-height) + 16px) 0 24px;
    }

    .hero-content-blog {
        max-width: 100%;
        text-align: left;
    }

    .hero-content-detail,
    .hero-content-centered,
    .hero-content-centered.hero-content-narrow {
        max-width: 100%;
    }
    
    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 90px 0 40px;
    }

    .hero.hero--home {
        padding: calc(var(--header-height) + 14px) 0 28px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 8px;
    }

    .hero-content.hero-content--home {
        text-align: left;
        padding: 0;
    }

    .hero-content-blog {
        text-align: left;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .hero-cta {
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .hero-cta-service {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-cta-service .btn {
        width: auto;
        max-width: none;
    }
    
    /* Card Grids */
    .card-grid,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services .card-grid-4 {
        gap: 16px;
    }
    
    .card {
        padding: 24px;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }

    .service-card-top {
        min-height: auto;
    }

    .service-card-title {
        min-height: auto;
    }

    .service-card-deliverables {
        min-height: auto;
    }
    
    /* Benefits Section */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .benefit-item {
        padding: 14px 10px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .benefit-content h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .benefit-content p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    /* Process Steps */
    .process-steps {
        flex-direction: column;
        gap: 24px;
    }
    
    .process-step {
        max-width: 100%;
        flex: 1;
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Testimonials */
    .testimonial-carousel {
        grid-template-columns: 1fr;
    }
    
    .testimonial-slide {
        width: 280px;
        padding: 16px;
    }
    
    .marquee-fade-left,
    .marquee-fade-right {
        width: 40px;
    }
    
    /* Pricing */
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card:hover {
        transform: translateY(-4px);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    /* Pricing - Mobile: Stack vertically with compact styling */
    .pricing .card-grid-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pricing-card {
        padding: 16px;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .pricing-badge {
        font-size: 0.7rem;
        padding: 2px 10px;
        margin-bottom: 6px;
    }
    
    .pricing-card .card-title {
        font-size: 1rem;
    }
    
    .pricing-price {
        font-size: 1.75rem;
    }
    
    .pricing-features {
        margin-bottom: 12px;
    }
    
    .pricing-features li {
        padding: 5px 0;
        font-size: 0.85rem;
        line-height: 1.35;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .lead-form {
        padding: 20px;
        margin: 0 -4px;
        border-radius: var(--radius-lg);
    }
    
    .contact-form-wrapper {
        padding: 20px;
        margin: 0;
    }

    .contact-form-wrapper .section-header {
        margin-bottom: 14px;
    }

    .contact-form-wrapper .lead-form {
        padding: 0;
        margin: 0;
    }
    
    .form-submit {
        padding: 14px;
        font-size: 1rem;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-info {
        gap: 0;
    }

    .contact-card__title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }

    .contact-item {
        gap: 14px;
        padding: 16px 0;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-top: 1px;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-details h3 {
        font-size: 0.9375rem;
        margin-bottom: 4px;
    }

    .contact-details__primary {
        font-size: 1rem;
    }

    .contact-details__secondary {
        font-size: 0.8125rem;
    }
    
    /* Footer - reduced top padding for mobile */
    .footer {
        padding: 32px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 26px;
    }
    
    .footer-logo {
        font-size: 1.4rem;
        margin-bottom: 14px;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    
    .footer-about p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .social-links {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        padding: 10px 0;
    }

    .footer-bottom-inner {
        gap: 4px;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .service-areas {
        font-size: 0.75rem;
    }
    
    /* Floating Elements - Higher z-index to appear above mobile menu */
    .quick-inquiry-btn {
        height: 112px;
        min-height: 112px;
        max-height: 112px;
        width: 36px;
        min-width: 36px;
        padding: 0 9px;
        font-size: 0.75rem;
        z-index: 1005;
        bottom: auto;
    }
    
    .quick-inquiry-btn.docked-right {
        left: auto;
        right: 0;
    }
    
    .quick-inquiry-btn:hover {
        transform: none;
    }
    
    .quick-inquiry-btn .material-icons {
        font-size: 16px;
    }
    
    .quick-inquiry-btn .arrow-icon {
        font-size: 14px;
    }
    
    /* Mobile Dark Mode - Quick Inquiry Button */
    [data-theme="dark"] .quick-inquiry-btn {
        background: rgba(255, 255, 255, 0.6);
        color: #000000;
        border-color: rgba(0, 0, 0, 0.2);
    }
    
    [data-theme="dark"] .quick-inquiry-btn.docked-right {
        border-left-color: rgba(0, 0, 0, 0.2);
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 12px;
        bottom: 76px;
        z-index: 1005;
    }
    
    .call-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 12px;
        bottom: 136px;
        z-index: 1005;
    }
    
    .scroll-top {
        width: 50px;
        height: 50px;
        font-size: 24px;
        right: 12px;
        bottom: 16px;
        z-index: 1005;
    }
    
    /* Modal */
    .modal {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-close {
        width: 36px;
        height: 36px;
    }
    
    /* Blog */
    .blog-image-wrapper {
        height: 180px;
    }
    
    .blog-content {
        padding: 16px;
    }
    
    .blog-title {
        font-size: 1.125rem;
    }
    
    /* Compact Blog Cards - Tablet */
    #blog .blog-content {
        padding: 14px;
    }
    
    #blog .blog-title {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    #blog .blog-meta {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    #blog .card-footer {
        margin-top: auto;
        padding-top: 8px;
        display: flex;
        align-items: flex-end;
    }
    
    #blog .card-footer .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    /* Blog - Mobile */
    .blog-card--listing .blog-card__body {
        padding: 18px 18px 16px;
    }

    .blog-card--listing .blog-card__media,
    .blog-card--listing .blog-image-wrapper {
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .blog-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .blog-card__author {
        white-space: normal;
    }

    .blog-card__cta {
        width: 100%;
        justify-content: center;
    }

    .blog-image-wrapper {
        height: 160px;
    }
    
    .blog-content {
        padding: 12px;
    }
    
    .blog-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .blog-meta {
        font-size: 0.75rem;
        margin-bottom: 6px;
        gap: 8px;
    }
    
    /* Blog Marquee - Mobile: Show 1 card */
    .blog-marquee-wrapper {
        padding: 20px 0 40px 0;
    }
    
    .blog-marquee-slide {
        flex: 0 0 100%;
    }
    
    .blog-marquee-slide .blog-card {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }
    
    .blog-marquee-slide .blog-image-wrapper {
        height: 200px;
        min-height: 200px;
    }
    
    .blog-marquee-slide .blog-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
    }
    
    .case-studies-marquee-slide .case-study-card__link {
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }
    
    .case-studies-marquee-slide .case-study-card__media {
        height: 200px;
        min-height: 200px;
    }
    
    .case-studies-marquee-slide .case-study-card__title {
        font-size: 1.1rem;
        -webkit-line-clamp: 3;
    }
    
    .blog-slider-btn.prev {
        left: 10px;
    }
    
    .blog-slider-btn.next {
        right: 10px;
    }
    
    /* Compact Blog Cards - Mobile */
    #blog .blog-content {
        padding: 12px;
    }
    
    #blog .blog-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    #blog .blog-meta {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }
    
    #blog .card-footer {
        margin-top: auto;
        padding-top: 6px;
        display: flex;
        align-items: flex-end;
    }
    
    #blog .card-footer .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* FAQ */
    .faq-question {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 16px 12px;
        font-size: 0.85rem;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 0.875rem;
    }
    
    /* Case Studies */
    .case-study-image,
    .case-study-overlay {
        height: 200px;
    }
    
    .case-study-content {
        padding: 16px;
    }
    
    .case-study-content-horizontal {
        padding: 20px;
        gap: 12px;
    }
    
    .case-study-content-horizontal .case-study-title {
        font-size: 1.15rem;
        line-height: 1.35;
    }
    
    .case-study-content-horizontal .case-study-results {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .case-study-content-horizontal .case-study-challenge {
        font-size: 0.85rem;
        line-height: 1.55;
        max-height: 5.5rem;
        -webkit-line-clamp: 3;
    }
    
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Small Mobile: 320px - 479px */
@media (max-width: 479px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 24px;
    }
    
    .faq-question {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .faq-answer-content {
        padding: 0 18px 14px;
    }
}

/* Wide Screens: 1441px+ */
@media (min-width: 1441px) {
    .hero:has(.hero-graphic) {
        grid-template-columns: 1fr minmax(0, 860px) minmax(300px, 520px) 1fr;
        gap: clamp(32px, 4vw, 72px);
        padding: calc(var(--header-height) + 24px) 0 40px;
    }

    .hero:has(.hero-graphic) .hero-graphic {
        max-width: 520px;
    }

    .hero-graphic-icon {
        font-size: 260px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .quick-inquiry-btn,
    .whatsapp-btn,
    .call-btn,
    .scroll-top {
        display: none !important;
    }
}
