/* ----------------------------------------------------
   UTILITIES
---------------------------------------------------- */
.text-center { text-align: center; }
.bg-alt { background-color: var(--color-bg-alt); }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   HERO SECTION
---------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/extracted/page_1_img_1.jpeg') center/cover no-repeat;
    z-index: -1;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-white);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* ----------------------------------------------------
   NUMBERS SECTION
---------------------------------------------------- */
.numbers-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.number-item .h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.number-item p {
    font-weight: 500;
    font-size: 1.05rem;
    margin: 0;
    color: var(--color-primary-dark);
}

/* ----------------------------------------------------
   CONCEPT SECTION
---------------------------------------------------- */
.concept-section {
    padding: 8rem 0;
}

.concept-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-title-sm {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.concept-statement {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.concept-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
}

/* ----------------------------------------------------
   DIFFERENTIALS SECTION
---------------------------------------------------- */
.differentials-section {
    padding: 7rem 0;
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
/* Prevent horizontal scroll on all elements */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }

/* Scroll offset for fixed header */
html { scroll-padding-top: 80px; }

@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .concept-statement { font-size: 1.8rem; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* On mobile, never hide content due to animation timing */
@media (max-width: 768px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ----------------------------------------------------
   LOCATION SECTION
---------------------------------------------------- */
.location-section { padding: 8rem 0; }
.location-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.location-content { flex: 1; }
.location-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.location-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}
.location-features { margin-top: 2rem; }
.location-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}
.feature-icon { font-size: 1.5rem; }

/* ----------------------------------------------------
   INFRASTRUCTURE
---------------------------------------------------- */
.infra-section { padding: 6rem 0; }
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.infra-item {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.check {
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
}

/* ----------------------------------------------------
   GALLERY
---------------------------------------------------- */
.gallery-section { padding: 8rem 0; }
.gallery-header { text-align: center; margin-bottom: 3rem; }
.gallery-header h2 { font-size: 2.5rem; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}
.gallery-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}
.wide-img { grid-column: span 2; }

/* Galeria de fotos reais - sem altura fixa */
#galeria-obras .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
#galeria-obras .gallery-img {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
}

/* ----------------------------------------------------
   MAP SECTION
---------------------------------------------------- */
.map-section { padding: 6rem 0; }
.map-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--color-white);
    height: 400px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}
.map-placeholder {
    text-align: center;
    color: var(--color-text-light);
}

/* ----------------------------------------------------
   CTA / FORM SECTION
---------------------------------------------------- */
.cta-section {
    padding: 8rem 0;
    background: var(--color-primary-dark);
    color: var(--color-white);
    position: relative;
}
.cta-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}
.cta-content { flex: 1; }
.cta-content h2 { color: var(--color-white); font-size: 2.8rem; }
.cta-content p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; }
.cta-benefits { margin-top: 1.5rem; }
.cta-benefits li { padding-left: 1.5rem; position: relative; margin-bottom: 0.8rem; opacity: 0.9; }
.cta-benefits li::before {
    content: '→';
    color: var(--color-accent);
    position: absolute;
    left: 0;
}
.cta-form-wrapper {
    flex: 1;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    color: var(--color-text);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 93, 35, 0.1);
}
.w-100 { width: 100%; }

/* ----------------------------------------------------
   FAQ SECTION
---------------------------------------------------- */
.faq-section { padding: 6rem 0; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer-inner {
    padding-bottom: 1.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.footer {
    background: #111111;
    padding: 5rem 0 2rem;
    color: var(--color-white);
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.footer h4 { color: var(--color-white); margin-bottom: 1.5rem; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul li a:hover { color: var(--color-accent) !important; }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #666;
    font-size: 0.9rem;
}

/* ----------------------------------------------------
   LIGHTBOX
---------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.show {
    display: block;
    opacity: 1;
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    animation: zoomIn 0.3s;
    border-radius: var(--border-radius);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}
.lightbox-close:hover {
    color: var(--color-accent);
}
@keyframes zoomIn {
    from {transform:scale(0.95); opacity:0}
    to {transform:scale(1); opacity:1}
}

/* ----------------------------------------------------
   RESPONSIVE OVERRIDES
---------------------------------------------------- */
@media (max-width: 992px) {
    .location-container { flex-direction: column; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    #galeria-obras .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .wide-img { grid-column: auto; }
    .cta-container { flex-direction: column; }
    .differentials-grid { grid-template-columns: repeat(2, 1fr); }
    .infra-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    #galeria-obras .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .differentials-grid { grid-template-columns: 1fr; }
    .cta-form-wrapper { padding: 1.5rem; }
    .cta-content h2 { font-size: 2rem; }
    .concept-statement { font-size: 1.5rem; }
    .map-wrapper { height: auto; }
    .infra-grid { grid-template-columns: 1fr; }
    .location-section { padding: 4rem 0; }
    .concept-section { padding: 4rem 0; }
    .differentials-section { padding: 4rem 0; }
    .gallery-section { padding: 4rem 0; }
    .faq-section { padding: 4rem 0; }
    .cta-section { padding: 4rem 0; }
    .infra-section { padding: 4rem 0; }
    .map-section { padding: 4rem 0; }
}

@media (max-width: 480px) {
    #galeria-obras .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-question { font-size: 1rem; }
}
