/**
 * CaReMe Page Templates Styles
 * Legal, Product, Blog - SEO optimized
 */

/* ============================================
   SHARED COMPONENTS
   ============================================ */

/* Breadcrumbs – below fixed navbar */
.breadcrumbs {
    padding: calc(1rem + 70px) 0 1rem;
    font-size: 0.85rem;
}
.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}
.breadcrumbs-item a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumbs-item a:hover {
    color: var(--primary);
}
.breadcrumbs-separator {
    color: var(--border);
}
.breadcrumbs-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Page Header */
.page-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}
.page-header-inner {
    max-width: 800px;
}
.page-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 1rem;
}
.page-title {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.page-excerpt {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 640px;
}
.page-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.page-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.page-meta-item svg {
    opacity: 0.6;
}

/* Podsumowanie (AI Summary) Box */
.summary-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
}
.summary-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.summary-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}
.summary-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
}

/* Table of Contents */
.toc {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.toc-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 1rem;
    cursor: pointer;
}
.toc-title svg {
    transition: transform 0.2s;
}
.toc.collapsed .toc-title svg {
    transform: rotate(-90deg);
}
.toc.collapsed .toc-list {
    display: none;
}
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.toc-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--text-main);
    border-radius: 6px;
    transition: all 0.2s;
}
.toc-list a:hover {
    background: var(--bg-white);
    color: var(--primary);
}
.toc-list a.active {
    background: var(--primary);
    color: #fff;
}
.toc-list .toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.85rem;
}

/* Content Area */
.page-content {
    padding: 3rem 0 5rem;
}
.page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 4rem;
    align-items: start;
}
.page-layout.centered {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}
.page-layout-3col {
    grid-template-columns: 240px 1fr 300px;
    gap: 2.5rem;
}

/* Sidebars */
.page-sidebar-left {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.toc-sticky {
    margin-bottom: 0;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.toc-sticky .toc-title {
    font-size: 0.8rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}
.toc-sticky .toc-list { gap: 0.25rem; }
.toc-sticky .toc-list a {
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    border-radius: 6px;
    color: var(--text-muted);
    border-left: 2px solid transparent;
}
.toc-sticky .toc-list a:hover,
.toc-sticky .toc-list a.active {
    color: var(--primary);
    background: var(--primary-light);
    border-left-color: var(--primary);
}
.toc-sticky .toc-list .toc-h3 { padding-left: 1.25rem; font-size: 0.78rem; }

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}
.article-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    scroll-margin-top: 100px;
}
.article-content h3 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 100px;
}
.article-content h4 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover { color: var(--primary-dark); }
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Article FAQ */
.article-faq {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
}
.article-faq-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.article-faq-title svg { color: var(--primary); }
.faq-schema-item { border-bottom: 1px solid var(--border); }
.faq-schema-item:last-child { border-bottom: none; }
.faq-schema-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}
.faq-schema-question svg {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: var(--text-muted);
}
.faq-schema-question[aria-expanded="true"] svg { transform: rotate(180deg); }
.faq-schema-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-schema-answer.open { max-height: 500px; }
.faq-schema-answer p {
    padding-bottom: 1.25rem;
    color: var(--text-main);
    line-height: 1.7;
}

/* Featured Image */
.featured-image {
    position: relative;
    margin: -2rem 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 7;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    margin: 3rem 0;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient, linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%));
    flex-shrink: 0;
    overflow: hidden;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.author-role {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.author-bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Sidebar */
.page-sidebar-right {
    position: sticky;
    top: 100px;
}
.sidebar-widget {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.sidebar-widget-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.sidebar-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-align: center;
}
.sidebar-cta h4 { color: #fff; font-size: 1.1rem; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 0.9rem; opacity: 0.85; margin-bottom: 1rem; }
.sidebar-cta .btn {
    background: #fff;
    color: var(--primary);
    width: 100%;
}
.share-buttons { display: flex; gap: 0.75rem; }
.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-muted);
    transition: all 0.2s;
}
.share-btn:hover { background: var(--primary); color: #fff; }

/* Article tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.article-tag {
    padding: 0.4rem 0.9rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.article-tag:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Legal */
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.legal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.legal-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    width: 100%;
    text-align: left;
}
.legal-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.legal-sidebar-section { margin-bottom: 1.5rem; }
.legal-sidebar-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.legal-version {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    font-size: 0.85rem;
}
.legal-version-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.25rem; }
.legal-version-value { font-weight: 600; color: var(--text-dark); }

/* Info box + Internal links */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin: 1.5rem 0;
}
.info-box.info { background: #eff6ff; border: 1px solid #bfdbfe; }
.info-box-icon { flex-shrink: 0; width: 24px; height: 24px; }
.info-box.info .info-box-icon { color: #3b82f6; }
.info-box-content { font-size: 0.95rem; line-height: 1.6; }
.info-box-content strong { display: block; margin-bottom: 0.25rem; }

.internal-links { margin: 2rem 0; padding: 1.5rem; background: var(--bg-light); border-radius: 12px; }
.internal-links-title { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 1rem; }
.internal-links-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.internal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: all 0.2s;
    text-decoration: none;
}
.internal-link:hover { border-color: var(--primary); color: var(--primary); }
.internal-link svg { opacity: 0.5; }

/* Product Hero */
.product-hero {
    padding: calc(5rem + 70px) 0 5rem;
    background: var(--gradient, linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%));
    color: #fff;
}
.product-hero .breadcrumbs-list { margin-bottom: 2rem; }
.product-hero .breadcrumbs-item { color: rgba(255,255,255,0.7); }
.product-hero .breadcrumbs-item a { color: rgba(255,255,255,0.7); }
.product-hero .breadcrumbs-item.breadcrumbs-current { color: #fff; }
.product-hero .breadcrumbs-separator { color: rgba(255,255,255,0.4); }
.product-hero h1 { color: #fff; font-size: 3rem; }
.product-hero .page-category { color: rgba(255,255,255,0.8); }
.product-hero-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.product-hero-content p { margin: 1.5rem 0 2rem; font-size: 1.2rem; opacity: 0.9; }
.product-hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.product-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}
.product-feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}
.product-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.product-feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.product-feature-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.product-feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 991px) {
    .product-hero-hero-grid { grid-template-columns: 1fr; }
    .product-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .product-features-grid { grid-template-columns: 1fr; }
}

/* Blog Index – Baza wiedzy */
.blog-hero {
    padding: calc(4rem + 70px) 0 3rem;
    background: var(--bg-light);
}
.blog-hero h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}
.blog-hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 500px;
}
.blog-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2rem 0 0;
}
.filter-btn {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-weight: 500;
}
.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.filter-count { font-size: 0.8rem; opacity: 0.7; margin-left: 0.25rem; }

.blog-featured { margin-bottom: 3.5rem; }
.featured-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}
.featured-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.featured-image {
    background: var(--gradient);
    min-height: 320px;
    min-width: 380px;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    flex-shrink: 0;
    overflow: hidden;
}
.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-image-inner { text-align: center; }
.featured-image-inner svg { opacity: 0.6; }
.featured-image-inner p { margin-top: 0.75rem; font-size: 0.85rem; opacity: 0.7; }
.featured-content {
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}
.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.featured-title {
    font-size: 1.85rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}
.featured-title a { color: var(--text-dark); transition: color 0.2s; }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.featured-meta span { display: flex; align-items: center; gap: 0.35rem; }
.featured-cta { margin-top: 1.5rem; }
.featured-cta .btn { display: inline-flex; align-items: center; gap: 0.5rem; }

.newsletter-box {
    background: var(--bg-dark);
    border-radius: 20px;
    padding: 3rem;
    color: #fff;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.newsletter-content h3 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.newsletter-content p {
    opacity: 0.75;
    font-size: 1rem;
    line-height: 1.6;
}
.newsletter-form { display: flex; gap: 0.75rem; }
.newsletter-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1rem;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}

/* Blog Grid (shared with blog index) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.blog-card-image {
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    overflow: hidden;
    display: block;
}
.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-content { padding: 1.5rem; }
.blog-card-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.blog-card-title { font-size: 1.15rem; line-height: 1.4; margin-bottom: 0.75rem; }
.blog-card-title a { color: var(--text-dark); transition: color 0.2s; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .featured-card { flex-direction: column; }
    .featured-image {
        min-height: 200px;
        max-width: 100%;
        min-width: 100%;
    }
    .featured-content { padding: 2rem; }
    .newsletter-box { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* Contact page – pro, enterprise */
.contact-page-header--pro {
    padding-top: calc(4rem + 70px);
    padding-bottom: 0;
    background: linear-gradient(160deg, var(--bg-white) 0%, var(--primary-light) 100%);
}
.contact-hero-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.contact-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contact-response-badge svg { opacity: 0.7; }

.contact-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    padding: 2rem 0;
}
.contact-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.contact-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    margin-bottom: 0.35rem;
}
.contact-stat-value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1;
}
.contact-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.contact-form-col .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.contact-form-col .form-input,
.contact-form-col .form-select {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-white);
}
.contact-form-col .form-input:focus,
.contact-form-col .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 92, 85, 0.08);
}
.contact-form-col .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.contact-form-col .form-group { margin-bottom: 1rem; }
.contact-form-col .contact-submit {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
}
.contact-form-col .contact-submit:hover { background: var(--primary-dark); }
.contact-form-feedback { margin-top: 0.75rem; font-size: 0.85rem; min-height: 1.5em; }
.contact-form-feedback.is-success { color: var(--success); }
.contact-form-feedback.is-error { color: #dc2626; }
.contact-sidebar-col { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-entity-block,
.contact-depts-block {
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.contact-block-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.contact-entity-name { margin-bottom: 0.35rem; font-size: 0.95rem; }
.contact-entity-address { font-style: normal; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 0.75rem; }
.contact-entity-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 1rem;
    font-size: 0.85rem;
}
.contact-entity-details dt { color: var(--text-muted); font-weight: 600; }
.contact-entity-details dd { margin: 0; }
.contact-dept { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.contact-dept:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.contact-dept h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.contact-dept-desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.4; }
.contact-dept-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
    transition: color 0.2s ease;
}
.contact-dept-link svg { opacity: 0.6; flex-shrink: 0; }
.contact-dept-link:hover { color: var(--primary-dark); }

.contact-logos-section { padding: 4rem 0; }
.contact-logos-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.contact-logos-header h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
}
.contact-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.contact-logo-thumb {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}
.contact-logo-item:hover .contact-logo-thumb {
    filter: grayscale(0%);
    opacity: 1;
}

.contact-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-lightbox[hidden] { display: none; }
.contact-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.contact-lightbox.is-open .contact-lightbox-backdrop { opacity: 1; }
.contact-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.contact-lightbox.is-open .contact-lightbox-content {
    transform: scale(1);
    opacity: 1;
}
.contact-lightbox.is-closing .contact-lightbox-backdrop { opacity: 0; }
.contact-lightbox.is-closing .contact-lightbox-content {
    transform: scale(0.85);
    opacity: 0;
}
.contact-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: #fff;
}
.contact-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: background 0.2s ease, transform 0.2s ease;
}
.contact-lightbox-close:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .contact-layout { grid-template-columns: 1fr !important; }
    .contact-form-col .form-row { grid-template-columns: 1fr; }
    .contact-stats { gap: 1.5rem; flex-wrap: wrap; }
    .contact-stat-value { font-size: 1.4rem; }
    .contact-logos-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1rem; }
    .contact-lightbox-close { top: -8px; right: -8px; width: 36px; height: 36px; }
}
@media (max-width: 768px) {
    .blog-hero { padding: calc(3rem + 70px) 0 2rem; }
    .blog-hero h1 { font-size: 2rem; }
    .featured-title { font-size: 1.5rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-box { padding: 2rem; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* Case Study page – pro enterprise */
.cs-hero {
    padding: calc(5rem + 70px) 0 3rem;
    background: linear-gradient(160deg, var(--bg-dark) 0%, #1a3a35 60%, var(--primary) 100%);
    color: #fff;
}
.cs-hero .breadcrumbs-list { margin-bottom: 2rem; }
.cs-hero .breadcrumbs-list a { color: rgba(255,255,255,0.5); }
.cs-hero .breadcrumbs-separator { color: rgba(255,255,255,0.3); }
.cs-hero .breadcrumbs-current { color: rgba(255,255,255,0.8); }
.cs-hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid rgba(197, 166, 134, 0.4);
    border-radius: 20px;
    margin-bottom: 1.25rem;
}
.cs-hero-title {
    font-size: 2.75rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}
.cs-hero-excerpt {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}
.cs-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.cs-stat-item { text-align: center; }
.cs-stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.cs-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-body { padding-top: 4rem; }
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}
.cs-main { display: flex; flex-direction: column; gap: 2.5rem; }
.cs-section {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}
.cs-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.cs-section-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.cs-section-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
}
.cs-section-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.cs-section .article-content { font-size: 0.95rem; line-height: 1.7; color: var(--text-main); }
.cs-section .article-content p { margin-bottom: 1rem; }
.cs-section .article-content ul,
.cs-section .article-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.cs-section .article-content li { margin-bottom: 0.4rem; }

.cs-quote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 2rem;
    position: relative;
    margin: 0;
}
.cs-quote-icon {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    opacity: 0.12;
    color: var(--primary);
}
.cs-quote p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1rem;
}
.cs-quote-author { display: flex; flex-direction: column; gap: 0.15rem; }
.cs-quote-author strong { font-size: 0.9rem; color: var(--text-dark); }
.cs-quote-author span { font-size: 0.8rem; color: var(--text-muted); }

.cs-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: calc(70px + 2rem); }
.cs-client-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.cs-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.cs-client-name { font-size: 1rem; margin-bottom: 0.75rem; }
.cs-client-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.4rem 0;
    border-top: 1px solid var(--border);
}
.cs-meta-label { color: var(--text-muted); font-weight: 500; }
.cs-client-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}
.cs-client-link:hover { color: var(--primary-dark); }

.cs-sidebar-stats {
    background: var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cs-sidebar-stat { text-align: center; }
.cs-sidebar-stat-value {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.cs-sidebar-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}
.cs-feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cs-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cs-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.cs-feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.cs-feature-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.cs-cta-section h2 { color: #fff; font-size: 2.25rem; margin-bottom: 0.75rem; }
.cs-cta-section p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 2rem; }
.cs-cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.cs-cta-secondary {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.cs-cta-secondary:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .cs-hero-title { font-size: 2rem; }
    .cs-stats { gap: 1.5rem; flex-wrap: wrap; }
    .cs-stat-value { font-size: 1.75rem; }
    .cs-grid { grid-template-columns: 1fr; }
    .cs-sidebar { position: static; order: -1; }
    .cs-features-grid { grid-template-columns: 1fr; }
    .cs-cta-section h2 { font-size: 1.75rem; }
}

/* Archive + category + taxonomy */
.archive-hero {
    padding: calc(4rem + 70px) 0 3rem;
    background: var(--bg-light);
}
.archive-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
}
.archive-hero p {
    color: var(--text-muted);
    max-width: 760px;
}
.taxonomy-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
}
.taxonomy-pills-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-right: 0.35rem;
}
.taxonomy-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text-main);
    font-size: 0.82rem;
    transition: all 0.2s ease;
}
.taxonomy-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.archive-grid-cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.case-archive-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}
.case-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.case-archive-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: rgba(255,255,255,0.75);
}
.case-archive-stat {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}
.case-archive-stat-value {
    display: block;
    font-size: 1.4rem;
    line-height: 1;
    font-family: var(--font-serif);
    color: var(--primary);
}
.case-archive-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.archive-pagination {
    margin-top: 2rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}
.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    padding: 0 0.75rem;
    font-size: 0.85rem;
}
.archive-pagination .page-numbers.current {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}
@media (max-width: 992px) {
    .archive-grid-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .archive-grid-cases { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 991px) {
    .page-layout-3col { grid-template-columns: 1fr; }
    .page-sidebar-left { position: static; order: -1; }
    .page-sidebar-right { position: static; }
}
@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .author-box { flex-direction: column; text-align: center; }
    .author-avatar { margin: 0 auto; }
}
