/* Small, deliberate overrides on top of the licensed Matre template CSS.
   Kept separate so template updates never get overwritten by hand-edits here. */

/* Sticky header: the template positions it absolutely (scrolls away with
   the page); fix it to the viewport instead, with a solid brand background
   so it stays legible over both the hero photo and plain white content. */
.header-container {
    position: fixed;
    background: var(--accent-color-2);
}

/* Interior page banners (About/Services/Contact/etc.) have no photo behind
   them, so the template's default radial gradient (transparent center to
   slate edges) reads as a flat, low-contrast gray smear. Use a real brand
   gradient instead. */
.banner-page::before {
    background-image: linear-gradient(135deg, var(--accent-color-2) 0%, #1c2733 100%);
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    margin-right: 18px;
}
.lang-toggle:hover { color: var(--accent-color); }

.rada-footer .hero-container { padding: 0 20px; }

.nav-btn {
    border-radius: 10px;
    width: 42px;
    height: 42px;
}
@media (max-width: 991.98px) {
    .nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.mobile-action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: none;
    background: #fff;
    border-top: 1px solid var(--accent-color-7);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.2);
    padding: 10px 12px;
    gap: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.mobile-action-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.mobile-action-bar a.call { background: var(--accent-color-8); color: var(--primary); }
.mobile-action-bar a.primary { background: var(--accent-color); color: #fff; }

@media (max-width: 991px) {
    .mobile-action-bar { display: flex; }
    body { padding-bottom: 68px; }
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.4);
    text-decoration: none;
}
.whatsapp-float:hover { background: #1ebe5a; color: #fff; }
@media (max-width: 991px) {
    .whatsapp-float { bottom: 84px; }
}

.team-social-row { display: none; }

/* The licensed template fixes h1–h3 at large desktop px sizes with no
   mobile override anywhere in responsive.css. Scale them down below 768px
   so headlines don't dominate the whole screen on a phone. */
@media (max-width: 767px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    h3 { font-size: 26px; }
    .banner-home__title { font-size: 38px; }
}

/* Service icon shown as a plain heroicon instead of a square photo icon */
.service-icon--plain {
    width: 56px;
    height: 56px;
    min-height: 0;
    border-radius: 14px;
    background: var(--accent-color-8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.service-section__grid-layout--compact { grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 991px) {
    .service-section__grid-layout--compact { grid-template-columns: 1fr; }
}

/* Guide / resource list (Important Dates & Resources pages have no direct
   template equivalent, so they borrow the card/section language) */
.rada-list { display: flex; flex-direction: column; gap: 16px; }
.rada-date-row, .rada-guide-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--accent-color-7);
    border-radius: 16px;
    padding: 20px 24px;
    flex-wrap: wrap;
}
.rada-date-chip {
    flex: none;
    width: 68px;
    height: 68px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
}
.rada-date-chip .day { font-size: 20px; font-weight: 700; line-height: 1; }
.rada-date-chip .month { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-color); }
.rada-guide-row .service-icon--plain { width: 46px; height: 46px; border-radius: 12px; }
.rada-guide-row .service-icon--plain i { font-size: 18px; }
.rada-row-text { flex: 1; min-width: 200px; }
.rada-row-text h4 { color: var(--primary); }
.rada-row-text p { margin: 0; color: var(--text-color); font-size: 14px; }
.rada-guide-row:hover { border-color: var(--accent-color); }
.rada-guide-row:hover .rada-row-text h4 { color: var(--accent-color); }
.rada-row-action-icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s ease;
}
.rada-guide-row:hover .rada-row-action-icon { background: var(--primary); }

/* Contact page: full redesign — a light, inviting form card instead of
   the dark, low-contrast box, plus a proper icon-card list for the
   phone/email/hours/address block instead of a plain text list. */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 991px) {
    .contact-layout { grid-template-columns: 1fr; }
}
.contact-layout__intro p { color: var(--text-color); }

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--accent-color-7);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.contact-info-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.25);
}
.contact-info-card__icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-color-8);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.contact-info-card__text { display: flex; flex-direction: column; gap: 2px; }
.contact-info-card__label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-color); }
.contact-info-card__value { font-weight: 600; color: var(--primary); }

.contact-form-card {
    background: #fff;
    border: 1px solid var(--accent-color-7);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 24px 48px -32px rgba(0,0,0,0.3);
}
.contact-form-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-color-8);
    color: var(--accent-color);
    font-size: 22px;
    margin-bottom: 16px;
}
.contact-form-card h4 { margin-bottom: 24px; }
.contact-form .row { row-gap: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--primary); }
.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    background-color: var(--accent-color-8);
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--primary);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-color);
    background-color: #fff;
}
.contact-form button[type="submit"] { margin-top: 6px; }

/* The template forces mission-section photos into an ultra-narrow,
   650px-tall strip — fine for a busy flatlay, but it distorts a portrait
   photo into an unnatural sliver. Use a shorter, saner box. */
.about-mission__image img { height: 420px; object-fit: cover; }

.card__about-overview { height: 100%; justify-content: center; }

/* Footer — full redesign: the template's version stacked a giant 260px
   decorative headline plus three raised, padded cards inside another
   dark section, which added up to a very tall, boxy-looking block. This
   is a single flat section with plain columns instead. */
.rada-footer {
    background: var(--accent-color-2);
    color: var(--secondary);
    padding: 64px 0 0;
}
.rada-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 991px) {
    .rada-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .rada-footer__grid { grid-template-columns: 1fr; }
}
.rada-footer__col { display: flex; flex-direction: column; gap: 14px; }
.rada-footer__col--brand .footer__logo { width: 220px; max-width: 100%; margin-bottom: 4px; }
.rada-footer__col--brand p { color: rgba(255,255,255,0.75); }
.rada-footer__heading { color: #fff; font-size: 15px; font-weight: 700; margin: 0; }
.rada-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rada-footer__list li, .rada-footer__list a { color: rgba(255,255,255,0.75); font-size: 14px; text-decoration: none; }
.rada-footer__list a:hover { color: var(--accent-color); }
.rada-footer__col--newsletter .newsletter-form {
    margin-top: 4px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-bottom: none;
    padding-bottom: 0;
}
.rada-footer__col--newsletter .newsletter-form input {
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    padding: 16px 22px;
    font-size: 14px;
    width: 100%;
    min-width: 0;
}
.rada-footer__col--newsletter .newsletter-form button { width: 100%; }
.rada-footer__copyright { padding: 22px 0; text-align: center; }
.rada-footer__copyright h6 { margin: 0; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 400; }

/* Trusted Software & Certifications strip: a plain, light "as seen with"
   row below the hero, not floating cards over a busy photo. */
.trust-logos-strip {
    padding: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}
.trust-logos-strip__label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-color);
}
.trust-logos-strip__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 18px;
}
.trust-logos-strip__logo {
    height: 100px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    transition: transform 0.2s ease;
}
.trust-logos-strip__logo:hover {
    transform: scale(1.12);
}
@media (max-width: 767px) {
    .trust-logos-strip__row { gap: 20px 28px; }
    .trust-logos-strip__logo { height: 48px; max-width: 130px; }
}

/* Footer: make the 3 cards match height regardless of content length
   (EN/ES text differs), and keep the giant decorative headline from
   overflowing/clipping at any viewport width or word length. */
.footer__inner-container { align-items: stretch; }

.footer__highlight-text-container { overflow: hidden; gap: 30px; }
.footer__highlight-text-fill, .footer__highlight-text-outline {
    font-size: clamp(40px, 9vw, 200px);
    white-space: nowrap;
}

.team-image-placeholder-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.team-image--with-badge { position: relative; }
.team-whatsapp-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,0.4);
    text-decoration: none;
}
.team-whatsapp-badge:hover { background: #1ebe5a; color: #fff; }

.team-role-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.team-credentials { color: var(--accent-color); }

/* A little life on hover: the photo zooms in, the card lifts with a
   shadow, and the role caption brightens. */
.team-container { transition: transform 0.25s ease; }
.team-container:hover { transform: translateY(-6px); }
.team-image img { transition: transform 0.4s ease; }
.team-container:hover .team-image img { transform: scale(1.08); }
.team-container .team-image { box-shadow: 0 8px 16px -8px rgba(0,0,0,0.15); transition: box-shadow 0.25s ease; }
.team-container:hover .team-image { box-shadow: 0 20px 32px -12px rgba(0,0,0,0.3); }
.team-role-caption { transition: background 0.25s ease; }
.team-container:hover .team-role-caption { background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0)); }
