/* ==========================================================================
   TMST Corretora - Estilos Oficiais Aprovados
   Design fiel ao template Next.js / Tailwind aprovado pela cliente
   ========================================================================== */

:root {
    --tmst-navy: #1f2640;
    --tmst-white: #fbfbfb;
    --tmst-purple: #9865cb;
    --tmst-pink-light: #f5e4e5;

    /* Gold Scale */
    --tmst-gold-dark: #b79463;
    --tmst-gold: #c2a171;
    --tmst-gold-light: #cbab7c;
    --tmst-gold-lighter: #dec194;
    
    --color-gray-800: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--tmst-navy);
    color: var(--tmst-white);
    font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container-custom {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(251, 251, 251, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 38, 64, 0.1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-inner {
    height: 96px; /* h-24 */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-link {
    display: flex;
    align-items: center;
}

.brand-logo-img {
    height: 72px;
    max-height: 78px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-img {
    transform: scale(1.03);
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
        align-items: center;
    }
}

.nav-desktop a {
    color: var(--tmst-navy);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-desktop a:hover {
    color: var(--tmst-gold);
}

.btn-header-cta {
    display: none;
    background-color: var(--tmst-gold);
    color: var(--tmst-navy);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.2s;
}

@media (min-width: 768px) {
    .btn-header-cta {
        display: inline-block;
    }
}

.btn-header-cta:hover {
    background-color: var(--tmst-gold-light);
}

.menu-toggle-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--tmst-navy);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .menu-toggle-btn {
        display: none;
    }
}

.mobile-menu-dropdown {
    display: none;
    background: #ffffff;
    border-top: 1px solid rgba(31, 38, 64, 0.1);
    padding: 16px 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.mobile-menu-dropdown.open {
    display: block;
}

.mobile-menu-dropdown ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu-dropdown a {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--tmst-navy);
    padding: 8px 0;
}

.mobile-menu-dropdown a:hover {
    color: var(--tmst-gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    background-color: var(--tmst-navy);
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('assets/images/hero_collage.jpg');
}

.hero-bg-overlay-1 {
    position: absolute;
    inset: 0;
    background-color: rgba(31, 38, 64, 0.88);
}

.hero-bg-overlay-2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(152, 101, 203, 0.3), rgba(194, 161, 113, 0.2), transparent);
    mix-blend-mode: overlay;
}

.hero-bg-overlay-3 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, var(--tmst-navy), rgba(31, 38, 64, 0.8), transparent);
}

/* Floating Decorative Icons */
.hero-floating-icon-1 {
    position: absolute;
    top: 25%;
    left: 2.5rem;
    color: rgba(194, 161, 113, 0.12);
    z-index: 1;
    pointer-events: none;
    animation: floatHero1 8s infinite ease-in-out;
}

.hero-floating-icon-2 {
    position: absolute;
    bottom: 25%;
    right: 2.5rem;
    color: rgba(152, 101, 203, 0.12);
    z-index: 1;
    pointer-events: none;
    animation: floatHero2 12s infinite ease-in-out;
}

@keyframes floatHero1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes floatHero2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(40px) rotate(-10deg); }
}

.hero-content-wrap {
    position: relative;
    z-index: 10;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-max-box {
    max-width: 48rem; /* max-w-3xl */
}

.hero-title-main {
    font-size: 3rem; /* text-5xl */
    font-weight: 700;
    color: var(--tmst-white);
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero-title-main {
        font-size: 4.5rem; /* md:text-7xl */
    }
}

.hero-subtitle-text {
    margin-top: 1.5rem;
    font-size: 1.25rem; /* text-xl */
    color: rgba(251, 251, 251, 0.8);
    max-width: 42rem;
    line-height: 1.6;
}

.hero-cta-box {
    margin-top: 2.5rem;
}

.btn-hero-cta {
    display: inline-block;
    background-color: var(--tmst-gold);
    color: var(--tmst-navy);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.btn-hero-cta:hover {
    background-color: var(--tmst-gold-light);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--tmst-pink-light);
    color: var(--tmst-navy);
    overflow: hidden;
}

.about-flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

@media (min-width: 768px) {
    .about-flex-container {
        flex-direction: row;
    }
}

.about-col-image {
    width: 100%;
}

@media (min-width: 768px) {
    .about-col-image {
        width: 50%;
    }
}

.about-img-frame {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
    .about-img-frame {
        aspect-ratio: 1 / 1;
    }
}

.about-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-image: url('assets/images/about.jpg');
}

.about-img-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(31, 38, 64, 0.1);
    mix-blend-mode: overlay;
}

.about-col-content {
    width: 100%;
}

@media (min-width: 768px) {
    .about-col-content {
        width: 50%;
    }
}

.about-title-large {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--tmst-purple);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .about-title-large {
        font-size: 3rem; /* md:text-5xl */
    }
}

.about-divider-bar {
    width: 6rem;
    height: 4px;
    background-color: var(--tmst-gold-dark);
    margin-bottom: 2rem;
}

.about-body-text {
    font-size: 1.125rem; /* text-lg */
    line-height: 1.75;
    color: var(--color-gray-800);
}

@media (min-width: 768px) {
    .about-body-text {
        font-size: 1.25rem; /* md:text-xl */
    }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--tmst-navy);
    color: var(--tmst-white);
}

.services-header-box {
    text-align: center;
    margin-bottom: 4rem;
}

.services-main-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-divider-bar {
    width: 6rem;
    height: 4px;
    background-color: var(--tmst-gold);
    margin: 0 auto;
}

.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-card-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.service-card-item:hover {
    background-color: rgba(152, 101, 203, 0.1);
    border-color: rgba(152, 101, 203, 0.3);
    transform: translateY(-4px);
}

.service-icon-wrap {
    width: 4rem;
    height: 4rem;
    background-color: rgba(203, 171, 124, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--tmst-gold-light);
    font-size: 1.75rem;
    transition: transform 0.3s, color 0.3s;
}

.service-card-item:hover .service-icon-wrap {
    transform: scale(1.1);
    color: var(--tmst-gold-lighter);
}

.service-item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.service-card-item:hover .service-item-title {
    color: var(--tmst-pink-light);
}

.service-item-desc {
    color: rgba(251, 251, 251, 0.7);
    line-height: 1.625;
}

/* ==========================================================================
   Partners Section
   ========================================================================== */
.partners-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--tmst-white);
    color: var(--tmst-navy);
}

.partners-header-box {
    text-align: center;
    margin-bottom: 4rem;
}

.partners-main-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    margin-bottom: 1rem;
}

.partners-divider-bar {
    width: 6rem;
    height: 4px;
    background-color: var(--tmst-gold-lighter);
    margin: 0 auto 1.5rem auto;
}

.partners-desc-text {
    font-size: 1.125rem;
    color: rgba(31, 38, 64, 0.8);
    max-width: 42rem;
    margin: 0 auto;
}

.partners-carousel-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
}

.partners-fade-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 8rem;
    height: 100%;
    background: linear-gradient(to right, var(--tmst-white), transparent);
    z-index: 10;
    pointer-events: none;
}

.partners-fade-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 100%;
    background: linear-gradient(to l, var(--tmst-white), transparent);
    z-index: 10;
    pointer-events: none;
}

.partners-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: max-content;
    animation: marqueePartners 25s linear infinite;
}

@media (min-width: 768px) {
    .partners-track {
        gap: 4rem;
    }
}

@keyframes marqueePartners {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 200px;
    transition: all 0.3s;
}

.partner-name-text {
    font-weight: 700;
    font-size: 1.5rem; /* text-2xl */
    letter-spacing: -0.05em;
    color: rgba(31, 38, 64, 0.6);
    transition: color 0.3s;
}

@media (min-width: 768px) {
    .partner-name-text {
        font-size: 1.875rem; /* md:text-3xl */
    }
}

.partner-name-text:hover {
    color: var(--tmst-navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--tmst-white);
    border-top: 1px solid rgba(31, 38, 64, 0.1);
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
    color: rgba(31, 38, 64, 0.8);
}

.footer-flex-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    height: 70px;
    max-height: 75px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-copy {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-credits-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.footer-credits-wrap:hover {
    opacity: 1;
}

.footer-credits-wrap img {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.footer-credits-wrap a:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.floating-whatsapp-btn {
    background-color: #25D366;
    color: #ffffff;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    animation: pulseWa 2s infinite;
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1);
}

.floating-whatsapp-btn svg {
    width: 32px;
    height: 32px;
}

@keyframes pulseWa {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
