/*
Theme Name: DIJED Architecture
Theme URI: https://dijed.com
Author: DIJED Team
Author URI: https://dijed.com
Description: Modern architecture theme for DIJED
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dijed
*/

/* =================================================================
   ESSENTIAL STYLES ONLY - We'll add more later
================================================================= */

/* CSS Variables */
:root {
    --color-primary: #293133;
    --color-secondary: #ffffff;
    --color-accent: #d4af37;
    --color-text: #333333;
    --color-border: #e0e0e0;
    --color-bg-light: #f5f5f5;

    --font-body: 'FS Siena', Georgia, serif;
    --font-heading: 'FS Siena', Georgia, serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;

    --container-width: 1200px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-secondary);
    margin: 0;
    padding: 0;
}

/* Site wrapper */
#page {
    margin: 0;
    padding: 0;
}

#content {
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

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

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

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--color-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
}
@media (min-width: 769px) {
    .site-header {
        padding: 1.2rem 0; /* -20% */
    }
}
@media (max-width: 768px) {
    .site-header {
        padding: 0.9rem 0; /* -40% */
    }
    .site-branding .custom-logo {
        max-height: 30px; /* -40% from 50px */
    }
}

.site-header .container {
    max-width: 100%;
    padding: 0 20px;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

/* Left: Social Icons */
.header-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.header-social a {
    color: var(--color-primary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

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

.header-social svg {
    width: 18px;
    height: 18px;
}

/* Center: Logo */
.site-branding {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-branding .custom-logo-link {
    display: block;
    line-height: 0;
}

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

.site-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* Right: Navigation */
.main-navigation {
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul,
.main-navigation .primary-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    font-family: var(--font-heading);
    text-transform: capitalize;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    font-weight: 400;
    color: var(--color-primary);
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--color-accent);
}

/* Menu underline effect */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
    width: 100%;
}

/* Content */
.site-content {
    min-height: 60vh;
    padding: var(--spacing-lg) 0;
}

/* Remove gap between header and content */
#content {
    margin: 0;
    padding: 0;
}

/* ============================================
   DIJED CUSTOM HERO SLIDER
============================================ */

/* JS (dijed-slider.js) sets --header-height on :root */
.dijed-hero-slider {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--header-height, 100px));
    overflow: hidden;
    background: #111;
    margin: 0;
}

/* Mobile: 16:9 aspect ratio — shows full landscape image without cropping */
@media (max-width: 768px) {
    .dijed-hero-slider {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ---- Slides track ---- */
.dijed-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ---- Individual slide ---- */
.dijed-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
.dijed-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* ---- Background image / video ---- */
.dijed-slide-bg {
    position: absolute;
    inset: 0;
}
.dijed-slide-img,
.dijed-slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ---- Gradient overlay (bottom-heavy) ---- */
.dijed-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

/* ---- Text content — bottom-left ---- */
.dijed-slide-content {
    position: absolute;
    bottom: 2.5rem;
    left: 2.5rem;
    z-index: 3;
    color: #fff;
    max-width: 55%;
    pointer-events: none;
}

/* ---- SEE MORE button ---- */
.dijed-slide-see-more {
    display: block;
    width: fit-content;
    margin-top: 1rem;
    padding: 7px 18px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    background: transparent;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    pointer-events: auto;
    transition: background 0.2s ease;
}
.dijed-slide-see-more:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.dijed-slide-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    margin: 0 0 0.5rem;
    line-height: 1.1;
    color: #fff;
}
.dijed-slide-paragraph {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 1.1vw, 0.95rem);
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

@media (max-width: 768px) {
    .dijed-slide-content {
        bottom: 1.25rem;
        left: 1.25rem;
        max-width: 80%;
    }
    .dijed-slide-title {
        font-size: clamp(1.1rem, 4.5vw, 1.75rem);
        margin-bottom: 0.3rem;
    }
    .dijed-slide-paragraph {
        font-size: 0.7rem;
    }
    .dijed-slide-see-more {
        display: inline-block;
        margin-top: 0;
        margin-left: 0.4em;
        vertical-align: middle;
        font-size: 9px;
        padding: 2px 7px;
    }
}

/* ---- Navigation arrows (bare — no circle, no background) ---- */
.dijed-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.dijed-slider-arrow:hover {
    opacity: 1;
}
.dijed-slider-arrow--prev { left: 1rem; }
.dijed-slider-arrow--next { right: 1rem; }
.dijed-slider-arrow svg {
    width: 36px;
    height: 36px;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

@media (max-width: 768px) {
    .dijed-slider-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* ---- Pagination dots — bottom center ---- */
.dijed-slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.dijed-slider-dot {
    width: 28px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.dijed-slider-dot.is-active {
    background: rgba(255, 255, 255, 1);
}

@media (max-width: 768px) {
    .dijed-slider-dots {
        bottom: 0.75rem;
        gap: 6px;
    }
    .dijed-slider-dot {
        width: 20px;
        height: 2px;
    }
}

/* ---- Dijed logo overlay — bottom-right, always on top ---- */
.dijed-slider-logo {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 10;
    display: block;
    opacity: 0.85;
    transition: opacity 0.2s;
    line-height: 0;
}
.dijed-slider-logo:hover {
    opacity: 1;
}
.dijed-slider-logo img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(100);
}

@media (max-width: 768px) {
    .dijed-slider-logo {
        bottom: 0.75rem;
        right: 1rem;
    }
    .dijed-slider-logo img {
        height: 36px;
    }
}

/* Mobile - Adjusted for mobile header */
/* Mobile Menu Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* CRITICAL: Force header layout - Logo left, Hamburger right */
    .header-inner {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        align-items: center;
        gap: 1rem;
    }

    /* Hide desktop social icons completely on mobile */
    .header-social {
        display: none !important;
    }

    /* Logo - First column (left) */
    .site-branding {
        grid-column: 1;
        justify-content: flex-start;
        align-items: center;
        align-self: center;
    }

    .site-branding .custom-logo-link {
        display: flex;
        align-items: center;
    }

    /* Navigation (hamburger) - Third column (right) */
    .main-navigation {
        grid-column: 3;
        justify-content: flex-end;
        position: relative;
    }

    /* Mobile Menu Toggle Button (Hamburger) */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
        margin-left: auto;
        /* Extra push to right */
    }

    /* Hamburger Icon */
    .hamburger-icon {
        width: 25px;
        height: 20px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--color-primary);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* Hamburger animation to X when active */
    .mobile-menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Menu Wrapper (Slide-in panel from right) */
    .menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    /* Show menu when active */
    .main-navigation.menu-open .menu-wrapper {
        right: 0;
    }

    /* Mobile Menu List */
    .main-navigation .primary-menu,
    .main-navigation ul {
        display: flex !important;
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Menu Items */
    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1.2rem 0;
        font-size: 1.1rem;
        color: var(--color-primary);
        position: static !important;
    }

    .main-navigation a::after {
        display: none !important;
    }

    .main-navigation a:hover {
        color: var(--color-accent);
        padding-left: 10px;
        transition: all 0.3s ease;
    }

    /* Social Icons at bottom of mobile menu */
    .mobile-menu-social {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        padding-top: 2rem;
        margin-top: auto;
        border-top: 1px solid var(--color-border);
    }

    .mobile-menu-social a {
        color: var(--color-primary);
        transition: color 0.3s ease;
        display: flex;
        align-items: center;
    }

    .mobile-menu-social a:hover {
        color: var(--color-accent);
    }

    .mobile-menu-social svg {
        width: 22px;
        height: 22px;
    }

    /* Dark overlay */
    .main-navigation::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }

    .main-navigation.menu-open::before {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    /* Prevent body scroll */
    body.menu-open {
        overflow: hidden;
    }

    /* By Numbers mobile rules moved to after base styles (source-order fix) */
}

/* ============================================
   BY NUMBERS STATS SECTION
   ============================================ */

.by-numbers-section {
    background-color: transparent;
    padding: 24px clamp(8px, 3vw, 40px) 32px;
}

.by-numbers-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: clamp(12px, 4vw, 60px);
}

/* ---- Left: intro ---- */
.by-numbers-intro {
    flex: 0 0 clamp(160px, 28%, 380px);
    max-width: clamp(160px, 28%, 380px);
    min-width: 0;
}

.by-numbers-logo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.stats-section-logo {
    height: 24px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.by-numbers-label-text {
    font-family: var(--font-heading);
    font-size: clamp(16px, 2.2vw, 30px);
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: normal;
    line-height: 1;
}

.by-numbers-description {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.0;
    color: #666;
    margin: 0;
    text-align: justify;
}

/* ---- Right: 3×2 grid ---- */
.by-numbers-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 0;
    border-left: 1px solid #e0e0e0;
    padding-left: clamp(8px, 3vw, 40px);
}

.by-numbers-stat {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(6px, 1vw, 12px);
    padding: clamp(8px, 1.5vw, 20px) clamp(6px, 2vw, 24px);
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

/* Remove right border on last column */
.by-numbers-stat:nth-child(3n) {
    border-right: none;
}

/* Remove bottom border on last row */
.by-numbers-stat:nth-child(n+4) {
    border-bottom: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(22px, 3.5vw, 52px);
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -2px;
    flex-shrink: 1;
}

.stat-meta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    gap: 6px;
    min-height: 40px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 0;
}

.stat-unit {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: capitalize;
    letter-spacing: 0.3px;
    margin-top: 0;
    line-height: 1.3;
}

/* By Numbers — About page: always hide the desktop logo above the section */
.page-template-template-about .about-pre-numbers-logo,
.page-template-template-about .about-pre-numbers-logo--mobile {
    display: none;
}

/* About page desktop: keep intro visible, remove left border/padding from grid */
.page-template-template-about .by-numbers-grid {
    border-left: none;
    padding-left: 0;
}

/* About page mobile: hide intro (logo + label + description), tighten top margin */
@media (max-width: 768px) {
    .page-template-template-about .by-numbers-intro {
        display: none;
    }

    .page-template-template-about .by-numbers-section {
        margin-top: 8px;
    }
}

/* By Numbers — mobile overrides (must come after base rules to win source order) */
@media (max-width: 768px) {
    .by-numbers-section {
        padding: 20px 16px 24px;
        overflow-x: hidden;
        margin-top: 40px;
    }

    /* Grid: logo | label (row 1) → description full width (row 2) → stats full width (row 3) */
    .by-numbers-inner {
        display: grid;
        grid-template-columns: 35% 1fr;
        grid-template-rows: auto auto auto;
        gap: 12px 8px;
    }

    /* Show mobile logo duplicate, placed in col 1 row 1 */
    .about-pre-numbers-logo--mobile {
        display: flex;
        align-items: center;
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }

    .about-pre-numbers-logo--mobile .about-pre-numbers-logo-img {
        height: auto;
    }

    /* Dissolve intro wrapper so label + description become direct grid children */
    .by-numbers-intro {
        display: contents;
    }

    /* Label text: col 2 row 1, beside the logo, aligned to bottom */
    .by-numbers-logo {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-bottom: 12px;
    }

    /* Hide the stats-section-logo inside intro on mobile (site logo is used instead) */
    .stats-section-logo {
        display: none;
    }

    .by-numbers-label-text {
        font-size: 14px;
        white-space: normal;
    }

    /* Description: full width in row 2 */
    .by-numbers-description {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 11px;
        min-width: 0;
    }

    /* Stats grid spans both columns, row 3 */
    .by-numbers-grid {
        grid-column: 1 / -1;
        grid-row: 3;
        border-left: none;
        border-top: none;
        padding-left: 0;
        padding-top: 0;
        width: 100%;
        box-sizing: border-box;
        grid-template-columns: repeat(3, 1fr);
    }

    /* 3-col border rules (2n before 3n so 3n wins for 6th cell) */
    .by-numbers-stat:nth-child(2n) {
        border-right: 1px solid #e0e0e0;
    }

    .by-numbers-stat:nth-child(3n) {
        border-right: none;
    }

    .by-numbers-stat:nth-child(n+4) {
        border-bottom: none;
    }

    .by-numbers-stat {
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 10px 6px;
        min-width: 0;
        overflow: hidden;
    }

    .stat-number {
        font-size: clamp(24px, 6.6vw, 37px);
        letter-spacing: 0;
        line-height: 1;
        flex-shrink: 0;
    }

    .stat-meta {
        min-width: 0;
        min-height: 0;
        gap: 2px;
        align-self: stretch;
    }

    .stat-label {
        font-size: 7px;
    }

    .stat-unit {
        font-size: 8px;
    }

    /* Hide desktop logo above the section on mobile */
    .about-pre-numbers-logo {
        display: none;
    }
}

/* Desktop styles */
@media (min-width: 769px) {

    /* Hide the mobile-only by-numbers logo duplicate on desktop */
    .about-pre-numbers-logo--mobile {
        display: none;
    }

    /* Ensure desktop header works normally */
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }

    .mobile-menu-toggle {
        display: none !important;
    }

    .menu-wrapper {
        display: contents;
    }

    .mobile-menu-social {
        display: none !important;
    }
}

/* ============================================
   SERVICES PAGE — HERO
   ============================================ */

.services-page {
    min-height: 100vh;
    background: #ffffff;
}

/* Hero container — slightly less than full viewport so content below is hinted */
.services-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    overflow: hidden;
}

/* Homepage services title — matches Recent Projects / Our Global Impact style */
.services-home-title-wrap {
    padding: 32px clamp(8px, 3vw, 40px) 0;
}

.services-home-title-wrap>.section-title-row {
    max-width: 1200px;
    margin: 0 auto;
}

.services-home-title-wrap .section-title-row {
    display: block;
    text-align: left;
}

.services-home-title-wrap .section-title-row::before,
.services-home-title-wrap .section-title-row::after {
    display: none;
}

.services-home-title-wrap .section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: 0;
    text-transform: none;
}

/* Homepage variant: constrain to page width and reduce height */
.services-hero--home {
    max-width: 1200px;
    margin: 0 auto;
    height: 60vh;
}

@media (max-width: 768px) {
    .services-hero--home {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* Background layers — one per service + default */
.services-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.services-hero-bg.is-active {
    opacity: 1;
}

/* Bottom gradient only — just enough to keep service name text readable */
.services-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 55%,
            rgba(0, 0, 0, 0.50) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Heading — absolute, above columns */
.services-hero-content {
    position: absolute;
    z-index: 3;
    bottom: 120px;
    left: 60px;
    pointer-events: none;
}

.services-hero-heading {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 10px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

.services-hero-heading--accent {
    color: var(--color-accent);
}

/* Full-height transparent columns — hover zones with vertical separator lines */
.services-columns {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
}

.services-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 20px 32px;
    border-right: 1px solid rgba(255, 255, 255, 0.20);
    text-decoration: none;
    transition: background 0.35s ease;
    position: relative;
}

.services-column:last-child {
    border-right: none;
}

.services-column:hover {
    background: rgba(0, 0, 0, 0.18);
}

.services-column__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Wrapper collapses to zero height when not hovered — keeps title at very bottom */
.services-column__btn-wrap {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.services-column:hover .services-column__btn-wrap {
    max-height: 60px;
    margin-top: 12px;
}

.services-column__btn {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #ffffff;
    border-radius: 4px;
    color: #ffffff;
    background: transparent;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.services-column:hover .services-column__btn {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   SERVICES PAGE — DETAIL SECTIONS
   ============================================ */

.services-detail {
    padding: 0;
}

.service-section {
    padding: 56px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.service-section + .service-section {
    position: relative;
    padding-top: 74px;
}

.service-section + .service-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #9d9f9e;
}

/* Service split: image + text two-column layout */
.service-split {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 32px;
    align-items: stretch;
    margin-top: 0;
    margin-bottom: 0;
}

.service-split__image {
    aspect-ratio: 10 / 9;
    overflow: hidden;
    align-self: start;
}

.service-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-split__text {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-self: stretch;
}

.service-split__name {
    font-family: var(--font-heading);
    font-weight: 200;
    color: var(--color-primary);
    text-align: left;
    margin: 0;
    line-height: 1;
}

.service-split__description {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    color: #555;
    line-height: 1.3;
}

.service-split__description p {
    margin: 0 0 1em;
}

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

/* Projects strip under each service */
.service-projects {
    margin-top: 8px;
}

.service-projects .project-card-image {
    aspect-ratio: 16 / 9;
}

/* Responsive: Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .services-hero-heading {
        font-size: 44px;
        letter-spacing: 7px;
    }

    .services-hero-content {
        left: 32px;
        bottom: 100px;
    }

    .services-column {
        padding: 0 14px 24px;
    }

    .service-section {
        padding: 60px 32px;
    }

    .service-section + .service-section {
        padding-top: 79px;
    }

    .service-split__name {
        font-size: clamp(20px, 2.5vw, 26px);
    }

    .service-split__description {
        font-size: 12px;
        line-height: 1.2;
    }

    .service-split__text {
        gap: 14px;
    }

}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .services-hero {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .services-hero-content {
        left: 20px;
        bottom: 48px;
    }

    .services-hero-heading {
        font-size: 30px;
        letter-spacing: 5px;
    }

    .services-column {
        padding: 0 10px 20px;
        border-right-color: rgba(255, 255, 255, 0.15);
        min-width: 0;
    }

    .services-column__name {
        font-size: clamp(5px, 1.8vw, 8px);
        letter-spacing: 1px;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .services-column__btn {
        font-size: 7px;
        padding: 3px 9px;
        letter-spacing: 1px;
    }

    .services-column:hover .services-column__btn-wrap {
        max-height: 40px;
        margin-top: 8px;
    }

    .service-section {
        padding: 48px 20px 30px;
    }

    .service-section + .service-section {
        padding-top: 64px;
    }

    .service-split {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

    /* Unwrap text column so name/description/gallery become grid siblings */
    .service-split__text {
        display: contents;
    }

    /* Mobile order: title → image → description → gallery */
    .service-split__name {
        order: 1;
        font-size: clamp(24px, 6.6vw, 29px);
        text-align: center;
    }

    .service-split__image {
        order: 2;
    }

    .service-split__description {
        order: 3;
    }

    .service-gallery {
        order: 4;
        margin-top: 0;
        width: 100%;
    }

    /* Single column project cards on mobile */
    .service-projects .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   OUR CLIENTS SECTION (services page)
   ============================================ */

.our-clients-section {
    background-color: #ffffff;
    padding: 80px 40px 80px;
}

.our-clients-inner {
    max-width: 1080px;
    /* 10% less than 1200px page width */
    margin: 0 auto;
}

/* No decorative lines around the title */
.our-clients-section .section-title-row::before,
.our-clients-section .section-title-row::after {
    display: none;
}

/* Larger title in website font */
.our-clients-section .section-title {
    font-size: 28px;
    text-align: center;
}

.our-clients-section .section-title-row {
    justify-content: center;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 20px;
    width: 110px;
    flex-shrink: 0;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.client-logo:hover img {
    transform: scale(1.08);
}

@media (min-width: 769px) and (max-width: 1024px) {
    .client-logo {
        width: 95px;
    }
}

@media (max-width: 768px) {
    .our-clients-section {
        padding: 50px 20px 60px;
    }

    .client-logo {
        width: calc(100% / 4);
    }
}

/* ============================================
   SERVICE GALLERY STRIP
   ============================================ */

/* Row: grid on left, view-all on right — mirrors .projects-row */
.service-gallery {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 79%;
    margin-top: auto;
    margin-bottom: 0;
}

.service-gallery__grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.service-gallery__item {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #111;
    position: relative;
}

.service-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-gallery__item:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

/* View all — mirrors .projects-view-all */
.service-gallery__view-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 60px;
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    padding: 0;
    transition: color 0.2s ease;
}

.service-gallery__view-all:hover {
    color: var(--color-accent);
}

.service-gallery__view-all .view-all-arrow {
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.service-gallery__view-all .view-all-text {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ============================================
   SERVICE GALLERY LIGHTBOX
   ============================================ */

.svc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.svc-lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.svc-lightbox__inner {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-lightbox__img {
    max-width: 85vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    user-select: none;
    transition: opacity 0.15s ease;
}

.svc-lightbox__img.is-loading {
    opacity: 0;
}

.svc-lightbox__close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10000;
}

.svc-lightbox__close:hover {
    opacity: 1;
}

.svc-lightbox__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    z-index: 10000;
    opacity: 0.7;
}

.svc-lightbox__arrow:hover {
    opacity: 1;
}

.svc-lightbox__arrow--prev {
    left: 16px;
}

.svc-lightbox__arrow--next {
    right: 16px;
}

.svc-lightbox__arrow:disabled {
    opacity: 0.2;
    pointer-events: none;
}

.svc-lightbox__counter {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 1.5px;
}

/* Gallery responsive */
@media (max-width: 768px) {
    .service-gallery {
        flex-direction: row;
        width: 100%;
    }

    .service-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        width: 100%;
    }

    .service-gallery__view-all {
        flex-direction: column;
        width: 44px;
        gap: 4px;
    }

    .svc-lightbox__arrow--prev {
        left: 6px;
    }

    .svc-lightbox__arrow--next {
        right: 6px;
    }

    .svc-lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}

/* ============================================
   RECENT PROJECTS SECTION (shared cards)
   ============================================ */

.recent-projects-section {
    background-color: transparent;
    padding: 32px clamp(8px, 3vw, 40px) 32px;
}

.recent-projects-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.recent-projects-section .projects-row {
    max-width: 1100px;
    margin: 0 auto;
}

.recent-projects-section .project-card-image {
    aspect-ratio: 5 / 3;
}

.recent-projects-section .section-title-row {
    display: block;
    text-align: left;
}

.recent-projects-section .section-title-row::before,
.recent-projects-section .section-title-row::after {
    display: none;
}

.recent-projects-section .section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: 0;
    text-transform: none;
}

/* ── World Map Section title ── */
.world-map-title-wrap {
    padding: 32px clamp(8px, 3vw, 40px) 0;
}

.world-map-title-wrap>.section-title-row {
    max-width: 1200px;
    margin: 0 auto;
}

.world-map-title-wrap .section-title-row {
    display: block;
    text-align: left;
}

.world-map-title-wrap .section-title-row::before,
.world-map-title-wrap .section-title-row::after {
    display: none;
}

.world-map-title-wrap .section-title {
    font-family: var(--font-heading);
    font-size: 34px;
    letter-spacing: 0;
    text-transform: none;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 52px;
}

.section-title-row::before,
.section-title-row::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #1a1a1a;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 7px;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

/* Utility: lined heading */
.lined-heading {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    margin: 0;
    font-weight: 300;
}

.lined-heading::before,
.lined-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: currentColor;
}

/* Projects row: grid + view-all */
.projects-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.projects-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Individual project card */
.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card-link:hover .project-card-title {
    color: var(--color-accent);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
    margin-bottom: 14px;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.project-card-link:hover .project-card-image img {
    transform: scale(1.04);
}

.project-card-no-image {
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
}

.project-card-info {
    padding: 0 2px;
}

.project-card-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-card-title {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0 0 5px;
    line-height: 1.4;
}

.project-card-date {
    font-family: var(--font-body);
    font-size: 11px;
    color: #999;
    font-weight: 300;
}

/* View all link */
.projects-view-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #1a1a1a;
    flex-shrink: 0;
    width: 60px;
    transition: color 0.2s ease;
}

.projects-view-all:hover {
    color: var(--color-accent);
}

.view-all-arrow {
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
}

.view-all-text {
    font-family: var(--font-body);
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .recent-projects-section {
        padding: 50px 16px 60px;
    }

    .services-home-title-wrap,
    .world-map-title-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .projects-row {
        flex-direction: column;
        align-items: stretch;
    }

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

    /* Show only first 2 project cards on mobile */
    .projects-grid .project-card:nth-child(n+3) {
        display: none;
    }

    .projects-view-all {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-grid {
        gap: 18px;
    }

    .section-title {
        font-size: 15px;
        letter-spacing: 5px;
    }
}

/* ============================================
   PROJECTS ARCHIVE PAGE
   ============================================ */

.projects-archive-page {
    min-height: 100vh;
    background: #ffffff;
}

/* ============================================
   PAGE TITLE — reusable across all pages
   ============================================ */
.page-title-wrap {
    padding: 48px 20px 0;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.2;
}

.about-page {
    position: relative;
    overflow: visible;
}

.about-watermark {
    position: absolute;
    top: 60px;
    right: 20px;
    height: 600px;
    width: auto;
    display: block;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 1366px) {
    .about-watermark {
        display: none;
    }
}


.about-page .page-title-wrap {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .page-title-wrap {
        padding: 32px 20px 0;
    }

    .page-title {
        font-size: 24px;
    }
}

/* Filter bar */
.projects-filter-bar {
    background: #ffffff;
}

.projects-filter-inner {
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.projects-filter-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.filter-tab {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
    text-decoration: none;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.filter-tab .filter-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.filter-tab.is-active {
    color: #1a1a1a;
}

.filter-tab:hover {
    color: #1a1a1a;
}

/* Search toggle */
.projects-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.projects-search-toggle:hover {
    color: var(--color-accent);
}

/* Search bar (hidden by default) */
.projects-search-bar {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid transparent;
}

.projects-search-bar.is-open {
    max-height: 80px;
    border-top-color: #ebebeb;
}

.projects-search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.projects-search-input {
    flex: 1;
    border: none;
    border-bottom: 1px solid #1a1a1a;
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: #1a1a1a;
    background: transparent;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.projects-search-input::placeholder {
    color: #bbb;
}

.projects-search-submit {
    background: none;
    border: none;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 4px;
}

/* Clear search link */
.projects-search-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    padding: 4px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.projects-search-clear:hover {
    color: #1a1a1a;
}

/* Dim category tabs while a search is active */
.projects-filter-tabs.is-search-active .filter-tab {
    opacity: 0.35;
    pointer-events: none;
}

/* Separator */
.projects-separator {
    height: 1px;
    margin: 0 20px;
    background-color: #1a1a1a;
}

/* Projects grid */
.projects-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    column-gap: 6px;
    row-gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 56px;
}

.archive-project-item {
    position: relative;
    background: transparent;
    aspect-ratio: 4 / 3;
}

.archive-project-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

.archive-project-inner {
    position: absolute;
    inset: 0;
    clip-path: inset(0% 0%);
    transition: clip-path 0.5s ease;
}

.archive-project-link:hover .archive-project-inner {
    clip-path: inset(25% 0%);
}

.archive-project-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.archive-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-project-no-image {
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
}

/* Overlay */
.archive-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
    transition: background 0.45s ease;
    overflow: hidden;
}

.archive-project-link:hover .archive-project-overlay {
    background: rgba(10, 10, 10, 0.55);
}

.archive-overlay-title,
.archive-overlay-location {
    color: #ffffff;
    font-family: 'FS Siena', serif;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.38s ease, transform 0.38s ease;
}

.archive-project-link:hover .archive-overlay-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.08s;
}

.archive-project-link:hover .archive-overlay-location {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.16s;
}

.archive-overlay-title {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 5px;
    line-height: 1.3;
}

.archive-overlay-location {
    font-size: 15px;
    font-weight: 200;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

/* Empty state */
.projects-archive-empty {
    padding: 80px 32px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: #999;
}

.back-to-all {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.back-to-all:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Pagination */
.projects-pagination {
    display: flex;
    justify-content: center;
    padding: 40px 32px;
}

.projects-pagination .page-numbers {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.projects-pagination .page-numbers li a,
.projects-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    border: 1px solid #e0e0e0;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.projects-pagination .page-numbers li a:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

.projects-pagination .page-numbers li span.current {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 4px;
        row-gap: 20px;
        padding: 20px 20px 40px;
    }

    .projects-filter-inner {
        padding: 14px 20px;
    }

    .projects-filter-tabs {
        gap: 16px;
    }

    .filter-tab {
        font-size: 11px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-archive-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 24px 20px 48px;
        row-gap: 28px;
    }
}

/* ============================================
   SINGLE PROJECT PAGE
   ============================================ */

.single-project-page {
    background: #ffffff;
}

/* Hero image */
.single-project-hero {
    width: 100%;
    max-height: 72vh;
    overflow: hidden;
    background: #f0f0f0;
}

.single-project-hero img {
    width: 100%;
    height: 100%;
    max-height: 72vh;
    object-fit: cover;
    display: block;
}

/* Hero video — direct upload (MP4) */
.single-project-hero--video {
    height: 72vh;
    max-height: 72vh;
    overflow: hidden;
    background: #000;
}

.single-project-hero--video video {
    width: 100%;
    height: 72vh;
    max-height: 72vh;
    object-fit: cover;
    display: block;
}

/* Hero video — YouTube iframe */
.project-video-iframe-wrap {
    width: 100%;
    height: 72vh;
}

.project-video-iframe-wrap iframe {
    width: 100%;
    height: 72vh;
    display: block;
    border: 0;
}

/* Content wrapper */
.single-project-content {
    padding: 52px 32px 60px;
    position: relative;
}

.single-project-inner {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    /* clearfix for float */
    position: relative;
    z-index: 1;
}

/* Map column — floats top-right, content wraps around it */
.single-project-map-col {
    float: right;
    margin: 0 0 32px 48px;
}

.project-detail-map-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
}

#project-detail-map {
    width: 100%;
    height: 100%;
}

/* Leaflet controls inside circle map */
#project-detail-map .leaflet-control-zoom {
    margin: 0 0 10px 10px;
}

#project-detail-map .leaflet-control-zoom a {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
}

/* Meta row */
.single-project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.single-project-category {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-project-category:hover {
    color: var(--color-accent);
}

.single-project-meta-sep {
    color: #ccc;
    font-size: 11px;
}

.single-project-date {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    color: #bbb;
    letter-spacing: 0.5px;
}

/* Title */
.single-project-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1.3;
    margin: 0 0 36px;
}

/* Statistics bar */
.project-stats {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 48px;
}

.project-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    padding: 0 40px 0 0;
}

.project-stat-label {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    align-self: stretch;
    text-align: right;
}

.project-stat-value {
    font-family: var(--font-heading);
    font-size: 50px;
    font-weight: 100;
    color: var(--color-primary);
    letter-spacing: -4px;
    line-height: 1;
}

.project-stat-sep {
    width: 1px;
    background: #ccc;
    align-self: stretch;
    margin: 0 40px 0 0;
    flex-shrink: 0;
}

/* Excerpt */
.single-project-excerpt {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    margin: 0 0 32px;
    border-left: 3px solid #e0e0e0;
    padding-left: 20px;
}

/* Editor content */
.single-project-body {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    color: #333;
    line-height: 1.9;
}

.single-project-body p {
    margin: 0 0 1.4em;
}

.single-project-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 28px 0;
}

.single-project-body h2,
.single-project-body h3 {
    font-weight: 300;
    letter-spacing: 0.5px;
    margin: 32px 0 14px;
}

/* Bottom navigation */
.single-project-nav {
    border-top: 1px solid #ebebeb;
    padding: 24px 32px 40px;
}

.single-project-nav .single-project-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.project-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.project-back-link:hover {
    color: var(--color-accent);
}

.project-prev-next {
    display: flex;
    align-items: center;
    gap: 28px;
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-nav-link:hover {
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .single-project-hero {
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .single-project-hero img {
        max-height: none;
        height: 100%;
    }

    .single-project-hero--video {
        height: auto;
        max-height: none;
        aspect-ratio: 4 / 3;
    }

    .single-project-hero--video video {
        height: 100%;
        max-height: none;
    }

    .project-video-iframe-wrap {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .project-video-iframe-wrap iframe {
        height: 100%;
    }

    .single-project-content {
        padding: 36px 20px 48px;
    }

    .single-project-map-col {
        float: right;
        margin: 0 0 16px 12px;
    }

    .project-detail-map-circle {
        width: 108px;
        height: 108px;
    }

    #project-detail-map .leaflet-control-zoom {
        display: none;
    }

    .single-project-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .project-stats {
        flex-wrap: wrap;
        gap: 8px 0;
        max-width: calc(100% - 120px);
    }

    .project-stat-item {
        padding: 0 8px 0 0;
    }

    .project-stat-label {
        font-size: 7px;
    }

    .project-stat-value {
        font-size: 20px;
        letter-spacing: -2px;
    }

    .project-stat-sep {
        margin: 0 8px 0 0;
    }

    .single-project-nav {
        padding: 20px 20px 32px;
    }

    .single-project-nav .single-project-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-prev-next {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-detail-map-circle {
        width: 256px;
        height: 256px;
    }

    .single-project-map-col {
        margin-left: 24px;
    }

    .project-stats {
        margin-right: 280px;
    }

    .project-stat-value {
        font-size: 45px;
    }

    .single-project-title {
        font-size: 41px;
    }
}

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

.site-footer {
    background-color: #030303;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0 36px;
    position: relative;
    color: #fff;
}

/* Inner grid — 4 cols, brand row at bottom */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 32px;
    align-items: start;
}

/* Column shared */
.footer-col {
    min-width: 0;
}

/* Section headings */
.footer-col-title {
    font-size: 1.7rem;
    font-weight: 100;
    letter-spacing: 0;

    margin: 0 0 14px;
    color: #fff;
}

.footer-col-title--spaced {
    margin-top: 24px;
}

/* ---- Bottom: Brand ---- */
.footer-col--brand {
    grid-column: 1 / -1;
    padding-top: 24px;
    margin-top: 8px;
    text-align: center;
}

.footer-brand-name {
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1;
}

.footer-col--brand .custom-logo-link img,
.footer-col--brand .custom-logo,
.footer-logo-img {
    max-width: 140px;
    height: auto;
    display: block;
}

.footer-logo-link {
    display: inline-block;
    line-height: 0;
}

.footer-site-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-copyright {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

/* ---- Col 2: Links / Footer menu ---- */
.footer-col--links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col--links li {
    margin: 0;
    padding: 0;
}

.footer-col--links li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.footer-col--links li a:hover {
    color: #fff;
}

/* ---- Col 3: Office ---- */
.footer-office-location {
    margin-bottom: 16px;
}

.footer-office-location:last-child {
    margin-bottom: 0;
}

.footer-office-country,
.footer-office-address,
.footer-office-phone {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.6;
}

.footer-office-country {
    font-weight: 700;
    color: #ffffff;
}

.footer-phone-link,
.footer-phone-link:visited,
.footer-phone-link:hover,
.footer-phone-link:active {
    color: inherit;
    text-decoration: none;
}

/* ---- Col 4: Careers + Social ---- */
.footer-careers-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 6px;
    line-height: 1.5;
}


.footer-social-icons {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: var(--color-accent, #d4af37);
}

.footer-social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-email {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email:hover {
    color: #fff;
}

/* ---- Col 5: Contact Us Form ---- */
.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-contact-form input[type="text"],
.footer-contact-form input[type="email"],
.footer-contact-form textarea {
    width: 100%;
    background: #ffffff;
    border: none;
    outline: none;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: #999;
}

.footer-contact-form textarea {
    min-height: 72px;
    resize: none;
}

.footer-contact-submit {
    width: 100%;
    background: #e8e8e8;
    border: none;
    padding: 9px 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 2px;
}

.footer-contact-submit:hover {
    background: #d8d8d8;
}

.footer-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-contact-feedback {
    font-size: 0.78rem;
    margin: 4px 0 0;
    min-height: 1.2em;
    line-height: 1.4;
}

.dijed-cf-success {
    color: #2e7d32;
}

.dijed-cf-error {
    color: #c0392b;
}

/* ---- Footer responsive ---- */
@media (max-width: 1100px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
    }

    /* Contact form spans all 3 columns */
    .footer-col--contact {
        grid-column: 1 / -1;
    }

    /* Keep heading size and weight consistent across all title columns */
    .footer-col-title {
        font-size: 1.1rem;
        font-weight: 100;
        text-transform: uppercase;
    }

    /* Tighten office locations */
    .footer-office-location {
        margin-bottom: 10px;
    }

    /* Social icons wrap instead of staying on one line */
    .footer-social-icons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Reduce non-title footer fonts by 10% */
    .footer-col--links li a {
        font-size: 0.79rem;
    }

    .footer-office-country,
    .footer-office-address,
    .footer-office-phone {
        font-size: 0.79rem;
    }

    .footer-careers-text {
        font-size: 0.79rem;
    }

    .footer-email {
        font-size: 0.79rem;
    }

    .footer-copyright {
        font-size: 1.08rem;
    }

    .footer-brand-name {
        font-size: 2.25rem;
    }

    .footer-site-title {
        font-size: 0.99rem;
    }

    .footer-contact-feedback {
        font-size: 0.7rem;
    }

    /* Smaller contact form */
    .footer-contact-form input,
    .footer-contact-form textarea {
        font-size: 0.72rem;
        padding: 8px 10px;
    }

    .footer-contact-form textarea {
        height: 60px;
    }

    .footer-contact-submit {
        font-size: 0.72rem;
        padding: 8px 16px;
    }
}

/* ============================================
   WORLD MAP SECTION  (D3 Natural Earth — pure SVG)
   ============================================ */
.world-map-section {
    background: transparent;
    padding: 60px 0 0;
}

.projects-archive-page .world-map-section {
    padding-top: 16px;
}

#dijed-world-map {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 520px;
    overflow: hidden;
}

/* ── Image Maps (shortcode instances) ── */
.dijed-png-map-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    line-height: 0;
    overflow: hidden;
}

.dijed-png-map-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.dijed-png-map-pins {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Base pin — shared properties */
.dijed-png-pin {
    position: absolute;
    pointer-events: auto;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

/* ── Shape: circle (animated pulse ring) ── */
.dijed-png-pin--circle {
    width: var(--pin-size, 20px);
    height: var(--pin-size, 20px);
    transform: translate(-50%, -50%);
}

.dijed-png-pin--circle .dijed-png-pin__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(232, 160, 32, 0.35);
    animation: dijed-pin-pulse 2s ease-out infinite;
}

.dijed-png-pin--circle .dijed-png-pin__dot {
    position: absolute;
    width: 50%;
    height: 50%;
    background: #E8A020;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1.5px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: background 0.15s;
    pointer-events: none;
}

.dijed-png-pin--circle:hover .dijed-png-pin__dot,
.dijed-png-pin--circle:focus .dijed-png-pin__dot {
    background: #c07010;
}

.dijed-png-pin--circle:focus {
    outline: 2px solid #E8A020;
    outline-offset: 2px;
    border-radius: 50%;
}

/* ── Shape: location marker pin ── */
.dijed-png-pin--marker {
    width: var(--pin-size, 24px);
    height: calc(var(--pin-size, 24px) * 1.5);
    transform: translate(-50%, -100%);
}

.dijed-png-pin__marker-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.15s;
}

.dijed-png-pin--marker:hover .dijed-png-pin__marker-svg {
    transform: scale(1.15) translateY(-2px);
}

.dijed-png-pin--marker:hover .dijed-png-pin__marker-svg path {
    fill: #b8912a;
}

.dijed-png-pin--marker:focus {
    outline: none;
}

.dijed-png-map-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10;
}

.dijed-png-map-tooltip.is-visible {
    opacity: 1;
}

@keyframes dijed-pin-pulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

.dijed-pin-pulse {
    animation: dijed-pin-pulse 2s ease-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.dijed-pin-dot {
    pointer-events: none;
}

/* Prevent borders from scaling thick on zoom */
#dijed-world-map .dijed-countries path {
    vector-effect: non-scaling-stroke;
}

/* ── Zoom buttons ─────────────────────────────────────── */
.dijed-map-controls {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.dijed-zoom-btn {
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid rgba(61, 80, 96, 0.3);
    color: #3d5060;
    font-size: 1.2rem;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    font-family: inherit;
}

.dijed-zoom-btn:hover {
    background: #f0f2f4;
}

@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
    .projects-archive-page #dijed-world-map {
        height: 280px;
    }
}

@media (max-width: 768px) {

    #dijed-world-map {
        height: 340px;
    }

    .world-map-section {
        padding: 40px 0 0;
    }
}

@media (max-width: 480px) {

    #dijed-world-map {
        height: 240px;
    }
}


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

/* Intro: logo left + description right */
.about-intro {
    padding: 60px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.about-pre-numbers-logo {
    padding: 65px 25px 0;
    max-width: calc(1200px + 70px);
    margin: 0 auto;
    box-sizing: border-box;
}

.about-pre-numbers-logo-img {
    height: 70px;
    width: auto;
    display: block;
}

/* Mobile duplicate — hidden on desktop (in min-width block to avoid overriding mobile rules) */

/* ============================================
   SINGLE PROJECT PAGE DECORATIVE WATERMARK
   ============================================ */

.project-watermark {
    position: absolute;
    height: 600px;
    width: auto;
    display: block;
    pointer-events: none;
    z-index: 0;
}

.project-watermark--left {
    left: 20px;
    top: 20px;
}

@media (max-width: 1366px) {
    .project-watermark {
        display: none;
    }
}

.about-intro-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-logo-col {
    flex: 0 0 280px;
}

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

.about-text-col {
    flex: 1;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #444;
    line-height: 1.8;
}

.about-text-col p {
    margin: 0 0 1em;
    line-height: 1.1;
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
    font-weight: 100;
}

/* People of DijED section */
.people-section {
    padding: 80px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.people-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.people-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0 0 60px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.2em;
}

.people-title-text {
    position: relative;
    top: -0.40em;
}

.people-title-logo {
    display: block;
    height: 0.9em;
    width: auto;
    align-self: flex-start;
    position: relative;
    top: -0.30em;
}

.people-group-label {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-primary);
    margin: 48px 0 28px;
}

/* Partners — 2-column grid, each card: photo left + info right */
.partners-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    margin-bottom: 64px;
}

.partner-card {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.partner-card-photo {
    flex: 0 0 264px;
}

.partner-card-photo img {
    width: 100%;
    height: 336px;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

.partner-card-info {
    flex: 1;
    padding-top: 0;
}

.partner-card-header {
    height: 168px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-card .person-name {
    font-size: 1.8rem;
    line-height: 1.0;
    margin: 0;
}

.partner-card .person-role {
    font-size: 1.0rem;
    font-weight: 300;
    line-height: 1.0;
    color: var(--color-primary);
    margin: 0;
}

.partner-card .person-bio,
.partner-card .person-bio * {
    font-family: var(--font-body) !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    font-style: normal !important;
    color: #555 !important;
    line-height: 1.45 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Team — 4-column grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.team-card-photo img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
}

.team-card-info {
    padding: 12px 0 0;
}

.team-card .person-name {
    font-weight: 700;
}

/* Shared person name + role styles */
.person-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin: 0 0 4px;
}

.person-role {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #888;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}

.person-bio {
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #555;
    line-height: 1.75;
}

.person-no-photo {
    background: #e0e0e0;
    width: 100%;
    aspect-ratio: 3 / 4;
}

/* Responsive */
@media (max-width: 900px) {
    .about-intro-inner {
        flex-direction: column;
        gap: 32px;
    }

    .about-logo-col {
        flex: none;
        width: 200px;
    }

    .partners-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .partner-card-photo {
        flex: 0 0 180px;
    }

    .partner-card-photo img {
        height: 220px;
    }

    .partner-card-header {
        height: 110px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .partner-card {
        flex-direction: column;
    }

    .partner-card-photo {
        flex: none;
        width: 100%;
    }

    .partner-card-photo img {
        height: auto;
    }

    .partner-card-header {
        height: auto;
        justify-content: flex-start;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .partner-card .person-name {
        font-size: 1rem;
        font-weight: 700;
        line-height: normal;
        margin: 0 0 4px;
    }

    .partner-card .person-role {
        font-size: 0.78rem;
        font-weight: 400;
        color: #888;
        letter-spacing: 0.04em;
        line-height: normal;
        margin: 0 0 14px;
    }

    .partner-card .person-bio,
    .partner-card .person-bio * {
        font-size: 0.78rem !important;
        font-weight: 400 !important;
        line-height: 1.0 !important;
    }
}

/* ── About CTA Banner ──────────────────────────────────────────── */
.about-cta-banner {
    text-align: center;
    padding: 80px 24px;
}

.about-cta-heading {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin: 0 0 16px;
}

.about-cta-sub {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin: 0;
}

.about-cta-email {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.about-cta-email:hover {
    opacity: 0.6;
}

@media (max-width: 600px) {
    .about-cta-heading {
        font-size: 1.2rem;
    }

    .about-cta-sub {
        font-size: 0.85rem;
    }
}

/* ===========================================
   CONTACT PAGE
=========================================== */

/* Hide footer, remove content padding */
.page-template-page-contact-php .site-footer {
    display: none !important;
}


/* Make #page a flex column capped at 100vh so header + content = exact viewport */
.page-template-page-contact-php #page {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* WP admin bar pushes html down 32px — compensate */
.admin-bar.page-template-page-contact-php #page {
    height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar.page-template-page-contact-php #page {
        height: calc(100vh - 46px);
    }
}

/* Content area fills whatever space is left after the header */
.page-template-page-contact-php #content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.page-template-page-contact-php .site-content {
    flex: 1;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Full-height section with featured-image background */
.contact-page {
    flex: 1;
    /* fills the content area — no more guessing px */
    min-height: 0;
    /* allow flex child to shrink below content size */
    background-color: #232A2D;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}


/* Two-column inner wrapper */
.contact-page-inner {
    display: flex;
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 40px 32px;
    gap: 48px;
    align-items: center;
}

/* ── Left column ── */
.contact-page-left {
    flex: 0 0 64%;
    max-width: 64%;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

/* "Meet DIJED" heading */
.contact-page-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 100;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 0 0 28px;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.2em;
}

.contact-title-meet {
    display: block;
    position: relative;
    top: -0.30em;
}

.contact-title-logo {
    display: block;
    height: 0.9em;
    width: auto;
    align-self: flex-start;
}

/* Map */
.contact-map-wrap {
    width: 100%;
    margin-bottom: 24px;
}

.contact-map-wrap .dijed-png-map-wrap,
.contact-map-wrap .dijed-png-map-img {
    width: 100%;
    display: block;
}

/* Office locations row */
.contact-offices {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-office-item {
    flex: 1;
    min-width: 120px;
}

.contact-office-country {
    font-family: var(--font-heading);
    font-size: 1.0rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
    line-height: normal;
}

.contact-office-address,
.contact-office-phone {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2px;
    line-height: normal;
}

.contact-office-phone a {
    color: inherit;
    text-decoration: none;
}

.contact-office-phone a:hover {
    color: #ffffff;
}

/* ── Right column ── */
.contact-page-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Form title ("Ready to collaborate?") */
.contact-page-right .dijed-cf-title {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 300;
    color: #ffffff;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
    line-height: 1.2;
}

/* Form fields */
.contact-page-right .dijed-contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-page-right .dijed-contact-form input[type="text"],
.contact-page-right .dijed-contact-form input[type="email"],
.contact-page-right .dijed-contact-form textarea {
    width: 100%;
    background: #ffffff;
    border: none;
    outline: none;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: #333;
}

.contact-page-right .dijed-contact-form input::placeholder,
.contact-page-right .dijed-contact-form textarea::placeholder {
    color: #999;
}

.contact-page-right .dijed-contact-form textarea {
    min-height: 100px;
    resize: none;
}

.contact-page-right .dijed-contact-form button[type="submit"] {
    width: 100%;
    background: #e8e8e8;
    color: #1a1a1a;
    border: none;
    padding: 14px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-page-right .dijed-contact-form button[type="submit"]:hover {
    background: #d0d0d0;
}

.contact-page-right .dijed-contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Feedback messages */
.contact-page-right [aria-live="polite"] {
    font-size: 0.8rem;
    margin: 2px 0 0;
    min-height: 1.2em;
    color: rgba(255, 255, 255, 0.8);
}

.contact-page-right .dijed-cf-success {
    color: #7de07f;
}

.contact-page-right .dijed-cf-error {
    color: #ff7070;
}

/* ── Follow Us ── */
.contact-follow-us {
    text-align: center;
}

.contact-follow-title {
    font-size: 1.7rem;
    font-weight: 100;
    letter-spacing: 0;
    color: #ffffff;
    margin: 0 0 14px;
}

.contact-social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-social-link {
    color: #ffffff;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
}

.contact-social-link:hover {
    opacity: 0.65;
}

/* ── Brand / Copyright ── */
.contact-page-brand {
    text-align: center;
    padding: 16px 40px 28px;
}

.contact-brand-name {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1;
}

.contact-copyright {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 960px) {

    /* Let #page grow beyond viewport so content scrolls naturally
       and the section background covers the full scroll height */
    .page-template-page-contact-php #page {
        height: auto;
        min-height: 100vh;
    }

    .admin-bar.page-template-page-contact-php #page {
        min-height: calc(100vh - 32px);
    }

    /* Section must also grow to contain all its content */
    .contact-page {
        flex: none;
        min-height: 100%;
    }

    .contact-page-inner {
        flex-direction: column;
        padding: 36px 24px;
        gap: 36px;
    }

    .contact-page-left,
    .contact-page-right {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .contact-page-title {
        font-size: 1.7rem;
    }

    .contact-page-right .dijed-cf-title {
        font-size: 1.4rem;
    }

    .contact-offices {
        gap: 16px;
    }

    .contact-office-item {
        min-width: 100px;
    }
}

/* ============================================
   INTRO SPLASH SCREEN
   ============================================ */
#dijed-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}
#dijed-intro.is-fading {
    opacity: 0;
    pointer-events: none;
}
#dijed-intro img {
    width: 50%; /* mobile portrait default */
    height: auto;
}
@media (min-width: 769px) {
    #dijed-intro img {
        width: 25%;
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    #dijed-intro img {
        width: 25%;
    }
}
}