/**
 * Techpros Marketing v3 — Main Stylesheet
 * Based on Ryan's homepage.html design, optimized for WordPress
 */

/* ==========================================================================
   SELF-HOSTED FONTS
   ========================================================================== */

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Space Grotesk';
    src: url('../fonts/space-grotesk-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    --color-primary: #0B0F19;
    --color-accent: #D4873F;
    --color-accent-hover: #bf7a39;
    --color-secondary: #6B7280;
    --color-bg-warm-white: #FAFAF8;
    --color-bg-warm-gray: #F3F1EE;
    --color-white: #FFFFFF;
    --color-success: #22C55E;
    --color-footer-dark: #060A10;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --section-padding: 140px;
    --container-max: 1200px;
    --grid-gap: 48px;
    --transition: 0.3s ease;
    
    --shadow-card: 0 1px 3px rgba(0,0,0,0.02), 0 4px 8px rgba(0,0,0,0.02), 0 10px 32px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-btn: 4px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-primary);
    background: var(--color-white);
    overflow-x: hidden;
}

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

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
}

.section-label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.15rem;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Grain texture overlay */
.grain::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-btn);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(11,15,25,0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--color-white);
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.02em;
    color: var(--color-white);
}
.logo-text strong {
    font-weight: 700;
}
.logo-text {
    font-weight: 400;
}

/* Blog pages: dark header by default */
.is-blog-single .header,
.blog .header,
.archive .header {
    background: rgba(11,15,25,0.95);
    backdrop-filter: blur(20px);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover { opacity: 1; color: var(--color-accent); }

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
}

.phone-number:hover { opacity: 1; }

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

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

/* ==========================================================================
   HERO — FIXED / STICKY
   ========================================================================== */

.hero {
    position: relative;
    top: 0; left: 0; right: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(11,15,25,0.95) 0%, rgba(11,15,25,0.6) 100%),
        url('../img/hero-bg.avif');
    background-size: cover;
    background-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-text h1 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-ctas {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.trust-strip {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.trust-text {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.15rem;
}

.trust-logos {
    display: flex;
    gap: 2rem;
}

.trust-logo {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ==========================================================================
   PROBLEM STATEMENT
   ========================================================================== */

.problem-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm-white);
    position: relative;
}

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

.problem-quote {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.problem-text {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */

.services-section {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 { color: var(--color-white); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--grid-gap);
}

.service-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color-accent);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,135,63,0.3);
    box-shadow: var(--shadow-card-hover);
}

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

.service-icon {
    width: 48px; height: 48px;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    color: var(--color-white);
}

.service-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.service-stat {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-accent);
}

/* ==========================================================================
   RESULTS
   ========================================================================== */

.results-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm-gray);
}

.results-header {
    text-align: center;
    margin-bottom: 4rem;
}

.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--grid-gap);
    margin-bottom: 6rem;
}

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

.counter-number {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(4rem, 6vw, 6rem);
    color: var(--color-accent);
    line-height: 0.9;
    margin-bottom: 0.15rem;
}

.counter-label {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    position: absolute;
    top: -1rem; left: 3rem;
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.5rem;
}

.author-info h4 { margin-bottom: 0.25rem; }
.author-business { color: var(--color-secondary); font-size: 0.9rem; }
.stars { color: var(--color-accent); margin-top: 0.5rem; }

/* ==========================================================================
   PROCESS
   ========================================================================== */

.process-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm-white);
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-steps {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.process-step:nth-child(even) {
    direction: rtl;
    text-align: right;
}

.process-step:nth-child(even) > * { direction: ltr; }

.step-number {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 6rem;
    color: var(--color-accent);
    opacity: 0.3;
    line-height: 0.8;
}

.step-content h3 { margin-bottom: 0.15rem; }

.step-description {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */

.industries-section {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    color: var(--color-white);
}

.industries-header {
    text-align: center;
    margin-bottom: 4rem;
}

.industries-header h2 { color: var(--color-white); }

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

.industry-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.industry-card:hover { transform: translateY(-4px); }
.industry-card:hover .industry-image { transform: scale(1.1); }

.industry-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.industry-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.industry-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-white);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-warm-gray);
}

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.about-text h2 { margin-bottom: 2rem; }

.about-description {
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section {
    padding: var(--section-padding) 0;
    background:
        linear-gradient(135deg, rgba(11,15,25,0.9) 0%, rgba(11,15,25,0.8) 100%),
        url('../img/hero-bg.avif');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-phone {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 2rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.cta-phone:hover { opacity: 0.8; }

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

.footer {
    background: var(--color-footer-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition);
}

.footer-section a:hover { color: var(--color-accent); }
.footer-tagline { margin-bottom: 1.5rem; font-size: 0.9rem; }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 0.15rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover { color: var(--color-white); }

/* ==========================================================================
   BLOG PAGES
   ========================================================================== */

.blog-hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.blog-hero h1 { color: var(--color-white); margin-bottom: 0.15rem; }
.blog-hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1.2rem; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 4rem 0;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.blog-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.15rem;
    font-size: 0.875rem;
    color: var(--color-secondary);
}

.blog-card-cat {
    background: rgba(212,135,63,0.1);
    color: var(--color-accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.blog-card-content h2 a {
    text-decoration: none;
    transition: var(--transition);
}

.blog-card-content h2 a:hover { color: var(--color-accent); }

.blog-card-content p {
    color: var(--color-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.blog-read-more {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

.blog-read-more:hover { opacity: 0.8; }

.blog-pagination {
    padding: 2rem 0 4rem;
    text-align: center;
}

.blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    transition: var(--transition);
    color: var(--color-primary);
}

.blog-pagination .page-numbers.current {
    background: var(--color-accent);
    color: var(--color-white);
}

.blog-pagination .page-numbers:hover:not(.current) {
    background: var(--color-bg-warm-gray);
}

.blog-empty {
    text-align: center;
    padding: 6rem 0;
}

.blog-empty h2 { margin-bottom: 0.15rem; }
.blog-empty p { color: var(--color-secondary); margin-bottom: 2rem; }

/* Blog Single */
.blog-single-hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0 4rem;
}

.blog-single-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.blog-single-hero h1 {
    color: var(--color-white);
    max-width: 800px;
}

.blog-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.blog-single-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.blog-single-image img {
    width: 100%;
    height: auto;
}

.blog-single-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.blog-single-body h2 { margin: 2rem 0 1rem; }
.blog-single-body h3 { margin: 1.5rem 0 0.75rem; }
.blog-single-body p { margin-bottom: 1.5rem; }
.blog-single-body ul, .blog-single-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.blog-single-body li { margin-bottom: 0.5rem; }
.blog-single-body img { border-radius: var(--radius); margin: 2rem 0; }
.blog-single-body a { color: var(--color-accent); }
.blog-single-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: var(--color-bg-warm-white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.blog-single-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-warm-gray);
}

.blog-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.blog-single-tags .tag {
    background: var(--color-bg-warm-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.blog-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.blog-nav-link {
    text-decoration: none;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--color-bg-warm-white);
    transition: var(--transition);
}

.blog-nav-link:hover { background: var(--color-bg-warm-gray); }

.blog-nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.blog-nav-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.blog-nav-next { text-align: right; }

.blog-single-cta {
    text-align: center;
    padding: 3rem;
    background: var(--color-bg-warm-white);
    border-radius: var(--radius);
    margin: 3rem auto;
    max-width: 800px;
}

.blog-single-cta h3 { margin-bottom: 0.15rem; }
.blog-single-cta p { color: var(--color-secondary); margin-bottom: 1.5rem; }

/* 404 */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
}

.error-page h1 {
    font-size: 8rem;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 0.15rem;
}

.error-page p {
    color: var(--color-secondary);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

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

@media (max-width: 768px) {
    :root { --section-padding: 80px; }
    
    .container { padding: 0 1rem; }
    .mobile-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #0B0F19;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
        z-index: 1001;
        transition: right 0.3s ease;
        display: flex;
    }
    .nav.nav-open { right: 0; }
    .nav .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .header-contact {
        position: fixed;
        bottom: 0;
        right: -280px;
        width: 280px;
        background: #0B0F19;
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        z-index: 1001;
        transition: right 0.3s ease;
        display: flex;
    }
    .header-contact.nav-open { right: 0; }
    .header-contact .btn { text-align: center; }
    
    .mobile-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1000;
    }
    .mobile-overlay.active { display: block; }
    
    .mobile-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content { max-width: 100%; text-align: center; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .trust-strip { text-align: center; }
    .trust-logos { justify-content: center; }
    
    .services-grid,
    .counters-grid,
    .industries-grid { grid-template-columns: 1fr; }
    
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    
    .process-step { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
    .process-step:nth-child(even) { direction: ltr; text-align: center; }
    
    .blog-grid { grid-template-columns: 1fr; }
    .blog-single-nav { grid-template-columns: 1fr; }
    
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-legal { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .btn { padding: 0.875rem 1.5rem; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .quote-mark { left: 1.5rem; font-size: 6rem; }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   DEFAULT PAGE TEMPLATE
   ========================================================================== */

.page-hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8rem 0 4rem;
}

.page-hero h1 { color: var(--color-white); }

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0 6rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

.page-content h2 { margin: 2.5rem 0 1rem; }
.page-content h3 { margin: 2rem 0 0.75rem; }
.page-content p { margin-bottom: 1.5rem; color: var(--color-secondary); }
.page-content ul, .page-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: var(--color-secondary); }
.page-content li { margin-bottom: 0.5rem; }
.page-content a { color: var(--color-accent); }
.page-content strong { color: var(--color-primary); }

/* ==========================================================================
   SITEMAP PAGE
   ========================================================================== */

.sitemap-section { margin-bottom: 3rem; }
.sitemap-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
}
.sitemap-list { list-style: none; padding: 0; }
.sitemap-list li { margin-bottom: 0.5rem; }
.sitemap-list a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}
.sitemap-list a:hover { color: var(--color-accent); }
.sitemap-list .sitemap-date {
    color: var(--color-secondary);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}
