/* ========================================
   NEXAR THEME - Front-end Styles
   Pixel-perfect match to Figma design
   ======================================== */

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Almarena Neue', sans-serif;
}

h1, h2, h3, h4, h5, h6,
p, a, span, li, button, input, textarea, select {
    font-family: 'Almarena Neue', sans-serif;
}

/* Remove WP block gap/margins */
.nexar-main,
.nexar-front-page {
    margin: 0 !important;
    padding: 0 !important;
}

.nexar-main > *,
.nexar-front-page > * {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.nexar-gradient-line,
.nexar-footer {
    margin: 0 !important;
    margin-block-start: 0 !important;
}

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

/* === Header / Navigation === */
.nexar-header-wrap {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(12, 12, 12, 0.92);
}

/* No top padding — hero extends behind fixed header */
.wp-site-blocks {
    padding-top: 0;
}

.nexar-header-wrap > .nexar-header-bar {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Main header container */
.nexar-hdr {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 8px 48px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 60px;
    box-sizing: border-box;
}

.nexar-header-scrolled .nexar-hdr {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* --- Logo (left cell) --- */
.nexar-hdr__logo {
    justify-self: start;
    display: flex;
    align-items: center;
}

.nexar-hdr__logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* --- Nav Pill (center cell) — matches Figma capsule shape --- */
.nexar-hdr__nav {
    justify-self: center;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    padding: 5px 6px;
    gap: 2px;
    height: auto;
}

/* Home icon — rounded square like Figma */
.nexar-hdr__home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
    transition: background 0.25s;
}

.nexar-hdr__home:hover {
    background: rgba(255, 255, 255, 0.15);
}

.nexar-hdr__home img {
    width: 18px;
    height: 18px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.75;
}

/* Nav links — inside pill */
.nexar-hdr__nav a:not(.nexar-hdr__home) {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.02em;
}

.nexar-hdr__nav a:not(.nexar-hdr__home):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

/* --- CTA Button --- */
.nexar-hdr__cta {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 30px;
    background: linear-gradient(90deg, #00C853 0%, #00BCD4 50%, #2196F3 100%);
    color: #fff !important;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.nexar-hdr__cta:hover {
    background: linear-gradient(135deg, #00C853 0%, #0097A7 100%);
    box-shadow: 0 4px 18px rgba(0, 188, 212, 0.35);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Force header full width — override ALL WP block layout constraints */
header.nexar-header-wrap,
header.nexar-header-wrap.wp-block-template-part,
header.nexar-header-wrap > .nexar-header-bar,
header.nexar-header-wrap > .nexar-header-bar.is-layout-flex,
header.nexar-header-wrap .nexar-hdr {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

header.nexar-header-wrap {
    padding: 0 !important;
    margin: 0 !important;
}

header.nexar-header-wrap > .nexar-header-bar {
    padding: 0 !important;
}

.wp-site-blocks > header {
    padding: 0 !important;
    margin: 0 !important;
    margin-block-start: 0 !important;
}

/* Admin bar offset */
.admin-bar .nexar-header-wrap {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nexar-header-wrap {
        top: 46px;
    }
}

/* === Hamburger Button — hidden on desktop === */
.nexar-hdr__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    justify-self: end;
    z-index: 1010;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
}

.nexar-hdr__hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X animation when open */
.nexar-hdr__hamburger.is-active .nexar-hdr__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nexar-hdr__hamburger.is-active .nexar-hdr__hamburger-line:nth-child(2) {
    opacity: 0;
}
.nexar-hdr__hamburger.is-active .nexar-hdr__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Mobile Dropdown Menu — hidden by default === */
.nexar-mobile-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.nexar-mobile-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nexar-mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.2s;
}

.nexar-mobile-menu a:last-child {
    border-bottom: none;
}

.nexar-mobile-menu a:hover {
    color: #fff;
}

.nexar-mobile-menu__cta {
    margin-top: 12px;
    background: linear-gradient(135deg, #00E676 0%, #00BCD4 100%);
    color: #000 !important;
    font-weight: 600 !important;
    text-align: center;
    padding: 14px 24px !important;
    border-bottom: none !important;
}

/* === Elementor wrapper overrides — strip all padding/margin === */
.nexar-header-wrap,
.nexar-header-wrap.elementor-section {
    overflow: visible !important;
}

.nexar-header-wrap .elementor-container,
.nexar-header-wrap .elementor-column,
.nexar-header-wrap .elementor-widget-wrap,
.nexar-header-wrap .elementor-widget,
.nexar-header-wrap .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

.nexar-header-wrap .elementor-column-gap-no > .elementor-column > .elementor-element-populated {
    padding: 0 !important;
    overflow: visible !important;
}

/* === Tablet breakpoint (1024px and below) === */
@media screen and (max-width: 1024px) {
    .nexar-header-wrap,
    .nexar-header-wrap.elementor-section {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        background: #0c0c0c !important;
        min-height: auto !important;
        height: auto !important;
    }

    /* Strip Elementor wrappers on mobile */
    .nexar-header-wrap .elementor-container,
    .nexar-header-wrap .elementor-column,
    .nexar-header-wrap .elementor-widget-wrap,
    .nexar-header-wrap .elementor-widget,
    .nexar-header-wrap .elementor-widget-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .nexar-hdr {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
        background: #0c0c0c !important;
        min-height: 56px;
    }

    .nexar-hdr__logo {
        order: 1;
        display: flex !important;
        visibility: visible !important;
    }

    .nexar-hdr__logo img {
        height: 36px;
        width: auto;
    }

    .nexar-hdr__nav {
        display: none !important;
    }

    .nexar-hdr__cta {
        display: none !important;
    }

    .nexar-hdr__hamburger {
        display: flex !important;
        order: 2;
        visibility: visible !important;
    }

    .nexar-hdr__hamburger-line {
        background: #fff !important;
    }

    .nexar-mobile-menu {
        z-index: 1005;
    }
}

/* === Mobile breakpoint (768px and below) === */
@media screen and (max-width: 768px) {
    .nexar-hdr {
        padding: 8px 16px;
    }

    .nexar-hdr__logo img {
        max-height: 32px;
    }

    .nexar-mobile-menu a {
        font-size: 15px;
        padding: 12px 0;
    }
}

/* === Small mobile (480px and below) === */
@media screen and (max-width: 480px) {
    .nexar-hdr {
        padding: 6px 12px;
        min-height: 52px;
    }

    .nexar-hdr__logo img {
        max-height: 28px;
    }
}

/* Body scroll lock when mobile menu is open */
body.nexar-menu-open {
    overflow: hidden;
}

/* === Hero Slider === */
.nexar-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slide track */
.nexar-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual slide */
.nexar-slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: flex-end;
}

.nexar-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide background image */
.nexar-slider__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.nexar-slider__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 6s ease;
}

.nexar-slider__slide.is-active .nexar-slider__bg img {
    transform: scale(1.05);
}

/* Dark overlay */
.nexar-slider__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* Slide content */
.nexar-slider__content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 48px 90px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.nexar-slider__slide.is-active .nexar-slider__content {
    opacity: 1;
    transform: translateY(0);
}

.nexar-slider__subtitle {
    font-family: 'Almarena Neue', sans-serif;
    font-size: clamp(16px, 3vw, 32px);
    font-weight: 400;
    color: #fff;
    letter-spacing: 0.02em;
    margin: 0 0 20px;
}

.nexar-slider__title {
    font-family: 'Almarena Neue', sans-serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.05;
    margin: 0 0 40px;
    max-width: 650px;
}

.nexar-slider__title strong {
    font-weight: 700;
}

.nexar-slider__btn {
    display: inline-block;
    position: relative;
    padding: 16px 34px;
    border: none;
    color: #fff;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

/* Gradient border using ::before */
.nexar-slider__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2px;
    background: linear-gradient(135deg, #00E676 0%, #00BCD4 50%, #2196F3 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.nexar-slider__btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Right-side pagination: current number / line / total */
.nexar-slider__pag {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.nexar-slider__pag-current,
.nexar-slider__pag-total {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.nexar-slider__pag-current {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
}

.nexar-slider__pag-total {
    margin-top: 12px;
}

.nexar-slider__pag-track {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.nexar-slider__pag-fill {
    display: block;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.7);
}

/* Progress animation */
@keyframes sliderProgress {
    from { height: 0%; }
    to { height: 100%; }
}

.nexar-slider__pag-fill {
    animation: sliderProgress var(--slider-duration, 5s) linear forwards;
}

/* Bottom gradient line */
.nexar-slider__gradient-line {
    display: none;
}

/* Gradient line standalone (reusable) */
.nexar-gradient-line {
    display: none;
}

/* Slider responsive */
@media screen and (max-width: 1024px) {
    .nexar-slider__content {
        padding: 0 40px 70px;
    }
    .nexar-slider__pag {
        right: 16px;
    }
    .nexar-slider__pag-track {
        height: 90px;
    }
}

@media screen and (max-width: 768px) {
    .nexar-slider {
        height: 85vh;
    }
    .nexar-slider__content {
        padding: 0 20px 50px;
    }
    .nexar-slider__title {
        font-size: clamp(2rem, 7vw, 3rem);
        max-width: 100%;
    }
    .nexar-slider__pag {
        right: 10px;
    }
    .nexar-slider__pag-track {
        height: 70px;
    }
    .nexar-slider__pag-current,
    .nexar-slider__pag-total {
        font-size: 11px;
    }
}

@media screen and (max-width: 480px) {
    .nexar-slider {
        height: 75vh;
    }
    .nexar-slider__content {
        padding: 0 16px 40px;
    }
    .nexar-slider__btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .nexar-slider__pag {
        display: none;
    }
}

/* === Our Philosophy Section === */
.nexar-philosophy {
    background: #fff;
    padding: 80px 0 60px;
}

.nexar-philosophy__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Top: text + purple card */
.nexar-philosophy__top {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
    margin-bottom: 64px;
}

.nexar-philosophy__label {
    display: block;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.nexar-philosophy__title {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0 0 28px;
}

.nexar-philosophy__desc {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    line-height: 1.75;
    margin: 0 0 16px;
}

.nexar-philosophy__desc:last-child {
    margin-bottom: 0;
}

/* Purple "15+" card */
.nexar-philosophy__card {
    background: #150089;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.nexar-philosophy__card-number {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #00E676 0%, #00BCD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.nexar-philosophy__card-text {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.25;
    font-style: normal;
}

/* 4 Feature cards */
.nexar-philosophy__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: none;
    padding-top: 0;
}

.nexar-philosophy__feature {
    padding: 40px 32px 40px 0;
    border-right: 1px solid #e0e0e0;
}

.nexar-philosophy__feature:last-child {
    border-right: none;
    padding-right: 0;
}

.nexar-philosophy__feature:first-child {
    padding-left: 0;
}

.nexar-philosophy__feature:not(:first-child) {
    padding-left: 32px;
}

/* Icon from Media Library */
.nexar-philosophy__feature-icon {
    margin-bottom: 24px;
    width: 56px;
    height: 56px;
}

.nexar-philosophy__feature-icon img {
    width: 56px;
    height: 56px;
    display: block;
}

.nexar-philosophy__feature-title {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px;
    line-height: 1.3;
}

.nexar-philosophy__feature-desc {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #777;
    line-height: 1.65;
    margin: 0;
}

/* Philosophy responsive — tablet */
@media screen and (max-width: 1024px) {
    .nexar-philosophy {
        padding: 60px 0 48px;
    }
    .nexar-philosophy__inner {
        padding: 0 32px;
    }
    .nexar-philosophy__top {
        grid-template-columns: 1fr 240px;
        gap: 48px;
    }
    .nexar-philosophy__title {
        font-size: 30px;
    }
    .nexar-philosophy__card-number {
        font-size: 52px;
    }
    .nexar-philosophy__card-text {
        font-size: 22px;
    }
    .nexar-philosophy__features {
        grid-template-columns: repeat(2, 1fr);
    }
    .nexar-philosophy__feature {
        border-right: none;
        padding: 28px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    .nexar-philosophy__feature:not(:first-child) {
        padding-left: 0;
    }
    .nexar-philosophy__feature:nth-child(odd) {
        padding-right: 24px;
        border-right: 1px solid #e0e0e0;
    }
    .nexar-philosophy__feature:nth-child(even) {
        padding-left: 24px;
    }
    .nexar-philosophy__feature:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

/* Philosophy responsive — mobile */
@media screen and (max-width: 768px) {
    .nexar-philosophy {
        padding: 40px 0 32px;
    }
    .nexar-philosophy__inner {
        padding: 0 20px;
    }
    .nexar-philosophy__top {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 40px;
    }
    .nexar-philosophy__title {
        font-size: 26px;
    }
    .nexar-philosophy__card {
        padding: 28px 24px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .nexar-philosophy__card-number {
        font-size: 42px;
        margin-bottom: 0;
    }
    .nexar-philosophy__card-text {
        font-size: 20px;
    }
    .nexar-philosophy__features {
        grid-template-columns: 1fr;
    }
    .nexar-philosophy__feature {
        border-right: none !important;
        padding: 24px 0 !important;
        border-bottom: 1px solid #e0e0e0;
    }
    .nexar-philosophy__feature:last-child {
        border-bottom: none;
    }
}

/* === Services Section === */
.nexar-services {
    background: #150089;
    padding: 60px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.nexar-services__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Decorative bars — left edge, aligned with heading */
.nexar-services__decor {
    position: absolute;
    left: 0;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.nexar-services__decor-bar {
    display: block;
    height: 12px;
}

.nexar-services__decor-bar--green {
    width: 140px;
    background: #00E676;
    margin-left: 40px;
}

.nexar-services__decor-bar--cyan {
    width: 180px;
    background: #00BCD4;
}

.nexar-services__decor-bar--white {
    width: 160px;
    background: #fff;
    margin-left: 20px;
}

.nexar-services__decor-bar--green2 {
    width: 100px;
    background: #00E676;
}

/* Top row */
.nexar-services__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 56px;
    gap: 40px;
}

.nexar-services__text {
    max-width: 620px;
}

.nexar-services__label {
    display: block;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 47px;
}

.nexar-services__title {
    font-family: 'Almarena Neue', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 24px;
}

.nexar-services__title strong {
    font-weight: 700;
    background: linear-gradient(135deg, #00E676 0%, #00BCD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nexar-services__desc {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    margin: 0;
    max-width: 520px;
}

/* Actions: button + arrows */
.nexar-services__actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.nexar-services__btn {
    display: inline-block;
    padding: 12px 28px;
    border: 1.5px solid #fff;
    color: #fff;
    font-family: 'Almarena Neue', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.nexar-services__btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nexar-services__arrows {
    display: flex;
    gap: 12px;
}

.nexar-services__arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
    padding: 0;
}

.nexar-services__arrow--prev {
    opacity: 0.5;
}

.nexar-services__arrow--next {
    opacity: 0.9;
}

.nexar-services__arrow:hover {
    opacity: 1;
}

/* Arrow left — white */
.nexar-services__arrow--prev svg path {
    stroke: #fff;
}

/* Arrow right — green/cyan */
.nexar-services__arrow--next svg path {
    stroke: #00E676;
}

/* Cards slider */
.nexar-services__slider {
    overflow: hidden;
    position: relative;
}

.nexar-services__track {
    display: flex;
    gap: 16px;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nexar-services__card {
    position: relative;
    flex: 0 0 calc(25% - 12px);
    aspect-ratio: 3 / 3.5;
    overflow: hidden;
    cursor: pointer;
    border-radius: 6px;
}

.nexar-services__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nexar-services__card:hover img {
    transform: scale(1.05);
}

/* Card overlay — default: dark gradient with title only */
.nexar-services__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 40%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

.nexar-services__card-title {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Read more link */
.nexar-services__card-link {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s, max-height 0.4s, margin 0.4s;
    margin-top: 0;
}

/* Hover state — solid gradient band at bottom */
.nexar-services__card:hover .nexar-services__card-overlay,
.nexar-services__card:first-child .nexar-services__card-overlay {
    padding: 80px 24px 24px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,80,60,0.4) 20%, #00BCD4 70%, #00E676 100%);
}

.nexar-services__card:hover .nexar-services__card-link,
.nexar-services__card:first-child .nexar-services__card-link {
    opacity: 1;
    max-height: 30px;
    margin-top: 8px;
}

.nexar-services__card-link:hover {
    color: #fff;
}

/* Gradient border on hover using pseudo-element + mask */
.nexar-services__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 6px;
    padding: 2px;
    background: linear-gradient(135deg, #00E676 0%, #00BCD4 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nexar-services__card:hover::after,
.nexar-services__card:first-child::after {
    opacity: 1;
}


/* Services responsive — tablet */
@media screen and (max-width: 1024px) {
    .nexar-services {
        padding: 60px 0;
    }
    .nexar-services__inner {
        padding: 0 32px;
    }
    .nexar-services__label {
        margin-bottom: 28px;
    }
    .nexar-services__title {
        font-size: 28px;
    }
    .nexar-services__top {
        flex-direction: column;
        align-items: flex-start;
    }
    .nexar-services__card {
        flex: 0 0 calc(50% - 8px);
    }
}

/* Services responsive — mobile */
@media screen and (max-width: 768px) {
    .nexar-services {
        padding: 48px 0;
    }
    .nexar-services__inner {
        padding: 0 20px;
    }
    .nexar-services__label {
        margin-bottom: 16px;
    }
    .nexar-services__title {
        font-size: 24px;
    }
    .nexar-services__decor {
        display: none;
    }
    .nexar-services__card {
        flex: 0 0 calc(80% - 8px);
    }
    .nexar-services__actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 480px) {
    .nexar-services__card {
        flex: 0 0 calc(85%);
    }
    .nexar-services__title {
        font-size: 22px;
    }
}

/* === Footer === */
.nexar-footer {
    background: #000;
    color: #fff;
    padding: 4rem 2rem 2rem;
    margin: 0 !important;
    overflow: hidden;
}

.nexar-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.nexar-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.nexar-footer__tagline,
.nexar-footer__contact {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.6;
}

.nexar-footer__heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.nexar-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.nexar-footer__links li {
    margin-bottom: 0.5rem;
}

.nexar-footer__links a {
    color: #999;
    text-decoration: none;
}

.nexar-footer__links a:hover {
    color: #fff;
}

.nexar-footer__divider {
    border: none;
    border-top: 1px solid #333;
    margin: 2rem 0 1.5rem;
}

.nexar-footer__copyright {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

@media screen and (max-width: 768px) {
    .nexar-footer {
        padding: 2.5rem 1rem 1.5rem;
    }
    .nexar-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .nexar-footer__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* === Section Styles === */
.nexar-section {
    padding: 5rem 2rem;
}

.nexar-section-dark {
    background-color: #000;
    color: #fff;
}

.nexar-section-light {
    background-color: #fff;
    color: #000;
}

.nexar-section-gray {
    background-color: #f5f5f5;
}

/* === Typography === */
.nexar-section-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.5rem;
}

/* === Cards === */
.nexar-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nexar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Case Study Cards with overlay */
.nexar-case-study-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.nexar-case-study-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nexar-case-study-card:hover img {
    transform: scale(1.05);
}

.nexar-case-study-card .nexar-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

.nexar-case-study-card .nexar-card-date {
    font-size: 0.8rem;
    color: #00BCD4;
    margin-bottom: 0.3rem;
}

.nexar-case-study-card .nexar-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Blog Cards */
.nexar-blog-card {
    transition: transform 0.3s ease;
}

.nexar-blog-card:hover {
    transform: translateY(-4px);
}

.nexar-blog-card img {
    transition: transform 0.4s ease;
}

.nexar-blog-card:hover img {
    transform: scale(1.03);
}

/* === Numbered List (Services) === */
.nexar-numbered-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nexar-numbered-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
}

.nexar-numbered-item .nexar-number {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #3B28CC;
    min-width: 2rem;
}

.nexar-numbered-item .nexar-item-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* === Stats/Counter Section === */
.nexar-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.nexar-stat-number {
    font-family: 'Almarena Neue', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #3B28CC;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.nexar-stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* === Contact Form === */
.nexar-contact-form input,
.nexar-contact-form textarea,
.nexar-contact-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fff;
}

.nexar-contact-form input:focus,
.nexar-contact-form textarea:focus {
    border-color: #3B28CC;
    outline: none;
}

.nexar-contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #333;
}

/* Contact Info Sidebar */
.nexar-contact-info {
    background: #3B28CC;
    color: #fff;
    padding: 2.5rem;
}

.nexar-contact-info h2,
.nexar-contact-info h3 {
    color: #fff;
    font-family: 'Almarena Neue', sans-serif;
}

.nexar-contact-info a {
    color: #fff;
    text-decoration: underline;
}

/* === Blog Sidebar === */
.nexar-blog-sidebar .nexar-sidebar-widget {
    border-radius: 0;
}

.nexar-blog-sidebar .nexar-sidebar-widget a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nexar-blog-sidebar .nexar-sidebar-widget a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.nexar-sidebar-tags .wp-block-tag-cloud a {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border: 1px solid #ddd;
    margin: 0.2rem;
    font-size: 0.85rem !important;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.nexar-sidebar-tags .wp-block-tag-cloud a:hover {
    background: #3B28CC;
    color: #fff;
    border-color: #3B28CC;
}

/* === Search Bar === */
.nexar-search-bar .wp-block-search__input {
    border: 1px solid #ddd;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    min-width: 300px;
}

.nexar-search-bar .wp-block-search__button {
    background: transparent;
    border: 1px solid #ddd;
    border-left: 0;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

/* === Footer === */
.nexar-footer {
    border-top: 4px solid;
    border-image: linear-gradient(90deg, #00E676, #00BCD4) 1;
}

.nexar-footer a {
    color: #999 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nexar-footer a:hover {
    color: #00BCD4 !important;
}

.nexar-footer-links {
    list-style: none !important;
    padding-left: 0 !important;
}

.nexar-footer-links li {
    padding: 0.3rem 0;
}

/* === Destination Cards === */
.nexar-destination-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.nexar-destination-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nexar-destination-card:hover img {
    transform: scale(1.08);
}

.nexar-destination-card .nexar-dest-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}

/* === Image Grid (About, Destinations) === */
.nexar-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.nexar-image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.nexar-image-grid .nexar-img-tall {
    grid-row: span 2;
}

.nexar-image-grid .nexar-img-tall img {
    height: 100%;
}

/* === Animations === */
.nexar-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nexar-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Utility Classes === */
.nexar-text-center { text-align: center; }
.nexar-text-white { color: #fff; }
.nexar-bg-black { background-color: #000; }
.nexar-bg-purple { background-color: #3B28CC; }
.nexar-bg-white { background-color: #fff; }
.nexar-mt-0 { margin-top: 0; }
.nexar-mb-0 { margin-bottom: 0; }
.nexar-pt-0 { padding-top: 0 !important; }

/* Admin bar fix for fixed header */
.admin-bar .nexar-header-wrap {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .nexar-header-wrap {
        top: 46px;
    }
}
