/*
Theme Name: Kenya Law Rankings
Theme URI: https://kenyalawrankings.co.ke
Author: Kenya Law Rankings
Author URI: https://kenyalawrankings.co.ke
Description: Kenya's Premier Law Firm Directory - Comprehensive rankings, reviews, and insights for legal professionals in Nairobi and across Kenya.
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kenya-law-rankings
Tags: legal, law-firms, kenya, nairobi, rankings, directory
*/

/* ============================================
   KENYA LAW RANKINGS - COMPLETE DESIGN SYSTEM
   ============================================ */

:root {
    /* Primary Colors - Kenya Professional */
    --navy: #002B5B;
    --navy-dark: #001B3A;
    --navy-light: #003D7A;
    --gold: #C9A227;
    --gold-light: #E8C54B;
    --gold-dark: #A88820;

    /* Kenya Flag inspired accents */
    --kenya-green: #006B3F;
    --kenya-red: #BB0000;
    --kenya-black: #0A0A0A;

    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Functional Colors */
    --success: #059669;
    --warning: #D97706;
    --error: #DC2626;
    --info: #0284C7;

    /* Typography */
    --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 43, 91, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 43, 91, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 43, 91, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 43, 91, 0.2);
    --shadow-gold: 0 10px 40px rgba(201, 162, 39, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms 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: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* CRITICAL: SVG Icon Size Constraints */
svg {
    max-width: 100%;
    height: auto;
}

.rating-star,
.rating-stars svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
}

svg:not([class]) {
    max-width: 24px;
    max-height: 24px;
}

/* Force all inline SVGs to reasonable sizes */
article svg,
.law-firm-card svg,
.ranking-card svg,
.widget svg,
.footer svg,
.archive svg,
main svg {
    max-width: 32px;
    max-height: 32px;
}

ul,
ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

/* ============================================
   BREADCRUMBS - Remove Numbering
   ============================================ */
.breadcrumbs {
    background: var(--gray-100);
    padding: var(--space-3) 0;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-wrap: wrap;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--gray-500);
}

.breadcrumbs-item::before {
    display: none !important;
}

.breadcrumbs-item:not(:last-child)::after {
    content: "›";
    color: var(--gray-400);
    margin-left: var(--space-2);
}

.breadcrumbs-item a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumbs-item a:hover {
    color: var(--gold);
}

.breadcrumbs-item .current {
    color: var(--gray-600);
    font-weight: 500;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.4);
    color: var(--navy-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: 17px;
}

.btn-sm {
    padding: var(--space-3) var(--space-5);
    font-size: 13px;
}

/* ============================================
   HERO SECTION - KENYA THEMED
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #001229 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-24) 0 var(--space-16);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 107, 63, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gold);
    top: 10%;
    right: 5%;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--kenya-green);
    bottom: 15%;
    left: 5%;
    animation-delay: 3s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: var(--navy-light);
    top: 50%;
    left: 40%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-40px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(201, 162, 39, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-title span {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Hero Search */
.hero-search {
    max-width: 650px;
    margin: 0 auto var(--space-10);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid var(--gold);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    box-shadow: var(--shadow-gold);
}

.hero-search-form input {
    flex: 1;
    border: none;
    padding: var(--space-5) var(--space-6);
    font-size: 17px;
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--white);
    outline: none;
}

.hero-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.hero-search-form button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    padding: var(--space-5) var(--space-10);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero-search-form button:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
}

/* Quick Links */
.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    padding: var(--space-3) var(--space-6);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transform: translateY(-2px);
}

.quick-link.featured {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    border: none;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.quick-link.featured:hover {
    color: var(--navy-dark);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    animation: fadeInUp 0.8s ease-out 1s backwards;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: var(--space-2);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-light {
    background: var(--white);
}

.section-dark {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-gradient {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--space-12);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
    color: var(--gray-900);
}

.section-dark .section-title {
    color: var(--white);
}

.section-description {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.7;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   WHY NAIROBI SECTION
   ============================================ */
.why-nairobi-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.why-nairobi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.why-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-6);
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--gold) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-card-icon {
    font-size: 48px;
    margin-bottom: var(--space-4);
}

.why-card h3 {
    font-size: 18px;
    margin-bottom: var(--space-3);
    color: var(--navy);
}

.why-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   FEATURED FIRM SECTION
   ============================================ */
.featured-firm-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.featured-firm-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
}

.featured-firm-banner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-16) 0;
    position: relative;
    z-index: 1;
}

.rank-badge {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--navy-dark);
    box-shadow: var(--shadow-gold);
}

.featured-firm-content {
    color: var(--white);
}

.featured-badges {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.badge {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.badge-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-rating {
    background: rgba(0, 107, 63, 0.3);
    color: #7DFFB5;
}

.featured-firm-name {
    font-size: 34px;
    margin-bottom: var(--space-2);
}

.featured-firm-tagline {
    font-size: 17px;
    color: var(--gold);
    margin-bottom: var(--space-4);
    font-weight: 500;
}

.featured-firm-description {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 550px;
    margin-bottom: var(--space-5);
}

.featured-practice-areas {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.featured-firm-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 220px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
}

.contact-card .contact-item {
    margin-bottom: var(--space-2);
}

.contact-card .contact-item:last-child {
    margin-bottom: 0;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all var(--transition-fast);
}

.btn-whatsapp:hover {
    background: #1EBE57;
    transform: translateY(-2px);
    color: var(--white);
}

/* ============================================
   RANKINGS SECTION
   ============================================ */
.rankings-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #00162E 100%);
}

.rankings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

.ranking-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-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.ranking-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 162, 39, 0.3);
}

.ranking-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.12) 0%, rgba(201, 162, 39, 0.05) 100%);
    border: 2px solid var(--gold);
}

.ranking-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--navy-dark);
    flex-shrink: 0;
}

.ranking-firm-info {
    flex: 1;
}

.ranking-firm-name {
    font-size: 20px;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.ranking-firm-tagline {
    font-size: 14px;
    color: var(--gold);
    margin: 0;
}

.featured-tag {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.ranking-card-body {
    padding: var(--space-5);
}

.ranking-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    font-size: 16px;
}

.rating-value {
    color: var(--white);
    font-weight: 700;
    margin-left: var(--space-2);
}

.ranking-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.ranking-areas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.area-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-ideal {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.ranking-ideal strong {
    color: var(--gold);
}

.ranking-card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

/* ============================================
   PRACTICE AREAS SECTION
   ============================================ */
.practice-section {
    background: var(--white);
}

.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.practice-area-card {
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.practice-area-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.practice-area-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.practice-area-card:hover::before {
    opacity: 1;
}

.practice-area-card>* {
    position: relative;
    z-index: 1;
}

.practice-area-icon {
    font-size: 52px;
    margin-bottom: var(--space-4);
}

.practice-area-title {
    font-size: 17px;
    margin-bottom: var(--space-2);
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.practice-area-card:hover .practice-area-title {
    color: var(--white);
}

.practice-area-count {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
    transition: color var(--transition-fast);
}

.practice-area-card:hover .practice-area-count {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   KNOWLEDGE SECTION
   ============================================ */
.knowledge-section {
    background: var(--gray-50);
}

.knowledge-section .articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.knowledge-section .article-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-normal);
    text-decoration: none;
    display: block;
}

.knowledge-section .article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.knowledge-section .article-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.knowledge-section .article-icon {
    font-size: 56px;
}

.knowledge-section .article-category {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.knowledge-section .article-card-body {
    padding: var(--space-5);
}

.knowledge-section .article-date {
    font-size: 12px;
    color: var(--gray-400);
    display: block;
    margin-bottom: var(--space-2);
}

.knowledge-section .article-title {
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.knowledge-section .article-link {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

.no-articles {
    grid-column: span 3;
    text-align: center;
    padding: var(--space-16);
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

/* ============================================
   DEFINES SECTION
   ============================================ */
.defines-section {
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.defines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.defines-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: all var(--transition-normal);
}

.defines-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.defines-icon {
    font-size: 44px;
    margin-bottom: var(--space-4);
}

.defines-card h3 {
    font-size: 18px;
    margin-bottom: var(--space-3);
    color: var(--navy);
}

.defines-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: var(--space-4);
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--gray-300);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--kenya-green), var(--gold));
}

.footer-main {
    padding: var(--space-16) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-10);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer-logo-icon {
    font-size: 36px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--white);
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-400);
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
    transform: translateY(-3px);
}

.footer-widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: var(--space-2);
}

.footer-featured-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.footer-featured-card strong {
    color: var(--white);
    font-size: 15px;
    display: block;
    margin-bottom: var(--space-1);
}

.footer-featured-card p {
    color: var(--gold);
    font-size: 13px;
    margin: 0 0 var(--space-3) 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: var(--space-2);
}

.footer-contact-item a {
    color: var(--gray-400);
}

.footer-contact-item a:hover {
    color: var(--gold);
}

.footer-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-top: var(--space-2);
    transition: all var(--transition-fast);
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--navy-dark);
}

.footer-bottom {
    padding: var(--space-5) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: 14px;
    color: var(--gray-500);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .why-nairobi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-firm-banner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .featured-firm-cta {
        margin: 0 auto;
    }

    .rankings-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card-featured {
        grid-column: span 1;
    }

    .practice-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-section .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .defines-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-8);
    }

    .hero-stat {
        flex: 1 1 40%;
    }

    .hero-quick-links {
        flex-direction: column;
        align-items: center;
    }

    .quick-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .why-nairobi-grid,
    .practice-areas-grid,
    .defines-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-section .articles-grid {
        grid-template-columns: 1fr;
    }

    .no-articles {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-search-form {
        flex-direction: column;
        gap: var(--space-2);
    }

    .hero-search-form input {
        width: 100%;
    }

    .hero-search-form button {
        width: 100%;
    }
}