/* ==========================================================================
   Campaign layer — loaded last. Brand accent (pink) used deliberately on
   interactive and marker elements (buttons, active states, icons, small
   numbers) — never on headings or titles. Also:
   logo legibility on dark backgrounds, and small campaign-only tweaks.
   ========================================================================== */

/* ---- Logo: keep the original artwork readable on dark/video backgrounds ----
   The mark itself sits on its own black square; only the black "CHARKONA"
   wordmark underneath needs light behind it. A heavily blurred haze sits just
   behind that strip, so it lifts the letters without reading as a shape. */
.logo-glow {
    position: relative;
    isolation: isolate;
    display: inline-flex;
}

/* Overlay placements (e.g. on a photo) keep their absolute positioning. */
.logo-glow.p-absolute {
    position: absolute;
}

/* Faint surround around the whole mark… */
.logo-glow::before,
.logo-glow::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.logo-glow::before {
    inset: -16% -24%;
    border-radius: 40%;
    background: rgba(255, 255, 255, 0.2);
    filter: blur(18px);
}

/* …and a stronger band right behind the black wordmark. */
.logo-glow::after {
    left: -10%;
    right: -10%;
    bottom: -6%;
    height: 30%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(12px);
}

/* ---- Accent utility — for small highlights only, never on headings/titles ---- */
.text-accent {
    color: var(--at-theme-primary) !important;
}

::selection {
    background: var(--at-theme-primary);
    color: #fff;
}

/* ---- Section eyebrows ("ABOUT US", "WHAT WE DO", "FAQ"…) ---- */
.at-btn.bg-transparent.rounded-0.p-0,
.at-btn.bg-transparent.rounded-0.p-0 .common-black,
.at-btn.common-black.bg-transparent.rounded-0.p-0 {
    color: var(--at-theme-primary) !important;
}

/* ---- Scroll cube (About / Why us): pink, still translucent ---- */
.at-about-svg-wrap svg path {
    fill: var(--at-theme-primary);
}

/* ---- Service list ---- */
.at-service-item .number {
    color: var(--at-theme-primary);
}

/* ---- Buttons: pink on hover everywhere, pink by default for primary CTAs ---- */
.at-btn:not(.bg-transparent):not(.at-service-more-btn):hover,
.at-btn:not(.bg-transparent):not(.at-service-more-btn):focus-visible {
    background-color: var(--at-theme-primary);
    color: #fff;
}

.at-btn.at-btn--accent {
    background-color: var(--at-theme-primary);
    color: #fff;
}

.at-btn.at-btn--accent:hover,
.at-btn.at-btn--accent:focus-visible {
    background-color: #d90b47;
    color: #fff;
}

.at-btn-circle:hover {
    background-color: var(--at-theme-primary);
    color: #fff;
}

/* Portfolio / service filter tabs */
.at-btn.filter-btn.active {
    background: var(--at-theme-primary);
    border-color: var(--at-theme-primary);
    color: #fff;
}

/* ---- Small numbers & ratings (never headings) ---- */
.at-faq-number {
    background: var(--at-theme-primary);
    color: #fff;
}

.testimonial-content-rating-stars path {
    fill: var(--at-theme-primary);
}

/* ---- Footer ---- */

/* ---- Links inside body copy ---- */
.sec-4-about-form__disclaimer a {
    color: var(--at-theme-primary);
    text-decoration: underline;
}

/* ---- Home "About us" scroll illustrations ---- */
.at-about-thumb.at-about-thumb--illus {
    height: auto;
}

/* ---- Services page cover: real work, one tile per discipline ---- */
.services-cover {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    height: clamp(360px, 42vw, 640px);
}

.services-cover__tile {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--at-neutral-100);
}

.services-cover__tile img,
.services-cover__tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.services-cover__tile:hover img,
.services-cover__tile:hover video {
    transform: scale(1.05);
}

.services-cover__label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--at-theme-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
    .services-cover {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: auto;
    }

    .services-cover__tile {
        aspect-ratio: 3 / 4;
    }
}

/* ---- Portfolio card tags: bordered chips, softly rounded ----
   Tags without a destination render as <span>, so style both. */
.cs-portfolio-tag ul li a,
.cs-portfolio-tag ul li span {
    border-radius: 8px;
}

.cs-portfolio-tag ul li span {
    display: inline-block;
    margin-bottom: 10px;
    padding: 8px 19px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: var(--at-common-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mg-portfolio-content .cs-portfolio-tag ul li span {
    font-size: 12px;
    color: var(--at-common-black);
    border: 1px solid var(--at-neutral-100);
}

/* Tag chips on dark cards: a clearly visible light border. */
.mg-portfolio-content .cs-portfolio-tag ul li a,
.mg-portfolio-content .cs-portfolio-tag ul li span,
.cs-portfolio-tag ul li span {
    border-color: rgba(255, 255, 255, 0.4);
}
