/*
Theme Name: ALASRI theme
Theme URI: https://example.com/ALASRI-theme
Author: Bakhoum Nasr
Author URI: https://example.com
Description: A custom WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ALASRI-theme
Tags: custom, responsive, modern
*/

/* Reset and Base Styles */
:root {
    --color-primary: #1a1a1a;
    --color-secondary: #ffffff;
    --color-accent: #c0392b;
    --color-text: #333333;
    --color-border: #e0e0e0;
    --color-bg-light: #f5f5f5;

    --font-body: "Lato", Georgia, serif;
    --font-heading: "Lato", Georgia, serif;

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

    --container-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

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

/* ============================================
   HEADER STYLES
   ============================================ */

.site-header {
    background-color: #5f5f5f;
    padding: 15px 0;
    position: relative;
    overflow: hidden;
    z-index: 1000;
}

/*
   Background image layer:
   - Spans full header width
   - top/bottom: 0 so it fills the full header height exactly
   - background-size: auto 100% → image natural width, full height
   - background-position: calc(100% - 30px) center → image right edge sits 30px from header right
*/
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: var(--header-bg-image, none);
    /* natural width, full height — image won't stretch or crop vertically */
    background-size: auto 100%;
    background-repeat: no-repeat;
    /* pin image's right side 30px from the header's right edge */
    background-position: calc(100% - 30px) center;
    z-index: 0;
    pointer-events: none;
}

/* Header content sits above the bg image layer */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: none;
    padding: 0 24px;
}


/* ============================================
   LOGO / BRANDING STYLES
   ============================================ */

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-logo-link {
    display: inline-block;
    line-height: 0;
    transition: transform 0.3s ease;
}

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

.custom-logo {
    max-height: 50px;
    width: auto;
    display: block;
    /* Add logo styling */
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.custom-logo:hover {
    filter: brightness(1.1);
}

/* Fallback site title when no logo is set */
.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.site-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    margin-top: 5px;
}

/* ============================================
   NAVIGATION MENU STYLES
   ============================================ */

.main-navigation {
    display: flex;
    align-items: center;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover effect with underline animation */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.main-navigation a:hover::after {
    transform: scaleX(1);
}

/* Current/Active menu item */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    color: var(--color-accent);
}

.main-navigation .current-menu-item>a::after,
.main-navigation .current_page_item>a::after {
    transform: scaleX(1);
}

/* Dropdown menu styles (if you have submenus) */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(40, 40, 40, 0.98);
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    gap: 0;
    z-index: 999;
}

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

.main-navigation ul ul a {
    padding: 12px 20px;
    font-size: 13px;
    text-transform: none;
}

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

/* ============================================
   HAMBURGER / MOBILE DRAWER — global defaults
   ============================================ */

/* Button hidden on desktop */
.menu-toggle {
    display: none;
}

/* Desktop nav + social wrapper */
.header-right {
    display: flex;
    align-items: center;
}

/* Header social icons (desktop) */
.header-social {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 40px;
}

.header-social a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    padding: 12px 0;
    transition: color 0.3s ease;
}

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

/* Drawer hidden on desktop */
.mobile-drawer {
    display: none;
}

/* Overlay hidden everywhere until activated */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
}

/* Content */
.site-content {
    padding: 0;
    min-height: 60vh;
}

.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    color: #666;
}

.main-content {
    margin-top: 0;
}

.entry-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.entry-content {
    margin-top: 0;
}

.entry-content p {
    margin-bottom: 15px;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-size: 120px;
    font-weight: bold;
    color: #0073aa;
    margin: 0;
}

.error-404 h2 {
    font-size: 32px;
    margin: 20px 0;
}

.error-404 p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.error-actions {
    margin-top: 30px;
}

.btn-home {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-home:hover {
    background-color: #005a87;
}

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

.site-footer {
    background-color: #f0f0f0;
    padding: 40px 0 36px;
}

/* Inner grid */
.footer-inner {
    display: grid;
    grid-template-columns: 310fr 116fr 195fr 180fr 231fr;
    gap: 32px;
    align-items: start;
}

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

/* Section headings */
.footer-col-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.0em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #1a1a1a;
}

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

/* ---- Col 1: Brand ---- */
.footer-col--brand {
    align-self: center;
}

.footer-brand-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

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

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

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

.footer-copyright {
    font-size: 1.2rem;
    color: #666;
    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: #444;
    text-decoration: none;
    line-height: 1;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

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

/* ---- Col 3: Office ---- */
.footer-col--office p {
    font-size: 0.88rem;
    color: #444;
    margin: 0;
    line-height: 1.8;
}

/* ---- Col 4: Social + Enquiries ---- */
.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: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

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

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

.footer-email {
    font-size: 0.88rem;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email:hover {
    color: #1a1a1a;
}

/* ---- 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;
}

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

.alasri-cf-error {
    color: var(--color-accent);
}

/* ---- Standalone Contact Form (shortcode / page embed) ---- */
.alasri-cf-wrap {
    max-width: 480px;
    margin: 0 auto;
}

.alasri-cf-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 24px;
    line-height: 1.2;
}

.alasri-cf-title strong {
    color: #1a1a1a;
    font-weight: 700;
}

.alasri-cf-wrap .alasri-contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alasri-cf-wrap .alasri-contact-form input[type="text"],
.alasri-cf-wrap .alasri-contact-form input[type="email"],
.alasri-cf-wrap .alasri-contact-form textarea {
    width: 100%;
    border: 1px solid #d0d0d0;
    outline: none;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    box-sizing: border-box;
}

.alasri-cf-wrap .alasri-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.alasri-cf-wrap .alasri-contact-form button[type="submit"] {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 12px 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.alasri-cf-wrap .alasri-contact-form button[type="submit"]:hover {
    background: #333;
}

.alasri-cf-wrap .alasri-contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alasri-cf-wrap [aria-live] {
    font-size: 0.8rem;
    margin: 4px 0 0;
    min-height: 1.2em;
    line-height: 1.4;
}

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

    .footer-col--contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        column-gap: 16px;
        row-gap: 6px;
        align-items: start;
    }

    /* Column order & placement */
    .footer-col--links   { grid-column: 1;      grid-row: 1; }
    .footer-col--office  { grid-column: 2;      grid-row: 1; }
    .footer-col--social  { grid-column: 3;      grid-row: 1; }
    .footer-col--contact { grid-column: 1 / -1; grid-row: 2; }
    .footer-col--brand   { grid-column: 1 / -1; grid-row: 3; align-self: center; text-align: center; }

    .footer-logo-img {
        max-width: 100%;
    }

    .footer-col-title {
        font-size: 1.1rem;
    }

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

    /* Reduce non-title footer fonts */
    .footer-col--links li a {
        font-size: 0.79rem;
        padding: 2px 0;
    }

    .footer-col--office p {
        font-size: 0.79rem;
    }

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

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

    .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;
    }
}

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

.by-numbers-section {
    background-color: #ffffff;
    padding: clamp(30px, 5vw, 60px) clamp(16px, 3vw, 40px);
    border-bottom: 1px solid #ebebeb;
}

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

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

.by-numbers-logo {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 13px);
    margin-bottom: 20px;
}

.stats-section-logo {
    height: clamp(13px, 1.8vw, 24px);
    width: auto;
    display: block;
    flex-shrink: 0;
}

.by-numbers-label-text {
    font-family: var(--font-heading);
    font-size: clamp(13px, 1.8vw, 24px);
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    white-space: nowrap;
    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 stats ---- */
.by-numbers-grid {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 clamp(16px, 3vw, 40px);
    padding-left: clamp(16px, 3vw, 40px);
    align-items: start;
}

.by-numbers-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(34px, 4.2vw, 60px);
    font-weight: 700;
    color: #b0b0b0;
    line-height: 1;
    letter-spacing: -1px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */


@media (max-width: 768px) {

    /* Header adjustments */
    .site-header {
        padding: 12px 0;
    }

    .site-header .container {
        padding: 0 20px;
    }

    /* Logo sizing for mobile */
    .custom-logo {
        max-height: 40px;
    }

    .site-title {
        font-size: 20px;
    }

    /* Hide the desktop navigation on mobile */
    .main-navigation {
        display: none;
    }

    /* ---- Hamburger button ---- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 26px;
        height: 18px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        margin-right: 20px;
        flex-shrink: 0;
    }

    .menu-toggle-bar {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff;
        border-radius: 1px;
        transition: transform 0.28s ease, opacity 0.28s ease;
        transform-origin: center;
    }

    .menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .menu-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ---- Mobile drawer panel ---- */
    .mobile-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 75vw;
        max-width: 300px;
        height: 100vh;
        background-color: #1a1a1a;
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 80px 0 40px;
        box-sizing: border-box;
    }

    .mobile-drawer.is-open {
        transform: translateX(0);
    }

    /* Close button inside drawer */
    .mobile-drawer-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-drawer-close span {
        position: absolute;
        width: 22px;
        height: 2px;
        background-color: #ffffff;
        border-radius: 1px;
        display: block;
    }

    .mobile-drawer-close span:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-drawer-close span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .mobile-drawer ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .mobile-drawer ul ul {
        background-color: rgba(255, 255, 255, 0.04);
    }

    .mobile-drawer li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-drawer>ul>li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-drawer a {
        display: block;
        padding: 15px 24px;
        color: #ffffff;
        text-decoration: none;
        font-size: 13px;
        font-weight: 400;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-drawer a:hover,
    .mobile-drawer .current-menu-item>a {
        color: var(--color-accent);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .mobile-drawer ul ul a {
        padding-left: 40px;
        font-size: 12px;
    }

    /* Header social icons hidden on mobile */
    .header-social {
        display: none;
    }

    /* Social icons inside mobile drawer */
    .mobile-drawer-social {
        display: flex;
        gap: 4px;
        justify-content: center;
        padding: 2rem 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-drawer-social a {
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        background: none;
        transition: color 0.3s ease;
    }

    .mobile-drawer-social a:hover {
        color: var(--color-accent);
        background: none;
    }

    /* ---- Overlay backdrop ---- */
    .mobile-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Content adjustments */
    .entry-title {
        font-size: 24px;
    }

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

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

    .error-404 h1 {
        font-size: 80px;
    }

    /* By Numbers — mobile: stack vertically */
    .by-numbers-section {
        overflow-x: hidden;
    }

    .by-numbers-inner {
        flex-direction: column;
        gap: 24px;
    }

    .by-numbers-intro {
        flex: none;
        max-width: 100%;
    }

    /* Scale logo + text up for the full-width mobile column.
       Desktop uses 1.8vw for a ~28% column; mobile column is ~100%,
       so multiply: 1.8 × (100/28) ≈ 6vw. */
    .stats-section-logo {
        height: clamp(18px, 6vw, 32px);
    }

    .by-numbers-label-text {
        font-size: clamp(18px, 6vw, 32px);
    }

    .by-numbers-grid {
        padding-left: 0;
        padding-top: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .by-numbers-stat {
        min-width: 0;
        overflow: hidden;
    }

    .stat-number {
        font-size: clamp(24px, 6.6vw, 36px);
        letter-spacing: 0;
    }

    .stat-label {
        font-size: clamp(7px, 1.8vw, 9px);
    }
}

/* Tablet and larger screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .main-navigation a {
        padding: 12px 15px;
        font-size: 13px;
    }

    /* By Numbers — tablet: handled by base clamp() values */
}

/* ============================================
   RECENT PROJECTS SECTION
   ============================================ */

.recent-projects-section {
    background-color: #ffffff;
    padding: 70px 40px 80px;
}

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

/* ---- Section title with decorative lines ---- */
.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: #1a1a1a;
    letter-spacing: 7px;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
}

/* ============================================
   UTILITY: lined-heading
   Apply to any H1–H6 to get full-width lines
   on both sides of the text, e.g.:
     <h2 class="lined-heading">OUR WORK</h2>
   ============================================ */
.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: #1a1a1a;
    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;
}

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

    .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;
    }
}

/* ============================================
   OUR CLIENTS SECTION
   ============================================ */

.our-clients-section {
    background-color: #ffffff;
    padding: 70px 40px 80px;
    /* border-top: 1px solid #ebebeb; */
}

.our-clients-inner {
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ---- Individual logo — square cell ---- */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    width: 120px;
    flex-shrink: 0;
    padding: 20px;
    /* border: 1px solid #ebebeb; */
    margin: -1px 0 0 -1px;
    /* collapse borders so they share 1px lines */
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.08);
}

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

    .client-logo {
        width: 80px;
    }
}

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

/* ============================================
   HOMEPAGE MAP SECTION
   ============================================ */
.homepage-map-section {
    background: #fff;
}

.homepage-map-section .section-title-row {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.homepage-map-container {
    width: 100%;
    height: 500px;
    position: relative;
    background: #dde3e8;
    overflow: hidden;
}

/* Reuse the same Leaflet styles as the archive map */
#projects-map-container.homepage-map-container .leaflet-container {
    width: 100%;
    height: 100%;
    background: #dde3e8;
}

@media (max-width: 768px) {
    .homepage-map-container {
        height: 300px;
    }
}

/* ============================================
   OUR TEAM PAGE
   ============================================ */
.our-team-header {
    margin-top: 84px;
    margin-bottom: 84px;
}

/* Desktop: 6 columns (screen > 1024px) */
@media (min-width: 1025px) {
    .wp-block-columns.team-grid-6-columns {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .wp-block-columns.team-grid-6-columns .wp-block-column {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Desktop: 6 columns (screen > 1024px) */
@media (min-width: 1025px) {
    .wp-block-columns.team-grid-6-columns {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
    }

    .wp-block-columns.team-grid-6-columns .wp-block-column {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Tablet: 4 columns (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .wp-block-columns.team-grid-6-columns {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .wp-block-columns.team-grid-6-columns .wp-block-column {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Mobile: 3 columns (below 768px) */
@media (max-width: 767px) {
    .wp-block-columns.team-grid-6-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .wp-block-columns.team-grid-6-columns .wp-block-column {
        flex: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
}

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

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

/* ---- Hero section ---- */
.projects-hero {
    display: flex;
    width: 100%;
    height: 340px;
    position: relative;
    z-index: 1;
    /* establishes stacking context so heading z-index 1000 beats Leaflet panes (200–800) */
}

.projects-hero-left {
    flex: 0 0 45%;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Heading overlay: spans full hero width, aligned to container (matches logo) */
.projects-hero-heading-wrap {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
}

.projects-hero-heading-wrap .container {
    max-width: none;
    padding: 0 24px;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.hero-our {
    color: var(--color-accent);
    font-style: normal;
    font-weight: 400;
}

.projects-hero-right {
    flex: 1;
    background-color: #dde3e8;
    position: relative;
    overflow: hidden;
}

.map-zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-accent);
    pointer-events: none;
    z-index: 10;
}

/* Hero responsive */
@media (max-width: 768px) {
    .projects-hero {
        flex-direction: column;
        height: auto;
    }

    .projects-hero-left {
        display: none;
    }

    .projects-hero-right {
        flex: none;
        height: 220px;
    }

    .projects-hero-heading-wrap {
        top: auto;
        transform: none;
        bottom: 16px;
    }

    .hero-heading {
        font-size: 28px;
        white-space: normal;
        line-height: 1.2;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .projects-hero {
        height: 280px;
    }

    .hero-heading {
        font-size: 56px;
    }
}

/* ---- Leaflet map inside hero ---- */
#projects-map-container .leaflet-container {
    width: 100%;
    height: 100%;
    background: #dde3e8;
}

/* CARTO light_nolabels is already grey/blue — just a slight brightness lift */
#projects-map-container .leaflet-tile-pane {
    filter: brightness(1.05);
}

/* Blue pin icon — no default leaflet image */
.alasri-map-pin {
    background: none !important;
    border: none !important;
}

/* Popup */
#projects-map-container .leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 10px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

#projects-map-container .leaflet-popup-content {
    margin: 0;
    font-family: var(--font-body);
}

.map-popup-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.3px;
    display: block;
    white-space: nowrap;
}

.map-popup-link:hover {
    color: var(--color-accent);
}

/* Zoom controls */
#projects-map-container .leaflet-control-zoom {
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

#projects-map-container .leaflet-control-zoom a {
    font-family: var(--font-body);
    color: #1a1a1a;
    border-radius: 0 !important;
}

/* Attribution */
#projects-map-container .leaflet-control-attribution {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.7);
}

/* Hide any Leaflet overlay pane shadows / grid artefacts */
#projects-map-container .leaflet-shadow-pane,
#projects-map-container .leaflet-overlay-pane svg {
    display: none;
}

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

.projects-filter-inner {
    /* max-width: 1200px; */
    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 icon */
.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;
}

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

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

.archive-project-item {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    aspect-ratio: 3 / 4;
}

.archive-project-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.archive-project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.archive-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.5s ease;
}

.archive-project-link:hover .archive-project-image img {
    transform: scale(1.05);
}

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

/* Overlay: appears on hover */
.archive-project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    transition: background 0.35s ease;
}

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

.archive-overlay-category,
.archive-overlay-title {
    color: #ffffff;
    font-family: var(--font-body);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}

.archive-project-link:hover .archive-overlay-category,
.archive-project-link:hover .archive-overlay-title {
    opacity: 1;
    transform: translateY(0);
}

.archive-overlay-category {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.archive-overlay-title {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.3px;
    transition-delay: 0.08s;
}

/* ---- 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;
}

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

.single-project-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* ---- 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: 28px;
    font-weight: 300;
    color: #1a1a1a;
    letter-spacing: 1px;
    line-height: 1.3;
    margin: 0 0 24px;
}

/* ---- Excerpt / description ---- */
.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;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .single-project-hero {
        max-height: none;
        aspect-ratio: 16 / 9;
    }

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

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

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

    .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;
    }
}

/* ============================================
   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;
}

/* 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, upper portion of hero, 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;
    align-items: flex-end;
    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;
}

/* Only the hovered column darkens — no effect on others or on default state */
.services-column:hover {
    background: rgba(0, 0, 0, 0.18);
}

/* Accent bottom line on active column */
.services-column.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-accent);
}

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

/* ============================================
   SERVICES PAGE — ICONS ROW (below hero)
   ============================================ */

.services-icons-row {
    text-align: center;
    padding: 24px 20px;
}

.services-icons-row img {
    display: block;
    margin: 0 auto;
    height: 100px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .services-icons-row img {
        width: 90%;
        height: auto;
    }
}

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

.services-detail {
    padding: 0;
}

.service-section {
    padding: 56px 0;
    border-bottom: 1px solid #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
}

.service-section:last-child {
    border-bottom: none;
}

/* Split layout: image left, text right */
.service-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 32px;
}

.service-split__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.service-split__image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e8e8e8;
}

.service-split__text {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.service-split__name {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 300;
    color: var(--color-primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

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

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

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

/* Projects strip under each service — reuses all .projects-* classes */
.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-split {
        gap: 36px;
    }

    .service-split__name {
        font-size: 22px;
    }
}

/* 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;
    }

    /* Columns still full height on mobile — names stack at bottom */
    .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;
        hyphens: none;
    }

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

    /* Stack split vertically on mobile */
    .service-split {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 32px;
    }

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

    /* Mobile order: title → image → description */
    .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;
    }

    /* 2-column project cards on mobile, matches home page */
    .service-projects .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   HERO SLIDER (Custom)
   ============================================ */

/* Content overlay: slides in from the right (next) or left (prev) */
@keyframes alasri-left-in-next {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes alasri-left-in-prev {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Clip-path wipe-in on the <img>: right side reveals first, sweeps left */
@keyframes alasri-img-in {
    0%, 5% {
        clip-path: inset(0 0 0 100%);
        transform: scale(1.15);
        transform-origin: left center;
    }
    100% {
        clip-path: inset(0 -2px 0 0);
        transform: scale(1);
        transform-origin: left center;
    }
}

/* Outgoing <img>: subtle Ken Burns scale-up while being covered */
@keyframes alasri-img-out {
    from { transform: scale(1);    transform-origin: right center; }
    to   { transform: scale(1.08); transform-origin: right center; }
}

.alasri-hero-slider {
    display: flex;
    width: 100%;
    height: calc(100dvh - var(--header-height, 80px));
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
}

/* — Full-width image panel — */
.alasri-slider-right {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

/* — Left-to-right gradient for text readability — */
.alasri-slider-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 45%, transparent 75%);
    z-index: 5;
    pointer-events: none;
}

/* — Slide images (stacked, clip-path wipe) — */
.alasri-slide-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
}

.alasri-slide-image.is-active {
    opacity: 1;
    z-index: 1;
}

/* Incoming: make container visible, animate the <img> with clip-path wipe */
.alasri-slide-image.is-entering-next,
.alasri-slide-image.is-entering-prev {
    opacity: 1;
    z-index: 2;
}
.alasri-slide-image.is-entering-next img,
.alasri-slide-image.is-entering-prev img {
    animation: alasri-img-in 0.8s cubic-bezier(.46, .03, .52, .96) both;
}

/* Outgoing: keep container visible, animate <img> with Ken Burns scale */
.alasri-slide-image.is-leaving {
    opacity: 1;
    z-index: 1;
}
.alasri-slide-image.is-leaving img {
    animation: alasri-img-out 0.8s cubic-bezier(.46, .03, .52, .96) forwards;
}

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

/* — Content overlay stack (all slides stacked, one active) — */
.alasri-slider-content-stack {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.alasri-slide-left {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px 45% 80px 60px;
}

.alasri-slide-left.is-active {
    opacity: 1;
    pointer-events: auto;
}

.alasri-slide-left.is-entering-next {
    animation: alasri-left-in-next 0.65s cubic-bezier(.46, .03, .52, .96) both;
}
.alasri-slide-left.is-entering-prev {
    animation: alasri-left-in-prev 0.65s cubic-bezier(.46, .03, .52, .96) both;
}

.alasri-slide-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alasri-slide-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.2vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: left;
}

.alasri-slide-para {
    font-family: var(--font-body);
    font-size: clamp(0.82rem, 1vw, 1rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* — View Project link — */
.alasri-slide-view-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
    margin-top: 8px;
}

.alasri-slide-view-link:hover {
    color: var(--color-accent);
}

.alasri-view-dash {
    font-size: 16px;
    line-height: 1;
    font-weight: 300;
}

/* — Prev / Next arrows (bottom right of image panel) — */
.alasri-slider-arrows {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.alasri-slider-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.alasri-slider-arrow:hover {
    opacity: 0.5;
}

.alasri-slider-arrow img {
    width: 35px;
    height: 35px;
    display: block;
    filter: brightness(0) invert(1);
}

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

    .alasri-slider-right {
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .alasri-slide-left {
        padding: 12px 16px 32px 20px;
        justify-content: flex-end;
    }

    .alasri-slide-title {
        font-size: clamp(0.9rem, 3vw, 1.3rem);
    }

    .alasri-slide-para {
        font-size: clamp(0.65rem, 2vw, 0.78rem);
        -webkit-line-clamp: 3;
    }

    .alasri-slide-view-link {
        font-size: 10px;
        margin-top: 4px;
    }

    .alasri-view-dash {
        font-size: 13px;
    }

    .alasri-slider-arrows {
        bottom: 16px;
        right: 16px;
    }

    .alasri-slider-right::before {
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    }
}

/* — Tablet — */
@media (min-width: 769px) and (max-width: 1024px) {
    .alasri-hero-slider {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .alasri-slide-title {
        font-size: clamp(1.2rem, 2vw, 2rem);
    }

    .alasri-slide-left {
        padding: 32px 38% 60px 40px;
    }
}

/* ============================================
   OUR TEAM PAGE
   ============================================ */

.our-team-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.our-team-page .alasri-cf-wrap {
    margin-top: 100px;
}

.our-team-intro {
    margin-bottom: 40px;
}

/* ── Section heading: — Founders — / — Our Team — ── */
.people-group-label {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 2.28rem;
    font-weight: 200;
    letter-spacing: normal;
    color: #111;
    margin: 64px 0 36px;
    text-transform: none;
}

.people-group-label::before,
.people-group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #111;
    margin-top: 0.4em;
}

/* ── Founders: 2-column horizontal cards (Dijed approach) ── */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 60px;
    margin-bottom: 64px;
}

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

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

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

.founder-card-photo .team-member-image-placeholder {
    width: 100%;
    height: 336px;
    aspect-ratio: unset;
}

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

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

.founder-card .team-member-name {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.0;
    margin: 0;
}

.founder-card .team-member-job-title {
    font-size: 1.0rem;
    font-weight: 300;
    line-height: 1.0;
    color: #111;
    margin: 0;
}

.founder-card .team-member-bio,
.founder-card .team-member-bio * {
    font-size: 0.88rem;
    font-weight: 400;
    color: #555;
    line-height: 1.45;
    margin-top: 0;
}

/* ── Team: multi-column vertical grid ── */
.team-members-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
}

/* ── Shared card styles ── */
.team-member-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.team-member-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    line-height: 0;
}

.team-member-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
}

.team-member-image-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: #d0d0d0;
}

.team-member-divider {
    width: 100%;
    height: 7px;
    background-color: #000;
    flex-shrink: 0;
}

.team-member-name {
    margin: 10px 0 3px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.team-member-job-title {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #555;
}

.team-member-bio {
    margin-top: 12px;
    font-size: 0.8rem;
    line-height: 1.65;
    color: #555;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .team-members-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .founders-grid {
        gap: 24px;
    }

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

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

    .founder-card-photo .team-member-image-placeholder {
        height: 220px;
    }

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

/* At 768px: team goes 3-per-row, founders stack info below photo */
@media (max-width: 768px) {
    .team-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .founders-grid {
        gap: 16px 12px;
    }

    .founder-card {
        flex-direction: column;
    }

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

    .founder-card-photo img {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .founder-card-photo .team-member-image-placeholder {
        height: auto;
        aspect-ratio: 3 / 4;
    }

    .founder-card-header {
        height: auto;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .founder-card .team-member-name {
        font-size: 1rem;
        font-weight: 700;
        line-height: normal;
        margin: 0 0 4px;
    }

    .founder-card .team-member-job-title {
        font-size: 0.78rem;
        font-weight: 400;
        margin: 0 0 8px;
    }
}

@media (max-width: 480px) {
    .our-team-page {
        padding: 40px 16px 60px;
    }

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

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

.about-page {
    overflow: hidden;
}

/* ── Section 1: About Hero ── */
.about-hero-section {
    display: grid;
    background-color: #111111;
}

.about-hero-bg-img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
}

.about-hero-bg-placeholder {
    grid-area: 1 / 1;
    min-height: 600px;
}

.about-hero-content {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 80px) clamp(40px, 5vw, 80px);
    display: flex;
    flex-direction: column;
}

.about-hero-inner {
    width: 100%;
}

.about-hero-left {
    min-width: 0;
}

.about-title-logo-row {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 20px;
    width: 50%;
}

.about-hero-title {
    margin: 0;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transform: translateY(4px);
}

.about-title-accent {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.75vw, 38px);
    font-weight: 100;
    color: #ffffff;
    letter-spacing: 0;
    display: block;
}

.about-hero-logo {
    flex: 1;
    min-width: 0;
    line-height: 0;
}

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

.about-hero-description {
    font-family: var(--font-body);
    font-size: clamp(4px, 1.17vw, 14px);
    font-weight: 400;
    line-height: 1.0;
    color: #eeeeee;
    margin: 16px 0 0;
    width: 50%;
    text-align: justify;
}


/* ── Section 2: Find Us ── */
.about-find-us-section {
    background-color: #1a1a1a;
}

.about-find-us-title-wrap {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    align-self: start;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
}

.about-find-us-heading {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #1a1a1a;
    margin: 0;
    line-height: 1;
}

.about-find-us-accent {
    color: var(--color-accent);
}

.about-map-wrap {
    display: grid;
    background-color: #2a2a2a;
}

.about-map-bg-link {
    grid-area: 1 / 1;
    display: block;
    cursor: pointer;
}

.about-map-bg-img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    display: block;
}

.about-map-bg-link .about-map-bg-img {
    grid-area: unset;
}

.about-map-bg-placeholder {
    grid-area: 1 / 1;
    min-height: 500px;
}

.about-map-form {
    grid-area: 1 / 1;
    position: relative;
    z-index: 3;
    margin-left: auto;
    margin-right: clamp(24px, 3vw, 48px);
    align-self: center;
    width: clamp(260px, 32%, 400px);
    background: rgba(0, 0, 0, 0.5);
    padding: clamp(24px, 3vw, 48px);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

/* Lift max-width constraint set by the generic .alasri-cf-wrap */
.about-map-form .alasri-cf-wrap {
    max-width: none;
    margin: 0;
}

/* Title text — white on dark panel */
.about-map-form .alasri-cf-title {
    color: #ffffff;
}

/* Remove reserved space from the empty status element so bottom padding matches other sides */
.about-map-form [aria-live] {
    min-height: 0;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .about-hero-inner {
        align-items: center;
    }

    .about-title-accent {
        font-size: clamp(28px, 4vw, 38px);
    }

    .about-hero-logo {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .about-hero-content {
        padding-bottom: 0;
    }

    .about-hero-inner {
        flex-direction: column;
        gap: 24px;
    }

    .about-title-accent {
        font-size: clamp(24px, 5.5vw, 32px);
    }

    .about-hero-logo {
        max-width: 120px;
        justify-content: flex-start;
    }

    /* Stack map then form on mobile */
    .about-map-wrap {
        display: block;
        position: relative;
    }

    .about-map-bg-img,
    .about-map-bg-link {
        grid-area: unset;
        width: 100%;
        display: block;
    }

    .about-find-us-title-wrap {
        grid-area: unset;
        position: absolute;
        top: 16px;
        left: 0;
        right: 0;
        margin-top: 0;
    }

    .about-map-bg-placeholder {
        min-height: 250px;
    }

    .about-map-form {
        grid-area: unset;
        position: static;
        width: 100%;
        margin-left: 0;
    }

    .about-map-form .alasri-cf-title {
        font-size: 1rem;
    }

    .about-map-form .alasri-contact-form input[type="text"],
    .about-map-form .alasri-contact-form input[type="email"],
    .about-map-form .alasri-contact-form textarea {
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .about-map-form .alasri-contact-form textarea {
        min-height: 70px;
    }

    .about-map-form .alasri-contact-form button[type="submit"] {
        padding: 8px 0;
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .about-find-us-title-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }

    .about-map-form {
        padding: 24px 20px;
    }
}