/**
 * En Masse 2025 - Complete Theme Styles
 * Exact conversion from static template to WordPress theme
 * 
 * This file contains all the styling from the original static template
 * including animations, visual effects, responsive design, and interactive elements
 * 
 * @author En Masse Development Team
 * @version 2.1.0
 * @link https://en-masse.nl
 */

:root {
    --primary-color: #1a2332;
    --secondary-color: #0f1419;
    --accent-color: #1dd1a1;
    --accent-hover: #00d4aa;
    --text-white: #ffffff;
    --text-light: #a0aec0;
    --text-muted: #718096;
    --gradient: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    --accent-gradient: linear-gradient(135deg, #1dd1a1 0%, #00d4aa 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--primary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip to content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: all 0.3s ease;
    /* Override screen-reader-text clipping for skip links */
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

.skip-link:focus {
    top: 0;
    /* Ensure visibility on focus */
    clip: auto !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 2px;
}

/* SVG Logo specific styles */
.logo-svg {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.logo-svg img {
    height: 40px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: all 0.3s ease;
}

.logo-svg:hover img {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.contact-button {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

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

.hamburger.active span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--primary-color);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 60px;
}

.close-menu {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--accent-color);
}

.mobile-nav {
    padding: 2rem 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    color: var(--accent-color);
    background: rgba(29, 209, 161, 0.1);
}

.mobile-contact-section {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(29, 209, 161, 0.2);
}

.mobile-contact-button {
    display: block;
    width: 100%;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    border: none;
}

.mobile-contact-button:hover {
    background: var(--accent-hover);
}

.mobile-contact-button.outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.mobile-contact-info {
    text-align: center;
    margin-top: 1rem;
}

.mobile-contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.mobile-contact-info a {
    color: var(--accent-color);
    text-decoration: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
    height: 100vh;
}

/* Hero Section */
.hero {
    /* Use modern viewport units to avoid iOS Safari 100vh issues (URL bar)
       Order: legacy fallback first, then modern units override */
    min-height: 100vh;       /* Fallback */
    min-height: 100dvh;      /* Dynamic viewport height */
    min-height: 100svh;      /* Small viewport height (prevents overscroll gap) */
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
    box-shadow: 0 4px 15px rgba(29, 209, 161, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.4);
}

/* Floating AI Elements */
.floating-ai {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(29, 209, 161, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.floating-ai:nth-child(1) {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.floating-ai:nth-child(2) {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.floating-ai:nth-child(3) {
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

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

/* AI Terminal */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease 1.3s forwards;
}

.ai-terminal {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    box-shadow: 0 8px 32px rgba(29, 209, 161, 0.2);
    max-width: 400px;
    width: 100%;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.terminal-dot:nth-child(1) {
    background: #ff5f56;
}

.terminal-dot:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dot:nth-child(3) {
    background: #27ca3f;
}

.terminal-line {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: typewriter 0.8s ease-out forwards;
}

.ai-prompt {
    color: var(--accent-color);
}

.ai-output {
    color: var(--text-light);
}

.ai-success {
    color: #27ca3f;
}

@keyframes typewriter {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: rgba(15, 20, 25, 0.5);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: rgba(26, 35, 50, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(29, 209, 161, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 209, 161, 0.1);
    border-color: rgba(29, 209, 161, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}
.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    margin-bottom: auto;
}
/* Ensure links in service cards are not default blue (except buttons) */
.service-card a:not(.cta-btn),
.service-card a:not(.cta-btn):visited {
    color: var(--text-light);
    text-decoration: none;
}
.service-card a:not(.cta-btn):hover,
.service-card a:not(.cta-btn):focus-visible {
    color: var(--accent-color);
    text-decoration: underline;
}
/* Service card CTA buttons spacing and accent variant */
.service-card .cta-btn {
    display: inline-block;
    margin-top: 0.75rem;
}
.service-card .cta-btn.accent {
    background: var(--accent-color);
    color: var(--primary-color);
}
.service-card .cta-btn.accent:hover,
.service-card .cta-btn.accent:focus-visible {
    color: var(--primary-color);
}

/* AI Showcase */
.ai-showcase {
    padding: 6rem 0;
    background: var(--gradient);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.showcase-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* AI Demo */
.ai-demo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container {
    background: rgba(15, 20, 25, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(29, 209, 161, 0.2);
    max-width: 400px;
    width: 100%;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
    margin-bottom: 1rem;
}

.chat-title {
    font-weight: 600;
    color: var(--text-white);
}

.chat-status {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.chat-message.active {
    opacity: 1;
    transform: translateY(0);
}

.chat-agent {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.chat-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(29, 209, 161, 0.1);
}

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

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.footer-section p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(29, 209, 161, 0.1);
    padding-top: 1rem;
    text-align: center;
}

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

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .showcase-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .contact-button {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    /* SVG Logo responsive adjustments */
    .logo-svg img {
        height: 35px;
        max-width: 180px;
    }
    
    .hero {
        padding-top: 88px; /* slightly smaller on mobile to account for fixed header */
        /* Use safe viewport units on mobile */
        min-height: 85vh;   /* Fallback */
        min-height: 80dvh;  /* Dynamic viewport */
        min-height: 80svh;  /* Small viewport */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .showcase-content h2 {
        font-size: 2rem;
    }
    
    .showcase-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* SVG Logo mobile adjustments */
    .logo-svg img {
        height: 30px;
        max-width: 160px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text .description {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .services {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .ai-showcase {
        padding: 4rem 0;
    }
    
    .ai-terminal,
    .chat-container {
        padding: 1rem;
    }
    
    .terminal-line {
        font-size: 0.8rem;
    }
}

/* Animations and Interactions */
/* No-JS safety: if JS is disabled, don't hide content */
.no-js .fade-in {
    opacity: 1;
    transform: none;
}

/* Prefer explicit properties to avoid unintended transitions */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* On very small screens, avoid long hidden states */
@media (max-width: 640px) {
    .fade-in {
        transition-duration: 0.5s;
    }
}

/* WordPress specific adjustments */
.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

/* Blog Specific Styles */
/* Hero section for blog pages only - matches static template structure */
/* Override general hero styles with higher specificity for blog pages only */
body.blog .hero,
body.archive .hero,
body.home:not(.page) .hero {
    padding: 6rem 0 4rem !important;
    background: var(--gradient) !important;
    position: relative;
    overflow: hidden;
    min-height: auto !important;
    display: block !important;
    align-items: initial !important;
    padding-top: 6rem !important;
}

body.blog .hero::before,
body.archive .hero::before,
body.home:not(.page) .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: grid-move 20s linear infinite;
}

body.blog .hero-content,
body.archive .hero-content,
body.home:not(.page) .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    align-items: initial !important;
}

body.blog .hero h1,
body.archive .hero h1,
body.home:not(.page) .hero h1 {
    font-size: 3rem !important;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    opacity: 1 !important;
    animation: none !important;
    text-align: center;
    line-height: 1.2;
}

body.blog .hero-subtitle,
body.archive .hero-subtitle,
body.home:not(.page) .hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

body.blog .hero-subtitle .highlight,
body.archive .hero-subtitle .highlight,
body.home:not(.page) .hero-subtitle .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.blog-section {
    padding: 5rem 0;
    background: var(--secondary-color);
}

.blog-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Featured Post */
.blog-card--featured {
    background: rgba(26, 35, 50, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(29, 209, 161, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.blog-card--featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 209, 161, 0.15);
    border-color: var(--accent-color);
}

/* Regular Blog Cards Grid */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(26, 35, 50, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(29, 209, 161, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(29, 209, 161, 0.15);
    border-color: var(--accent-color);
}

.blog-card__image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, rgba(29, 209, 161, 0.2) 0%, rgba(26, 35, 50, 0.8) 100%);
    overflow: hidden;
}

.blog-card--featured .blog-card__image {
    height: 100%;
    min-height: 400px;
}

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

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

.blog-card__category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-card--featured .featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card--featured .blog-card__content {
    padding: 2rem;
}

.blog-card__meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-card__title {
    color: var(--text-white);
    text-decoration: none;
    margin-bottom: 1rem;
}

.blog-card__title h2,
.blog-card__title h3 {
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    line-height: 1.3;
    margin: 0;
}

.blog-card__title:hover h2,
.blog-card__title:hover h3 {
    color: var(--accent-color);
}

.blog-card--featured .blog-card__title h2 {
    font-size: 2rem;
}

.blog-card__excerpt {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.blog-card__read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-card__read-more:hover {
    gap: 1rem;
}

.blog-card__read-more svg {
    transition: transform 0.3s ease;
}

.blog-card__read-more:hover svg {
    transform: translateX(5px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 4rem 0;
    background: rgba(29, 209, 161, 0.05);
    border-top: 1px solid rgba(29, 209, 161, 0.2);
}

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

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.newsletter-content p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.newsletter-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

.newsletter-button {
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 209, 161, 0.3);
}

/* Blog Responsive Design */
@media (max-width: 968px) {
    .blog-card--featured {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .blog-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
    }
    
    .blog-hero .hero-title {
        font-size: 2rem;
    }

    .blog-hero .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .blog-section {
        padding: 3rem 0;
    }

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

    .blog-card__content {
        padding: 1.5rem;
    }

    .blog-card--featured .blog-card__content {
        padding: 2rem 1.5rem;
    }

    .blog-card__title h2,
    .blog-card__title h3 {
        font-size: 1.3rem;
    }

    .blog-card--featured .blog-card__title h2 {
        font-size: 1.6rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-button {
        padding: 1rem;
        width: 100%;
    }

    .newsletter-title {
        font-size: 1.6rem;
    }
}

/* Site specific styling for WordPress elements */
#masthead {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

.site-footer {
    background: var(--secondary-color);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(29, 209, 161, 0.1);
}

.site-main {
    min-height: 100vh;
}

/* Blog post styling */
.blog-post {
    background: rgba(26, 35, 50, 0.8);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(29, 209, 161, 0.1);
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.entry-title a {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-content {
    color: var(--text-light);
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(29, 209, 161, 0.1);
}

/* Ensure proper spacing for main content */
main {
    padding-top: 0;
}

/* ========================================================================
   Contact Page Specific Styles - From Static Template
   ======================================================================== */

/* Contact Hero */
.contact-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.contact-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Content */
.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Contact Form */
.contact-form {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(29, 209, 161, 0.1);
}
/* Title inside contact form */
.contact-form h2,
.contact-form .contact-form-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--text-white);
}
/* Optional subtitle if used later */
.contact-form .form-subtitle { 
    font-size: 1.05rem; 
    color: var(--text-light); 
    margin: -0.5rem 0 1.5rem; 
}
/* Lead paragraph inside contact form or column heading area */
.contact-form .contact-form-lead,
.contact-column .contact-form-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(29, 209, 161, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.submit-btn {
    width: 100%;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.contact-info h2,
.contact-column h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.contact-info p,
.contact-column p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.contact-details {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.contact-details-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.contact-details-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-action-btn {
    flex: 1;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.quick-action-btn.outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 209, 161, 0.3);
}

.quick-action-btn.outline:hover {
    background: rgba(29, 209, 161, 0.1);
}

/* Contact Page Responsive Design */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero .subtitle {
        font-size: 1.1rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .quick-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 4rem 0 3rem;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-details {
        padding: 2rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* ========================================================================
   Single Blog Post (Article) Styles - From Static Template
   ======================================================================== */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Hero */
.article-hero {
    padding: 10rem 0 3rem;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    animation: grid-move 20s linear infinite;
}

.article-hero-content {
    position: relative;
    z-index: 2;
}

.article-category {
    display: inline-block;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-white);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-light);
    font-size: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Content */
.article-content {
    padding: 4rem 0;
    background: var(--secondary-color);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 3rem 0 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 2rem 0 1rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul, 
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.article-body strong {
    color: var(--text-white);
    font-weight: 600;
}

.article-body em {
    color: var(--accent-color);
    font-style: italic;
}

/* Code Blocks */
.code-block {
    background: #0d1117;
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    overflow-x: auto;
    position: relative;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

.code-language {
    color: var(--accent-color);
    font-family: 'Monaco', 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

.copy-button {
    background: rgba(29, 209, 161, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.article-body pre {
    margin: 0;
    font-family: 'Monaco', 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #c9d1d9;
}

/* Highlight Box */
.highlight-box {
    background: rgba(29, 209, 161, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box p {
    margin: 0;
    color: var(--text-white);
}

/* Example Cards */
.example-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.example-card {
    background: rgba(26, 35, 50, 0.6);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(29, 209, 161, 0.15);
}

.example-title {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.example-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* TL;DR Section */
.tldr-section {
    background: var(--primary-color);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 3rem 0;
    position: relative;
}

.tldr-badge {
    position: absolute;
    top: -1rem;
    left: 2rem;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.tldr-content {
    margin-top: 1rem;
}

.tldr-list {
    list-style: none;
    padding: 0;
}

.tldr-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.tldr-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Author Card */
.author-card {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.author-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.author-info h3 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.author-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.author-bio {
    color: var(--text-light);
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    padding: 4rem 0;
    background: var(--primary-color);
}

.related-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-white);
}

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

.related-card {
    background: rgba(26, 35, 50, 0.6);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(29, 209, 161, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(29, 209, 161, 0.15);
}

.related-card-title {
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.related-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--accent-gradient);
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Article Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
    }

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

    .example-grid {
        grid-template-columns: 1fr;
    }
    
    .article-hero {
        padding: 8rem 0 2rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
        padding-left: 1rem;
    }
    
    .tldr-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

/* Utility classes to replace inline styles */
.flex-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.button-outline {
    background: transparent !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.founder-info {
    margin-top: 1.5rem;
}

.founder-name {
    color: var(--accent-color);
}

/* Prevent any inline styles from overriding theme styles */
/* The following overrides were forcing inline styles and could lead to brittle layouts.
   Commented out per mobile polish recommendations. If specific components need these,
   replace with purpose-built utility classes instead (e.g., .flex-buttons).
[style*="display: flex"] {
    display: flex !important;
}

[style*="gap: 1rem"] {
    gap: 1rem !important;
}

[style*="flex-wrap: wrap"] {
    flex-wrap: wrap !important;
}
*/

/* ========================================================================
   Page Template Styles - General Page Layout
   ======================================================================== */

/* Page Hero */
.page-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    background: var(--gradient);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.page-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Content */
.page-content {
    padding: 4rem 0;
    background: var(--secondary-color);
}

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

.page-content-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-content-text h2 {
    color: var(--text-white);
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.page-content-text h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.page-content-text p {
    margin-bottom: 1.5rem;
}

.page-content-text strong {
    color: var(--text-white);
    font-weight: 600;
}

.page-content-text a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Page CTA Section */
.page-cta-section {
    background: var(--accent-gradient);
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.page-cta-content h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-cta-content p {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================
   FAQ Page Specific Styles - From Static Template
   ======================================================================== */

/* FAQ Hero */
.faq-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(29,209,161,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.faq-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    z-index: 2;
}

.faq-hero .subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.quick-action {
    background: rgba(29, 209, 161, 0.1);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(29, 209, 161, 0.3);
}

.quick-action:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 209, 161, 0.3);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0 6rem;
}

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

.faq-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.faq-intro p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* FAQ Items */
.faq-item {
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(29, 209, 161, 0.4);
    box-shadow: 0 5px 20px rgba(29, 209, 161, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    color: var(--text-white);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(26, 35, 50, 0.3);
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

.faq-answer strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* FAQ Contact CTA */
.faq-contact-cta {
    background: var(--accent-gradient);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.faq-contact-cta .cta-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-contact-cta .cta-content p {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--primary-color);
    color: var(--accent-color);
}

.cta-btn.secondary {
    background: rgba(26, 35, 50, 0.8);
    color: var(--text-white);
}

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

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Page & FAQ Templates */
@media (max-width: 768px) {
    .page-hero h1,
    .faq-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero .subtitle,
    .faq-hero .subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .page-hero,
    .faq-hero {
        padding: 5rem 0 3rem;
    }

    .quick-actions {
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .quick-action {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .faq-intro h2 {
        font-size: 2rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }

    .faq-question::after {
        right: 1.5rem;
    }

    .faq-answer.open {
        padding: 0 1.5rem 1.5rem;
    }

    .faq-contact-cta {
        padding: 2rem 1.5rem;
        margin: 3rem 1rem 0;
    }

    .faq-contact-cta .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .page-content-text {
        padding: 0 1rem;
    }

    .page-content-text h2 {
        font-size: 1.6rem;
        padding-left: 1rem;
    }
}


/* Contact Form 7 integration: style like theme contact form */
.contact-form .wpcf7 { display: block; }
.contact-form .wpcf7 form.wpcf7-form { margin: 0; }
.contact-form .wpcf7-form p { margin: 0 0 1.5rem; }
.contact-form .wpcf7-form label { display: block; margin-bottom: 0.5rem; color: var(--text-white); font-weight: 500; font-size: 0.95rem; }
.contact-form .wpcf7 input[type="text"],
.contact-form .wpcf7 input[type="email"],
.contact-form .wpcf7 input[type="tel"],
.contact-form .wpcf7 input[type="url"],
.contact-form .wpcf7 input[type="number"],
.contact-form .wpcf7 select,
.contact-form .wpcf7 textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid rgba(29, 209, 161, 0.3);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.contact-form .wpcf7 input[type="text"]:focus,
.contact-form .wpcf7 input[type="email"]:focus,
.contact-form .wpcf7 input[type="tel"]:focus,
.contact-form .wpcf7 input[type="url"]:focus,
.contact-form .wpcf7 input[type="number"]:focus,
.contact-form .wpcf7 select:focus,
.contact-form .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}
.contact-form .wpcf7 textarea { min-height: 120px; resize: vertical; }
.contact-form .wpcf7 input::placeholder,
.contact-form .wpcf7 textarea::placeholder { color: var(--text-muted); }
/* Submit button */
.contact-form .wpcf7 input[type="submit"], .contact-form .wpcf7 .wpcf7-submit {
    width: 100%;
    background: var(--accent-gradient);
    color: var(--primary-color);
    padding: 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}
.contact-form .wpcf7 input[type="submit"]:hover, .contact-form .wpcf7 .wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.4);
}
/* Validation and response messages */
.contact-form .wpcf7 .wpcf7-not-valid-tip { color: #f43f5e; font-size: 0.875rem; margin-top: 0.35rem; }
.contact-form .wpcf7 .wpcf7-response-output { margin-top: 1rem; border-radius: 8px; padding: 1rem 1.25rem; border: 1px solid transparent; }
.contact-form .wpcf7 .wpcf7-validation-errors,
.contact-form .wpcf7 .wpcf7-acceptance-missing { background: rgba(244, 63, 94, 0.1); border-color: #f43f5e; color: #f43f5e; }
.contact-form .wpcf7 .wpcf7-mail-sent-ok { background: rgba(29, 209, 161, 0.1); border-color: var(--accent-color); color: var(--accent-color); }
/* Simple notice style for when CF7 is missing */
.form-notice { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1rem; background: rgba(29, 209, 161, 0.08); border: 1px solid rgba(29, 209, 161, 0.35); color: var(--text-white); }


/* Align contact form start with contact-details top on desktop */
@media (min-width: 960px) {
  /* Equalize intro paragraph heights so following boxes align */
  .contact-column .contact-form-lead,
  .contact-info > p {
    min-height: 60px; /* ~2 lines at 1.1rem with 1.7 line-height */
  }
}


/* 404 accents (En Masse) */
.error-404--minimal .hero-text h1 {
  letter-spacing: -0.02em;
  font-weight: 800;
}

.error-404--minimal .hero-text .subtitle {
  color: var(--text-light);
  max-width: 48ch;
}

.hero--404 {
  position: relative;
  min-height: 75vh;
  display: grid;
  align-items: center;
  padding: 8.5rem 0 6rem; /* extra ruimte omdat er geen vaste header is */
  background: radial-gradient(900px 380px at 15% 10%, rgba(255,255,255,0.05), transparent), var(--primary-color);
}

/* Zorg dat CTA’s contrasteren op de donkere pagina */
.error-404--minimal .cta-buttons { gap: 1.5rem; margin-top: 2.25rem; margin-bottom: 3.25rem; }
.error-404--minimal .cta-btn.primary {
  background: var(--accent-color);
  color: var(--secondary-color);
  border-color: transparent;
}
.error-404--minimal .cta-btn.outline {
  color: var(--text-white);
  border-color: rgba(255,255,255,0.6);
}
.error-404--minimal .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}

/* Bigger hit area on 404 buttons */
.error-404--minimal .cta-btn { padding: 1.25rem 2.6rem; }

/* Klein speels AI-element */
.ai-badge {
  font-size: 3rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  filter: grayscale(.1);
  transform: rotate(-8deg);
  transition: transform .2s ease;
}
.ai-badge:hover { transform: rotate(-3deg) scale(1.05); }

.tiny-note { margin-top: .75rem; font-size: .9rem; color: rgba(255,255,255,.7); }


/* 404 layout refinements */
.error-404--minimal .container { max-width: 1100px; }

.hero--404 .hero-content {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero--404 .hero-text { max-width: 60ch; }
.error-404--minimal .hero-text h1 { margin: 0 0 .5rem; line-height: 1.1; }
.error-404--minimal .hero-text .subtitle { margin: .25rem 0 1.25rem; }

.hero--404 .hero-visual { justify-self: start; align-self: center; }

@media (max-width: 960px) {
  .hero--404 { padding: 6rem 0 4rem; }
  .hero--404 .hero-content { grid-template-columns: 1fr; }
  .hero--404 .hero-visual { display: none; }
}

/* tweak tiny-note spacing on 404 */
.error-404--minimal .tiny-note { margin-top: 3.5rem; font-size: .875rem; }


/* ===================================================================
   TEAM & ABOUT SECTIONS
   =================================================================== */

/* Team Approach Section (Homepage) */
.team-approach {
	padding: 6rem 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(29,209,161,0.03) 100%);
}

.team-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.team-image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

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

/* Glassmorphism badge */
.image-badge {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 12px 24px;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--text-white);
	font-size: 0.95rem;
	font-weight: 500;
}

.team-content h2 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-white);
	line-height: 1.2;
}

.team-content > p {
	font-size: 1.15rem;
	color: var(--text-light);
	margin-bottom: 2.5rem;
	line-height: 1.7;
}

/* Approach points */
.approach-points {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.approach-item {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
}

.approach-icon {
	font-size: 2rem;
	line-height: 1;
	flex-shrink: 0;
}

.approach-item strong {
	display: block;
	color: var(--text-white);
	font-size: 1.1rem;
	margin-bottom: 0.25rem;
}

.approach-item p {
	color: var(--text-light);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

/* About Page Hero */
.about-hero {
	padding: 6rem 0;
	background: linear-gradient(135deg, rgba(29,209,161,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.about-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-hero-content h1 {
	font-size: 3.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-white);
	line-height: 1.1;
}

.about-hero-content .subtitle {
	font-size: 1.3rem;
	color: var(--text-light);
	line-height: 1.6;
}

.about-hero-image {
	position: relative;
}

.about-hero-image .rounded-image {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.4);
	transition: transform 0.3s ease;
}

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

/* About Content */
.about-content {
	padding: 4rem 0;
}

.about-content .content-wrapper {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 2.5rem;
	align-items: start;
}

.about-content .about-content-image img,
.about-content .about-content-image .rounded-image {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

@media (max-width: 960px) {
	.about-content .content-wrapper {
		grid-template-columns: 1fr;
	}
}

.about-content p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

/* Team in Action Gallery */
.team-in-action {
	padding: 6rem 0;
	background: rgba(255,255,255,0.02);
}

.team-in-action h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: var(--text-white);
}

.team-gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.gallery-item {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(255,255,255,0.03);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 40px rgba(29,209,161,0.2);
}

.gallery-item img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	display: block;
}

.gallery-caption {
	padding: 1.5rem;
}

.gallery-caption strong {
	display: block;
	color: var(--text-white);
	font-size: 1.15rem;
	margin-bottom: 0.5rem;
}

.gallery-caption p {
	color: var(--text-light);
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0;
}

/* Why En Masse Section */
.why-en-masse {
	padding: 6rem 0;
}

.why-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 4rem;
	align-items: start;
}

.why-content h2 {
	font-size: 2.5rem;
	margin-bottom: 2rem;
	color: var(--text-white);
}

.why-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.why-list li {
	display: flex;
	gap: 1.25rem;
	align-items: flex-start;
}

.why-icon {
	font-size: 2.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.why-list strong {
	display: block;
	color: var(--text-white);
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.why-list p {
	color: var(--text-light);
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

/* Stats cards */
.why-stats {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	position: sticky;
	top: 100px;
}

.stat-card {
	background: rgba(29,209,161,0.08);
	border: 1px solid rgba(29,209,161,0.2);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(29,209,161,0.2);
}

.stat-number {
	font-size: 3rem;
	font-weight: 800;
	color: var(--accent-color);
	line-height: 1;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 1rem;
	color: var(--text-light);
	font-weight: 500;
}

/* Responsive Design */
@media (max-width: 960px) {
	.team-grid,
	.about-hero-grid,
	.why-grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
	
	.team-gallery {
		grid-template-columns: 1fr;
	}
	
	.team-content h2,
	.about-hero-content h1,
	.why-content h2,
	.team-in-action h2 {
		font-size: 2rem;
	}
	
	.why-stats {
		position: static;
		flex-direction: row;
		gap: 1rem;
	}
	
	.stat-card {
		flex: 1;
		padding: 1.5rem 1rem;
	}
	
	.stat-number {
		font-size: 2rem;
	}
	
	.stat-label {
		font-size: 0.875rem;
	}
	
	.image-badge {
		font-size: 0.875rem;
		padding: 10px 18px;
	}
}

@media (max-width: 640px) {
	.team-approach,
	.about-hero,
	.team-in-action,
	.why-en-masse {
		padding: 3rem 0;
	}
	
	.about-hero-content h1 {
		font-size: 2rem;
	}
	
	.about-hero-content .subtitle {
		font-size: 1.1rem;
	}
	
	.why-stats {
		flex-direction: column;
	}
	
	.approach-icon,
	.why-icon {
		font-size: 1.75rem;
	}
}


/* Mobile-specific CTA alignment and sizing tweaks */
@media (max-width: 768px) {
  /* Center hero CTA buttons */
  .flex-buttons { 
    justify-content: center; 
  }
  /* Make buttons a bit larger and easier to tap on mobile */
  .cta-button { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem; 
    padding: 1.1rem 2.6rem; 
  }
  /* Ensure generic CTA buttons on page templates are nicely sized too */
  .cta-btn { 
    font-size: 1.05rem; 
    padding: 1.05rem 2.2rem; 
  }
}

/* --- Mobile/UX polish batch (accessibility, resilience, responsiveness) --- */

/* 1) Hero stacks to one column on smaller screens */
@media (max-width: 960px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text { order: 1; }
  .hero-visual { order: 2; }
}

/* 2) Stack hero CTAs on very narrow screens */
@media (max-width: 400px) {
  .flex-buttons { flex-direction: column; align-items: stretch; }
  .cta-button { width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* 3) Minimum touch target sizes + focus states */
.mobile-nav-links a,
.cta-button,
.cta-btn { min-height: 44px; }

.mobile-nav-links a { padding: 1.1rem 2rem; }

a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.cta-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* 4) Mobile menu resilience */
.mobile-menu { height: 100dvh; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
html.menu-open, body.menu-open { overflow: hidden; }

/* Overlay visibility is handled via .active (already present). */

/* Account for notches */
header { padding-top: calc(1rem + env(safe-area-inset-top)); }

/* 6) Current page highlight in the mobile nav */
.mobile-nav-links .current-menu-item > a,
.mobile-nav-links .current_page_item > a {
  color: var(--accent-color);
  background: rgba(29, 209, 161, 0.08);
}

/* 7) Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* Ensure elements that normally animate in are visible */
  .fade-in,
  .hero-text h1,
  .hero-text .subtitle,
  .hero-text .description,
  .cta-button {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Optional: hide decorative floating elements on narrow screens */
@media (max-width: 480px) {
  .floating-ai { display: none; }
}

/* 8) Anchor link offset for fixed header */
[id] { scroll-margin-top: 90px; }

/* 9) Button style consistency & transitions */
.cta-button.button-outline {
  background: transparent !important;
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
}
.cta-button, .cta-btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }

/* 11) Small visual refinements */
a, button { -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1); }

/* 12) Optional: native smooth scrolling (disabled for reduced-motion users) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
