/* ═══════════════════════════════════════════════════
   FREDERICO FERREIRA — Components (Premium v2)
   ═══════════════════════════════════════════════════ */

/* ══ SERVICE CARDS ══ */
.card {
    position: relative;
    background: var(--bg-white);
    border: 1px solid rgba(14, 30, 52, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(14, 30, 52, 0.04);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(14, 30, 52, 0.12), 0 8px 16px rgba(14, 30, 52, 0.06);
    border-color: var(--border-gold);
}

.card:hover::before {
    opacity: 1;
}

.card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(209, 178, 125, 0.12), rgba(209, 178, 125, 0.04));
    border: 1px solid rgba(209, 178, 125, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    color: var(--gold-dark);
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover .card__icon {
    background: linear-gradient(135deg, rgba(209, 178, 125, 0.2), rgba(209, 178, 125, 0.08));
    border-color: var(--gold);
    transform: scale(1.05);
}

.card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold-dark);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--navy);
    margin-bottom: var(--space-sm);
    transition: color var(--duration-fast);
}

.card__text {
    font-size: var(--fs-small);
    color: var(--text-dark-secondary);
    line-height: var(--lh-relaxed);
}

/* Dark variant */
.card--dark {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.card--dark:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: var(--border-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(209, 178, 125, 0.06);
}

.card--dark .card__title {
    color: var(--white);
}

.card--dark .card__text {
    color: var(--text-secondary);
}

.card--dark .card__icon {
    background: rgba(209, 178, 125, 0.08);
    border-color: rgba(209, 178, 125, 0.2);
}

.card--dark:hover .card__icon {
    background: rgba(209, 178, 125, 0.15);
    border-color: var(--gold);
}

/* ══ STEPPER / TIMELINE ══ */
.stepper {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.stepper__item {
    display: flex;
    gap: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-2xl);
}

.stepper__item:last-child {
    padding-bottom: 0;
}

.stepper__marker {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    color: var(--navy);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(209, 178, 125, 0.25);
    line-height: 1;
    padding-bottom: 4px;
    /* Fix vertical metrics of Cormorant Garamond font so number sits exactly in the center */
}

.stepper__line {
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), rgba(209, 178, 125, 0.15));
}

.stepper__item:last-child .stepper__line {
    display: none;
}

.stepper__content {
    padding-top: var(--space-sm);
    flex: 1;
}

.stepper__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.stepper__text {
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
}

/* ══ ACCORDION (FAQ) ══ */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color var(--duration-fast);
}

.accordion__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion__item:hover {
    border-color: rgba(209, 178, 125, 0.2);
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-medium);
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: color var(--duration-fast);
    gap: var(--space-lg);
}

.accordion__trigger:hover {
    color: var(--gold);
}

.accordion__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(209, 178, 125, 0.08);
    border: 1px solid rgba(209, 178, 125, 0.2);
    transition: all var(--duration-normal) var(--ease-out);
}

.accordion__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(45deg);
    background: var(--gold);
    border-color: var(--gold);
}

.accordion__item.is-open .accordion__icon svg {
    stroke: var(--navy);
}

.accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-out);
}

.accordion__content {
    padding: 0 var(--space-md) var(--space-xl);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
}

/* Light-theme accordion */
.section--light .accordion__item,
.section--white .accordion__item {
    border-color: var(--border-dark);
}

.section--light .accordion__item:first-child,
.section--white .accordion__item:first-child {
    border-top-color: var(--border-dark);
}

.section--light .accordion__content,
.section--white .accordion__content {
    color: var(--text-dark-secondary);
}

/* ══ FEATURE / DIFERENCIAL ══ */
.feature {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(209, 178, 125, 0.12);
}

.feature__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-xl);
    border-radius: 50%;
    background: rgba(209, 178, 125, 0.06);
    border: 1.5px solid rgba(209, 178, 125, 0.25);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature:hover .feature__icon {
    background: rgba(209, 178, 125, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(209, 178, 125, 0.15);
    transform: scale(1.08);
}

.feature__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
}

.feature__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.feature__text {
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
    max-width: 300px;
    margin-inline: auto;
}

.section--dark .feature__text,
.section--dark-alt .feature__text {
    color: var(--text-secondary);
}

.section--light .feature__text,
.section--white .feature__text {
    color: var(--text-dark-secondary);
}

.section--light .feature__title,
.section--white .feature__title {
    color: var(--navy);
}

/* ══ CONTENT CARD (articles) ══ */
.content-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(14, 30, 52, 0.06);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 2px 8px rgba(14, 30, 52, 0.04);
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(14, 30, 52, 0.1), 0 8px 16px rgba(14, 30, 52, 0.04);
    border-color: rgba(209, 178, 125, 0.3);
}

.content-card__image {
    height: 160px;
    background: linear-gradient(135deg, var(--navy), var(--navy-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.content-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(209, 178, 125, 0.08), transparent 70%);
}

.content-card__image svg {
    width: 40px;
    height: 40px;
    stroke: var(--gold);
    opacity: 0.4;
    position: relative;
    z-index: 1;
    transition: all var(--duration-normal);
}

.content-card:hover .content-card__image svg {
    opacity: 0.7;
    transform: scale(1.1);
}

.content-card__body {
    padding: var(--space-xl) var(--space-lg);
}

.content-card__tag {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: var(--space-xs);
    padding: 2px 10px;
    background: rgba(209, 178, 125, 0.08);
    border-radius: var(--radius-full);
}

.content-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-semibold);
    color: var(--navy);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.content-card__text {
    font-size: var(--fs-small);
    color: var(--text-dark-secondary);
    line-height: var(--lh-relaxed);
}

/* ══ FORM ══ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.7);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem var(--space-md);
    font-size: var(--fs-body);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    transition: all var(--duration-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(209, 178, 125, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23D1B27D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--navy);
    color: var(--white);
}

/* Light-theme form */
.section--light .form-label,
.section--white .form-label {
    color: var(--navy);
}

.section--light .form-input,
.section--light .form-select,
.section--light .form-textarea,
.section--white .form-input,
.section--white .form-select,
.section--white .form-textarea {
    background: var(--white);
    border-color: var(--gray-200);
    color: var(--text-dark);
}

.section--light .form-input::placeholder,
.section--white .form-input::placeholder,
.section--light .form-textarea::placeholder,
.section--white .form-textarea::placeholder {
    color: var(--gray-300);
}

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.form-checkbox__text {
    font-size: var(--fs-small);
    line-height: var(--lh-normal);
}

.form-checkbox__text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Honeypot */
.form-honey {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ══ COOKIE BANNER ══ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 39, 64, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-gold);
    padding: var(--space-lg) var(--container-pad);
    z-index: var(--z-toast);
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__text {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    max-width: 600px;
}

.cookie-banner__text a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-sm);
}

/* ══ FLOATING WHATSAPP ══ */
.floating-wa {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999 !important;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.floating-wa:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.floating-wa svg {
    stroke: var(--white);
}

@media (max-width: 768px) {
    .floating-wa {
        bottom: var(--space-md);
        right: var(--space-md);
        width: 50px;
        height: 50px;
    }

    .floating-wa svg {
        width: 28px;
        height: 28px;
    }
}