/* MODERN COLOR SYSTEM */
:root {
    --primary: #0a7d5f;
    --primary-dark: #065a44;
    --primary-light: #0d9974;
    --accent: #f7d77e;
    --accent-hover: #ffaa33;
    --bg-main: #fafbfb;
    --bg-card: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 8px 24px rgba(255, 149, 0, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER WITH GLASS EFFECT */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(10, 125, 95, 0.15);
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.brand-text {
    color: white;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

header nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

header nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.lang-toggle {
    background: var(--accent);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-accent);
    border: none;
    white-space: nowrap;
}

.lang-toggle:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 149, 0, 0.3);
}

/* HERO SECTION */
.hero {
    /* EASILY CHANGE BACKGROUND IMAGE HERE - replace the URL below */
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.7) 0%, rgba(8, 72, 58, 0.8) 100%),
        url('../images/banner.png') center/cover;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 149, 0, 0.1), transparent 50%);
    opacity: 0.6;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -1px;
    color: white;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 900;
    letter-spacing: 3px;
    color: #1a1a1a;
    background: var(--accent);
    display: inline-block;
    padding: 8px 32px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
    text-shadow: none;
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.95;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-dark);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 149, 0, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: #f9fafb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    flex: 1;
}

/* CARDS */
.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.service-card {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

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

.service-detail-card,
.service-group-intro {
    scroll-margin-top: 110px;
}

.service-scroll-highlight {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(10, 125, 95, 0.12), var(--shadow-lg) !important;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1), rgba(255, 149, 0, 0.15));
    border: 2px solid rgba(255, 149, 0, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.15);
}

.service-card h3 {
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.service-image-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
}

.service-image,
.service-image-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
}

.service-image,
.service-detail-image {
    object-fit: cover;
    object-position: center top;
    display: block;
    box-shadow: var(--shadow-sm);
}

.service-image-placeholder,
.service-detail-image-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.08), rgba(255, 149, 0, 0.12));
    border: 2px dashed rgba(10, 125, 95, 0.25);
    color: var(--text-muted);
    text-align: center;
    padding: 16px;
}

.service-image-placeholder span,
.service-detail-image-placeholder span {
    font-size: 42px;
    line-height: 1;
}

.service-image-placeholder small,
.service-detail-image-placeholder small {
    font-size: 13px;
    line-height: 1.4;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 28px;
    align-items: start;
}

.service-detail-media {
    width: 100%;
    max-width: 360px;
}

.service-detail-layout>div:first-child .service-image-wrap {
    max-width: 360px;
    margin-bottom: 0;
}

.service-detail-image,
.service-detail-image-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: var(--radius-md);
}


/* GROUPED SERVICE SECTIONS */
.service-group-intro {
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.08), rgba(255, 149, 0, 0.08));
    border: 2px solid rgba(10, 125, 95, 0.16);
    border-left: 6px solid var(--primary);
}

.service-group-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.service-group-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.service-group-method {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.service-group-method strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 6px;
}

.service-group-method span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.service-method-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(10, 125, 95, 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}




/* SERVICE IMAGE LIGHTBOX */
.service-detail-image {
    cursor: zoom-in;
}

.service-detail-image:focus {
    outline: 4px solid rgba(10, 125, 95, 0.35);
    outline-offset: 4px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.image-lightbox.active {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.image-lightbox-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 0 36px;
}

.image-lightbox-img {
    width: min(92vw, 900px);
    max-width: none;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.45);
    background: white;
}

.image-lightbox-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 5001;
    box-shadow: var(--shadow-md);
}

.image-lightbox-close:hover {
    background: white;
    transform: scale(1.05);
}

.image-lightbox-hint {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    text-align: center;
    pointer-events: none;
    z-index: 5001;
    width: calc(100% - 32px);
}

body.lightbox-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .image-lightbox {
        padding: 10px;
    }

    .image-lightbox-content {
        padding: 58px 0 38px;
        justify-content: flex-start;
    }

    .image-lightbox-img {
        width: calc(100vw - 20px);
        border-radius: var(--radius-sm);
    }

    .image-lightbox-close {
        top: 10px;
        right: 10px;
    }
}


/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

h3 {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 12px;
    color: var(--primary-dark);
}

p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 16px;
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--bg-main);
    transition: var(--transition);
    color: var(--text-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(10, 125, 95, 0.1);
}

/* FEATURES LIST */
.features-list {
    list-style: none;
    margin: 24px 0;
}

.features-list li {
    padding: 16px 0;
    padding-left: 36px;
    position: relative;
    color: var(--text-muted);
    font-size: 16px;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 16px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* STATS SECTION */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin: 48px 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.05), rgba(13, 153, 116, 0.05));
    border-radius: var(--radius-lg);
    border: 2px solid rgba(10, 125, 95, 0.1);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

/* GALLERY */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TRUST BADGES */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 48px 0;
    padding: 32px;
    background: rgba(10, 125, 95, 0.03);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(10, 125, 95, 0.1);
}

.badge {
    text-align: center;
}

.badge-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 28px;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

/* FOOTER */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 24px 24px;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

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

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* WHATSAPP FLOAT BUTTON */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    font-size: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* UTILITY CLASSES */
.hidden {
    display: none;
}

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

.mt-4 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* PAST JOBS LAYOUT */
.job-entry {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: stretch;
}

.job-image {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}


/* CLIENT / PAST JOBS SECTION */
.client-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.client-logo-wrap {
    min-height: 180px;
    padding: 28px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.client-logo {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
    display: block;
}

.client-logo-placeholder {
    width: 100%;
    min-height: 130px;
    border: 2px dashed rgba(10, 125, 95, 0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted);
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.05), rgba(255, 149, 0, 0.08));
    padding: 16px;
    font-weight: 600;
}

.client-content {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.client-content h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-align: left;
}

.client-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.client-service-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 125, 95, 0.08);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

.testimonial-box {
    background: rgba(10, 125, 95, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-top: auto;
}

.testimonial-box p {
    margin: 0;
    font-size: 15px;
}

.placeholder-note {
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
    margin-top: 10px;
}


/* RESPONSIVE */
@media (max-width: 758px) {
    .job-image {
        width: 400px;
        height: 400px;
        object-fit: cover;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        padding: 0 16px;
    }

    .logo {
        width: 60px;
    }

    .brand-text {
        font-size: 16px;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        z-index: 100;
        align-items: stretch;
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        width: 100%;
        text-align: left;
        padding: 14px 20px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-toggle {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        margin: 12px 0 0 0;
        font-size: 16px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .container {
        padding: 40px 16px;
    }

    .card {
        padding: 24px 20px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-image-wrap {
        max-width: 360px;
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-detail-media {
        max-width: 420px;
        margin: 0 auto;
    }

    .service-detail-layout>div:first-child .service-image-wrap {
        max-width: 420px;
        margin: 0 auto;
    }


    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-number {
        font-size: 36px;
    }

    .trust-badges {
        gap: 24px;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 22px;
    }

    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    /* Past Jobs Mobile Layout */
    .job-entry {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
        padding: 6px 24px;
    }
}

@media (max-width: 480px) {
    .job-image {
        width: 100%;
        object-fit: cover;
    }

    .logo {
        width: 50px;
    }

    .brand-text {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px 16px;
    }
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.videos-section {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: -20px;
    justify-content: center;
    flex-wrap: wrap;
}

.videos-section video {
    width: 360px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Mobile */
@media (max-width: 768px) {
    .videos-section {
        flex-direction: column;
        gap: 24px;
        padding: 0 16px;
    }

    .videos-section video {
        width: 100%;
        max-width: 420px;
        height: auto;
        margin: 0 auto;
    }
}

.license-img {
    width: 60%;
    /* Bigger on desktop */
    max-width: 650px;
    /* Clean controlled max size */
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: block;
    margin: 20px 0;
    /* Remove auto-centering */
}

/* Mobile */
@media (max-width: 768px) {
    .license-img {
        width: 100%;
        max-width: 500px;
        margin: 20px auto;
        /* Center only on mobile */
    }
}

/* Prevent entire site from scrolling horizontally */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Force proper sizing */
* {
    box-sizing: border-box;
}

/* Prevent nav overflow */
header nav {
    overflow-x: hidden;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

header nav ul li {
    white-space: nowrap;
}

/* Prevent images from exceeding screen */
img {
    max-width: 100%;
    height: auto;
}

/* Extra safety for video section */
.videos-section {
    max-width: 100%;
    overflow-x: hidden;
}


/* ==========================================================================
   BLOG
   Article listing + article pages. Inherits every token from :root above.
   ========================================================================== */

/* --- Shared: compact page header (blog pages have no hero) --------------- */
.page-head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 56px 24px 48px;
    text-align: center;
    color: white;
}

.page-head h1 {
    color: white;
    font-size: clamp(30px, 4.5vw, 46px);
    letter-spacing: -1px;
    margin-bottom: 12px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.25);
}

.page-head p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 680px;
    margin: 0 auto;
    font-size: clamp(15px, 2vw, 18px);
}

.page-head .eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* --- Breadcrumbs --------------------------------------------------------- */
.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    opacity: 0.5;
}

/* --- Article listing grid ------------------------------------------------ */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.post-card-media {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.1), rgba(255, 149, 0, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    border-bottom: 1px solid var(--border);
}

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

.post-card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 125, 95, 0.08);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.post-card h2,
.post-card h3 {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.post-card h2 a,
.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

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

.post-card p {
    font-size: 15px;
    margin-bottom: 18px;
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Article body -------------------------------------------------------- */
.article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 24px 24px;
}

.article-header h1 {
    font-size: clamp(28px, 4.4vw, 42px);
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.article-standfirst {
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 36px;
    font-size: 14px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.article-byline strong {
    color: var(--text-dark);
}

.article-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}

.prose {
    font-size: 17px;
    line-height: 1.75;
}

.prose h2 {
    font-size: clamp(23px, 3vw, 30px);
    margin-top: 44px;
    margin-bottom: 14px;
    scroll-margin-top: 100px;
}

.prose h3 {
    font-size: clamp(19px, 2.4vw, 23px);
    margin-top: 32px;
    margin-bottom: 10px;
    scroll-margin-top: 100px;
}

.prose p {
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 20px;
    color: #374151;
}

.prose ul,
.prose ol {
    margin: 0 0 22px 22px;
    color: #374151;
}

.prose li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.prose strong {
    color: var(--text-dark);
}

.prose a {
    color: var(--primary);
    font-weight: 600;
}

.prose img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 8px 0 12px;
}

.prose figure {
    margin: 28px 0;
}

.prose figcaption {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

/* --- Table of contents --------------------------------------------------- */
.toc {
    background: rgba(10, 125, 95, 0.04);
    border: 1px solid rgba(10, 125, 95, 0.15);
    border-left: 5px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 40px;
}

.toc h2 {
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-dark);
    margin: 0 0 12px !important;
}

.toc ol {
    /* Custom counters instead of default markers: the number then sits flush
       with the "In this guide" heading rather than in its own hanging indent,
       and wrapped lines stay aligned with the text column, not the number. */
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
    display: grid;
    grid-template-columns: 1.75em 1fr;
    align-items: baseline;
    margin-bottom: 9px;
}

.toc li:last-child {
    margin-bottom: 0;
}

.toc li::before {
    content: counter(toc) ".";
    color: var(--primary);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.toc a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.toc a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- Callouts ------------------------------------------------------------ */
.callout {
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 30px 0;
    border-left: 5px solid var(--primary);
    background: rgba(10, 125, 95, 0.05);
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-title {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-size: 16px;
}

.callout.warning {
    border-left-color: var(--accent-hover);
    background: rgba(255, 149, 0, 0.08);
}

.callout.warning .callout-title {
    color: #a35c00;
}

/* --- Author box ---------------------------------------------------------- */
.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin: 44px 0 0;
    box-shadow: var(--shadow-sm);
}

.author-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.author-box p {
    font-size: 15px;
    margin-bottom: 0;
}

/* --- Article CTA --------------------------------------------------------- */
.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    margin: 48px 0 0;
    box-shadow: var(--shadow-md);
}

.article-cta h2 {
    color: white;
    font-size: clamp(22px, 3vw, 28px);
    margin: 0 0 12px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 520px;
    margin: 0 auto 24px;
}

.article-cta .cta-group {
    margin-top: 4px;
}

/* --- Related articles ---------------------------------------------------- */
.related {
    margin-top: 56px;
}

.related h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-list a {
    display: block;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.related-list a:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 758px) {
    .article-wrap {
        padding: 32px 18px 16px;
    }

    .prose {
        font-size: 16px;
    }

    .prose p {
        font-size: 16px;
    }

    .toc {
        padding: 20px;
    }

    .author-box {
        flex-direction: column;
        gap: 14px;
    }

    .article-cta {
        padding: 30px 20px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }
}


/* --- Whole-card click target ---------------------------------------------
   Stretched-link pattern: the <a> stays on the heading (so screen readers
   announce one properly-labelled link, not three), but its ::after overlay
   covers the whole card, making any part of it clickable.
   ------------------------------------------------------------------------ */
.post-card {
    position: relative;
}

.post-card:hover {
    cursor: pointer;
}

.post-card h2 a::after,
.post-card h3 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Anything that must stay independently clickable sits above the overlay. */
.post-card .post-meta,
.post-card a:not(h2 a):not(h3 a) {
    position: relative;
    z-index: 2;
}

/* --- Article image placeholders ------------------------------------------
   Each <figure> points at its final image path already. Drop the real file
   in at that path and it appears — no HTML editing needed. Until then the
   dashed brief shows instead.
   ------------------------------------------------------------------------ */
.img-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    aspect-ratio: 16 / 9;
    padding: 24px;
    text-align: center;
    border: 2px dashed rgba(10, 125, 95, 0.3);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(10, 125, 95, 0.06), rgba(255, 149, 0, 0.1));
}

.img-placeholder .ph-icon {
    font-size: 38px;
    line-height: 1;
}

.img-placeholder .ph-brief {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    max-width: 460px;
}

.img-placeholder .ph-path {
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-muted);
    word-break: break-all;
}


/* Article images share the service-image zoom affordance. */
.article-hero,
.prose figure img {
    cursor: zoom-in;
}

.article-hero:focus,
.prose figure img:focus {
    outline: 4px solid rgba(10, 125, 95, 0.35);
    outline-offset: 4px;
}


/* The header navigation is styled via `header nav`, not a bare `nav` selector.
   <nav class="toc"> and <nav class="breadcrumb"> are also <nav> elements, and
   a bare selector turned them into flex rows on desktop and slid them off
   screen entirely on mobile. These resets keep them safe if that ever returns. */
.toc,
.breadcrumb {
    display: block;
    position: static;
    height: auto;
    width: auto;
    flex-direction: initial;
}
