/* Top Navbar Styles */
/* Cores da marca */
.bg-amcs-primary {
    background-color: #ef4607 !important;
}

.bg-amcs-accent {
    background-color: #febc27 !important;
}

.border-amcs-primary {
    border-color: #ef4607 !important;
}

.brand-text {
    color: #ef4607;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Top Navbar Styles */
.top-navbar {
    padding: 5px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1040;
}

.top-navbar .nav-link {
    padding: 0.25rem 0.5rem;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.top-navbar .nav-link:hover {
    opacity: 0.9;
    color: #595959 !important;
    transform: translateY(-1px);
}

.top-navbar .dropdown-toggle {
    text-decoration: none;
}

.top-navbar .dropdown-toggle::after {
    color: #fff;
}

.top-navbar .dropdown-menu {
    margin-top: 6px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
}

.top-navbar .dropdown:hover .dropdown-menu,
.top-navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.top-navbar .dropdown-item {
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.top-navbar .dropdown-item:hover {
    background-color: #febc27;
    color: #333 !important;
}

/* Main Navbar Styles */
.main-navbar {
    padding: 10px 0;
    background-color: #fff !important;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-navbar .nav-link {
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.main-navbar .nav-link:hover {
    color: #ef4607 !important;
}

.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #febc27, #ef4607);
    transition: width 0.3s ease;
}

.main-navbar .nav-link:hover::after {
    width: 80%;
}

.main-navbar .nav-link.active {
    color: #ef4607 !important;
    font-weight: 600;
}

.main-navbar .nav-link.active::after {
    width: 80%;
}

/* Dropdown Menu Styles */
.main-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1050;
}

.main-navbar .nav-item.dropdown:hover > .dropdown-menu,
.main-navbar .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Abre dropdown do menu principal ao passar o cursor (desktop) */
@media (min-width: 992px) {
    .main-navbar .nav-item.dropdown {
        position: relative;
    }

    .main-navbar .nav-item.dropdown > .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        margin-top: 0;
    }

    .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    .main-navbar .nav-item.dropdown:focus-within > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 991.98px) {
    .main-navbar .nav-item.dropdown > .dropdown-menu {
        display: none;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        margin-top: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-navbar .dropdown-item {
    padding: 8px 25px;
    transition: all 0.3s ease;
    color: #333;
}

.main-navbar .dropdown-item:hover {
    background: linear-gradient(90deg, #febc27, #ef4607);
    color: #fff !important;
    padding-left: 35px;
}

/* Mega Menu for Services (se houver muitos itens) */
.dropdown-menu-wide {
    min-width: 300px;
}

/* Contact Button */
.main-navbar .btn {
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #ef4607, #febc27);
    color: #fff !important;
    z-index: 1;
}

.main-navbar .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ef4607, #2f2f2e);
    transition: left 0.3s ease;
    z-index: -1;
}

.main-navbar .btn:hover::before {
    left: 0;
}

.main-navbar .btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 70, 7, 0.3);
}

/* Efeito flutuante suave no botão de contacto */
.btn-amcs-contact {
    animation: contact-float 3.2s ease-in-out infinite;
}

@keyframes contact-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .top-navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .top-navbar .navbar-nav {
        flex-direction: column !important;
        align-items: center;
        width: 100%;
    }
    
    .top-navbar .navbar-nav .nav-link {
        padding: 5px 0;
    }
    
    .top-navbar .text-white-50 {
        display: none;
    }
    
    .main-navbar .navbar-collapse {
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .main-navbar .nav-link::after {
        display: none;
    }
    
    .main-navbar .btn {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .top-navbar .navbar-nav {
        font-size: 0.8rem;
    }
    
    .main-navbar .navbar-brand img {
        height: 40px;
    }
    
    .main-navbar .brand-text {
        font-size: 1.2rem !important;
    }
}

/* Animações adicionais */
.navbar {
    transition: all 0.3s ease;
}

/* Global text justification (content sections) */
section p,
section li {
    text-align: justify;
    text-justify: inter-word;
}

/* Scroll effect for main navbar */
.main-navbar.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Separator entre itens do menu */
.main-navbar .navbar-nav .nav-item:not(:last-child) {
    margin-right: 5px;
}

/* Hover effect for top navbar links */
.top-navbar .nav-link {
    position: relative;
}

.top-navbar .nav-link::after {
    display: none;
}

/* Loading animation for language flags */
/* Bandeiras no dropdown de idiomas (flag-icons) */
.top-navbar .dropdown-item .fi {
    width: 1.25em;
    height: 1em;
    border-radius: 2px;
    vertical-align: middle;
}

/* About AMCS section */
.about-amcs-section {
    background: #ffffff;
}

.about-amcs-section h2 {
    font-weight: 700;
    font-size: 2.1rem;
}

.about-amcs-list li {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}

.about-amcs-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.about-amcs-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.about-amcs-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(254, 188, 39, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(239, 70, 7, 0.3), transparent 60%);
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.about-amcs-overlay-card {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 260px;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: rgba(8, 8, 8, 0.9);
    border: 1px solid rgba(254, 188, 39, 0.8);
    color: #f5f5f5;
}

/* Efeito typing no título do cartão About (index) */
.meeting-title-typing-wrap {
    min-height: 1.35em;
}

.meeting-title-typing {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 10px;
    color: transparent;
}

.meeting-title-typing::before {
    content: attr(data-typing);
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    color: #f5f5f5;
    border-right: 2px solid #febc27;
    animation:
        meeting-title-type 3.2s steps(27, end) 0.35s forwards,
        meeting-title-cursor-blink 0.75s step-end 3.55s infinite;
}

@keyframes meeting-title-type {
    to {
        width: 100%;
    }
}

@keyframes meeting-title-cursor-blink {
    0%,
    49% {
        border-right-color: #febc27;
    }
    50%,
    100% {
        border-right-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .meeting-title-typing {
        color: #f5f5f5;
    }

    .meeting-title-typing::before {
        display: none;
    }
}

.about-amcs-image-wrapper:hover .about-amcs-image {
    transform: scale(1.08);
}

/* Fade in/out para secção Quem Somos */
.about-amcs-section.about-animate-init {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-amcs-section.about-animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll animations for about sections */
.about-scroll-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-scroll-section.about-scroll-in {
    opacity: 1;
    transform: translateY(0);
}

/* Quick service form */
.service-quick-form-section {
    background: linear-gradient(135deg, #febc27 0%, #ef4607 60%, #9c2603 100%);
}

.service-quick-form {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-quick-form-text h3 {
    font-size: 1.1rem;
    color: #ffffff;
}

.service-quick-form-text p {
    color: rgba(255, 255, 255, 0.85);
}

.service-quick-select {
    border-radius: 999px;
    padding-inline: 1.25rem;
    border: none;
    font-size: 0.9rem;
}

.service-quick-select:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

@keyframes amcsServiceShine {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Gradiente animado — cores AMCS (âmbar / laranja / castanho) */
.btn-amcs-service {
    background: linear-gradient(
        135deg,
        #9c2603 0%,
        #ef4607 50%,
        #febc27 100%
    );
    background-size: 200% 200%;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
    box-shadow: 0 4px 18px rgba(239, 70, 7, 0.4), 0 2px 8px rgba(156, 38, 3, 0.35);
    animation: amcsServiceShine 3s ease-in-out infinite;
}

.btn-amcs-service:hover {
    background: #ef4607;
    background-size: auto;
    animation: none;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(239, 70, 7, 0.45);
}

.btn-amcs-service:focus-visible {
    outline: 2px solid #febc27;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-amcs-service {
        animation: none;
        background-position: 50% 50%;
    }
}

@media (max-width: 767.98px) {
    .service-quick-form {
        padding: 1rem 1.1rem;
    }
}

/* AMCS Highlights section */
.amcs-highlights-section {
    background: radial-gradient(circle at top left, #ffffff 0%, #f8f9fb 40%, #eef1f6 100%);
}

.amcs-highlights-section h2 {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.highlight-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    height: 100%;
    text-align: left;
    transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #febc27, #ef4607);
    color: #ffffff;
    margin-bottom: 0.85rem;
}

.highlight-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

/* Index – Why work with AMCS? cards with remote photo */
.amcs-highlights-section .highlight-card--with-photo {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.amcs-highlights-section .highlight-card--with-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 0 rgba(254, 188, 39, 0);
    pointer-events: none;
    transition: box-shadow 0.45s ease;
    z-index: 3;
}

.amcs-highlights-section .highlight-card--with-photo:hover {
    transform: translateY(-12px);
    border-color: rgba(239, 70, 7, 0.28);
    box-shadow:
        0 28px 56px rgba(17, 17, 17, 0.11),
        0 0 0 1px rgba(239, 70, 7, 0.1),
        0 14px 42px rgba(239, 70, 7, 0.12);
}

.amcs-highlights-section .highlight-card--with-photo:hover::after {
    box-shadow: inset 0 0 0 2px rgba(254, 188, 39, 0.35);
}

.amcs-highlights-section .highlight-card__media {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: #e9ecef;
}

.amcs-highlights-section .highlight-card__media::before {
    content: "";
    position: absolute;
    inset: -20% -40%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 42%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0) 58%,
        transparent 100%
    );
    transform: translateX(-120%) rotate(0deg);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__media::before {
    animation: amcs-highlights-shine 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.amcs-highlights-section .highlight-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(17, 17, 17, 0.18) 100%);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__media::after {
    opacity: 0.55;
}

.amcs-highlights-section .highlight-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__media img {
    transform: scale(1.09);
    filter: saturate(1.12) contrast(1.05) brightness(1.03);
}

.amcs-highlights-section .highlight-card__content {
    position: relative;
    z-index: 2;
    padding: 1.35rem 1.5rem 1.5rem;
}

.amcs-highlights-section .highlight-card__content .highlight-icon {
    margin-bottom: 0.75rem;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease;
}

.amcs-highlights-section .highlight-card--with-photo:hover .highlight-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow:
        0 12px 28px rgba(239, 70, 7, 0.32),
        0 0 0 2px rgba(255, 255, 255, 0.35);
}

.amcs-highlights-section .highlight-card__content h5 {
    transition: color 0.35s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__content h5 {
    color: #ef4607;
    transform: translateX(5px);
}

@keyframes amcs-highlights-shine {
    0% {
        transform: translateX(-120%);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    100% {
        transform: translateX(120%);
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .amcs-highlights-section .highlight-card__media {
        height: 155px;
    }

    .amcs-highlights-section .highlight-card--with-photo:hover {
        transform: translateY(-8px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .amcs-highlights-section .highlight-card__media img,
    .amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__media img {
        transition: none;
        transform: none;
        filter: none;
    }

    .amcs-highlights-section .highlight-card--with-photo,
    .amcs-highlights-section .highlight-card--with-photo:hover {
        transition: none;
        transform: none;
    }

    .amcs-highlights-section .highlight-card--with-photo::after,
    .amcs-highlights-section .highlight-card--with-photo:hover::after {
        transition: none;
        box-shadow: none;
    }

    .amcs-highlights-section .highlight-card__media::before,
    .amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__media::before {
        animation: none;
    }

    .amcs-highlights-section .highlight-card__content .highlight-icon,
    .amcs-highlights-section .highlight-card--with-photo:hover .highlight-icon,
    .amcs-highlights-section .highlight-card__content h5,
    .amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__content h5 {
        transition: none;
        transform: none;
    }

    .amcs-highlights-section .highlight-card--with-photo:hover .highlight-card__content h5 {
        color: inherit;
    }
}

/* Flip animation for highlight cards */
.highlight-card-init {
    transform: rotateY(90deg);
}

.highlight-card-flip-in {
    animation: highlight-flip-in 0.7s ease-out forwards;
}

.highlight-card-flip-out {
    animation: highlight-flip-out 0.5s ease-in forwards;
}

@keyframes highlight-flip-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes highlight-flip-out {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
}

/* Flip animation for collaborators cards */
.collaborator-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Future timeline / operation milestones (vertical rail + panels) */
.amcs-timeline-simple {
    position: relative;
    background:
        linear-gradient(145deg, #ffffff 0%, #fafbfc 45%, #fff9ef 100%);
    border-radius: 20px;
    padding: 1.35rem 1.25rem 1.2rem;
    border: 1px solid rgba(239, 70, 7, 0.12);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    overflow: hidden;
}

.amcs-timeline-simple::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 100% 0%, rgba(254, 188, 39, 0.14), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(239, 70, 7, 0.08), transparent 45%);
    pointer-events: none;
}

.amcs-timeline-simple__header {
    position: relative;
    margin-bottom: 1.15rem;
    z-index: 1;
}

.amcs-timeline-simple__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.amcs-timeline-simple__kicker-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(254, 188, 39, 0.95), rgba(239, 70, 7, 0.88));
    color: #111;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(239, 70, 7, 0.22);
}

.amcs-timeline-simple__label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(17, 17, 17, 0.58);
}

.amcs-timeline-simple__heading {
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.amcs-timeline-simple__lede {
    line-height: 1.55;
    max-width: 38rem;
}

.amcs-timeline-simple__progress {
    display: flex;
    gap: 0.35rem;
    margin-top: 1rem;
}

.amcs-timeline-simple__progress span {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(254, 188, 39, 0.35), rgba(239, 70, 7, 0.35));
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.amcs-timeline-simple--js .amcs-timeline-simple__progress span {
    transform: scaleX(0.35);
    opacity: 0.55;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-simple__progress span {
    transform: scaleX(1);
    opacity: 1;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-simple__progress span:nth-child(1) {
    transition-delay: 0.05s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-simple__progress span:nth-child(2) {
    transition-delay: 0.12s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-simple__progress span:nth-child(3) {
    transition-delay: 0.19s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-simple__progress span:nth-child(4) {
    transition-delay: 0.26s;
}

.amcs-timeline-simple__body {
    position: relative;
    margin: 0;
    padding: 0.25rem 0 0 0.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1;
}

.amcs-timeline-simple__body::before {
    content: '';
    position: absolute;
    left: calc(1.15rem - 2px);
    top: 0.85rem;
    bottom: 0.85rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(254, 188, 39, 0.95) 0%,
        rgba(245, 150, 40, 0.85) 45%,
        rgba(239, 70, 7, 0.9) 100%
    );
    box-shadow: 0 0 18px rgba(254, 188, 39, 0.35);
}

.amcs-timeline-step {
    position: relative;
    display: grid;
    grid-template-columns: 2.3rem 1fr;
    gap: 0.85rem;
    align-items: stretch;
    list-style: none;
    margin: 0;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease;
}

.amcs-timeline-simple--js:not(.amcs-timeline-simple--visible) .amcs-timeline-step {
    opacity: 0;
    transform: translate3d(-10px, 8px, 0);
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-step:nth-child(1) {
    transition-delay: 0.08s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-step:nth-child(2) {
    transition-delay: 0.16s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-step:nth-child(3) {
    transition-delay: 0.24s;
}

.amcs-timeline-simple--js.amcs-timeline-simple--visible .amcs-timeline-step:nth-child(4) {
    transition-delay: 0.32s;
}

.amcs-timeline-step__marker {
    display: flex;
    justify-content: center;
    padding-top: 0.35rem;
}

.amcs-timeline-step__icon {
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #febc27, #ef4607);
    color: #111;
    font-size: 0.88rem;
    box-shadow:
        0 6px 18px rgba(239, 70, 7, 0.28),
        0 0 0 3px #fff,
        0 0 0 5px rgba(254, 188, 39, 0.35);
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.amcs-timeline-step__panel {
    flex: 1;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 0.65rem 0.85rem 0.7rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

@media (hover: hover) {
    .amcs-timeline-step:hover .amcs-timeline-step__panel {
        transform: translateY(-2px);
        border-color: rgba(239, 70, 7, 0.22);
        box-shadow:
            0 14px 32px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(254, 188, 39, 0.35);
    }

    .amcs-timeline-step:hover .amcs-timeline-step__icon {
        transform: scale(1.06);
        box-shadow:
            0 10px 26px rgba(239, 70, 7, 0.35),
            0 0 0 3px #fff,
            0 0 0 6px rgba(254, 188, 39, 0.45);
    }
}

.amcs-timeline-step__time {
    display: inline-block;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.88);
    background: linear-gradient(180deg, rgba(254, 188, 39, 0.28), rgba(239, 70, 7, 0.14));
    border: 1px solid rgba(239, 70, 7, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.35rem;
}

.amcs-timeline-step__title {
    font-weight: 800;
    font-size: 0.98rem;
    color: #111;
    letter-spacing: -0.015em;
    line-height: 1.25;
    margin-bottom: 0.2rem;
}

.amcs-timeline-step__detail {
    font-size: 0.84rem;
    color: rgba(17, 17, 17, 0.62);
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 575.98px) {
    .amcs-timeline-simple {
        padding: 1.1rem 1rem;
    }

    .amcs-timeline-simple__body::before {
        left: calc(1rem - 2px);
    }

    .amcs-timeline-step {
        grid-template-columns: 2rem 1fr;
        gap: 0.65rem;
    }

    .amcs-timeline-step__icon {
        width: 1.85rem;
        height: 1.85rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amcs-timeline-simple__progress span {
        transition: none;
        transform: scaleX(1);
        opacity: 1;
    }

    .amcs-timeline-simple--js .amcs-timeline-simple__progress span {
        transform: scaleX(1);
        opacity: 1;
    }

    .amcs-timeline-step {
        transition: none;
        transform: none;
        opacity: 1;
    }

    .amcs-timeline-simple--js:not(.amcs-timeline-simple--visible) .amcs-timeline-step {
        opacity: 1;
        transform: none;
    }

    .amcs-timeline-step__icon,
    .amcs-timeline-step__panel {
        transition: none;
    }

    @media (hover: hover) {
        .amcs-timeline-step:hover .amcs-timeline-step__panel {
            transform: none;
        }

        .amcs-timeline-step:hover .amcs-timeline-step__icon {
            transform: none;
        }
    }
}

.key-collaborators-section {
    position: relative;
    background:
        radial-gradient(circle at 18% 8%, rgba(254, 188, 39, 0.22), transparent 55%),
        radial-gradient(circle at 82% 35%, rgba(239, 70, 7, 0.18), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.key-collaborators-section::before {
    content: '';
    position: absolute;
    inset: -2px;
    background:
        repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.04) 0 1px, transparent 1px 10px);
    opacity: 0.28;
    pointer-events: none;
}

.key-collaborators-section > .container {
    position: relative;
    z-index: 1;
}

.key-collaborators-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #111;
    background: rgba(254, 188, 39, 0.9);
    border: 1px solid rgba(239, 70, 7, 0.22);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 0.75rem;
}

.key-collaborators-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.key-collaborators-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.88);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
}

.collaborator-card--modern {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.10);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.collaborator-card--modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 10%, rgba(254, 188, 39, 0.22), transparent 55%),
        radial-gradient(circle at 90% 25%, rgba(239, 70, 7, 0.16), transparent 60%);
    opacity: 0.85;
    pointer-events: none;
}

.collaborator-card--modern::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    top: 0.85rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #febc27, #ef4607);
    opacity: 0.95;
    pointer-events: none;
}

.collaborator-card--modern > * {
    position: relative;
    z-index: 1;
}

.collaborator-card--modern h5 {
    font-weight: 700;
    letter-spacing: 0.01em;
}

.collaborator-card--modern:hover {
    transform: translateY(-6px);
    border-color: rgba(239, 70, 7, 0.25);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.16);
}

/* Collaborators: photo cards + hover overlay (activities) */
.amcs-collaborator-card {
    /* Photo: full image visible (no crop) within max box; card + image limits scale together */
    --amcs-collab-scale: 0.96;
    --amcs-collab-img-max-h: calc(232px * var(--amcs-collab-scale));
    --amcs-collab-card-max: calc(322px * var(--amcs-collab-scale));
    max-width: min(100%, var(--amcs-collab-card-max));
    margin-inline: auto;
    width: 100%;
    border-radius: calc(14px * var(--amcs-collab-scale));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.amcs-collaborator-card:hover,
.amcs-collaborator-card:focus-within {
    transform: translateY(calc(-4px * var(--amcs-collab-scale)));
    border-color: rgba(239, 70, 7, 0.22);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.amcs-collaborator-card:focus {
    outline: 2px solid rgba(239, 70, 7, 0.55);
    outline-offset: 3px;
}

.amcs-collaborator-card--alt .amcs-collaborator-card__photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: calc(4px * var(--amcs-collab-scale));
    z-index: 2;
    background: linear-gradient(90deg, #ef4607, #febc27);
    pointer-events: none;
}

.amcs-collaborator-card__media {
    position: relative;
    background: #e9ecef;
    padding: 0;
    margin: 0;
}

.amcs-collaborator-card__figure {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.amcs-collaborator-card__photo {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.amcs-collaborator-card__img {
    display: block;
    max-width: 100%;
    max-height: var(--amcs-collab-img-max-h);
    width: auto;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
}

.amcs-collaborator-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(0.65rem * var(--amcs-collab-scale)) calc(0.75rem * var(--amcs-collab-scale))
        calc(0.8rem * var(--amcs-collab-scale));
    background: linear-gradient(
        to top,
        rgba(17, 17, 17, 0.92) 0%,
        rgba(17, 17, 17, 0.55) 45%,
        rgba(17, 17, 17, 0.12) 100%
    );
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s ease;
}

.amcs-collaborator-card:hover .amcs-collaborator-card__overlay,
.amcs-collaborator-card:focus-within .amcs-collaborator-card__overlay {
    opacity: 1;
    pointer-events: auto;
}

.amcs-collaborator-card__overlay-kicker {
    display: inline-block;
    font-size: calc(0.7rem * var(--amcs-collab-scale));
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(254, 188, 39, 0.95);
    margin-bottom: calc(0.45rem * var(--amcs-collab-scale));
}

.amcs-collaborator-card__activities {
    margin: 0;
    padding-left: calc(1rem * var(--amcs-collab-scale));
    font-size: calc(0.78rem * var(--amcs-collab-scale));
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.amcs-collaborator-card__activities li {
    margin-bottom: calc(0.35rem * var(--amcs-collab-scale));
}

.amcs-collaborator-card__activities li:last-child {
    margin-bottom: 0;
}

.amcs-collaborator-card__body {
    padding: calc(0.75rem * var(--amcs-collab-scale)) calc(0.85rem * var(--amcs-collab-scale))
        calc(0.9rem * var(--amcs-collab-scale));
}

.amcs-collaborator-card__body h5 {
    font-size: calc(1rem * var(--amcs-collab-scale));
}

.amcs-collaborator-card__role {
    font-size: calc(0.8rem * var(--amcs-collab-scale));
    font-weight: 600;
    color: rgba(17, 17, 17, 0.72);
}

.amcs-collaborator-card__tag {
    font-size: calc(0.72rem * var(--amcs-collab-scale));
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: calc(0.2rem * var(--amcs-collab-scale)) calc(0.55rem * var(--amcs-collab-scale));
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: rgba(17, 17, 17, 0.82);
    flex-shrink: 0;
}

.amcs-collaborator-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(0.5rem * var(--amcs-collab-scale));
    font-size: calc(0.72rem * var(--amcs-collab-scale));
    color: rgba(17, 17, 17, 0.68);
}

/* Collaborators: horizontal icon rows */
.amcs-collaborator-row {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.amcs-collaborator-row__icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #febc27, #ef4607);
    color: #111;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.amcs-collaborator-row__icon--alt {
    background: linear-gradient(135deg, #ef4607, #febc27);
}

/* Key collaborators – profile photo from web */
.amcs-collaborator-row__avatar {
    --amcs-collab-avatar-size: 148px;
    width: var(--amcs-collab-avatar-size);
    height: var(--amcs-collab-avatar-size);
    border-radius: 999px;
    flex-shrink: 0;
    overflow: hidden;
    border: 4px solid rgba(254, 188, 39, 0.9);
    box-shadow:
        0 10px 24px rgba(239, 70, 7, 0.22),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
}

.amcs-collaborator-row__avatar--alt {
    border-color: rgba(239, 70, 7, 0.75);
    box-shadow:
        0 10px 24px rgba(17, 17, 17, 0.12),
        0 0 0 1px rgba(239, 70, 7, 0.15);
}

.amcs-collaborator-row__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    transition: transform 0.35s ease;
}

.amcs-collaborator-row:hover .amcs-collaborator-row__photo {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .amcs-collaborator-row:hover .amcs-collaborator-row__photo {
        transform: none;
    }
}

.amcs-collaborator-row__main {
    flex: 1;
}

.amcs-collaborator-row__role {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(17, 17, 17, 0.7);
}

.amcs-collaborator-row__tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.06);
    color: rgba(17, 17, 17, 0.8);
}

.amcs-collaborator-row__text {
    font-size: 0.9rem;
    color: rgba(17, 17, 17, 0.78);
    margin-bottom: 0.45rem;
}

.amcs-collaborator-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: rgba(17, 17, 17, 0.7);
}

.amcs-collaborator-row:hover {
    transform: translateY(-4px);
    border-color: rgba(239, 70, 7, 0.24);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.14);
}

/* About – Key collaborators: hover inovador */
.key-collaborators-section .amcs-collaborator-row {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.35s ease;
}

.key-collaborators-section .amcs-collaborator-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #febc27, #ef4607, #febc27);
    opacity: 0;
    transform: scaleX(0.28);
    transform-origin: left center;
    transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 3;
    pointer-events: none;
    border-radius: 16px 16px 0 0;
}

.key-collaborators-section .amcs-collaborator-row:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.key-collaborators-section .amcs-collaborator-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 60%,
        transparent 100%
    );
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.key-collaborators-section .amcs-collaborator-row:hover::after {
    animation: collab-row-shine 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes collab-row-shine {
    0% {
        transform: translateX(-130%);
        opacity: 0;
    }
    18% {
        opacity: 0.95;
    }
    100% {
        transform: translateX(130%);
        opacity: 0;
    }
}

.key-collaborators-section .amcs-collaborator-row__avatar,
.key-collaborators-section .amcs-collaborator-row__main {
    position: relative;
    z-index: 2;
}

.key-collaborators-section .amcs-collaborator-row__avatar {
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
}

.key-collaborators-section .amcs-collaborator-row:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(239, 70, 7, 0.32);
    box-shadow:
        0 28px 56px rgba(17, 17, 17, 0.11),
        0 0 0 1px rgba(239, 70, 7, 0.14),
        0 14px 42px rgba(239, 70, 7, 0.13),
        inset 0 0 0 1px rgba(254, 188, 39, 0.12);
}

.key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__avatar {
    transform: scale(1.05) rotate(-2deg);
    box-shadow:
        0 16px 36px rgba(239, 70, 7, 0.3),
        0 0 0 3px rgba(255, 255, 255, 0.55);
}

.key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__avatar--alt {
    transform: scale(1.05) rotate(2deg);
}

.key-collaborators-section .amcs-collaborator-row__main h5 {
    transition: color 0.35s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__main h5 {
    color: #ef4607;
    transform: translateX(5px);
}

.key-collaborators-section .amcs-collaborator-row__tag {
    transition: background 0.3s ease, color 0.3s ease, transform 0.35s ease,
        box-shadow 0.35s ease;
}

.key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__tag {
    background: rgba(239, 70, 7, 0.12);
    color: #b83606;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(239, 70, 7, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .key-collaborators-section .amcs-collaborator-row,
    .key-collaborators-section .amcs-collaborator-row:hover {
        transition: none;
    }

    .key-collaborators-section .amcs-collaborator-row:hover {
        transform: none;
    }

    .key-collaborators-section .amcs-collaborator-row::before {
        transition: none;
        transform: scaleX(1);
        opacity: 0;
    }

    .key-collaborators-section .amcs-collaborator-row:hover::before {
        opacity: 1;
    }

    .key-collaborators-section .amcs-collaborator-row::after,
    .key-collaborators-section .amcs-collaborator-row:hover::after {
        animation: none;
    }

    .key-collaborators-section .amcs-collaborator-row__avatar,
    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__avatar,
    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__avatar--alt {
        transition: none;
        transform: none;
    }

    .key-collaborators-section .amcs-collaborator-row__main h5,
    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__main h5,
    .key-collaborators-section .amcs-collaborator-row__tag,
    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__tag {
        transition: none;
        transform: none;
        box-shadow: none;
    }

    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__main h5 {
        color: inherit;
    }

    .key-collaborators-section .amcs-collaborator-row:hover .amcs-collaborator-row__tag {
        background: rgba(17, 17, 17, 0.06);
        color: rgba(17, 17, 17, 0.8);
    }
}

@media (max-width: 575.98px) {
    .amcs-collaborator-row {
        flex-direction: row;
        align-items: flex-start;
    }

    .amcs-collaborator-row__avatar {
        --amcs-collab-avatar-size: 120px;
    }
}

@media (min-width: 992px) {
    .amcs-collaborator-card {
        --amcs-collab-card-max: calc(358px * var(--amcs-collab-scale));
        --amcs-collab-img-max-h: calc(262px * var(--amcs-collab-scale));
    }
}

/* Touch / small screens: show activities below photo (no hover) */
@media (max-width: 767.98px) {
    .amcs-collaborator-card__figure {
        display: block;
        width: 100%;
    }

    .amcs-collaborator-card__photo {
        display: block;
        width: 100%;
    }

    .amcs-collaborator-card__img {
        margin-inline: auto;
    }

    .amcs-collaborator-card__overlay {
        position: static;
        opacity: 1;
        pointer-events: none;
        background: #f1f3f5;
        color: #111;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .amcs-collaborator-card__overlay-kicker {
        color: #c45a00;
    }

    .amcs-collaborator-card__activities {
        color: rgba(17, 17, 17, 0.88);
    }
}

@media (max-width: 991.98px) {
    .key-collaborators-meta {
        justify-content: flex-start;
    }
}

.collaborator-init {
    transform: rotateY(90deg);
}

.collaborator-flip-in {
    animation: collaborator-flip-in 0.7s ease-out forwards;
}

.collaborator-flip-out {
    animation: collaborator-flip-out 0.5s ease-in forwards;
}

@keyframes collaborator-flip-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

@keyframes collaborator-flip-out {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
}

/* Animations for highlights section */
.amcs-highlights-section.highlights-animate-init {
    opacity: 0;
    transform: scale(0.98) translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.amcs-highlights-section.highlights-animate-in {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Partners section */
.partners-section {
    background: #ffffff;
}

.partners-marquee-wrapper {
    overflow: hidden;
    background: #f3f4f6;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 0 clamp(16px, 4vw, 56px);
}

.partners-marquee {
    display: flex;
    align-items: center;
    --partners-marquee-gap: clamp(1.25rem, 3vw, 3rem);
    gap: var(--partners-marquee-gap);
    padding: 1.5rem 0;
    width: max-content;
    animation: partners-scroll 26s linear infinite;
    will-change: transform;
}

.partners-marquee-group {
    display: flex;
    align-items: center;
    gap: var(--partners-marquee-gap);
    flex-shrink: 0;
}

.partner-logo {
    background: #ffffff;
    border-radius: 14px;
    padding: 0.85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-width: 150px;
    min-height: 72px;
}

.partner-logo img {
    max-height: 46px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-logo:hover img {
    transform: translateY(-2px);
}

@keyframes partners-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50% - (var(--partners-marquee-gap) * 0.5))); }
}

/* Footer Styles */
.site-footer {
    background: #111;
    color: #f5f5f5;
    margin-top: 0;
}

.site-footer .footer-main {
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, #111 0%, #1c1c1c 40%, #2b2b2b 100%);
    position: relative;
    overflow: hidden;
}

.site-footer .footer-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(254, 188, 39, 0.18), transparent 55%),
                radial-gradient(circle at bottom right, rgba(239, 70, 7, 0.18), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.site-footer .footer-main > .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 100px;
}

.footer-brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #febc27;
}

.footer-text {
    font-size: 0.9rem;
    color: #d0d0d0;
    max-width: 320px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #febc27;
    margin-right: 0.35rem;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #febc27, #ef4607);
    color: #111;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.footer-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #febc27;
    margin-bottom: 0.9rem;
}

.footer-links li + li {
    margin-top: 0.4rem;
}

.footer-links a {
    color: #d0d0d0;
    font-size: 0.9rem;
    text-decoration: none;
    position: relative;
    padding-left: 0.75rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: #ef4607;
    transform: translateY(1px);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #febc27;
    transform: translateX(3px);
}

.footer-contact li {
    font-size: 0.9rem;
    color: #d0d0d0;
    margin-bottom: 0.4rem;
}

.footer-contact i {
    color: #febc27;
}

.footer-map {
    background: #050505;
    padding: 0.5rem 0 0;
}

.footer-map .map-wrapper {
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    border: 1px solid rgba(254, 188, 39, 0.4);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    height: 260px;
}

.footer-bottom {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.9rem 0;
    font-size: 0.8rem;
    color: #a0a0a0;
}

.footer-heart {
    color: #ef4607;
}

@media (max-width: 767.98px) {
    .site-footer .footer-main {
        padding: 2.2rem 0 1.8rem;
    }

    .footer-map .map-wrapper {
        height: 220px;
    }
}

/* About page hero background */
.about-hero-section {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed !important;
    color: #fff;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
    min-height: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.about-hero-section > .container {
    position: relative;
    z-index: 2;
}

/* JS fallback for reliable fixed background */
.about-hero-fixed-bg {
    position: fixed;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 180ms ease;
    will-change: opacity;
}

.about-hero-section.about-hero-fixed--active .about-hero-fixed-bg {
    opacity: 1;
}

.about-hero-section.about-hero-fixed--active {
    background-image: none !important;
}

.about-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.about-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

.about-hero-section .badge {
    background-color: rgba(254, 188, 39, 0.9) !important;
    color: #111 !important;
}

/* Services page hero background (mesmas dimensões que about) */
.services-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.services-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.services-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* Operations page hero background (mesmas dimensões que about) */
.operations-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.operations-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.operations-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

.vessel-operations-image {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vessel-operations-image__img {
    transition: transform 0.38s ease;
    transform-origin: center center;
}

.vessel-operations-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.vessel-operations-image:hover .vessel-operations-image__img {
    transform: scale(1.04);
}

/* Operations media reveal (entrada/saida no scroll) */
.ops-image-reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.985);
    filter: blur(6px);
    border-radius: 18px;
    background: rgba(248, 249, 250, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.ops-image-reveal--left {
    transform: translate3d(-28px, 26px, 0) scale(0.985);
}

.ops-image-reveal--right {
    transform: translate3d(28px, 26px, 0) scale(0.985);
}

.ops-image-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.ops-image-reveal img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    display: block;
}

.ops-image-reveal:hover img {
    transform: scale(1.07);
}

.ops-image-reveal:hover {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

/* Services page: dynamic/professional hover cards (imagem por cima, texto por baixo) */
.services-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    --svc-tilt-x: 0deg;
    --svc-tilt-y: 0deg;
    --svc-glow-x: 50%;
    --svc-glow-y: 50%;
    transition:
        transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 260ms cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
}

.services-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--svc-glow-x) var(--svc-glow-y),
        rgba(254, 188, 39, 0.34),
        rgba(239, 70, 7, 0.16) 35%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.services-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.45) 48%, transparent 100%);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.services-card:hover,
.services-card:focus-within {
    transform: translateY(-8px) rotateX(var(--svc-tilt-x)) rotateY(var(--svc-tilt-y));
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.16);
    border-color: rgba(239, 70, 7, 0.24);
}

.services-card:hover::before,
.services-card:focus-within::before {
    opacity: 1;
}

.services-card:hover::after {
    opacity: 1;
    animation: services-card-shine 0.95s ease;
}

.services-card .highlight-icon,
.services-card h5,
.services-card p {
    position: relative;
    z-index: 1;
}

/* Área da foto em formato vertical (retrato); sempre acima do texto */
.services-card__media {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 185px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: rgba(0, 0, 0, 0.03);
}

.services-card__body {
    padding: 1rem 1.15rem 1.2rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

@media (min-width: 768px) {
    .services-card__body {
        padding: 1.15rem 1.25rem 1.2rem;
    }

    .services-card__media {
        max-height: 205px;
    }
}

.services-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
    filter: saturate(1.03) contrast(1.02);
}

/* Variação leve no enquadramento da foto por card */
.services-grid .col-md-6:nth-child(3n + 1) .services-card__img {
    object-position: 55% 40%;
}

.services-grid .col-md-6:nth-child(3n + 2) .services-card__img {
    object-position: center 35%;
}

.services-grid .col-md-6:nth-child(3n + 3) .services-card__img {
    object-position: 45% 50%;
}

.services-card:hover .services-card__img,
.services-card:focus-within .services-card__img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.06);
}

.services-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.0) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
    opacity: 0.55;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.services-card:hover .services-card__media::after,
.services-card:focus-within .services-card__media::after {
    opacity: 0.35;
}

.services-card .highlight-icon {
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.services-card h5 {
    transition: color 240ms ease, transform 240ms ease;
}

.services-card:hover .highlight-icon,
.services-card:focus-within .highlight-icon {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 10px 20px rgba(239, 70, 7, 0.28);
}

.services-card .highlight-icon {
    position: relative;
    margin: 0 0 0.75rem 0;
}

.services-card:hover h5,
.services-card:focus-within h5 {
    color: #ef4607;
    transform: translateX(2px);
}

@keyframes services-card-shine {
    from {
        left: -120%;
    }
    to {
        left: 160%;
    }
}

/* Services page - case studies gallery */
.case-gallery__kicker {
    letter-spacing: 0.1em;
    font-size: 0.72rem !important;
    color: rgba(239, 70, 7, 0.95) !important;
}

.case-gallery__intro {
    max-width: 42rem;
}

/* Grelha bento: hero + 2 empilhados + 3 iguais — alinhamento limpo em todos os breakpoints */
.case-gallery--bento {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.case-gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease,
        border-color 300ms ease;
}

.case-gallery-card__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.02);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
    filter: saturate(1.03) contrast(1.02);
}

/* Móvel: alturas consistentes para boa leitura em lista */
.case-gallery-card--bento-hero .case-gallery-card__img {
    min-height: 220px;
    aspect-ratio: 16 / 10;
    height: auto;
    object-position: center 38%;
}

.case-gallery-card--bento-stack .case-gallery-card__img {
    min-height: 180px;
    aspect-ratio: 16 / 10;
    height: auto;
    object-position: center 42%;
}

.case-gallery-card--bento-tile .case-gallery-card__img {
    min-height: 170px;
    aspect-ratio: 4 / 3;
    height: auto;
}

/* Tablet: duas colunas; hero em largura total */
@media (min-width: 576px) {
    .case-gallery--bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }

    .case-gallery-card--bento-hero {
        grid-column: 1 / -1;
    }
}

/* Tablet: última miniatura em linha completa para equilibrar o grid 2 colunas */
@media (min-width: 576px) and (max-width: 991.98px) {
    .case-gallery--bento .case-gallery-card--bento-tile:last-child {
        grid-column: 1 / -1;
    }

    .case-gallery--bento .case-gallery-card--bento-tile:last-child .case-gallery-card__img {
        aspect-ratio: 21 / 9;
        min-height: 200px;
        max-height: 260px;
    }
}

/* Desktop: 12 colunas — hero 7×2; pilha à direita; fila inferior 4+4+4 */
@media (min-width: 992px) {
    .case-gallery--bento {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
        gap: 1.25rem;
        align-items: stretch;
    }

    .case-gallery-card--bento-hero {
        grid-column: 1 / span 7;
        grid-row: 1 / span 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .case-gallery-card--bento-hero .case-gallery-card__img {
        flex: 1 1 auto;
        min-height: 280px;
        height: 100%;
        max-height: none;
        aspect-ratio: unset;
        object-position: center 36%;
    }

    .case-gallery-card--bento-stack:nth-of-type(2) {
        grid-column: 8 / span 5;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .case-gallery-card--bento-stack:nth-of-type(3) {
        grid-column: 8 / span 5;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .case-gallery-card--bento-stack .case-gallery-card__img {
        flex: 1 1 auto;
        min-height: 0;
        height: 100%;
        max-height: none;
        aspect-ratio: unset;
        object-position: center 44%;
    }

    .case-gallery-card--bento-tile:nth-of-type(4) {
        grid-column: 1 / span 4;
        grid-row: 3;
    }

    .case-gallery-card--bento-tile:nth-of-type(5) {
        grid-column: 5 / span 4;
        grid-row: 3;
    }

    .case-gallery-card--bento-tile:nth-of-type(6) {
        grid-column: 9 / span 4;
        grid-row: 3;
    }

    .case-gallery-card--bento-tile .case-gallery-card__img {
        min-height: 200px;
        aspect-ratio: 4 / 3;
        height: auto;
        max-height: 240px;
    }
}

@media (min-width: 1200px) {
    .case-gallery-card--bento-tile .case-gallery-card__img {
        max-height: 260px;
    }
}

.case-gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(254, 188, 39, 0.28), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.35) 100%);
    opacity: 0.58;
    transition: opacity 280ms ease;
    pointer-events: none;
}

.case-gallery-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.4) 48%, transparent 100%);
    transform: skewX(-18deg);
    opacity: 0;
    pointer-events: none;
}

.case-gallery-card__caption {
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.85rem;
    z-index: 1;
    color: #fff;
    font-weight: 600;
    font-size: 0.92rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.case-gallery-card:hover,
.case-gallery-card:focus-within {
    transform: translateY(-7px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.15);
    border-color: rgba(239, 70, 7, 0.22);
}

.case-gallery-card:hover .case-gallery-card__img,
.case-gallery-card:focus-within .case-gallery-card__img {
    transform: scale(1.08);
    filter: saturate(1.12) contrast(1.06);
}

.case-gallery-card:hover::before,
.case-gallery-card:focus-within::before {
    opacity: 0.42;
}

.case-gallery-card:hover::after {
    opacity: 1;
    animation: services-card-shine 0.95s ease;
}

/* Industry page media cards (aligned with side text) */
.industry-media-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 260px;
    max-width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 300ms ease,
        border-color 300ms ease;
}

.industry-media-card__img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
    filter: saturate(1.02) contrast(1.02);
}

.industry-media-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 1.1rem;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.industry-media-card__overlay h5,
.industry-media-card__overlay p {
    color: #fff;
}

.industry-media-card--light .industry-media-card__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(17, 17, 17, 0.72) 100%);
}

.industry-media-card:hover,
.industry-media-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(239, 70, 7, 0.24);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.16);
}

.industry-media-card:hover .industry-media-card__img,
.industry-media-card:focus-within .industry-media-card__img {
    transform: scale(1.07);
    filter: saturate(1.1) contrast(1.05);
}

@media (max-width: 991.98px) {
    .industry-media-card,
    .industry-media-card__img {
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vessel-operations-image,
    .vessel-operations-image__img,
    .ops-image-reveal,
    .ops-image-reveal--left,
    .ops-image-reveal--right,
    .ops-image-reveal img,
    .services-card,
    .services-card .highlight-icon,
    .services-card h5 {
        transition: none;
        transform: none;
        filter: none;
        opacity: 1;
    }

    .services-card::before,
    .services-card::after {
        display: none;
        animation: none;
    }

    .case-gallery-card,
    .case-gallery-card__img,
    .industry-media-card,
    .industry-media-card__img {
        transition: none;
        transform: none;
    }

    .case-gallery-card::before,
    .case-gallery-card::after {
        display: none;
        animation: none;
    }
}

/* Industry page hero background (mesmas dimensões que about) */
.industry-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.industry-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.industry-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* Standards page hero background (mesmas dimensões que about) */
.standards-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.standards-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.standards-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* Contact page hero background (mesmas dimensões que about) */
.contact-hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

.contact-hero-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.contact-hero-section h1 {
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* Floating contact button & scroll-to-top */
.floating-contact {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 1050;
}

.floating-contact-toggle {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #febc27, #ef4607);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-contact-toggle i {
    font-size: 1.2rem;
}

.floating-contact-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.floating-contact-menu {
    position: absolute;
    bottom: 3.8rem;
    right: 0.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-contact.open .floating-contact-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-contact-menu a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.floating-contact-menu a:hover {
    background: #febc27;
    color: #111;
    transform: translateY(-2px);
}

.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: none;
    background: #111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
    z-index: 1045;
}

.scroll-top-btn--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #ef4607;
}

@media (max-width: 575.98px) {
    .floating-contact {
        bottom: 4.5rem;
        right: 1rem;
    }

    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
    }
}

/* Services Carousel - ocupa todo o ecrã, sem contornos */
.services-carousel-section {
    background: #111;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.services-carousel-section .carousel,
.services-carousel-section .carousel-inner,
.services-carousel-section .carousel-item {
    height: 100vh;
    border: none;
}

/* Transição suave entre slides (fade) */
.services-carousel-section .carousel-item {
    transition: opacity 1s ease-in-out;
}

.services-carousel-section .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.services-carousel-section .carousel-fade .carousel-item.active {
    opacity: 1;
}

.services-carousel-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-image {
    height: 100vh;
    width: 100%;
    object-fit: cover;
}

.services-carousel-section .carousel-caption {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.82), rgba(0, 0, 0, 0.6));
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    max-width: 520px;
    margin-bottom: 2rem;
}

.services-carousel-section .carousel-caption h5 {
    color: #fff;
}

.services-carousel-section .carousel-caption p {
    font-size: 0.95rem;
    color: #f1f1f1;
}

.services-carousel-section .carousel-indicators {
    bottom: 1.5rem;
    gap: 0.5rem;
}

.services-carousel-section .carousel-indicators [data-bs-target] {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    opacity: 1;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.services-carousel-section .carousel-indicators .active {
    background: linear-gradient(135deg, #febc27, #ef4607);
    transform: scaleX(1.1);
}

.services-carousel-section .carousel-control-prev,
.services-carousel-section .carousel-control-next {
    width: auto;
    padding: 0 1rem;
}

.services-carousel-section .carousel-control-prev-icon,
.services-carousel-section .carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.55);
    background-size: 40% 40%;
    border: 1px solid rgba(254, 188, 39, 0.8);
}

@media (max-width: 767.98px) {
    .services-carousel-section .carousel-caption {
        max-width: 100%;
        margin: 0 1rem 1.5rem;
        padding: 1.2rem 1.4rem;
    }

    .services-carousel-section .carousel,
    .services-carousel-section .carousel-inner,
    .services-carousel-section .carousel-item,
    .carousel-image {
        height: 100vh;
    }
}