/* ==========================================
   BOTÕES
========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 34px;
    min-height: 56px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn img {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.btn:hover img {
    transform: translateX(4px);
}

.btn-primary {
    background: linear-gradient(180deg, #dcb858 0%, #c0993e 100%);
    color: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
    filter: brightness(1.05);
}

.btn:hover .icon {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--color-white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

/* ==========================================
   BOTÃO TERCIÁRIO
========================================== */

.btn-tertiary {
    background: transparent;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    transition: all .3s ease;
}

.btn-tertiary img {
    filter: none;
}

.btn-tertiary:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.btn-tertiary:hover img {
    filter: brightness(0) invert(1);
    transform: translateX(4px);
}

/* ==========================================
   CABEÇALHO
========================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(28, 28, 28, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.header::after {
    z-index: 0;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 35px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(28, 28, 28, 0.35),
        rgba(28, 28, 28, 0)
    );
}

.header.is-scrolled {
    background: var(--color-dark);
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
}

.header.is-scrolled::after {
    display: none;
    background: linear-gradient(
        to bottom,
        var(--color-dark),
        rgba(28, 28, 28, 0)
    );
}

.header__nav {
    flex: 1;
    min-width: 0;
}

.header__container {
    height: var(--header-height);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 35px;
}

.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header__logo img {
    display: block;
    width: auto;
    height: 60px;
    max-width: none;
    flex-shrink: 0;
}

.header__menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.header__menu a {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    color: var(--color-white);
    position: relative;
    white-space: nowrap;
    transition: var(--transition);
}

.header__menu a:hover {
    color: var(--color-primary);
}

.header__menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

/* ITEM ATIVO */

.header__menu a.active::after {
    width: 100%;
}

/* ==========================================
   CTA DO CABEÇALHO
========================================== */

.header__cta {
    margin-left: 0px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 190px;
    min-height: 64px;
    padding: 10px 22px;
    background: linear-gradient(180deg, #dcb858, #c0993e);
    color: var(--color-dark);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
}

.header__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.header__cta-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-dark);
    white-space: nowrap;
}

.header__cta-number img {
    width: 16px;
    height: 16px;
    color: var(--color-dark);
}

.header__cta-text {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
    transition: transform 0.3s ease;
}

/* ==========================================
   MENU MOBILE - DEFAULT
========================================== */

.header__toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    margin: 0 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1002;
}

.header__toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-white);
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

/* ==========================================
   MENU DROPDOWN DO CABEÇALHO
========================================== */

.header__menu-item--dropdown {
    position: relative;
}

.header__menu-link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.header__dropdown-arrow {
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.header__menu-item--dropdown:hover .header__dropdown-arrow,
.header__menu-item--dropdown:focus-within .header__dropdown-arrow {
    transform: rotate(180deg);
}

/* SUBMENU */

.header__submenu {
    z-index: 10;
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 245px;
    margin: 0;
    padding: 10px;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.header__menu-item--dropdown:hover .header__submenu,
.header__menu-item--dropdown:focus-within .header__submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.header__submenu li {
    margin: 0;
}

.header__submenu a {
    position: relative;
    display: block;
    padding: 11px 13px 11px 22px;
    border-radius: 7px;
    color: var(--color-dark);
    font-size: 0.9rem;
    line-height: 1.35;
    border: none;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Barra dourada lateral */

.header__submenu a::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 2px;
    height: 0;
    background: var(--color-primary);
    transform: translateY(-50%);
    transition:
        height 0.25s ease,
        background-color 0.2s ease;
}

/* Hover */

.header__submenu a:hover,
.header__submenu a:focus-visible {
    background: var(--color-light);
    color: var(--color-primary);
}

/* Barra cresce a partir do centro */

.header__submenu a:hover::before,
.header__submenu a:focus-visible::before {
    height: calc(100% - 14px);
}

/* ==========================================
   TÍTULO DA SECÇÃO
========================================== */

.section-heading {
    max-width: 760px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section-tag {
    display: inline-block;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.section-heading h2 {
    color: var(--color-dark);
    margin-bottom: 22px;
}

.section-heading p {
    max-width: 650px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================
   CARTÃO DE VALOR
========================================== */

.value-card {
    background: #ffffff;
    border: #b6b6b6 solid 1px;
    border-radius: 18px;
    padding: 48px 38px;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.17);
    border: #dcb858 solid 1px;
}

.value-card__icon {
    margin-bottom: 24px;
    transition:
        transform 0.35s ease,
        color 0.35s ease;
}

.value-card:hover .value-card__icon {
    transform: translateY(-4px) scale(1.08);
}

.value-card__icon img {
    width: 46px;
    height: 46px;
    display: block;
}

.value-card h3 {
    position: relative;
    color: var(--color-dark);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.value-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    background: var(--color-primary);
    transition: 0.35s ease;
}

.value-card:hover h3::after {
    width: 70px;
}

.value-card p {
    line-height: 1.8;
    font-size: 1rem;
    color: #666;
}

.values__divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 56px 0 64px;
}

.values__divider span {
    width: 70px;
    height: 1px;
    background-color: #b6b6b6;
}

.values__divider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #b6b6b6;
}

/* ==========================================
   DIVISOR DE SECÇÃO
========================================== */

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 18px 0 32px;
}

.section-divider span {
    width: 52px;
    height: 1px;
    background-color: #b6b6b6;
    opacity: 0.55;
}

.section-divider__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #b6b6b6;
}

.section-divider--left {
    justify-content: flex-start;
}

.section-divider--right {
    justify-content: flex-end;
}

/* ==========================================
   AÇÕES DA SECÇÃO
========================================== */

.section-actions {
    margin-top: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   FORMULÁRIO DE CONTACTO
========================================== */

.contact-form {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 17px;
    background: var(--color-white);
    border: 1px solid #cfcac0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--color-dark);
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease;
}

.form-group input,
.form-group select {
    min-height: 52px;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(192, 153, 62, 0.12);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #b8b1a5;
}

/* SELECT */

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image:
        linear-gradient(45deg, transparent 50%, #777 50%),
        linear-gradient(135deg, #777 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 14px) 22px;
    background-size:
        6px 6px,
        6px 6px;
    background-repeat: no-repeat;
    padding-right: 42px;
}

/* CAMPO DE MENSAGEM */

.contact-form > .form-group {
    margin-top: 28px;
}

/* CAIXA DE SELEÇÃO */

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.6;
    color: #666;
    cursor: pointer;
}

.form-checkbox input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-checkbox a {
    color: var(--color-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}

.form-checkbox a:hover {
    color: var(--color-primary);
}

/* BOTÃO */

.contact-form .btn {
    margin-top: 28px;
}

/* ALERTAS */

.form-alert {
    max-width: 900px;
    margin: 0 auto 28px;
    padding: 18px 22px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.94rem;
    line-height: 1.6;
}

.form-alert ul {
    margin: 0;
    padding-left: 20px;
}

.form-alert li + li {
    margin-top: 6px;
}

.form-alert--error {
    background: #f8eeee;
    border: 1px solid #d9aaaa;
    color: #7d2f2f;
}

.form-alert--success {
    background: #eef6ef;
    border: 1px solid #a9c9ac;
    color: #315f36;
}