/*
Theme Name: M-Tech South East 2026
Theme URI: https://mtechse.co.uk
Author: Jim Dixon
Author URI: https://mtechse.co.uk
Description: A professional WordPress theme for M-Tech South East Ltd, a car mechanic garage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtechse-2026
Tags: custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, threaded-comments
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Brand colours */
    --color-primary:     #e63329; /* M-Tech red */
    --color-primary-dark: #b5251d;
    --color-secondary:   #1a1a1a; /* Near-black */
    --color-accent:      #f5a623; /* Warning amber */
    --color-bg:          #111111;
    --color-surface:     #1e1e1e;
    --color-surface-alt: #252525;
    --color-border:      #2e2e2e;
    --color-text:        #e0e0e0;
    --color-text-muted:  #888888;
    --color-white:       #ffffff;

    /* Typography */
    --font-heading: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'Courier New', monospace;

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1280px;
    --container-padding: 1.25rem;
    --header-height: 80px;

    /* Effects */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
    --transition: 0.2s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--color-white);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--space-md);
    max-width: 70ch;
}

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

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

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

ul, ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

strong { color: var(--color-white); }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-xl); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(230,51,41,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-secondary);
    border-color: var(--color-accent);
}
.btn-accent:hover {
    background: #d4901f;
    border-color: #d4901f;
    color: var(--color-secondary);
}

/* ==========================================================================
   Site Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(17,17,17,0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: var(--space-xl);
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.custom-logo {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 0;
}

.site-title a {
    color: var(--color-white);
    text-decoration: none;
}

.site-title a span {
    color: var(--color-primary);
}

.site-description {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 0;
    max-width: none;
}

/* Primary Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: var(--space-xs);
}

.main-navigation ul li a {
    display: block;
    padding: 0.5rem var(--space-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a {
    color: var(--color-white);
    background: var(--color-surface-alt);
}

/* Dropdown */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul li ul li a {
    border-radius: 0;
    padding: 0.5rem var(--space-lg);
    font-size: 0.9rem;
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

/* Mobile hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    .header-cta { display: none; }

    .main-navigation {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-md);
    }

    .main-navigation.is-open { display: flex; }

    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: var(--space-xs);
    }

    .main-navigation ul li { width: 100%; }
    .main-navigation ul li a { padding: 0.75rem var(--space-md); }

    .main-navigation ul li ul {
        position: static;
        display: flex;
        border: none;
        box-shadow: none;
        padding-left: var(--space-md);
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-secondary);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(17,17,17,0.95) 0%,
        rgba(17,17,17,0.7) 50%,
        rgba(230,51,41,0.15) 100%
    );
}

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

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--color-primary);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--space-lg);
    line-height: 0.95;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    max-width: 55ch;
    line-height: 1.6;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-badge {
    position: absolute;
    bottom: var(--space-2xl);
    right: var(--container-padding);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
}

.hero-badge .badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.hero-badge .badge-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */

.section {
    padding-block: var(--space-4xl);
}

.section-sm {
    padding-block: var(--space-2xl);
}

.section-dark {
    background: var(--color-secondary);
}

.section-surface {
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-header .eyebrow::before,
.section-header .eyebrow::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--color-primary);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 55ch;
    margin-inline: auto;
}

/* ==========================================================================
   Services Cards
   ========================================================================== */

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(230,51,41,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    font-size: 1.75rem;
    transition: background var(--transition);
}

.service-card:hover .service-icon {
    background: rgba(230,51,41,0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-card .card-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.service-card .card-link::after {
    content: '→';
    transition: transform var(--transition);
}

.service-card:hover .card-link::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Why Choose Us / Features
   ========================================================================== */

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    border-right: 1px solid var(--color-border);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-item-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.feature-item-text span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-item:nth-child(2) {
        border-right: none;
    }
    .feature-item:nth-child(1),
    .feature-item:nth-child(2) {
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 500px) {
    .feature-strip { grid-template-columns: 1fr; }
    .feature-item { border-right: none !important; border-bottom: 1px solid var(--color-border); }
    .feature-item:last-child { border-bottom: none; }
}

/* ==========================================================================
   Stats Bar
   ========================================================================== */

.stats-bar {
    background: var(--color-primary);
    padding-block: var(--space-2xl);
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    display: block;
}

.stat-item .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.75);
    margin-top: var(--space-xs);
    display: block;
}

@media (max-width: 640px) {
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.testimonial-stars {
    color: var(--color-accent);
    font-size: 1rem;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.testimonial-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.testimonial-author-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-white);
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Contact / CTA Band
   ========================================================================== */

.cta-band {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1a0a09 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-4xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,51,41,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-band h2 {
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-band p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
    position: relative;
}

.cta-band .cta-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    position: relative;
}

.cta-phone {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.cta-phone a {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.cta-phone a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    background: var(--color-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-main {
    padding-block: var(--space-4xl);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-brand .footer-logo {
    height: 44px;
    margin-bottom: var(--space-md);
}

.footer-brand .footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
    max-width: 30ch;
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: var(--color-text);
    font-size: 0.9rem;
    transition: color var(--transition);
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-contact-item {
    display: flex;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.footer-contact-item .contact-icon {
    color: var(--color-primary);
    flex-shrink: 0;
    width: 1.1em;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: none;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

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

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

/* ==========================================================================
   WordPress Core
   ========================================================================== */

/* Alignments */
.alignleft  { float: left; margin-right: var(--space-lg); margin-bottom: var(--space-md); }
.alignright { float: right; margin-left: var(--space-lg); margin-bottom: var(--space-md); }
.aligncenter { display: block; margin-inline: auto; margin-bottom: var(--space-md); }
.alignwide  { max-width: 1100px; margin-inline: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

/* WP Caption */
.wp-caption { max-width: 100%; margin-bottom: var(--space-md); }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; padding-top: var(--space-xs); }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}
.comment-meta { margin-bottom: var(--space-md); font-size: 0.85rem; color: var(--color-text-muted); }
.comment-content p { max-width: none; }
.reply a { font-size: 0.85rem; font-weight: 600; color: var(--color-primary); }

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    padding: 0.75rem var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.form-group { margin-bottom: var(--space-lg); }

/* Screen reader */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: var(--space-sm);
    z-index: 999;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: var(--space-sm);
}

/* Pagination */
.pagination {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

/* Posts */
.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition);
}

.post-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: var(--space-lg);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

.post-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
}

.post-card-body h3 a {
    color: var(--color-white);
}

.post-card-body h3 a:hover { color: var(--color-primary); }

.post-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

/* Breadcrumbs */
.breadcrumbs {
    padding-block: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs ol li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.breadcrumbs ol li:not(:last-child)::after {
    content: '/';
    color: var(--color-border);
}

.breadcrumbs ol li a {
    color: var(--color-text-muted);
}

.breadcrumbs ol li a:hover { color: var(--color-primary); }
.breadcrumbs ol li:last-child { color: var(--color-text); }

/* Page header */
.page-header {
    background: var(--color-surface);
    padding-block: var(--space-3xl);
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 { margin-bottom: var(--space-sm); }
.page-header p { color: var(--color-text-muted); }

/* Utility */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.w-full { width: 100%; }
