/* ==========================================================================
   castiq.es — project overrides on top of the Rayo template
   Loaded after rayo/css/main.css. Keep template files untouched; put every
   customisation here so the template can be updated later.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Brand tokens
   To recolour the site, override the template variables below
   (light/dark variants are both defined in rayo/css/main.css :root).
   Example:
     :root { --accent--light: #5FA36A; --accent--dark: #5FA36A;
             --accent-rgb--light: 95,163,106; --accent-rgb--dark: 95,163,106; }
   -------------------------------------------------------------------------- */


/* --------------------------------------------------------------------------
   2. Header — language switcher
   -------------------------------------------------------------------------- */
.castiq-lang {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    width: auto;          /* template sets form { width: 100% } */
    margin: 0;
}

/* keep header controls at natural width (extra lang button squeezed the CTA) */
.mxd-header__controls > * {
    flex-shrink: 0;
}

.mxd-header__controls .btn-anim__block {
    white-space: nowrap;
}

.castiq-lang--header .castiq-lang__btn {
    font-family: var(--_font-accent);
    font-size: 1.4rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    cursor: pointer;
}

.castiq-lang__link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 1.6rem;
    color: var(--t-medium);
    cursor: pointer;
    transition: color var(--_animspeed-medium) ease;
}

.castiq-lang__link:hover {
    color: var(--t-bright);
}

.castiq-lang__link.is-active {
    color: var(--t-bright);
    text-decoration: underline;
    text-underline-offset: 0.4em;
    cursor: default;
}

/* inside the dark fullscreen menu */
.mxd-menu__data .castiq-lang__link {
    font-size: 1.4rem;
    color: var(--t-opp-medium);
}

.mxd-menu__data .castiq-lang__link.is-active,
.mxd-menu__data .castiq-lang__link:hover {
    color: var(--t-opp-bright);
}


/* --------------------------------------------------------------------------
   3. Menu — right-side contact block (replaces template video promo)
   -------------------------------------------------------------------------- */
.castiq-menu-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.castiq-menu-contact .btn {
    color: var(--t-opp-bright);
    border-color: var(--t-opp-muted);
}

.castiq-menu-contact__mail {
    color: var(--t-opp-medium);
    font-size: 1.6rem;
}

.castiq-menu-contact__mail:hover {
    color: var(--t-opp-bright);
}


/* --------------------------------------------------------------------------
   4. Footer — fullwidth brand word
   -------------------------------------------------------------------------- */
.castiq-footer-word text {
    font-family: var(--_font-accent);
    font-size: 84px;
    font-weight: 600;
    letter-spacing: -0.02em;
}


/* --------------------------------------------------------------------------
   5. Home page
   -------------------------------------------------------------------------- */
.castiq-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* "How it works" steps reuse the statistics cards */
.mxd-stats-cards .mxd-counter__descr {
    max-width: 34rem;
}

.castiq-step-text {
    display: block;
    margin-top: 0.8rem;
    font-size: 1.5rem;
    line-height: 1.4;
    color: inherit;
    opacity: 0.75;
}


/* --------------------------------------------------------------------------
   6. Temporary styles for pages not yet migrated to the template (news)
   Remove once news list/detail are rebuilt on Rayo blog layouts.
   -------------------------------------------------------------------------- */
.news-page,
.news-detail {
    padding-top: 16rem;
    padding-bottom: 8rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2.4rem;
    margin-top: 3.2rem;
}

.news-card {
    padding: 2.4rem;
    border-radius: var(--_radius-m);
    background-color: var(--base-tint);
}

.news-card-image img,
.news-detail-image {
    display: block;
    width: 100%;
    margin-bottom: 1.6rem;
    border-radius: var(--_radius-s);
}

.news-date {
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
    color: var(--t-muted);
}
