/* ===========================================================
   CUSTOM OVERRIDES FOR IN THE PARK
   Copied from Majestic to ensure identical styling
   =========================================================== */

/* --- PROJECT INFO SECTION (Para Morar/Investir) --- */
#inthepark-project-info {
    background: #fcfcfc;
    color: #1a1a1a;
}

#inthepark-project-info .section-title,
#inthepark-project-info h2 {
    color: #1a1a1a;
    text-shadow: none;
}

#inthepark-project-info .section-desc {
    color: #666;
}

.project-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.project-card.family-card {
    background: #fff;
    color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.project-card.family-card h3 {
    color: #1a1a1a;
    text-shadow: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.project-card.family-card .card-icon {
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-card.family-card .argument-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-card.family-card .argument-list li {
    color: #555;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.project-card.family-card .argument-list li i {
    color: #d4af37;
    margin-top: 4px;
}

.project-card.investor-card h3 {
    text-shadow: none;
}

.project-card.investor-card .argument-list li {
    color: rgba(255, 255, 255, 0.9);
}

/* Conveniences */
.conveniences-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.conveniences-box .section-title,
.conveniences-box h3 {
    color: #1a1a1a;
    text-shadow: none;
}

.conveniences-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.conv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f9f9f9;
    border-radius: 50px;
    color: #1a1a1a;
    font-size: 0.9rem;
    font-weight: 500;
}

.conv-item i {
    color: #d4af37;
}

/* --- PRIVACY TEXT FIX --- */
.privacy-text {
    color: #666 !important;
}

.form-card .privacy-text {
    color: #666 !important;
}

/* --- SECTION TITLES (Light Background Override) --- */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.1;
    font-weight: 400;
}

.section-title i {
    font-weight: 400;
    font-style: italic;
    color: #d4af37;
}

.section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin-bottom: 40px;
}

/* --- CYRELA SECTION (Majestic Style) --- */
#inthepark-cyrela {
    background-color: #fcfcfc;
    color: #1a1a1a;
}

#inthepark-cyrela .cyrela-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

#inthepark-cyrela .cyrela-title {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-shadow: none;
}

#inthepark-cyrela p {
    color: #666;
}

.cyrela-logo-box {
    flex-shrink: 0;
}

/* --- FINAL CTA SECTION --- */
#inthepark-final-cta {
    background: radial-gradient(circle at top right, #f8f8f8, #efefef);
}

#inthepark-final-cta .section-title {
    color: #1a1a1a;
}

#inthepark-final-cta .section-desc {
    color: #666;
}

/* --- FOOTER FORM SECTION (Majestic Style) --- */
#inthepark-footer-section.footer-section {
    background: #1a1a1a;
    color: #fff;
    padding: 80px 0;
}

.footer-form-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    padding: 0 20px;
    align-items: center;
}

.footer-info {
    display: block;
}

.footer-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    text-shadow: none;
}

.footer-title i {
    font-style: italic;
    color: #d4af37;
}

.footer-desc {
    color: #ccc;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: block;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h4 {
    color: #d4af37;
    margin-bottom: 5px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    text-shadow: none;
}

.contact-item p {
    color: #999;
    margin-bottom: 0;
}

.form-card {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    color: #1a1a1a;
}

.form-card h3 {
    color: #d4af37 !important;
    text-shadow: none;
}

.majestic-field {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    color: #1a1a1a;
    background: #fff;
}

.majestic-field:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* --- SPECIALIST SECTION (Majestic Style) --- */
#inthepark-specialist {
    background-color: #fff;
    padding: 100px 0;
    color: #1a1a1a;
}

.spec-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.spec-image-box {
    position: relative;
    flex-shrink: 0;
}

.spec-img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.spec-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: #050505;
    color: #d4af37;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #d4af37;
}

.spec-content {
    flex: 1;
}

.spec-label {
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.spec-name {
    color: #d4af37 !important;
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    text-shadow: none;
}

.spec-role {
    color: #666 !important;
}

.spec-bio {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.spec-skills {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
}

.skill-icon {
    width: 20px;
    height: 20px;
    fill: #d4af37;
}

/* --- PORTFOLIO SECTION (Majestic Style) --- */
#inthepark-footer-portfolio.portfolio-section {
    background: #000 !important;
    padding: 80px 0;
    color: #fff;
}

#inthepark-footer-portfolio .section-title {
    color: #d4af37 !important;
    text-shadow: none !important;
}

#inthepark-footer-portfolio .projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

#inthepark-footer-portfolio .project-card {
    background: transparent !important;
    border: none !important;
    border-left: 2px solid #333 !important;
    border-radius: 0 !important;
    padding: 0 0 0 15px !important;
    box-shadow: none !important;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#inthepark-footer-portfolio .project-card:hover {
    border-left-color: #d4af37 !important;
    background: transparent !important;
}

#inthepark-footer-portfolio .project-link {
    display: block;
}

#inthepark-footer-portfolio .project-name {
    font-weight: 700 !important;
    color: #fff !important;
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

#inthepark-footer-portfolio .project-desc {
    color: #888 !important;
    font-size: 0.9rem;
}

.btn-footer-whatsapp {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid #d4af37;
    color: #d4af37;
    background: transparent;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-footer-whatsapp:hover {
    background: #d4af37;
    color: #050505;
}

.copyright-bar {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.875rem;
}

/* --- BUTTON VARIANTS FOR LIGHT BACKGROUNDS --- */
.btn-gold-filled {
    background: #d4af37;
    color: #1a1a1a;
    border: 2px solid #d4af37;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold-filled:hover {
    background: #c4a030;
    border-color: #c4a030;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-whatsapp-green {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    border: none;
}

.btn-whatsapp-green:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* --- FAQ SECTION (Light Background) --- */
#inthepark-faq {
    background: #fcfcfc;
}

#inthepark-faq .section-title {
    color: #1a1a1a;
}

.accordion-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
}

.accordion-header:hover {
    background: #f9f9f9;
}

.accordion-header.active {
    color: #d4af37;
}

.question-text {
    color: inherit;
}

.icon-toggle {
    width: 24px;
    height: 24px;
    position: relative;
}

.icon-toggle::before,
.icon-toggle::after {
    content: '';
    position: absolute;
    background: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.icon-toggle::before {
    width: 100%;
    height: 2px;
}

.icon-toggle::after {
    width: 2px;
    height: 100%;
}

.accordion-header.active .icon-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
}

.answer-text {
    padding: 20px;
    color: #666;
    line-height: 1.6;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 900px) {
    .footer-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .spec-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
    }

    .spec-image-box {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
    }

    .spec-img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .spec-badge {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
        width: max-content;
    }

    .spec-skills {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cyrela-container.d-flex {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }

    .footer-title {
        font-size: 2rem;
    }
}

/* --- STICKY NAVIGATION BAR --- */
#sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

#sticky-nav .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: #d4af37;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.nav-cta-btn:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive Nav */
@media (max-width: 900px) {
    #sticky-nav {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 9998;
        overflow-x: visible;
        overflow-y: visible;
        padding: 12px 15px;
    }

    #sticky-nav .nav-container {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 15px;
        padding: 0;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 6px 0;
        letter-spacing: 0.5px;
    }

    .nav-cta-btn {
        width: 100%;
        text-align: center;
        margin: 8px 0 0 0;
        padding: 12px 20px;
        order: 10;
    }
}

/* ================================================
   MOBILE LAYOUT FIXES (All Issues)
   ================================================ */

/* 1. Fix horizontal scroll - applied to BOTH html AND body */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    /* Modern alternative that doesn't break sticky positioning */
}

/* Prevent ALL sections from causing horizontal overflow */
section,
nav,
footer,
.footer-section,
.portfolio-section {
    overflow-x: hidden;
}

/* Contain AOS animations so fade-left/fade-right don't cause overflow */
[data-aos="fade-left"],
[data-aos="fade-right"] {
    overflow: hidden;
}

/* Grid minmax clamping for small screens */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .benefits-grid {
        grid-template-columns: 1fr !important;
    }

    .sec-grid {
        grid-template-columns: 1fr !important;
    }

    .conveniences-grid {
        grid-template-columns: 1fr !important;
    }

    .projects-grid {
        grid-template-columns: 1fr !important;
    }

    /* Prevent spec-badge from overflowing on mobile */
    .spec-badge {
        right: 10px !important;
        transform: none !important;
    }

    /* Contain map placeholder */
    .map-placeholder {
        height: 350px;
    }

    .loc-visual {
        max-width: 100%;
    }
}

/* 2. Project cards stack vertically on mobile */
@media (max-width: 768px) {
    .project-split-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .project-card {
        width: 100%;
    }
}

/* 3. Floor Plans Carousel with fade edges on mobile */
@media (max-width: 768px) {
    .plans-gallery-area {
        position: relative;
    }

    .gallery-preview-grid {
        display: flex !important;
        grid-template-columns: unset !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 0 30px;
        margin: 0 -20px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-preview-grid::-webkit-scrollbar {
        display: none;
    }

    .gallery-thumb-wrapper {
        flex-shrink: 0;
        width: 75%;
        min-width: 250px;
        scroll-snap-align: center;
    }

    /* Fade edges with pseudo-elements */
    .plans-gallery-area::before,
    .plans-gallery-area::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 50px;
        z-index: 10;
        pointer-events: none;
    }

    .plans-gallery-area::before {
        left: 0;
        background: linear-gradient(to right, #050505, transparent);
    }

    .plans-gallery-area::after {
        right: 0;
        background: linear-gradient(to left, #050505, transparent);
    }
}

/* 4. Fix text visibility on "Agende sua visita" section */
#inthepark-final-cta .micro-copy,
#inthepark-final-cta .text-muted,
.bg-light .micro-copy,
.bg-light .text-muted {
    color: #666 !important;
}

/* 5. Fix form field icon alignment */
.input-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    height: auto;
}

.icon-group .input-wrapper {
    display: flex;
    align-items: center;
}

.majestic-field.with-icon {
    padding-left: 45px !important;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* --- intl-tel-input overrides --- */
.iti {
    width: 100%;
    margin-bottom: 15px;
}

.iti .iti__selected-country-primary {
    background: transparent !important;
    border: none !important;
}

.iti .majestic-field,
.iti .majestic-field.with-icon {
    margin-bottom: 0 !important;
}

/* Flag dropdown styling for offcanvas (dark header) */
.offcanvas-content .iti {
    margin-bottom: 0;
}

/* Ensure the phone input aligns nicely with intl-tel-input */
.iti__country-list {
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.iti__country {
    padding: 8px 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.iti__country:hover {
    background: rgba(212, 175, 55, 0.1);
}

.iti__country.iti__highlight {
    background: rgba(212, 175, 55, 0.15);
}

/* --- PLANS GALLERY --- */
.plans-container {
    max-width: 1200px;
    margin: 0 auto;
}

.plans-header {
    margin-bottom: 40px;
}

.plans-gallery-area h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.plans-gallery-area p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-preview-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-thumb-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-thumb-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.gallery-thumb-wrapper img.gallery-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-thumb-wrapper:hover img.gallery-thumb {
    transform: scale(1.05);
}

.plan-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
    padding: 20px 15px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* --- HERO LOGO --- */
.hero-logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 25px auto;
    filter: brightness(0) invert(1);
    /* Turns black/colored SVG to pure white */
    opacity: 0.95;
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

/* --- NEW HERO SECTION OVERRIDES --- */
.hero-content h1.hero-main-title,
.hero-main-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    line-height: 1.4 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    text-align: center;
}

.hero-main-title i {
    font-family: 'Montserrat', sans-serif !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

.hero-main-title strong {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
}

.hero-features-new {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px auto;
}

.hero-features-new .feature-col {
    display: flex;
    flex-direction: column;
    text-align: left;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-features-new .feat-type {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    line-height: 1.3;
    margin-bottom: 2px;
}

.hero-features-new .feat-size {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 1rem);
    letter-spacing: 1px;
}

.hero-features-new .feat-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .hero-features-new {
        gap: 15px;
    }

    .hero-features-new .feat-divider {
        height: 50px;
    }
}

@media (max-width: 600px) {

    .hero-content h1.hero-main-title,
    .hero-main-title {
        font-size: 1.4rem !important;
        line-height: 1.4 !important;
    }

    .hero-features-new {
        flex-direction: column;
        gap: 15px;
    }

    .hero-features-new .feat-divider {
        width: 80px;
        height: 1px;
        background-color: rgba(212, 175, 55, 0.5);
        /* Gold divider for mobile to make it visible */
    }

    .hero-features-new .feature-col {
        text-align: center;
        width: 100%;
    }
}