/* ========================================
   Quadrifolio Website - Main Stylesheet
   Art Restoration Company
   ======================================== */

/* ========================================
   2.1 CSS RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Montserrat', 'Lato', 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    font-weight: 400;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   2.2 TOP BAR STYLING
   ======================================== */

/* ========================================
   2.3 HEADER/NAVIGATION STYLING
   ======================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container {
    padding: 0 20px;
}

header.scrolled {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #333333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: inline-block;
}

.nav-link:hover {
    color: #E57373;
}

.nav-link.active {
    color: #E57373;
}

/* Dropdown Indicator */
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .dropdown-arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(250, 249, 249, 0.98);
    min-width: 220px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(5px);
    z-index: 1001;
    list-style: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 25px;
    font-size: 13px;
    color: #666666;
    letter-spacing: 0.5px;
    text-transform: none;
    font-weight: 400;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: rgba(229, 115, 115, 0.08);
    color: #E57373;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333333;
    transition: all 0.3s ease;
}

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

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

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

/* Slider Container */
.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ========================================
   2.4 HERO SLIDER STYLING
   ======================================== */

.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    margin-top: 80px; /* Header height */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-quote {
    max-width: 800px;
    padding: 0 40px;
    text-align: center;
}

.hero-quote p {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-style: italic;
}

/* Slider Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.dot.active {
    background-color: #FFFFFF;
}

/* Slider Arrow Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.slider-arrow-left {
    left: 30px;
}

.slider-arrow-right {
    right: 30px;
}

/* ========================================
   2.5 SECTION STYLING (GENERAL)
   ======================================== */

section {
    padding: 90px 0;
}

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

.section-title {
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    color: #666666;
    margin-bottom: 50px;
}

/* ========================================
   2.6 APRESENTAÇÃO SECTION STYLING
   ======================================== */

#apresentacao {
    background-color: #FFFFFF;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    text-align: center;
    color: #666666;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Strip */
.image-strip {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.image-strip::-webkit-scrollbar {
    height: 6px;
}

.image-strip::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.image-strip::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.image-strip img {
    height: 250px;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
}

/* Description Text */
.description-text {
    max-width: 900px;
    margin: 0 auto 40px;
}

.description-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
}

/* "Saber Mais" Button */
.btn-outline {
    display: inline-block;
    padding: 12px 35px;
    border: 2px solid #666666;
    color: #666666;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: transparent;
    margin: 20px auto;
    text-align: center;
}

.btn-outline:hover {
    background-color: #666666;
    color: #FFFFFF;
}

.button-container {
    text-align: center;
}

/* ========================================
   2.7 GALERIA SECTION STYLING
   ======================================== */

#galeria {
    background-color: #F9F9F9;
    padding: 0;
}

#galeria .container-full {
    padding-bottom: 90px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Large Gallery Items (Featured) */
.gallery-item-large {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

/* ========================================
   2.8 SERVIÇOS SECTION STYLING
   ======================================== */

#servicos {
    background-color: #FFFFFF;
    padding: 0 0 90px;
}

/* Section Hero Banner (Gallery, Services & Contact) */
.section-hero {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
}

.section-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.section-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.section-hero-title {
    color: #FFFFFF;
    font-size: 36px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
}

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

.service-card {
    background-color: #FFFFFF;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #E8E8E8;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 22px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666666;
    margin-bottom: 25px;
}

.service-card a {
    color: #E57373;
    font-size: 14px;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.service-card a:hover {
    color: #D66060;
    text-decoration: underline;
}

/* ========================================
   2.9 CONTACTE-NOS SECTION STYLING
   ======================================== */

#contacte-nos {
    background-color: #F9F9F9;
    padding: 0 0 80px;
}

/* Contact Content */
.contact-wrapper {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
}

/* Contact Information */
.contact-info h3 {
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 15px;
}

.contact-info strong {
    color: #666666;
    font-weight: 500;
}

.contact-info a {
    color: #E57373;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #D66060;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-label {
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Form */
.contact-form {
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666666;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #D0D0D0;
    border-radius: 3px;
    font-family: inherit;
    font-size: 15px;
    color: #333333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #E57373;
    box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.1);
}

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

.btn-submit {
    background-color: #E57373;
    color: #FFFFFF;
    padding: 13px 45px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #D66060;
}

/* ========================================
   2.10 MAP STYLING
   ======================================== */

.map-section {
    width: 100%;
    height: 450px;
    position: relative;
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ========================================
   2.11 FOOTER STYLING
   ======================================== */

footer {
    background-color: #333333;
    color: #CCCCCC;
    text-align: center;
    padding: 35px 20px;
}

footer p {
    font-size: 14px;
    line-height: 1.6;
}

footer a {
    color: #E57373;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #D66060;
}

/* ========================================
   2.12 SERVICE PAGE STYLING
   ======================================== */

/* ==========================================================================
   SERVICE PAGE — editorial catalogue layout
   ========================================================================== */

.service-page-hero {
    padding: 0;
    margin-top: 80px;
}

.service-page-content {
    padding: 70px 0 100px;
    counter-reset: project;
}

.service-page-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Intro paragraph -------------------------------------------------- */

.service-page-body > p.service-intro {
    font-size: 26px;
    color: #2a2a2a;
    text-align: center;
    max-width: 880px;
    margin: 0 auto 80px;
    line-height: 1.55;
    font-weight: 300;
    letter-spacing: 0.3px;
    font-style: italic;
    position: relative;
    padding: 0;
}

.service-page-body > p.service-intro::before {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    background: #E57373;
    margin: 0 auto 36px;
}

.service-page-body > p.service-intro::after {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: #E57373;
    opacity: 0.4;
    margin: 36px auto 0;
}

/* --- Section headings (Listagem / sub-groups) ------------------------ */

.service-page-body h2 {
    font-size: 12px;
    font-weight: 500;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 0 40px;
    padding: 0;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 18px;
}

.service-page-body h2::before {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    background: #E57373;
}

.service-page-body h2:not(:first-child) {
    margin-top: 70px;
}

.service-subgroup-title {
    font-size: 13px;
    font-weight: 500;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-align: left;
    margin: 90px 0 70px;
    padding: 30px 0 0;
    display: flex;
    align-items: center;
    gap: 22px;
    border-top: 1px solid #ececec;
}

.service-subgroup-title::before {
    content: "";
    flex-shrink: 0;
    width: 36px;
    height: 1px;
    background: #E57373;
    margin-top: 0;
}

.service-subgroup-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* --- Projects list ---------------------------------------------------- */

.service-projects {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin: 0 0 30px;
    overflow: hidden;
}

.service-project {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 70px;
    row-gap: 40px;
    align-items: start;
    counter-increment: project;
    position: relative;
    width: 100%;
}

.service-project:nth-child(even) {
    grid-template-columns: auto 1fr;
}

.service-project-text { grid-column: 1; grid-row: 1; }
.service-project:nth-child(even) .service-project-text { grid-column: 2; grid-row: 1; }

.service-project-images { grid-column: 2; grid-row: 1; }
.service-project:nth-child(even) .service-project-images { grid-column: 1; grid-row: 1; }

.service-project-gallery { grid-column: 1 / -1; grid-row: 2; }

/* hairline separator between rows — spans full container */
.service-project + .service-project::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -100vw;
    right: -100vw;
    height: 1px;
    background: #ececec;
}

/* --- Text block ------------------------------------------------------- */

.service-project-text {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 24px;
    position: relative;
}

.service-project-text::before {
    content: counter(project, decimal-leading-zero);
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: #E57373;
    margin-bottom: 20px;
    font-variant-numeric: tabular-nums;
}

.service-project-text h3 {
    font-size: 21px;
    font-weight: 400;
    color: #2a2a2a;
    margin: 0 0 24px 0;
    line-height: 1.35;
    letter-spacing: 0.2px;
}

.service-project-text h3::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    background: #d4d4d4;
    margin-top: 24px;
}

.service-project-text p {
    font-size: 14.5px;
    line-height: 1.85;
    color: #6a6a6a;
    margin: 0;
    font-weight: 300;
}

.service-project-text p + p {
    margin-top: 14px;
}

/* --- Images ----------------------------------------------------------- */

.service-project-images {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.service-project-images img {
    width: 245px;
    height: 330px;
    object-fit: cover;
    display: block;
    border-radius: 1px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.service-project-images img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.18);
}

/* --- Gallery row (additional images below main row) ------------------ */

.service-project-gallery {
    display: grid;
    gap: 14px;
    width: 100%;
}

.service-project-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.service-project-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.18);
}

/* 2 imgs — single row, varied widths */
.gallery-2 {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 230px;
}

/* 3 imgs — single row, slight emphasis on the middle */
.gallery-3 {
    grid-template-columns: 1fr 1.3fr 1fr;
    grid-template-rows: 230px;
}

/* 4 imgs — 2-row mosaic: tall left + 2 small + 1 wide */
.gallery-4 {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: repeat(2, 175px);
}
.gallery-4 img:nth-child(1) { grid-row: 1 / span 2; grid-column: 1; }
.gallery-4 img:nth-child(2) { grid-row: 1; grid-column: 2; }
.gallery-4 img:nth-child(3) { grid-row: 1; grid-column: 3; }
.gallery-4 img:nth-child(4) { grid-row: 2; grid-column: 2 / span 2; }

/* 5 imgs — 2-row mosaic: tall left + 4 small */
.gallery-5 {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: repeat(2, 175px);
}
.gallery-5 img:nth-child(1) { grid-row: 1 / span 2; grid-column: 1; }
.gallery-5 img:nth-child(2) { grid-row: 1; grid-column: 2; }
.gallery-5 img:nth-child(3) { grid-row: 1; grid-column: 3; }
.gallery-5 img:nth-child(4) { grid-row: 2; grid-column: 2; }
.gallery-5 img:nth-child(5) { grid-row: 2; grid-column: 3; }

/* --- Listagem de Trabalhos ------------------------------------------- */

.service-listagem {
    margin-top: 60px;
    padding-top: 90px;
    border-top: 1px solid #ececec;
}

.service-listagem > h2:first-child {
    margin-top: 0;
}

.service-listagem > h2 + h2,
.service-listagem > ul + h2 {
    margin-top: 70px;
}

.service-listagem-intro {
    text-align: left;
    color: #777777;
    font-size: 14px;
    line-height: 1.7;
    max-width: 720px;
    margin: -16px 0 30px 0;
    font-weight: 300;
    font-style: italic;
}

.service-work-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-work-list li {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    padding: 13px 0 13px 24px;
    border-bottom: 1px solid #f1f1f1;
    position: relative;
    font-weight: 300;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.service-work-list li:last-child {
    border-bottom: none;
}

.service-work-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    width: 8px;
    height: 1px;
    background: #E57373;
}

.service-work-list li:hover {
    color: #2a2a2a;
    border-bottom-color: #d8d8d8;
}

.service-treatments h3 {
    font-size: 17px;
    font-weight: 600;
    color: #444444;
    margin-top: 35px;
    margin-bottom: 12px;
}

.service-treatments h3:first-child {
    margin-top: 0;
}

.service-page-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 50px;
}

.btn-accent {
    border-color: #E57373;
    color: #E57373;
}

.btn-accent:hover {
    background-color: #E57373;
    color: #FFFFFF;
}

/* ========================================
   IMAGE LIGHTBOX
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 60px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
    max-width: 800px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: #E57373;
    border-color: #E57373;
    color: #FFFFFF;
}

.lightbox-close {
    top: 30px;
    right: 30px;
    font-size: 26px;
    line-height: 1;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) {
    .lightbox { padding: 30px 12px; }
    .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 22px; }
    .lightbox-prev,
    .lightbox-next { width: 40px; height: 40px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-img { max-height: calc(100vh - 130px); }
}

/* Inner page content (mais.html) */
.page-content {
    padding: 120px 0 80px;
    margin-top: 80px;
}

/* MAIS page — uses the site's existing hero pattern + a simple two-column socios grid */
.mais-page {
    margin-top: 80px;
    padding: 0;
    background-color: #FFFFFF;
}

/* Slightly shorter hero on this page — feels lighter than the home page */
.mais-page .section-hero {
    margin-bottom: 0;
    height: 240px;
}

/* Narrower content column so text doesn't sprawl across the whole viewport.
   Selector is prefixed with .mais-page so specificity (0,2,0) beats the
   later-defined .container rule whose padding shorthand would otherwise
   reset padding-top to 0. */
.mais-page .mais-section {
    max-width: 920px;
    padding: 50px 20px 0;
}

.mais-page .mais-section--intro {
    padding-top: 90px;
}

.mais-page .mais-section--closing {
    padding-bottom: 90px;
}

/* Slightly smaller, calmer section title with a small coral accent below */
.mais-section .section-title {
    position: relative;
    font-size: 24px;
    margin-bottom: 55px;
    padding-bottom: 18px;
}

.mais-section .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #E57373;
}

.mais-section .intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}

.mais-section .description-text p {
    font-size: 14.5px;
    line-height: 1.8;
}

.socios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin-top: 20px;
}

.socio-card {
    padding: 0;
}

/* Name + fixed-width coral hairline below — identical on every card regardless of name length */
.socio-name {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333333;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    display: block;
}

.socio-name::after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #E57373;
    margin-top: 12px;
}

.socio-role {
    font-size: 10.5px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888888;
    margin: 0 0 24px;
}

.socio-card .description-text p {
    text-align: left;
}

/* Closing paragraph — clear pause before it */
.mais-page .mais-section--closing {
    text-align: center;
    margin-top: 70px;
    padding-top: 70px;
    border-top: 1px solid #EEEEEE;
}

.mais-section--closing .description-text p {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}

.mais-section--closing .button-container {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .mais-page .section-hero {
        height: 200px;
    }

    .socios-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .mais-page .mais-section {
        padding: 60px 20px 0;
    }

    .mais-page .mais-section--intro {
        padding-top: 90px;
    }

    .mais-page .mais-section--closing {
        margin-top: 70px;
        padding-top: 70px;
    }

    .mais-section .section-title {
        font-size: 22px;
        margin-bottom: 40px;
    }

    .mais-section .intro-text {
        font-size: 15px;
    }
}

/* ========================================
   LAYOUT CONTAINERS
   ======================================== */

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

.container-full {
    width: 100%;
    padding: 0 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 100%;
}

/* ========================================
   FORM FEEDBACK STYLES
   ======================================== */

.form-group input.error,
.form-group textarea.error {
    border-color: #E57373;
    box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.15);
}

.error-message {
    color: #E57373;
    font-size: 13px;
    margin-top: 6px;
}

.form-message {
    padding: 15px 45px 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
    position: relative;
}

.form-message-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #388E3C;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message-error {
    background-color: rgba(229, 115, 115, 0.1);
    color: #C62828;
    border: 1px solid rgba(229, 115, 115, 0.3);
}

.message-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Scroll animation (JS adds .fade-in-element, triggers .visible) */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
