/* ======================================================
   ATLAS CONDOMÍNIOS — Premium Stylesheet
   Design: Navy + Gold, Playfair Display + Inter
   ====================================================== */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f7f8fa;
    color: #1a202c;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.2;
}

.text-accent {
    color: #c9952b;
}

.text-white {
    color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header-light {
    /* for dark backgrounds */
}

.section-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c9952b;
    margin-bottom: 12px;
    position: relative;
}

.section-tag::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #c9952b;
    margin: 12px auto 0;
}

.section-tag-light::after {
    background: #e8c46a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f1b2d;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-accent {
    background: #c9952b;
    color: #ffffff;
}

.btn-accent:hover {
    background: #b07d1e;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 149, 43, 0.3);
}

/* ======================================================
   1. NAVBAR
   ====================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f1b2d;
    letter-spacing: -0.3px;
}

.logo-accent {
    color: #c9952b;
}

/* ===== NAVIGATION ===== */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 4px;
    transition: color 0.3s ease, background 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link:hover {
    color: #c9952b;
    background: rgba(201, 149, 43, 0.06);
}

.nav-link-cta {
    background: #0f1b2d;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-link-cta:hover {
    background: #1a365d;
    color: #ffffff;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f1b2d;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ======================================================
   2. HERO
   ====================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f1b2d 0%, #1a365d 70%, #1e3d6b 100%);
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(201, 149, 43, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('../images/sindico-PROFISSIONAL.jpg') center/cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: #e8c46a;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    font-size: 0.95rem;
    padding: 16px 40px;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 1rem;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ======================================================
   3. SERVICES
   ====================================================== */
.services {
    padding: 96px 0;
    background: #f7f8fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.service-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border-left-color: #c9952b;
}

.card-icon {
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f1b2d;
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
}

/* ======================================================
   4. DIFFERENTIALS
   ====================================================== */
.differentials {
    padding: 96px 0;
    background: #0f1b2d;
    position: relative;
}

.differentials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 149, 43, 0.3), transparent);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 16px;
}

.differential-item {
    text-align: center;
    padding: 32px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease;
}

.differential-item:hover {
    transform: translateY(-4px);
}

.diff-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #c9952b;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.diff-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.diff-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ======================================================
   5. CONTACT (Edge-to-Edge)
   ====================================================== */
.contact {
    background: #ffffff;
}

.contact-wrapper {
    display: flex;
    min-height: 600px;
}

.contact-map {
    flex: 1;
    min-height: 500px;
}

.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    filter: grayscale(0.3);
}

.contact-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.contact-form-inner {
    padding: 56px 48px;
    width: 100%;
    max-width: 100%;
}

.contact-form-inner .section-tag {
    text-align: left;
}

.contact-form-inner .section-tag::after {
    margin: 12px 0 0;
}

.contact-form-inner .section-title {
    text-align: left;
}

.contact-intro {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Compact contact info */
.contact-info-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-bottom: 28px;
    padding: 20px 24px;
    background: #f7f8fa;
    border-radius: 6px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c9952b;
}

.info-value {
    font-size: 0.9rem;
    color: #0f1b2d;
    font-weight: 500;
}

.info-value:hover {
    color: #c9952b;
}

/* Form iframe */
.contact-iframe-container {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.contact-iframe-container iframe {
    display: block;
    width: 100%;
}

/* ======================================================
   6. FOOTER
   ====================================================== */
.footer {
    background: #0f1b2d;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 90px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-brand {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
}

.footer-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 280px;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #c9952b;
}

.footer-list li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #c9952b;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ======================================================
   ANIMATIONS
   ====================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   RESPONSIVE – TABLET
   ====================================================== */
@media (max-width: 1024px) {
    .differentials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ======================================================
   RESPONSIVE – MOBILE
   ====================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 20px 24px 32px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-list {
        flex-direction: column;
        gap: 4px;
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .nav-link-cta {
        text-align: center;
        margin-top: 8px;
    }

    /* Hero */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 14px 32px;
        font-size: 0.9rem;
    }

    /* Section titles */
    .section-title {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Services */
    .services {
        padding: 64px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 32px 24px;
    }

    /* Differentials */
    .differentials {
        padding: 64px 0;
    }

    .differentials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .differential-item {
        padding: 24px 16px;
    }

    .diff-number {
        font-size: 2.5rem;
    }

    /* Contact - edge to edge stacks */
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-map {
        min-height: 320px;
    }

    .contact-map iframe {
        min-height: 320px;
    }

    .contact-form-inner {
        padding: 40px 24px;
        max-width: 100%;
    }

    .contact-info-compact {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    /* Footer */
    .footer {
        padding: 48px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* ======================================================
   RESPONSIVE – SMALL MOBILE
   ====================================================== */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .service-card {
        padding: 28px 20px;
    }
}
