/**
 * Aya Sameh Portfolio Theme - Main Stylesheet
 * 
 * Table of Contents:
 * 1. CSS Variables
 * 2. Reset & Base
 * 3. Typography
 * 4. Layout
 * 5. Components
 * 6. Header & Navigation
 * 7. Footer
 * 8. Hero Section
 * 9. Cards
 * 10. Sections
 * 11. Forms
 * 12. Blog
 * 13. Utilities
 */

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Colors */
    --color-navy: #002D5B;
    --color-coral: #EC5B53;
    --color-white: #FFFFFF;
    --color-off-white: #F7F9FC;
    --color-dark: #0B1220;
    --color-border: #E6EAF2;
    --color-text: #0B1220;
    --color-text-light: #5A6678;
    
    /* Typography */
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-arabic: system-ui, "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3rem;
    --text-6xl: 4rem;
    
    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.375;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    --leading-loose: 2;
    
    /* Spacing */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--text-lg);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* RTL Support */
html[dir="rtl"] body,
body.rtl {
    font-family: var(--font-arabic);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* Remove default list styles */
ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Links */
a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-coral);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    z-index: var(--z-modal);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--leading-tight);
    color: var(--color-navy);
    margin-top: 0;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
}

h2 {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
}

h6 {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--color-text-light);
}

strong,
b {
    font-weight: 600;
}

small {
    font-size: var(--text-sm);
}

blockquote {
    margin: var(--space-xl) 0;
    padding-left: var(--space-lg);
    border-left: 4px solid var(--color-coral);
    font-style: italic;
    color: var(--color-text-light);
}

html[dir="rtl"] blockquote {
    padding-left: 0;
    padding-right: var(--space-lg);
    border-left: none;
    border-right: 4px solid var(--color-coral);
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.site-main {
    min-height: 50vh;
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-xl);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* Flexbox utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--space-sm);
}

.gap-md {
    gap: var(--space-md);
}

.gap-lg {
    gap: var(--space-lg);
}

.gap-xl {
    gap: var(--space-xl);
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

.btn--primary {
    background-color: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}

.btn--secondary:hover,
.btn--secondary:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.btn--text {
    background: none;
    border: none;
    color: var(--color-navy);
    padding: var(--space-xs) 0;
}

.btn--text:hover,
.btn--text:focus {
    color: var(--color-coral);
}

.btn--large {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-lg);
}

.btn--small {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
}

/* Tags / Badges */
.tag {
    display: inline-block;
    padding: var(--space-2xs) var(--space-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--color-off-white);
    color: var(--color-navy);
    border-radius: var(--radius-sm);
}

/* Icons */
.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon--sm {
    width: 16px;
    height: 16px;
}

.icon--lg {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   6. Header & Navigation
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: var(--space-xl);
}

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

.site-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
}

.site-title:hover {
    color: var(--color-coral);
}

/* Main Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    position: relative;
    font-weight: 500;
    color: var(--color-dark);
    padding: var(--space-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-coral);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.nav-menu .current-menu-item a {
    color: var(--color-coral);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: var(--space-lg);
}

html[dir="rtl"] .language-switcher {
    margin-left: 0;
    margin-right: var(--space-lg);
}

.language-switcher__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--color-navy);
    transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.language-switcher__toggle:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
}

.language-switcher__toggle:focus-visible {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(236, 91, 83, 0.2);
}

.language-switcher__toggle svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.language-switcher__toggle:hover svg {
    opacity: 1;
}

.language-switcher__dropdown {
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    min-width: 140px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
    z-index: var(--z-dropdown);
}

html[dir="rtl"] .language-switcher__dropdown {
    right: auto;
    left: 0;
}

.language-switcher:hover .language-switcher__dropdown,
.language-switcher:focus-within .language-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-switcher__dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-dark);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.language-switcher__dropdown a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.language-switcher__dropdown a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.language-switcher__dropdown a:hover {
    background: var(--color-off-white);
    color: var(--color-coral);
}

.language-switcher__dropdown a[aria-current="true"] {
    background: var(--color-off-white);
    color: var(--color-coral);
    font-weight: 600;
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    padding: var(--space-xs);
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-3xl) var(--space-xl);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: var(--z-modal);
    }
    
    html[dir="rtl"] .main-navigation {
        right: auto;
        left: -100%;
        transition: left var(--transition-normal);
    }
    
    .main-navigation.is-open {
        right: 0;
    }
    
    html[dir="rtl"] .main-navigation.is-open {
        right: auto;
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
        width: 100%;
    }
    
    .nav-menu a {
        font-size: var(--text-xl);
    }
    
    .language-switcher {
        margin-left: 0;
        margin-top: var(--space-xl);
        width: 100%;
    }
    
    .language-switcher__toggle {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-lg);
    }
    
    html[dir="rtl"] .language-switcher {
        margin-right: 0;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-normal), visibility var(--transition-normal);
        z-index: var(--z-modal-backdrop);
    }
    
    .nav-overlay.is-visible {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: var(--space-3xl) 0 var(--space-xl);
    }
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
}

@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    grid-column: span 1;
}

.footer-brand .site-title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-base);
}

.footer-nav h4,
.footer-social h4 {
    color: var(--color-white);
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-coral);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    background: var(--color-coral);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: var(--space-3xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */

.hero {
    padding: var(--space-4xl) 0;
    background-color: var(--color-off-white);
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0;
    }
}

.hero--home {
    padding: var(--space-5xl) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero--home {
        padding: var(--space-3xl) 0;
    }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero__content {
    max-width: 600px;
}

@media (max-width: 1024px) {
    .hero__content {
        max-width: 100%;
        margin: 0 auto;
    }
}

.hero__title {
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: var(--text-2xl);
    color: var(--color-coral);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.hero__description {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

@media (max-width: 1024px) {
    .hero__cta {
        justify-content: center;
    }
}

/* Hero centered (no image): single column, text and CTA centered */
.hero--centered .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
}

.hero--centered .hero__content {
    max-width: 640px;
    margin: 0 auto;
}

.hero--centered .hero__cta {
    justify-content: center;
}

.hero__image {
    position: relative;
}

.hero__image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* Page Hero (smaller) */
.page-hero {
    padding: var(--space-3xl) 0;
    background-color: var(--color-off-white);
    text-align: center;
}

.page-hero__title {
    margin-bottom: var(--space-md);
}

.page-hero__description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-light);
}

/* ==========================================================================
   9. Cards
   ========================================================================== */

/* Service Card */
.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.service-card:hover {
    border-color: var(--color-coral);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.service-card__title a {
    color: var(--color-navy);
}

.service-card__title a:hover {
    color: var(--color-coral);
}

.service-card__description {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: var(--leading-relaxed);
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    color: var(--color-coral);
}

.service-card__link:hover {
    color: var(--color-navy);
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.portfolio-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-off-white);
    transition: transform var(--transition-slow);
}

.portfolio-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--color-navy);
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.05);
}

.portfolio-card__content {
    padding: var(--space-lg);
}

.portfolio-card__tag {
    margin-bottom: var(--space-sm);
}

.portfolio-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.portfolio-card__title a {
    color: var(--color-navy);
}

.portfolio-card__title a:hover {
    color: var(--color-coral);
}

.portfolio-card__teaser {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Blog/Post Card */
.post-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.post-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.post-card__thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__thumbnail img {
    transform: scale(1.05);
}

.post-card__content {
    padding: var(--space-lg);
}

.post-card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    line-height: var(--leading-snug);
}

.post-card__title a {
    color: var(--color-navy);
}

.post-card__title a:hover {
    color: var(--color-coral);
}

.post-card__excerpt {
    color: var(--color-text-light);
    font-size: var(--text-base);
    margin-bottom: var(--space-md);
}

.post-card__meta {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonial Card */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-card__quote {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-left: var(--space-xl);
}

html[dir="rtl"] .testimonial-card__quote {
    padding-left: 0;
    padding-right: var(--space-xl);
}

.testimonial-card__quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: var(--text-5xl);
    color: var(--color-coral);
    font-family: Georgia, serif;
    line-height: 1;
}

html[dir="rtl"] .testimonial-card__quote::before {
    left: auto;
    right: 0;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.testimonial-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--color-navy);
}

.testimonial-card__position {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ==========================================================================
   10. Sections
   ========================================================================== */

.section {
    padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

.section--alt {
    background-color: var(--color-off-white);
}

.section--navy {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
    color: var(--color-white);
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section__title {
    margin-bottom: var(--space-md);
}

.section__description {
    color: var(--color-text-light);
    font-size: var(--text-lg);
}

/* Values Section (About page) */
.values-section .section__header {
    margin-bottom: var(--space-3xl);
}

.values-section .grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.value-item {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.value-item:hover {
    border-color: rgba(236, 91, 83, 0.3);
    box-shadow: var(--shadow-md);
}

.value-item__title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-coral);
    margin: 0 0 var(--space-md);
    line-height: var(--leading-tight);
}

.value-item__description {
    margin: 0;
    color: var(--color-text-light);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

@media (max-width: 1024px) {
    .values-section .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .values-section .grid--3 {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .value-item {
        padding: var(--space-lg) var(--space-md);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-lg);
}

.process-steps--4col {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-steps--4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .process-steps,
    .process-steps--4col {
        grid-template-columns: 1fr;
    }
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-coral);
    color: var(--color-white);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
}

.process-step__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.process-step__description {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* Experience Fields Section (Home) */
.experience-fields-section .section__header {
    margin-bottom: var(--space-2xl);
}

.experience-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
}

.experience-field-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    text-decoration: none;
    color: var(--color-navy);
    transition: border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.experience-field-card:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
    box-shadow: var(--shadow-md);
}

.experience-field-card__name {
    font-weight: 600;
    font-size: var(--text-lg);
}

.experience-field-card__count {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.experience-field-card:hover .experience-field-card__count {
    color: var(--color-coral);
}

@media (max-width: 640px) {
    .experience-fields-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .experience-field-card {
        padding: var(--space-lg) var(--space-md);
    }

    .experience-field-card__name {
        font-size: var(--text-base);
    }
}

/* Skills Section (Home) - two rows, auto-scroll */
.skills-section .section__header {
    margin-bottom: var(--space-2xl);
}

.skills-rows {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    overflow: hidden;
}

.skills-row {
    overflow: hidden;
    width: 100%;
}

.skills-track {
    overflow: hidden;
    width: 100%;
}

.skills-track__inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: max-content;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    will-change: transform;
}

.skills-row--left .skills-track__inner {
    animation-name: skills-scroll-left;
    animation-duration: 50s;
}

.skills-row--right .skills-track__inner {
    animation-name: skills-scroll-right;
    animation-duration: 50s;
}

/* 3 copies: move by one third for seamless infinite loop */
@keyframes skills-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes skills-scroll-right {
    0% {
        transform: translateX(-33.333%);
    }
    100% {
        transform: translateX(0);
    }
}

.skill-tag {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .skills-rows {
        gap: var(--space-sm);
    }

    .skills-track__inner {
        gap: var(--space-sm);
    }

    .skills-row--left .skills-track__inner {
        animation-duration: 40s;
    }

    .skills-row--right .skills-track__inner {
        animation-duration: 40s;
    }

    .skill-tag {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-sm);
    }
}

/* CTA Strip */
.cta-strip {
    background-color: var(--color-coral);
    color: var(--color-white);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.cta-strip__title {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.cta-strip .btn--primary {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-navy);
}

.cta-strip .btn--primary:hover {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

/* ==========================================================================
   11. Forms
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-base);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(236, 91, 83, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-sm) center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: var(--space-2xl);
}

html[dir="rtl"] .form-select {
    background-position: left var(--space-sm) center;
    padding-right: var(--space-md);
    padding-left: var(--space-2xl);
}

.form-error {
    color: var(--color-coral);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   12. Blog
   ========================================================================== */

/* Single Post - only the article, not the body (body also gets .single-post from WordPress) */
article.single-post {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg);
}

.single-post__header {
    margin-bottom: var(--space-2xl);
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
}

.single-post__title {
    margin-bottom: var(--space-lg);
}

.single-post__featured-image {
    margin-bottom: var(--space-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post__featured-image img {
    width: 100%;
    height: auto;
}

.single-post__content {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.single-post__content p {
    margin-bottom: var(--space-lg);
}

.single-post__content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.single-post__content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

html[dir="rtl"] .single-post__content ul,
html[dir="rtl"] .single-post__content ol {
    padding-left: 0;
    padding-right: var(--space-xl);
}

.single-post__content li {
    margin-bottom: var(--space-xs);
}

.single-post__content ul li {
    list-style-type: disc;
}

.single-post__content ol li {
    list-style-type: decimal;
}

/* Table of Contents */
.table-of-contents {
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.table-of-contents__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.table-of-contents__list {
    padding-left: var(--space-md);
}

html[dir="rtl"] .table-of-contents__list {
    padding-left: 0;
    padding-right: var(--space-md);
}

.table-of-contents__list li {
    margin-bottom: var(--space-xs);
    list-style-type: decimal;
}

.table-of-contents__list a {
    font-size: var(--text-base);
}

/* Author Box */
.author-box {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-xl);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    margin-top: var(--space-3xl);
}

.author-box__avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
}

.author-box__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-box__name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.author-box__bio {
    color: var(--color-text-light);
    font-size: var(--text-base);
}

/* Related Posts */
.related-posts {
    margin-top: var(--space-4xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.related-posts__title {
    margin-bottom: var(--space-xl);
}

/* Single Case Study - Hero */
.case-study__page-hero {
    padding-bottom: var(--space-2xl);
}

/* Single Case Study - Intro: meta (left) + image (right) */
.case-study__intro {
    background: var(--color-off-white);
    padding: var(--space-3xl) 0;
}

.case-study__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: var(--space-3xl);
    align-items: center;
}

.case-study__intro-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.case-study__meta-item h3 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin: 0 0 var(--space-2xs);
}

.case-study__meta-item p {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    margin: 0;
}

.case-study__intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
    .case-study__intro-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .case-study__intro-image {
        order: -1;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: var(--space-md) 0;
    font-size: var(--text-sm);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.breadcrumb-separator {
    color: var(--color-text-light);
    margin: 0 var(--space-xs);
}

.breadcrumb-item a {
    color: var(--color-text-light);
}

.breadcrumb-item a:hover {
    color: var(--color-coral);
}

.breadcrumb-item.current {
    color: var(--color-dark);
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* Text alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

html[dir="rtl"] .text-left { text-align: right; }
html[dir="rtl"] .text-right { text-align: left; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Colors */
.text-navy { color: var(--color-navy); }
.text-coral { color: var(--color-coral); }
.text-light { color: var(--color-text-light); }
.text-white { color: var(--color-white); }

.bg-white { background-color: var(--color-white); }
.bg-off-white { background-color: var(--color-off-white); }
.bg-navy { background-color: var(--color-navy); }
.bg-coral { background-color: var(--color-coral); }

/* No results */
.no-results {
    text-align: center;
    padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
    .no-results {
        padding: var(--space-3xl) 0;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-3xl);
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-dark);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--color-coral);
    border-color: var(--color-coral);
    color: var(--color-white);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    text-align: left;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-navy);
    cursor: pointer;
    transition: color var(--transition-fast);
}

html[dir="rtl"] .faq-question {
    text-align: right;
}

.faq-question:hover {
    color: var(--color-coral);
}

.faq-question .icon {
    transition: transform var(--transition-fast);
}

.faq-item.is-open .faq-question .icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer__inner {
    padding-bottom: var(--space-lg);
    color: var(--color-text-light);
    line-height: var(--leading-relaxed);
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: var(--space-5xl) 0;
}

@media (max-width: 768px) {
    .error-404 {
        padding: var(--space-3xl) 0;
    }
}

.error-404__title {
    font-size: var(--text-6xl);
    color: var(--color-coral);
    margin-bottom: var(--space-md);
}

.error-404__message {
    font-size: var(--text-xl);
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   About Page (moved inline styles)
   ========================================================================== */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-portrait__image {
    border-radius: var(--radius-lg);
    width: 100%;
    height: auto;
}

.about-portrait__placeholder {
    background: linear-gradient(135deg, var(--color-navy), var(--color-coral));
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-section__heading {
    margin-bottom: var(--space-xl);
}

.contact-form__submit {
    width: 100%;
}

.contact-info__intro {
    margin-bottom: var(--space-2xl);
}

.contact-info__block {
    margin-bottom: var(--space-xl);
}

.contact-info__label {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.contact-info__email {
    font-size: var(--text-xl);
    color: var(--color-coral);
}

.contact-info__email:hover {
    text-decoration: underline;
}

.contact-info .social-links {
    display: flex;
    gap: var(--space-md);
}

.contact-info .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-off-white);
    border-radius: var(--radius-full);
    color: var(--color-navy);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.contact-info .social-links a:hover {
    background: var(--color-coral);
    color: var(--color-white);
    transform: translateY(-2px);
}

.contact-info .social-links a:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

.contact-info__response-time {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
}

.contact-info__response-time p {
    margin: 0;
}

/* Contact Alerts */
.contact-alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    font-weight: 500;
}

.contact-alert--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.contact-alert--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-alert p {
    margin: 0;
}

/* Honeypot - hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: -1;
    }
}

/* ==========================================================================
   Single Post (moved inline styles)
   ========================================================================== */

.single-post__categories {
    margin-bottom: var(--space-md);
}

.single-post__footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.single-post__tags-label,
.single-post__share-label {
    font-weight: 600;
}

.single-post__tags-label {
    margin-right: var(--space-sm);
}

.single-post__share {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.single-post__share-link {
    color: var(--color-navy);
    transition: color var(--transition-fast);
}

.single-post__share-link:hover {
    color: var(--color-coral);
}

.single-post__share-link:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Post CTA box */
.post-cta {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    text-align: center;
}

.post-cta__title {
    margin-bottom: var(--space-sm);
}

.post-cta__text {
    margin-bottom: var(--space-lg);
}

/* Related posts grid */
.related-posts .posts-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .related-posts .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Table of contents nested */
.toc-item--nested {
    margin-left: 1rem;
}

/* ==========================================================================
   Service Detail (moved inline styles)
   ========================================================================== */

.service-detail__approach-step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.service-detail__step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--color-coral);
    color: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.service-detail__step-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
}

.service-detail__step-desc {
    margin: 0;
}

.service-detail__deliverables,
.service-detail__outcomes {
    list-style: none;
    padding: 0;
}

.service-detail__check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.service-detail__check-icon {
    flex-shrink: 0;
    margin-top: 4px;
}

/* CTA strip description */
.cta-strip__description {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   Testimonial Card Placeholder Avatar
   ========================================================================== */

.testimonial-card__avatar-placeholder {
    width: 56px;
    height: 56px;
    background: var(--color-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: 600;
}

/* ==========================================================================
   Hero Image Placeholder
   ========================================================================== */

.hero__image-placeholder {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-coral) 100%);
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
}

/* Portfolio Placeholder */
.portfolio-placeholder {
    grid-column: 1 / -1;
    padding: var(--space-3xl);
}

/* No results full-width */
.no-results--full-width {
    grid-column: 1 / -1;
}

/* Portfolio Filter (moved from inline) */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer Focus States + Contrast
   ========================================================================== */

.site-footer a:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   Prefers Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .skills-track__inner {
        animation: none !important;
    }
}

/* ==========================================================================
   FAQ Animation Fix
   ========================================================================== */

.faq-answer {
    transition: max-height 0.35s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 1000px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .nav-overlay,
    .language-switcher,
    .cta-strip,
    .portfolio-filter,
    .single-post__share,
    .post-cta,
    .btn,
    .hero__cta,
    .back-to-top {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }

    a[href^="#"]:after,
    a[href^="javascript"]:after {
        content: "";
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    img {
        max-width: 100% !important;
    }

    .section {
        padding: 1rem 0;
    }

    .page-hero {
        padding: 1rem 0;
    }
}

/* ==========================================================================
   Search Page (moved inline styles)
   ========================================================================== */

.search-form--hero {
    max-width: 500px;
    margin: var(--space-xl) auto 0;
}

.search-form__inner {
    display: flex;
    gap: var(--space-sm);
}

.search-results__count {
    margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   404 Page (moved inline styles)
   ========================================================================== */

.error-404__helpful-links {
    margin-top: var(--space-3xl);
}

.error-404__helpful-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.error-404__links {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Button Group Utility
   ========================================================================== */

.btn-group {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-xl);
}

/* ==========================================================================
   Blog Filter
   ========================================================================== */

.blog-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

/* ==========================================================================
   Case Study (moved inline styles)
   ========================================================================== */

.case-study__industry-tag {
    margin-bottom: var(--space-md);
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.gallery-grid__figure {
    margin: 0;
}

.gallery-grid__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.case-study__results {
    background: var(--color-off-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
}

.case-study__results-title {
    color: var(--color-coral);
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Blog Card (moved inline styles)
   ========================================================================== */

.post-card__category {
    margin-bottom: var(--space-xs);
}
