/* ==========================================================================
   Absolute Construction - Dev Mockup Pages Styles
   Design System v3 — Dark Red, Black & White
   Brand Colors: Deep Crimson #8B1A1A, Black #0A0D0E, White #FFFFFF
   ========================================================================== */

/* ---------- Theme Overrides ---------- */
.trx_addons_scroll_to_top { display: none !important; }

/* Hide "How We Work" / process section on home page */
.dev-section:has(.dev-process-grid) { display: none !important; }

/* Featured Projects section — white background */
.dev-section--alt:has(.dev-gallery-preview) { background-color: var(--ac-white); }

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand — Deep Crimson palette */
    --ac-red: #8B1A1A;
    --ac-red-dark: #6B1010;
    --ac-red-light: #A52222;

    /* Neutrals */
    --ac-title: #121414;
    --ac-charcoal: #2D2D2D;
    --ac-text: #6B6E72;
    --ac-meta: #ACAFB2;
    --ac-dark: #0A0D0E;
    --ac-dark-alt: #141818;
    --ac-bg-alt: #F5F5F2;
    --ac-border: #E2E4DC;
    --ac-white: #FFFFFF;

    /* Typography */
    --ac-font-body: 'Inter', sans-serif;
    --ac-font-heading: 'Inter Tight', sans-serif;

    /* Layout */
    --ac-content-width: 1290px;
    --ac-content-narrow: 900px;
    --ac-section-padding: 8rem;

    /* Shapes */
    --ac-radius: 10px;
    --ac-btn-radius: 10px;
    --ac-card-radius: 10px;
}

/* =============================================
   SITE HEADER — Transparent Overlay
   Sits on top of the hero, transitions to solid on scroll
   ============================================= */
.dev-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease, padding 0.45s ease;
    padding: 12px 0;
}

/* Scrolled state: solid white background */
.dev-site-header--scrolled {
    background: var(--ac-white);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    border-bottom-color: var(--ac-border);
    padding: 0;
}

.dev-site-header__inner {
    max-width: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 100px;
    transition: height 0.45s ease;
    position: relative;
}

.dev-site-header--scrolled .dev-site-header__inner {
    height: 80px;
}

/* ---------- Logo with dual versions ---------- */
.dev-site-header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 50px;
    position: relative;
}

/* Default (transparent header): center the white logo */
.dev-site-header:not(.dev-site-header--scrolled) .dev-site-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-right: 0;
}

.dev-site-header__logo-img {
    height: 85px;
    width: auto;
    display: block;
    transition: opacity 0.45s ease, height 0.45s ease;
}

.dev-site-header--scrolled .dev-site-header__logo-img {
    height: 52px;
}

/* Default (transparent): show light logo, hide dark */
.dev-site-header__logo-img--light {
    opacity: 1;
}

.dev-site-header__logo-img--dark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

/* Scrolled: swap logos */
.dev-site-header--scrolled .dev-site-header__logo-img--light {
    opacity: 0;
}

.dev-site-header--scrolled .dev-site-header__logo-img--dark {
    opacity: 1;
}

/* ---------- Desktop Navigation ---------- */
.dev-site-header__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.dev-site-header__nav a {
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    padding: 12px 22px;
    position: relative;
    transition: color 0.3s ease;
    letter-spacing: 0.2px;
}

.dev-site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: var(--ac-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.dev-site-header__nav a:hover {
    color: var(--ac-white);
}

.dev-site-header__nav a.active {
    color: var(--ac-white);
}

.dev-site-header__nav a:hover::after,
.dev-site-header__nav a.active::after {
    transform: scaleX(1);
}

/* Scrolled state: dark text */
.dev-site-header--scrolled .dev-site-header__nav a {
    color: var(--ac-title);
}

.dev-site-header--scrolled .dev-site-header__nav a:hover,
.dev-site-header--scrolled .dev-site-header__nav a.active {
    color: var(--ac-red);
}

/* Contact nav link styled as red button */
.dev-site-header__nav a.dev-nav-btn {
    background: var(--ac-red);
    color: var(--ac-white) !important;
    padding: 10px 24px;
    border-radius: 6px;
    margin-left: 8px;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.dev-site-header__nav a.dev-nav-btn:hover {
    background: var(--ac-red-dark);
    color: var(--ac-white) !important;
    transform: translateY(-1px);
}

.dev-site-header--scrolled .dev-site-header__nav a.dev-nav-btn {
    color: var(--ac-white) !important;
}

.dev-site-header--scrolled .dev-site-header__nav a.dev-nav-btn:hover {
    color: var(--ac-white) !important;
}

.dev-site-header__nav a.dev-nav-btn::after {
    display: none;
}

/* ---------- Right-side actions group (mobile only) ---------- */
.dev-site-header__actions {
    display: none;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Phone with icon */
.dev-site-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ac-font-heading);
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.dev-site-header__phone svg {
    flex-shrink: 0;
    color: var(--ac-red);
    transition: color 0.25s ease;
}

.dev-site-header__phone:hover {
    color: var(--ac-white);
}

/* Scrolled: dark phone text */
.dev-site-header--scrolled .dev-site-header__phone {
    color: var(--ac-title);
}

.dev-site-header--scrolled .dev-site-header__phone:hover {
    color: var(--ac-red);
}

/* Header CTA button */
.dev-site-header__cta {
    font-family: var(--ac-font-heading);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: var(--ac-red);
    color: var(--ac-white) !important;
    padding: 13px 30px;
    border-radius: var(--ac-btn-radius);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 12px rgba(139,26,26,0.2);
}

.dev-site-header__cta:hover {
    background: var(--ac-red-dark);
    color: var(--ac-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(139,26,26,0.35);
}

/* ---------- Animated Hamburger ---------- */
.dev-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.3s ease;
}

/* Hamburger hover: red background, lines stay white */
.dev-hamburger:hover {
    background: var(--ac-red);
}

.dev-hamburger__line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--ac-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}

/* Scrolled: dark hamburger lines */
.dev-site-header--scrolled .dev-hamburger__line {
    background: var(--ac-title);
}

/* Scrolled hamburger hover: red bg, white lines */
.dev-site-header--scrolled .dev-hamburger:hover {
    background: var(--ac-red);
}
.dev-site-header--scrolled .dev-hamburger:hover .dev-hamburger__line {
    background: var(--ac-white);
}

/* No header spacer needed — header overlays the hero */
.dev-header-spacer {
    display: none;
}

/* =============================================
   FULLSCREEN MOBILE OVERLAY
   ============================================= */
.dev-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    background: var(--ac-dark);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.dev-mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Overlay Header */
.dev-mobile-overlay__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    flex-shrink: 0;
}

.dev-mobile-overlay__logo img {
    height: 50px;
    width: auto;
}

.dev-mobile-overlay__close {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* CSS-only X icon (Elementor strips SVGs from text-editor widgets) */
.dev-mobile-overlay__close::before,
.dev-mobile-overlay__close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #FFFFFF;
    transition: background 0.25s ease;
}

.dev-mobile-overlay__close::before {
    transform: rotate(45deg);
}

.dev-mobile-overlay__close::after {
    transform: rotate(-45deg);
}

.dev-mobile-overlay__close:hover::before,
.dev-mobile-overlay__close:hover::after {
    background: #8B1A1A;
}

/* Overlay Navigation Links */
.dev-mobile-overlay__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 20px 30px;
}

.dev-mobile-overlay__link {
    font-family: var(--ac-font-heading);
    font-size: 36px;
    font-weight: 500;
    color: var(--ac-white);
    text-decoration: none;
    padding: 16px 0;
    position: relative;
    transition: color 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.dev-mobile-overlay.open .dev-mobile-overlay__link {
    opacity: 1;
    transform: translateY(0);
}

.dev-mobile-overlay.open .dev-mobile-overlay__link:nth-child(1) { transition: opacity 0.3s 0.1s ease, transform 0.3s 0.1s ease, color 0.25s ease; }
.dev-mobile-overlay.open .dev-mobile-overlay__link:nth-child(2) { transition: opacity 0.3s 0.17s ease, transform 0.3s 0.17s ease, color 0.25s ease; }
.dev-mobile-overlay.open .dev-mobile-overlay__link:nth-child(3) { transition: opacity 0.3s 0.24s ease, transform 0.3s 0.24s ease, color 0.25s ease; }
.dev-mobile-overlay.open .dev-mobile-overlay__link:nth-child(4) { transition: opacity 0.3s 0.31s ease, transform 0.3s 0.31s ease, color 0.25s ease; }

.dev-mobile-overlay__link:hover,
.dev-mobile-overlay__link.active {
    color: var(--ac-red);
}

.dev-mobile-overlay__link.active::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--ac-red);
    border-radius: 50%;
}

/* Overlay Footer */
.dev-mobile-overlay__footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    flex-shrink: 0;
}

.dev-mobile-overlay__cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
}

.dev-mobile-overlay__phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--ac-font-heading);
    font-size: 17px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.25s ease;
}

.dev-mobile-overlay__phone svg {
    color: var(--ac-red);
    flex-shrink: 0;
}

.dev-mobile-overlay__phone:hover {
    color: var(--ac-white);
}

.dev-mobile-overlay__social {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.dev-mobile-overlay__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.25s ease;
}

.dev-mobile-overlay__social a:hover {
    background: var(--ac-red);
    border-color: var(--ac-red);
    color: var(--ac-white);
}

/* =============================================
   PRE-FOOTER CTA STRIP
   ============================================= */
.dev-footer-cta {
    background: var(--ac-dark-alt);
    border-top: 3px solid var(--ac-red);
    padding: 60px 0;
    position: relative;
}

.dev-footer-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.25), transparent);
}

.dev-footer-cta__inner {
    max-width: var(--ac-content-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.dev-footer-cta__text {
    max-width: 600px;
}

.dev-footer-cta__heading {
    font-family: var(--ac-font-heading);
    font-size: 30px;
    font-weight: 500;
    color: var(--ac-white);
    margin: 0 0 10px;
    line-height: 1.2;
}

.dev-footer-cta__desc {
    font-size: 16px;
    line-height: 1.625;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.dev-footer-cta__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.dev-footer-cta__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.dev-footer-cta__phone svg {
    color: var(--ac-red-light);
    flex-shrink: 0;
}

.dev-footer-cta__phone:hover {
    color: var(--ac-white);
}

/* =============================================
   SITE FOOTER
   ============================================= */
.dev-site-footer {
    background: var(--ac-dark);
    color: rgba(255,255,255,0.65);
    font-family: var(--ac-font-body);
}

.dev-site-footer a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-site-footer a:hover {
    color: var(--ac-white);
}

.dev-footer__main {
    padding: 80px 0 60px;
}

.dev-footer__grid {
    max-width: var(--ac-content-width);
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
}

.dev-footer__brand-logo {
    height: 50px;
    width: auto;
    margin-bottom: 20px;
}

.dev-footer__brand-desc {
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 300px;
}

.dev-footer__social-icons {
    display: flex;
    gap: 12px;
}

.dev-footer__social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.dev-footer__social-icons a:hover {
    background: var(--ac-red);
    border-color: var(--ac-red);
    color: var(--ac-white);
    transform: translateY(-2px);
}

.dev-footer__heading {
    font-family: var(--ac-font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--ac-white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}

.dev-footer__heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--ac-red);
    border-radius: 1px;
}

.dev-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dev-footer__links li {
    margin-bottom: 14px;
}

.dev-footer__links a {
    font-size: 15px;
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.dev-footer__links a:hover {
    padding-left: 6px;
}

.dev-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.dev-footer__contact-icon {
    color: var(--ac-red-light);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.dev-footer__contact-icon svg {
    width: 18px;
    height: 18px;
}

/* Gradient separator between main and bottom */
.dev-footer__separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.2), transparent);
    max-width: var(--ac-content-width);
    margin: 0 auto;
}

.dev-footer__bottom {
    padding: 28px 0;
}

.dev-footer__bottom-inner {
    max-width: var(--ac-content-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(255,255,255,0.45);
}

.dev-footer__credentials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-footer__credential-badge {
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--ac-radius);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.dev-footer__credential-badge:hover {
    border-color: rgba(139,26,26,0.4);
    color: rgba(255,255,255,0.85);
}

/* =============================================
   RESPONSIVE: HEADER & FOOTER
   ============================================= */

/* Tablet: hide phone text, show icon only */
@media (max-width: 1179px) {
    .dev-site-header__phone span {
        display: none;
    }

    .dev-site-header__nav a {
        padding: 12px 16px;
    }
}

/* Mobile: collapse to hamburger */
@media (max-width: 899px) {
    .dev-site-header {
        padding: 6px 0;
    }

    .dev-site-header--scrolled {
        padding: 0;
    }

    .dev-site-header__inner {
        height: 76px;
        padding: 0 24px;
    }

    .dev-site-header--scrolled .dev-site-header__inner {
        height: 68px;
    }

    .dev-site-header__logo-img {
        height: 50px;
    }

    .dev-site-header--scrolled .dev-site-header__logo-img {
        height: 44px;
    }

    .dev-site-header__nav {
        display: none;
    }

    .dev-site-header__cta {
        display: none;
    }

    .dev-site-header__actions {
        display: flex;
    }

    .dev-hamburger {
        display: flex;
    }

    .dev-hero--medium,
    .dev-hero--short {
        padding-top: 100px;
    }
}

/* Footer mobile */
@media (max-width: 767px) {
    .dev-footer-cta__inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .dev-footer-cta__actions {
        flex-direction: column;
        gap: 16px;
    }

    .dev-footer-cta__text {
        max-width: none;
    }

    .dev-footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .dev-footer__brand-desc {
        max-width: none;
    }

    .dev-footer__bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .dev-footer__credentials {
        justify-content: center;
    }


    /* Mobile overlay refinements */
    .dev-mobile-overlay__link {
        font-size: 30px;
        padding: 14px 0;
    }
}

/* =============================================
   BASE SECTION STYLES
   ============================================= */
.dev-section {
    padding: var(--ac-section-padding) 0;
    font-family: var(--ac-font-body);
}

.dev-section--no-pad {
    padding: 0;
}

.dev-section--alt {
    background-color: var(--ac-bg-alt);
}

.dev-section--dark {
    background-color: var(--ac-dark);
    color: var(--ac-white);
}

.dev-container {
    max-width: var(--ac-content-width);
    margin: 0 auto;
    padding: 0 30px;
}

.dev-container--narrow {
    max-width: var(--ac-content-narrow);
    margin: 0 auto;
    padding: 0 30px;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.dev-eyebrow {
    font-family: var(--ac-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--ac-red);
    margin-bottom: 16px;
    display: block;
}

.dev-eyebrow--light {
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
}

.dev-headline {
    font-family: var(--ac-font-heading);
    font-size: 47px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--ac-title);
    margin: 0 0 20px;
}

.dev-headline--white {
    color: var(--ac-white);
}

.dev-headline--large {
    font-size: 57px;
}

.dev-headline--medium {
    font-size: 35px;
}

.dev-subtext {
    font-size: 16px;
    line-height: 1.625;
    color: var(--ac-text);
    margin-bottom: 20px;
}

.dev-subtext--white {
    color: rgba(255,255,255,0.85);
}

.dev-subtext--large {
    font-size: 18px;
}

/* =============================================
   BUTTONS
   ============================================= */
.dev-btn {
    display: inline-block;
    padding: 18px 42px;
    font-family: var(--ac-font-heading);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--ac-btn-radius);
    cursor: pointer;
    transition: all 0.35s ease;
    letter-spacing: 0.3px;
}

.dev-btn--primary {
    background-color: var(--ac-red);
    color: var(--ac-white);
    box-shadow: 0 4px 16px rgba(139,26,26,0.25);
}

.dev-btn--primary:hover {
    background-color: var(--ac-red-dark);
    color: var(--ac-white);
    box-shadow: 0 6px 24px rgba(139,26,26,0.35);
    transform: translateY(-2px);
}

.dev-btn--secondary {
    background-color: transparent;
    color: var(--ac-white);
    border: 2px solid rgba(255,255,255,0.4);
}

.dev-btn--secondary:hover {
    border-color: var(--ac-white);
    color: var(--ac-white);
    background: rgba(255,255,255,0.08);
}

.dev-btn--outline {
    background-color: transparent;
    color: var(--ac-title);
    border: 2px solid var(--ac-border);
}

.dev-btn--outline:hover {
    border-color: var(--ac-title);
    background-color: var(--ac-title);
    color: var(--ac-white);
}

/* =============================================
   HERO SECTIONS
   ============================================= */
.dev-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dev-hero--full {
    min-height: 100vh;
    background-attachment: fixed;
}

.dev-hero--medium {
    min-height: 50vh;
    padding-top: 124px;
}

.dev-hero--short {
    min-height: 40vh;
    padding-top: 124px;
}

.dev-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10,13,14,0.72) 0%, rgba(10,13,14,0.35) 35%, rgba(10,13,14,0.45) 70%, rgba(10,13,14,0.7) 100%);
    z-index: 1;
}

.dev-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 30px;
}

.dev-hero__title {
    font-family: var(--ac-font-heading);
    font-size: 60px;
    font-weight: 500;
    color: var(--ac-white);
    line-height: 1.08;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.dev-hero__logo-svg {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
}

/* Home hero: all text in soft warm white (matches testimonial bg) */
.dev-hero--full .dev-hero__title,
.dev-hero--full .dev-hero__tagline,
.dev-hero--full .dev-hero__subtitle {
    color: var(--ac-bg-alt);
}

.dev-hero__tagline {
    font-family: var(--ac-font-heading);
    font-size: 24px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    margin: 0 0 16px;
    line-height: 1.4;
}

.dev-hero__subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.dev-hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero children auto-animate on page load */
.dev-hero__content .dev-anim {
    opacity: 0;
    animation-fill-mode: both;
}

.dev-hero__content .dev-anim.dev-anim--fade-up {
    animation: devFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Hero scroll hint line */
.dev-hero--full::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(transparent, rgba(255,255,255,0.3));
    z-index: 2;
    animation: devHeroLine 1s 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dev-hero__breadcrumb {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    letter-spacing: 1px;
}

.dev-hero__breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

.dev-hero__breadcrumb a:hover {
    color: var(--ac-white);
}

/* =============================================
   TRUST BAR / CREDENTIALS
   ============================================= */
.dev-trust-bar {
    background-color: var(--ac-dark);
    padding: 28px 0;
    border-top: 3px solid var(--ac-red);
}

.dev-trust-bar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.dev-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 24px;
    border-right: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}

.dev-trust-item:last-child {
    border-right: none;
}

.dev-trust-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--ac-red-light);
    flex-shrink: 0;
}

.dev-trust-item__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =============================================
   ABOUT SECTION (Two Column)
   ============================================= */
.dev-about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.dev-about__text .dev-subtext {
    margin-bottom: 16px;
}

.dev-about__image-wrap {
    position: relative;
    padding: 24px;
}

.dev-about__image-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
    border: 2px solid var(--ac-red);
    border-radius: var(--ac-radius);
    z-index: 0;
    pointer-events: none;
}

.dev-about__image-wrap::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 40px;
    width: 80px;
    height: 4px;
    background: var(--ac-red);
    border-radius: 2px;
    z-index: 2;
}

.dev-about__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--ac-radius);
    box-shadow: 0 16px 50px rgba(0,0,0,0.14);
    position: relative;
    z-index: 1;
    display: block;
}

/* =============================================
   STATS COUNTER SECTION
   ============================================= */
.dev-stats-section {
    background: var(--ac-dark-alt);
    padding: 5rem 0;
    position: relative;
}

.dev-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.3), transparent);
}

.dev-stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.3), transparent);
}

.dev-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.dev-stat__number {
    font-family: var(--ac-font-heading);
    font-size: 57px;
    font-weight: 500;
    color: var(--ac-white);
    line-height: 1;
    margin-bottom: 10px;
}

.dev-stat__label {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* =============================================
   SERVICE CARDS GRID
   ============================================= */
.dev-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.dev-section-header .dev-headline {
    margin-bottom: 0;
}

.dev-section-header .dev-subtext {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 16px;
}

.dev-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.dev-service-card {
    background: var(--ac-white);
    overflow: hidden;
    border-radius: var(--ac-card-radius);
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.dev-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.dev-service-card__image-wrap {
    overflow: hidden;
    border-radius: var(--ac-card-radius) var(--ac-card-radius) 0 0;
}

.dev-service-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dev-service-card:hover .dev-service-card__image {
    transform: scale(1.05);
}

.dev-service-card__body {
    padding: 32px;
}

.dev-service-card__title {
    font-family: var(--ac-font-heading);
    font-size: 23px;
    font-weight: 500;
    color: var(--ac-title);
    margin: 0 0 12px;
}

.dev-service-card__desc {
    font-size: 15px;
    line-height: 1.625;
    color: var(--ac-text);
    margin-bottom: 20px;
}

.dev-service-card__link {
    font-size: 16px;
    font-weight: 500;
    color: var(--ac-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-service-card__link:hover {
    color: var(--ac-red-dark);
}

.dev-service-card__link::after {
    content: ' \2192';
}

/* =============================================
   PROCESS / HOW WE WORK SECTION
   ============================================= */
.dev-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
}

.dev-process-step {
    text-align: center;
    position: relative;
}

.dev-process-step__number {
    font-family: var(--ac-font-heading);
    font-size: 57px;
    font-weight: 500;
    color: rgba(139, 26, 26, 0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.dev-process-step__title {
    font-family: var(--ac-font-heading);
    font-size: 23px;
    font-weight: 500;
    color: var(--ac-title);
    margin-bottom: 12px;
}

.dev-process-step__desc {
    font-size: 15px;
    line-height: 1.625;
    color: var(--ac-text);
}

/* Connector lines between steps */
.dev-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--ac-border);
}

/* =============================================
   GALLERY PREVIEW SECTION (HOME PAGE)
   ============================================= */
.dev-gallery-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
}

.dev-gallery-preview__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ac-radius);
    cursor: pointer;
}

.dev-gallery-preview__item--large {
    grid-row: 1 / 3;
}

.dev-gallery-preview__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dev-gallery-preview__item:hover .dev-gallery-preview__image {
    transform: scale(1.05);
}

.dev-gallery-preview__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(transparent, rgba(10,13,14,0.75));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.dev-gallery-preview__item:hover .dev-gallery-preview__overlay {
    opacity: 1;
}

.dev-gallery-preview__label::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--ac-red-light);
    margin-bottom: 10px;
}

.dev-gallery-preview__label {
    color: var(--ac-white);
    font-family: var(--ac-font-heading);
    font-size: 19px;
    font-weight: 500;
}

/* =============================================
   CTA BANNER
   ============================================= */
.dev-cta-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--ac-section-padding) 0;
    text-align: center;
}

.dev-cta-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(10,13,14,0.8) 0%, rgba(20,24,24,0.65) 50%, rgba(10,13,14,0.8) 100%);
}

.dev-cta-banner__content {
    position: relative;
    z-index: 2;
}

.dev-cta-banner__phone {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
}

.dev-cta-banner__phone a {
    color: var(--ac-white);
    text-decoration: none;
    font-weight: 500;
}

/* =============================================
   TESTIMONIAL SECTION
   ============================================= */
.dev-testimonial {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.dev-testimonial__card {
    background: var(--ac-white);
    border-radius: var(--ac-radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    padding: 56px 48px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.dev-testimonial__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ac-red);
    border-radius: 0 0 2px 2px;
}

.dev-testimonial__stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.dev-testimonial__stars svg {
    width: 22px;
    height: 22px;
    fill: #FBBF24;
}

.dev-testimonial__quote {
    font-family: var(--ac-font-heading);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--ac-title);
    margin-bottom: 28px;
}

.dev-testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.dev-testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ac-red);
    color: var(--ac-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 500;
    flex-shrink: 0;
}

.dev-testimonial__name {
    text-align: left;
}

.dev-testimonial__name strong {
    display: block;
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--ac-title);
}

.dev-testimonial__name span {
    font-size: 14px;
    color: var(--ac-text);
}

/* Legacy testimonial support (services/gallery pages) */
.dev-testimonial__attribution {
    font-size: 16px;
    color: var(--ac-text);
    font-weight: 500;
}

/* =============================================
   SERVICES PAGE - DETAIL BLOCKS
   ============================================= */
.dev-service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--ac-border);
}

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

.dev-service-detail--reverse {
    direction: rtl;
}

.dev-service-detail--reverse > * {
    direction: ltr;
}

.dev-service-detail__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--ac-radius);
}

.dev-service-detail__content {
    padding: 20px 0;
}

.dev-service-detail__title {
    font-family: var(--ac-font-heading);
    font-size: 30px;
    font-weight: 500;
    color: var(--ac-title);
    margin: 0 0 16px;
}

.dev-service-detail__desc {
    font-size: 16px;
    line-height: 1.625;
    color: var(--ac-text);
    margin-bottom: 20px;
}

.dev-service-detail__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dev-service-detail__list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 15px;
    color: var(--ac-title);
}

.dev-service-detail__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background-color: var(--ac-red);
    border-radius: 50%;
}

/* =============================================
   GALLERY PAGE
   ============================================= */
.dev-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.dev-filter-tab {
    padding: 10px 24px;
    font-family: var(--ac-font-heading);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--ac-border);
    border-radius: var(--ac-radius);
    background: transparent;
    color: var(--ac-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dev-filter-tab:hover,
.dev-filter-tab--active {
    border-color: var(--ac-red);
    color: var(--ac-red);
    background: transparent;
}

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

.dev-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ac-radius);
    cursor: pointer;
}

.dev-gallery-item__image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.dev-gallery-item:hover .dev-gallery-item__image {
    transform: scale(1.05);
}

.dev-gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 26, 26, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--ac-radius);
}

.dev-gallery-item:hover .dev-gallery-item__overlay {
    opacity: 1;
}

.dev-gallery-item__category {
    color: var(--ac-white);
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dev-photo-credit {
    text-align: center;
    font-size: 14px;
    color: var(--ac-meta);
    margin-top: 30px;
    font-style: italic;
}

/* Portfolio widget — image border radius */
.sc_portfolio .post_featured.sc_portfolio_item_thumb {
    border-radius: var(--ac-radius);
    overflow: hidden;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.dev-contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

/* Override Elementor's flex on the e-con-inner wrapper so our grid applies */
:is(.elementor-page, .elementor-editor-active) .dev-contact-layout.e-con-boxed > .e-con-inner {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: var(--container-max-width, 1140px);
    margin: 0 auto;
}

/* Ensure child containers fill their grid cell (equal height) */
:is(.elementor-page, .elementor-editor-active) .dev-contact-layout.e-con-boxed > .e-con-inner {
    align-items: stretch;
}

:is(.elementor-page, .elementor-editor-active) .dev-contact-layout .dev-form-card,
:is(.elementor-page, .elementor-editor-active) .dev-contact-layout .dev-contact-info {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    align-self: stretch !important;
}

.dev-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dev-form-group {
    margin-bottom: 20px;
}

.dev-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ac-title);
    margin-bottom: 8px;
}

.dev-form-input,
.dev-form-select,
.dev-form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--ac-font-body);
    font-size: 15px;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    background: var(--ac-white);
    color: var(--ac-title);
    transition: border-color 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.dev-form-input:focus,
.dev-form-select:focus,
.dev-form-textarea:focus {
    border-color: var(--ac-red);
}

.dev-form-textarea {
    height: 150px;
    resize: vertical;
}

.dev-contact-info {
    background: var(--ac-bg-alt);
    padding: 40px;
    border-radius: var(--ac-radius);
}

.dev-contact-info__title {
    font-family: var(--ac-font-heading);
    font-size: 24px;
    font-weight: 500;
    color: var(--ac-title);
    margin: 0 0 24px;
}

.dev-contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--ac-text);
}

.dev-contact-info__icon {
    color: var(--ac-red);
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.dev-contact-info__item a {
    color: var(--ac-title);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dev-contact-info__item a:hover {
    color: var(--ac-red);
}

.dev-social-links {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--ac-border);
}

.dev-social-links__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ac-title);
    margin-bottom: 14px;
}

.dev-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--ac-text);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.dev-social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dev-social-link:hover {
    color: var(--ac-red);
}

.dev-credentials-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--ac-border);
}

.dev-credential-badge {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: var(--ac-white);
    color: var(--ac-title);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
}

.dev-map-placeholder {
    background: var(--ac-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    font-size: 18px;
    color: var(--ac-meta);
    font-family: var(--ac-font-heading);
    letter-spacing: 1px;
    border-top: 1px solid var(--ac-border);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

/* Keyframes */
@keyframes devFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes devFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes devSlideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes devSlideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes devScaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes devHeroLine {
    from { height: 0; }
    to { height: 60px; }
}

/* Base hidden state for animated elements */
.dev-anim {
    opacity: 0;
}

/* When IntersectionObserver triggers */
.dev-anim--visible {
    animation-fill-mode: both;
}

/* Animation variants */
.dev-anim--fade-up.dev-anim--visible {
    animation: devFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dev-anim--fade-in.dev-anim--visible {
    animation: devFadeIn 0.6s ease forwards;
}

.dev-anim--slide-left.dev-anim--visible {
    animation: devSlideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dev-anim--slide-right.dev-anim--visible {
    animation: devSlideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dev-anim--scale-in.dev-anim--visible {
    animation: devScaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Stagger delay classes */
.dev-anim-delay-1 { animation-delay: 0.1s; }
.dev-anim-delay-2 { animation-delay: 0.2s; }
.dev-anim-delay-3 { animation-delay: 0.3s; }
.dev-anim-delay-4 { animation-delay: 0.4s; }
.dev-anim-delay-5 { animation-delay: 0.5s; }
.dev-anim-delay-6 { animation-delay: 0.6s; }

/* Disable animations for reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .dev-anim { opacity: 1; }
    .dev-anim--visible { animation: none !important; }
}

/* =============================================
   V3 ENHANCEMENTS — Form Card, Contact Accent, Map, Service Separators
   ============================================= */

/* Form card wrapper — mirrors testimonial card aesthetic */
.dev-form-card {
    background: var(--ac-white);
    border-radius: var(--ac-card-radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    padding: 48px 40px;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.dev-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ac-red);
    border-radius: 0 0 2px 2px;
}

.dev-form-card .dev-headline {
    margin-bottom: 8px;
}

.dev-form-card .dev-subtext {
    margin-bottom: 32px;
}

/* Contact info sidebar — card styling with shadow */
.dev-contact-info {
    position: relative;
    overflow: hidden;
    background: var(--ac-bg-alt);
    border-radius: var(--ac-card-radius);
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
    padding: 48px 40px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Icon List widget icons — match site red */
.dev-contact-info .elementor-icon-list-icon i,
.dev-contact-info .elementor-icon-list-icon svg {
    color: var(--ac-red) !important;
    fill: var(--ac-red);
}

.dev-contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--ac-red);
    border-radius: 0 0 2px 2px;
}

/* Contact info SVG icon styling */
.dev-contact-info__icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Enhanced map placeholder */
.dev-map-placeholder--enhanced {
    background: var(--ac-bg-alt);
    border-top: 1px solid var(--ac-border);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dev-map-placeholder__content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dev-map-placeholder__content h3 {
    font-family: var(--ac-font-heading);
    font-size: 22px;
    font-weight: 500;
    color: var(--ac-title);
    margin: 0 0 8px;
}

.dev-map-placeholder__content p {
    font-size: 15px;
    color: var(--ac-text);
    margin: 0;
}

/* Service detail gradient separators */
.dev-service-detail {
    position: relative;
}

.dev-service-detail::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139,26,26,0.15), transparent);
}

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

.dev-service-detail:last-child::after {
    display: none;
}

/* =============================================
   METFORM CONTACT FORM OVERRIDES
   ============================================= */

/* Input fields */
.dev-form-card .mf-input-wrapper input[type="text"],
.dev-form-card .mf-input-wrapper input[type="email"],
.dev-form-card .mf-input-wrapper input[type="tel"],
.dev-form-card .mf-input-wrapper select,
.dev-form-card .mf-input-wrapper textarea,
.dev-form-card .mf-input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--ac-font-body);
    font-size: 15px;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius);
    background: var(--ac-white);
    color: var(--ac-title);
    transition: border-color 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.dev-form-card .mf-input-wrapper input:focus,
.dev-form-card .mf-input-wrapper select:focus,
.dev-form-card .mf-input-wrapper textarea:focus,
.dev-form-card .mf-input:focus {
    border-color: var(--ac-red);
}

.dev-form-card .mf-input-wrapper textarea,
.dev-form-card textarea.mf-input {
    height: 150px;
    resize: vertical;
}

/* Labels */
.dev-form-card .mf-input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--ac-title);
    margin-bottom: 8px;
}

/* Field spacing */
.dev-form-card .mf-input-wrapper {
    margin-bottom: 20px;
}

/* Submit button */
.dev-form-card .metform-btn,
.dev-form-card button[type="submit"] {
    width: 100%;
    padding: 16px 32px;
    background: var(--ac-red);
    color: var(--ac-white);
    border: none;
    border-radius: var(--ac-radius);
    font-family: var(--ac-font-heading);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dev-form-card .metform-btn:hover,
.dev-form-card button[type="submit"]:hover {
    background: #c50000;
    transform: translateY(-1px);
}

/* Success message */
.dev-form-card .mf-response-msg {
    padding: 16px;
    border-radius: var(--ac-radius);
    font-size: 15px;
    margin-top: 16px;
}

/* Required asterisk */
.dev-form-card .mf-required-indicator {
    color: var(--ac-red);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1279px) {
    :root {
        --ac-section-padding: 5rem;
    }

    .dev-hero__title {
        font-size: 48px;
    }

    .dev-hero__logo-svg {
        max-width: 420px;
    }

    .dev-hero__tagline {
        font-size: 20px;
    }

    .dev-headline--large {
        font-size: 45px;
    }

    .dev-headline {
        font-size: 36px;
    }

    .dev-headline--medium {
        font-size: 30px;
    }

    .dev-btn {
        padding: 16px 36px;
    }

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

    .dev-service-detail {
        gap: 40px;
    }

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

    .dev-contact-layout {
        grid-template-columns: 1fr 1fr;
    }

    .dev-footer-cta__heading {
        font-size: 26px;
    }

    .dev-footer__grid {
        gap: 30px;
    }

    .dev-process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }

    .dev-process-step:not(:last-child)::after {
        display: none;
    }

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

    .dev-stat__number {
        font-size: 45px;
    }
}

@media (max-width: 767px) {
    :root {
        --ac-section-padding: 3.5rem;
    }

    .dev-hero__title {
        font-size: 36px;
    }

    .dev-hero__logo-svg {
        max-width: 300px;
    }

    .dev-hero__tagline {
        font-size: 18px;
    }

    .dev-hero__subtitle {
        font-size: 16px;
    }

    .dev-headline--large {
        font-size: 36px;
    }

    .dev-headline {
        font-size: 31px;
    }

    .dev-headline--medium {
        font-size: 26px;
    }

    .dev-btn {
        padding: 14px 32px;
    }

    .dev-about {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dev-about__image {
        aspect-ratio: 16 / 10;
    }

    .dev-about__image-wrap::before {
        display: none;
    }

    .dev-services-grid {
        grid-template-columns: 1fr;
    }

    .dev-service-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .dev-service-detail--reverse {
        direction: ltr;
    }

    .dev-service-detail__image {
        height: 260px;
    }

    .dev-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dev-gallery-item__image {
        height: 250px;
    }

    .dev-contact-layout {
        grid-template-columns: 1fr;
    }

    :is(.elementor-page, .elementor-editor-active) .dev-contact-layout.e-con-boxed > .e-con-inner {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .dev-form-card,
    .dev-contact-info {
        padding: 32px 24px;
    }

    .dev-map-placeholder--enhanced {
        height: 220px;
    }

    /* Trust bar — 2-column grid with red dividers */
    .dev-trust-bar {
        padding: 20px 0;
    }

    .dev-trust-bar__inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .dev-trust-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 14px 12px;
        font-size: 11px;
        justify-content: center;
        gap: 8px;
        white-space: normal;
        text-align: center;
    }

    .dev-trust-item:nth-child(odd) {
        border-right: 2px solid var(--ac-red);
    }

    .dev-trust-item:last-child {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: none;
    }

    .dev-trust-item:nth-last-child(2) {
        border-bottom: none;
    }

    .dev-hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .dev-filter-tabs {
        gap: 6px;
    }

    .dev-filter-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .dev-cta-banner {
        background-attachment: scroll;
    }

    .dev-hero--full {
        background-attachment: scroll;
    }

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

    .dev-stat__number {
        font-size: 36px;
    }

    .dev-process-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dev-gallery-preview {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .dev-gallery-preview__item--large {
        grid-row: auto;
    }

    .dev-gallery-preview__image {
        height: 260px;
    }

    .dev-testimonial__card {
        padding: 32px 24px;
    }

    .dev-testimonial__quote {
        font-size: 17px;
    }

    .dev-testimonial__avatar {
        width: 40px;
        height: 40px;
    }

    .dev-testimonial__stars svg {
        width: 18px;
        height: 18px;
    }

    /* Hero — reduce padding & hide scroll hint */
    .dev-hero--medium,
    .dev-hero--short {
        min-height: 40vh;
        padding-top: 90px;
    }

    .dev-hero__content {
        padding: 30px 20px;
    }

    .dev-hero__subtitle {
        margin-bottom: 28px;
    }

    .dev-hero--full::after {
        display: none;
    }

    /* Breadcrumb */
    .dev-hero__breadcrumb {
        font-size: 13px;
        margin-top: 12px;
    }

    /* Eyebrow */
    .dev-eyebrow {
        letter-spacing: 1.5px;
        font-size: 11px;
    }

    /* Subtext */
    .dev-subtext {
        font-size: 15px;
    }

    .dev-subtext--large {
        font-size: 16px;
    }

    /* Service cards */
    .dev-service-card__body {
        padding: 24px;
    }

    .dev-service-card__title {
        font-size: 20px;
    }

    /* Process steps */
    .dev-process-step__number {
        font-size: 40px;
    }

    .dev-process-step__title {
        font-size: 19px;
    }

    /* Gallery preview */
    .dev-gallery-preview__label {
        font-size: 16px;
    }

    /* Contact form */
    .dev-form-row {
        grid-template-columns: 1fr;
    }

    .dev-form-card > form > div[style] {
        grid-template-columns: 1fr !important;
    }

    .dev-form-input,
    .dev-form-select {
        padding: 12px 14px;
        font-size: 15px;
    }

    .dev-form-textarea {
        padding: 12px 14px;
        font-size: 15px;
        height: 130px;
    }

    .dev-contact-info {
        padding: 28px;
    }

    .dev-contact-info__title {
        font-size: 20px;
    }

    /* Footer */
    .dev-footer__main {
        padding: 48px 0 36px;
    }

    .dev-footer__grid {
        padding: 0 24px;
    }

    .dev-footer__brand-desc {
        font-size: 14px;
    }

    .dev-footer__heading {
        font-size: 15px;
        margin-bottom: 16px;
    }

    /* Pre-footer CTA */
    .dev-footer-cta__heading {
        font-size: 24px;
    }

    /* Footer — center all columns on mobile */
    .dev-footer__col {
        text-align: center;
    }

    .dev-footer__heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .dev-footer__col--brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dev-footer__brand-desc {
        text-align: center;
    }

    .dev-footer__social-icons {
        justify-content: center;
    }

    .dev-footer__links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .dev-footer__links a:hover {
        padding-left: 0;
    }

    .dev-footer__contact-item {
        justify-content: center;
    }

    .dev-footer__bottom-inner {
        padding: 0 24px;
    }
}

/* =============================================
   UTILITIES
   ============================================= */
.dev-text-center {
    text-align: center;
}

.dev-mb-0 {
    margin-bottom: 0;
}

.dev-mt-30 {
    margin-top: 30px;
}

.dev-fullwidth {
    /* Preserved for backwards compatibility */
}

/* =============================================
   ELEMENTOR NATIVE WIDGET BRIDGE RULES
   Targets Elementor widget wrappers inside our
   CSS-classed containers so existing styles apply.
   ============================================= */

/* Remove default Elementor widget margins/padding inside our containers */
[class*="dev-"] > .elementor-widget-wrap > .elementor-element,
[class*="dev-"] > .e-con-inner > .elementor-element {
    margin-bottom: 0;
}

/* Ensure native heading widgets inherit our font styles */
[class*="dev-"] .elementor-widget-heading .elementor-heading-title {
    font-family: inherit;
    line-height: inherit;
}

/* Service card images via native image widget */
.dev-service-card .elementor-widget-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Service detail images via native image widget */
.dev-service-detail .elementor-widget-image img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Logo constraint inside Elementor HFE widget wrapper */
.elementor-widget-html .dev-site-header__logo {
    max-width: fit-content;
}
.elementor-widget-html .dev-site-header__logo-img {
    max-height: 85px;
}
.elementor-widget-html .dev-site-header--scrolled .dev-site-header__logo-img {
    max-height: 52px;
}

/* Footer logo constraint inside Elementor HFE widget wrapper */
.elementor-widget-html .dev-footer__brand-logo {
    height: 50px !important;
    width: auto !important;
    max-width: fit-content !important;
}

/* About section image via native widget */
.dev-about__image-wrap .elementor-widget-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--ac-radius);
    object-fit: cover;
    box-shadow: 0 16px 50px rgba(0,0,0,0.14);
}

/* About section button - strip Elementor widget wrapper chrome */
.dev-about__text .elementor-widget-button {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Elementor button widget bridge - inherit our button styles */
[class*="dev-"] .elementor-widget-button .elementor-button {
    font-family: inherit;
}

/* Center boxed sections within full-width Elementor parents */
:is(.elementor-page, .elementor-editor-active) .dev-section {
    justify-content: center !important;
    align-items: center !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-about,
:is(.elementor-page, .elementor-editor-active) .dev-services-grid,
:is(.elementor-page, .elementor-editor-active) .dev-section-header {
    width: 100% !important;
    max-width: var(--e-con-width-boxed, 1140px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* About section: override base grid for Elementor's boxed container structure */
/* Base CSS uses display:grid on .dev-about, but Elementor wraps children in .e-con-inner */
:is(.elementor-page, .elementor-editor-active) .dev-about {
    display: flex !important;
    grid-template-columns: unset !important;
    gap: unset !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-about > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    gap: 60px !important;
    align-items: center !important;
    width: 100% !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-about > .e-con-inner > .e-con {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 50% !important;
}

/* Services grid: force 3-column CSS grid on Elementor pages */
/* Container is now e-con-full (no .e-con-inner wrapper), cards are direct children */
:is(.elementor-page, .elementor-editor-active) .dev-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    flex-wrap: unset !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-services-grid > .e-con {
    width: 100% !important;
    max-width: 100% !important;
}
@media (max-width: 1279px) {
    :is(.elementor-page, .elementor-editor-active) .dev-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) {
    :is(.elementor-page, .elementor-editor-active) .dev-services-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Neutralize dev-btn styles on Elementor button widget wrappers */
.elementor-widget-button.dev-btn {
    background: none !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
/* Style the actual button element inside */
.elementor-widget-button.dev-btn--primary .elementor-button {
    background-color: var(--ac-red) !important;
    color: #fff !important;
    padding: 18px 42px !important;
    border-radius: var(--ac-btn-radius) !important;
    font-family: var(--ac-font-body) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 16px rgba(139,26,26,0.25) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.elementor-widget-button.dev-btn--primary .elementor-button:hover {
    background-color: var(--ac-red-dark) !important;
    box-shadow: 0 6px 24px rgba(139,26,26,0.35) !important;
    transform: translateY(-2px);
}
.elementor-widget-button.dev-btn--outline .elementor-button {
    background: transparent !important;
    color: var(--ac-title) !important;
    padding: 18px 42px !important;
    border: 2px solid var(--ac-border) !important;
    border-radius: var(--ac-btn-radius) !important;
    font-family: var(--ac-font-body) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}
.elementor-widget-button.dev-btn--outline .elementor-button:hover {
    background: var(--ac-title) !important;
    color: #fff !important;
    border-color: var(--ac-title) !important;
}

/* =============================================
   ELEMENTOR BRIDGE RULES
   Scoped to .elementor-page / .elementor-editor-active
   so original dev_ pages are never affected.
   ============================================= */

/* --- Theme Mobile Menu: Hamburger & Close Button --- */

/* Hamburger button: red background on hover, icon stays white */
:is(.elementor-page, .elementor-editor-active) .sc_layouts_menu_mobile_button > a {
    border-radius: 6px;
    transition: background 0.3s ease;
}
:is(.elementor-page, .elementor-editor-active) .sc_layouts_menu_mobile_button > a:hover {
    background: var(--ac-red);
}
:is(.elementor-page, .elementor-editor-active) .sc_layouts_menu_mobile_button .sc_layouts_item_icon {
    color: inherit;
    transition: color 0.3s ease;
}
:is(.elementor-page, .elementor-editor-active) .sc_layouts_menu_mobile_button > a:hover .sc_layouts_item_icon {
    color: var(--ac-white) !important;
}

/* Mobile menu close button: white X, no background, no hover animation */
.menu_mobile .menu_mobile_close {
    background: none !important;
}
.menu_mobile .menu_mobile_close .theme_button_close_icon {
    transform: none !important;
}
.menu_mobile .menu_mobile_close .theme_button_close_icon::before,
.menu_mobile .menu_mobile_close .theme_button_close_icon::after {
    border-top-color: var(--ac-white) !important;
}
.menu_mobile .menu_mobile_close:hover .theme_button_close_icon {
    transform: none !important;
}
.menu_mobile .menu_mobile_close:hover .theme_button_close_icon::before,
.menu_mobile .menu_mobile_close:hover .theme_button_close_icon::after {
    border-top-color: var(--ac-white) !important;
}

/* --- ThemeREX Counter (Stats Section) --- */
/* Counter number typography (colors come from widget Elementor settings) */
:is(.elementor-page, .elementor-editor-active) .trx-addons-counter-number {
    font-family: var(--ac-font-heading) !important;
    font-size: 57px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}
/* Counter suffix typography */
:is(.elementor-page, .elementor-editor-active) .trx-addons-counter-number-suffix {
    font-family: var(--ac-font-heading) !important;
    font-size: 57px !important;
    font-weight: 500 !important;
}
/* Counter title/label typography */
:is(.elementor-page, .elementor-editor-active) .trx-addons-counter-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px;
    margin-top: 10px;
}
/* Stats container: force 4-col grid layout */
:is(.elementor-page, .elementor-editor-active) .dev-stats-native {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    text-align: center;
}
:is(.elementor-page, .elementor-editor-active) .dev-stats-native .elementor-widget-trx_elm_counter {
    text-align: center;
}

/* --- Process Steps (How We Work) --- */
/* Process step containers side-by-side as 4-column grid */
:is(.elementor-page, .elementor-editor-active) .dev-process-grid-native {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px;
}
/* Process step inner containers */
:is(.elementor-page, .elementor-editor-active) .dev-process-grid-native > .e-con {
    position: relative;
}
/* Connector lines between process steps */
:is(.elementor-page, .elementor-editor-active) .dev-process-grid-native > .e-con:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 35px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: var(--ac-border);
}

/* --- CTA Banner (Elementor container with bg image) --- */
:is(.elementor-page, .elementor-editor-active) .dev-cta-native {
    position: relative;
}
:is(.elementor-page, .elementor-editor-active) .dev-cta-native .elementor-widget-heading .elementor-heading-title {
    font-family: var(--ac-font-heading);
    line-height: 1.1;
}

/* --- Responsive: Stats + Process 2-col on tablet, 1-col on mobile --- */
@media (max-width: 991px) {
    :is(.elementor-page, .elementor-editor-active) .dev-stats-native {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-process-grid-native {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-process-grid-native > .e-con:not(:last-child)::after {
        display: none;
    }
}
@media (max-width: 767px) {
    :is(.elementor-page, .elementor-editor-active) .dev-stats-native {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    :is(.elementor-page, .elementor-editor-active) .trx-addons-counter-number {
        font-size: 42px !important;
    }
    :is(.elementor-page, .elementor-editor-active) .trx-addons-counter-number-suffix {
        font-size: 42px !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-process-grid-native {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    /* About section: stack on mobile */
    :is(.elementor-page, .elementor-editor-active) .dev-about > .e-con-inner {
        flex-direction: column !important;
        gap: 40px !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-about > .e-con-inner > .e-con {
        width: 100% !important;
    }
}

/* ===== Services Page: InfoBox Grid =====  */
:is(.elementor-page, .elementor-editor-active) .dev-services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    max-width: var(--ac-content-width);
    margin: 0 auto;
}
:is(.elementor-page, .elementor-editor-active) .dev-services-grid > .e-con {
    width: 100% !important;
    max-width: 100% !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-service-card {
    background: var(--ac-white);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-card-radius);
    padding: 30px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
:is(.elementor-page, .elementor-editor-active) .dev-service-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}
/* InfoBox text icon (number) styling */
:is(.elementor-page, .elementor-editor-active) .dev-service-card .trx-addons-info-box-icon-text {
    font-family: var(--ac-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--ac-red);
    margin-bottom: 16px;
}
:is(.elementor-page, .elementor-editor-active) .dev-service-card .trx-addons-info-box-title {
    font-family: var(--ac-font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--ac-title);
    margin-bottom: 12px;
}
:is(.elementor-page, .elementor-editor-active) .dev-service-card .trx-addons-info-box-description {
    color: var(--ac-text);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Services Page: Process Grid ===== */
:is(.elementor-page, .elementor-editor-active) .dev-process-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: var(--ac-content-width);
    margin: 0 auto;
}
:is(.elementor-page, .elementor-editor-active) .dev-process-grid > .e-con {
    width: 100% !important;
    max-width: 100% !important;
}
:is(.elementor-page, .elementor-editor-active) .dev-process-step {
    text-align: center;
    padding: 20px;
}
:is(.elementor-page, .elementor-editor-active) .dev-process-step .trx-addons-info-box-icon-text {
    font-family: var(--ac-font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--ac-red);
    margin-bottom: 16px;
}
:is(.elementor-page, .elementor-editor-active) .dev-process-step .trx-addons-info-box-title {
    font-family: var(--ac-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--ac-title);
    margin-bottom: 8px;
}
:is(.elementor-page, .elementor-editor-active) .dev-process-step .trx-addons-info-box-description {
    color: var(--ac-text);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Services Page: Stats Row ===== */
:is(.elementor-page, .elementor-editor-active) .dev-stats-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    max-width: var(--ac-content-width);
    margin: 0 auto;
    text-align: center;
}
:is(.elementor-page, .elementor-editor-active) .dev-stats-row > .e-con {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== Services Page: FAQ Accordion ===== */
:is(.elementor-page, .elementor-editor-active) .dev-faq-wrap .trx-addons-accordion-item {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-card-radius);
    margin-bottom: 12px;
    overflow: hidden;
}
:is(.elementor-page, .elementor-editor-active) .dev-faq-wrap .trx-addons-accordion-tab-title {
    font-family: var(--ac-font-heading);
    font-size: 17px;
    font-weight: 600;
    color: var(--ac-title);
    padding: 20px 24px;
    cursor: pointer;
}
:is(.elementor-page, .elementor-editor-active) .dev-faq-wrap .trx-addons-accordion-tab-content {
    padding: 0 24px 20px;
    color: var(--ac-text);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== Services Page: Responsive ===== */
@media (max-width: 1024px) {
    :is(.elementor-page, .elementor-editor-active) .dev-services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-process-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) {
    :is(.elementor-page, .elementor-editor-active) .dev-services-grid {
        grid-template-columns: 1fr !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-process-grid {
        grid-template-columns: 1fr !important;
    }
    :is(.elementor-page, .elementor-editor-active) .dev-stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== Services Page: Photo Showcase Grid ===== */
.dev-services-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 16px;
    max-width: var(--ac-content-width);
    margin: 0 auto;
    padding: 0 40px 80px;
}
.dev-services-showcase__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--ac-card-radius);
    cursor: pointer;
}
.dev-services-showcase__item--tall {
    grid-row: 1 / 3;
}
.dev-services-showcase__item--wide {
    grid-column: span 2;
}
.dev-services-showcase__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.dev-services-showcase__item:hover .dev-services-showcase__img {
    transform: scale(1.05);
}
.dev-services-showcase__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(10,13,14,0.75));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.dev-services-showcase__item:hover .dev-services-showcase__overlay {
    opacity: 1;
}
.dev-services-showcase__label {
    color: var(--ac-white);
    font-family: var(--ac-font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
@media (max-width: 1024px) {
    .dev-services-showcase {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px 220px;
    }
    .dev-services-showcase__item--tall {
        grid-row: auto;
    }
    .dev-services-showcase__item--wide {
        grid-column: auto;
    }
}
@media (max-width: 767px) {
    .dev-services-showcase {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 0 20px 60px;
    }
    .dev-services-showcase__item {
        height: 220px;
    }
    .dev-services-showcase__overlay {
        opacity: 1;
    }
}

/* In Elementor editor, show all animated elements immediately (no IntersectionObserver there) */
.elementor-editor-active .dev-anim {
    opacity: 1 !important;
}

/* ============================================
   GALLERY/PORTFOLIO LAYOUT FIX
   Replace JS-based masonry with CSS Grid
   ============================================ */

/* Gallery items: always visible, no animation dependency */
.dev-gallery-portfolio-wrap,
.dev-gallery-portfolio-wrap.dev-anim,
.dev-gallery-portfolio-wrap.dev-anim--fade-up,
.sc_portfolio,
.sc_portfolio_masonry_wrap,
.sc_portfolio_masonry_item,
.sc_portfolio_item,
.sc_portfolio_item_thumb {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* Override JS-set height on masonry container - let it auto-size */
.sc_portfolio_masonry_wrap {
    height: auto !important;
    min-height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    position: relative !important;
}

/* Override JS-set absolute positioning on items - let grid handle layout */
.sc_portfolio_masonry_item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    margin: 0 !important;
    display: block !important;
}

/* Make images fill their grid cell */
.sc_portfolio_masonry_item .post_featured img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.sc_portfolio_masonry_item .post_featured {
    height: 280px;
    overflow: hidden;
    border-radius: var(--ac-radius);
}

/* Tablet: 2-column grid */
@media (max-width: 1024px) {
    .sc_portfolio_masonry_wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .sc_portfolio_masonry_wrap {
        grid-template-columns: 1fr !important;
    }
    
    .sc_portfolio_masonry_item .post_featured {
        height: 240px;
    }
}