/*
Theme Name: Sync-On Theme
Theme URI: https://sync-on.ca
Author: Sync-On
Author URI: https://sync-on.ca
Description: A modern SaaS/Tech style theme inspired by Timeweb.cloud, featuring Dark/Light mode.
Version: 1.1.0
License: Proprietary
Text Domain: sync-on
*/

:root {
    /* --- Base Variables (Light Mode Default) --- */
    
    /* Brand Colors */
    --color-primary: #2563EB; /* Bright Tech Blue */
    --color-primary-hover: #1D4ED8;
    
    /* Backgrounds */
    --color-bg-body: #FFFFFF;
    --color-bg-surface: #F8FAFC; /* Slate 50 */
    --color-bg-card: #FFFFFF;
    
    /* Text */
    --color-text-main: #0F172A; /* Slate 900 */
    --color-text-secondary: #475569; /* Slate 600 */
    --color-text-muted: #94A3B8; /* Slate 400 */
    
    /* Borders */
    --color-border: #E2E8F0; /* Slate 200 */
    
    /* UI Elements */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Button Settings */
    --btn-radius: 8px; /* Global button radius */
    --btn-border-width: 1px;
    --btn-font-weight: 600;
    --btn-padding-x: 24px;
    --btn-padding-y: 12px;
    
    /* Button Clors (Solid) */
    --btn-solid-bg: var(--color-primary);
    --btn-solid-text: #FFFFFF;
    --btn-solid-hover-bg: var(--color-primary-hover);
    
    /* Button Colors (Outline) */
    --btn-outline-border: var(--color-primary);
    --btn-outline-text: var(--color-primary);
    --btn-outline-hover-bg: var(--color-primary); /* Fills on hover usually */
    --btn-outline-hover-text: #FFFFFF;
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 64px;
    --font-family-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Dark Mode Overrides --- */
[data-theme="dark"] {
    /* Brand Colors (Adjusted for dark) */
    --color-primary: #3B82F6; /* Lighter Blue */
    --color-primary-hover: #60A5FA;
    
    /* Backgrounds */
    --color-bg-body: #0F172A; /* Slate 900 - Deep Navy */
    --color-bg-surface: #1E293B; /* Slate 800 */
    --color-bg-card: #1E293B; 
    
    /* Text */
    --color-text-main: #F8FAFC; /* Slate 50 */
    --color-text-secondary: #CBD5E1; /* Slate 300 */
    --color-text-muted: #64748B; /* Slate 500 */
    
    /* Borders */
    --color-border: #334155; /* Slate 700 */
    
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-family-main);
    font-size: 16px;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1.5em;
    color: var(--color-text-secondary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-primary-hover);
}

/* Layout Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background-color: var(--color-bg-body);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

/* Branding */
.site-branding {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-title a {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

/* Desktop Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: var(--color-text-main);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    /* margin-left: 24px; Removed in favor of flex gap in container */
}

#theme-toggle:hover {
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    border-color: var(--color-text-muted);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Main Content */
.site-main {
    padding: 60px 0;
}

.home .site-main {
    padding: 0px 0;
}

article {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-card);
}

.entry-title {
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background-color: var(--color-bg-surface);
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

/* Main Footer Grid */
.footer-main {
    padding: 80px 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer Brand Column */
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.social-icon:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer Columns */
.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    margin: 0 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Newsletter Form */
.footer-newsletter p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--btn-radius);
    background: var(--color-bg-body);
    color: var(--color-text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.newsletter-form .btn {
    flex-shrink: 0;
    padding: 12px 20px;
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Footer Bottom Bar */
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-legal a:hover {
    color: var(--color-text-main);
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Button Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    font-weight: var(--btn-font-weight);
    cursor: pointer;
    transition: all 0.2s ease;
    border: var(--btn-border-width) solid transparent;
    line-height: 1.2;
    text-decoration: none;
}

.btn-solid {
    background-color: var(--btn-solid-bg);
    color: var(--btn-solid-text);
    border-color: var(--btn-solid-bg);
}

.btn-solid:hover {
    background-color: var(--btn-solid-hover-bg);
    border-color: var(--btn-solid-hover-bg);
    color: var(--btn-solid-text);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--btn-outline-border);
    color: var(--btn-outline-text);
}

.btn-outline:hover {
    background-color: var(--btn-outline-hover-bg);
    border-color: var(--btn-outline-hover-bg);
    color: var(--btn-outline-hover-text);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top center, var(--color-bg-surface) 0%, var(--color-bg-body) 70%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text-main) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--color-text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

/* Masonry Grid Layout */
.masonry-grid {
    column-count: 3;
    column-gap: 32px;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 32px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none; /* Reset generic article style */
}

/* Post Card Styling */
.post-card-inner {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.post-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

/* Thumbnail Area */
.post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-inner:hover .post-thumbnail img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Category Badge */
.post-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
}

.post-category-badge a {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--color-text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.2s;
}

[data-theme="dark"] .post-category-badge a {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.post-category-badge a:hover {
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
}

/* Content Area */
.post-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.entry-header .entry-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.entry-header .entry-title a {
    color: var(--color-text-main);
    transition: color 0.2s;
}

.entry-header .entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.entry-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Footer & Tags */
.entry-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.tags-list a {
    color: var(--color-text-muted);
    margin-right: 8px;
    font-weight: 500;
}

.tags-list a:before {
    content: '#';
    opacity: 0.6;
}

.tags-list a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.read-more-link {
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Feature 3 Animation (Flip Concept - Applied to specific classes if needed, or standardized) */
/* Ideally we'd use a class like .has-flip-effect, but for now we applied a nice lift/zoom. */

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

/* Stagger Animations */
.masonry-item:nth-child(1) { animation-delay: 0.1s; }
.masonry-item:nth-child(2) { animation-delay: 0.2s; }
.masonry-item:nth-child(3) { animation-delay: 0.3s; }
.masonry-item:nth-child(4) { animation-delay: 0.4s; }
.masonry-item:nth-child(5) { animation-delay: 0.5s; }
.masonry-item:nth-child(6) { animation-delay: 0.6s; }


/* --- Mobile Menu & Header Fixes --- */

/* Responsive Display Logic */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-only {
        display: none !important;
    }
}

/* 3. Hamburger Button */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--color-border);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-main);
}

.hamburger-box {
    width: 24px;
    height: 20px; /* reduced height to keep bars tighter */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-inner, 
.hamburger-inner::before, 
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.2s ease;
}

.hamburger-inner { display: block; top: 50%; transform: translateY(-50%); }
.hamburger-inner::before { content: ""; top: -8px; left: 0; } /* Spacing for bars */
.hamburger-inner::after { content: ""; bottom: -8px; left: 0; }

/* Active Hamburger Animation (X shape) */
.menu-toggle.active .hamburger-inner { background-color: transparent; }
.menu-toggle.active .hamburger-inner::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger-inner::after { bottom: 0; transform: rotate(-45deg); }


/* 4. Mobile Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: var(--header-height); /* Starts right below header */
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg-body);
    border-top: 1px solid var(--color-border);
    transform: translateX(100%); /* Hidden by default */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-drawer.active {
    transform: translateX(0); /* Slide in */
}

/* 5. Mobile Menu Styling */
.mobile-menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-content ul li {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px;
}
.mobile-menu-content ul li:last-child {
    border-bottom: none;
}

.mobile-menu-content a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    display: block;
}

header.site-header {
    background-color: var(--color-bg-body) !important; /* Force solid background */
}


/* ============================================
   FRONT PAGE STYLES — Grid Layout + Scroll Reveal
   ============================================ */

/* ─── Scroll Reveal Animation System ─── */
[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Section Utilities ─── */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

.section-kicker,
.hero-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    margin-bottom: 14px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .section-kicker,
[data-theme="dark"] .hero-kicker {
    background: rgba(59, 130, 246, 0.15);
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.front-page .hero-section {
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--color-bg-surface) 0%, var(--color-bg-body) 100%);
}

.hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .hero-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.front-page .hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
    background: linear-gradient(135deg, var(--color-text-main) 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.front-page .hero-subtitle {
    font-size: 1.15rem;
    max-width: 540px;
    margin: 0 auto 36px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.front-page .hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .front-page .hero-section { padding: 60px 0 50px; }
    .front-page .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
}

/* ═══════════════════════════════════════════
   SOLUTIONS GRID
   ═══════════════════════════════════════════ */
.solutions-section {
    padding: 80px 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .solutions-grid { grid-template-columns: 1fr; }
}

/* Solution Card */
.sol-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.sol-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.sol-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
    border-color: var(--color-primary);
    color: inherit;
}

.sol-card:hover::before {
    opacity: 1;
}

/* Featured card — spans 2 columns */
.sol-card--featured {
    grid-column: span 2;
    grid-row: span 2;
    padding: 40px;
    background: linear-gradient(160deg, var(--color-bg-card) 0%, var(--color-bg-surface) 100%);
}

@media (max-width: 560px) {
    .sol-card--featured {
        grid-column: span 1;
        grid-row: span 1;
        padding: 30px;
    }
}

.sol-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.sol-card--featured .sol-card__icon {
    font-size: 2.6rem;
    margin-bottom: 22px;
}

.sol-card__title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.sol-card--featured .sol-card__title {
    font-size: 1.5rem;
}

.sol-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.sol-card--featured .sol-card__desc {
    font-size: 1rem;
}

.sol-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: auto;
    transition: gap 0.25s ease;
}

.sol-card:hover .sol-card__link {
    gap: 10px;
}

/* ═══════════════════════════════════════════
   SHOWCASE SECTION  (Case + Stats)
   ═══════════════════════════════════════════ */
.showcase-section {
    padding: 0 0 20px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .showcase-grid { grid-template-columns: 1fr; }
}

/* Shared Showcase Card */
.showcase-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

a.showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px -10px rgba(37, 99, 235, 0.12);
    border-color: var(--color-primary);
    color: inherit;
}

.showcase-card__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(37, 99, 235, 0.08);
    margin-bottom: 16px;
    align-self: flex-start;
}

[data-theme="dark"] .showcase-card__label {
    background: rgba(59, 130, 246, 0.15);
}

.showcase-card__title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.showcase-card__desc {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.showcase-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: gap 0.25s ease;
}

a.showcase-card:hover .showcase-card__cta {
    gap: 10px;
}

/* ── Stats Card ── */
.showcase-card--stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 24px;
}

.stat-block {
    text-align: center;
    padding: 24px 16px;
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.1);
}

.stat-block__value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-block__label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   BOTTOM GRID  (Project + Advantages)
   ═══════════════════════════════════════════ */
.bottom-grid-section {
    padding: 0 0 80px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .bottom-grid { grid-template-columns: 1fr; }
}

/* ── Advantages Card ── */
.showcase-card--advantages {
    padding: 36px;
}

.showcase-card--advantages .showcase-card__title {
    margin-bottom: 24px;
}

.adv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .adv-grid { grid-template-columns: 1fr; }
}

.adv-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--color-bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.08);
}

.adv-item__icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.adv-item strong {
    display: block;
    font-size: 0.92rem;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.adv-item span {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
}

/* ═══════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════ */
.cta-section {
    padding: 20px 0 100px;
}

.cta-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    pointer-events: none;
}

.cta-block h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    position: relative;
}

.cta-block p {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 0.95rem;
}

/* ─── Footer Contact Info (keep) ─── */
.footer-contact-info {
    margin-bottom: 16px;
}

.footer-contact-info p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
}

.footer-contact-info a {
    color: var(--color-primary);
    font-weight: 500;
}

/* ─── Mobile Fine-tuning ─── */
@media (max-width: 560px) {
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.6rem; }
    .solutions-section { padding: 60px 0; }
    .showcase-card { padding: 28px; }
    .cta-block { padding: 40px 24px; }
    .cta-block h2 { font-size: 1.5rem; }
}

/* ═══════════════════════════════════════════
   ARCHIVE PAGES  (Cases / Solutions / Projects)
   ═══════════════════════════════════════════ */

/* Archive Header */
.archive-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
    padding-top: 40px;
}

.archive-title {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.archive-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .cases-grid { grid-template-columns: 1fr; }
}

/* Case Card */
.case-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(37, 99, 235, 0.15);
    border-color: var(--color-primary);
    color: inherit;
}

.case-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-surface);
}

.case-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-card__thumb img {
    transform: scale(1.05);
}

.case-card__body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card__title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--color-text-main);
}

.case-card__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 16px;
}

.case-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: gap 0.25s ease;
}

.case-card:hover .case-card__cta {
    gap: 10px;
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */
.contact-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.contact-rocket {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

.rocket-emoji {
    font-size: 4rem;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.contact-rocket h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--color-primary), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.contact-hint {
    display: block;
    margin-top: 18px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════
   SINGLE SOLUTION LAYOUT
   ═══════════════════════════════════════════ */
.solution-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.solution-sidebar {
    min-width: 0;
}

.solution-sidebar .highlight-box {
    overflow-wrap: break-word;
    word-break: break-word;
}

.solution-main img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .solution-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
