@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
    --primary: #111111;
    --accent: #d4af37;
    --accent-dark: #a8882a;
    --light: #F5F5F5;
    --white: #F5F5F5;
    --text: #2c2c2c;
    --muted: #888;
}

* { box-sizing: border-box; }
body {
    font-family: 'Jost', Arial, sans-serif;
    margin: 0;
    line-height: 1.7;
    color: var(--text);
    scroll-behavior: smooth;
}

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

/* ===================== NAV ===================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    background-image: url('fundo.png');
	background-size: auto 120px;
	background-repeat: repeat-x;
	background-position: left center;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 120px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo-full {
    height: 108px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.78rem;
    font-family: 'Jost', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

.lang-switcher {
    display: flex;
    gap: 6px;
}
.lang-switcher button {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.6);
    color: var(--accent);
    padding: 4px 9px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.72rem;
    font-family: 'Jost', sans-serif;
    letter-spacing: 1px;
    transition: all 0.2s;
}
.lang-switcher button:hover {
    background: var(--accent);
    color: var(--primary);
}

/* ===================== HERO ===================== */
.hero-section {
    width: 100%;
    height: 75vh; /* Takes up 75% of the viewport height */
    background-image: url('Sao _Pedro_do_Estoril_Villa.jpg'); /* PLACEHOLDER: Load your background image here */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    
    /* Uncomment the line below if you want the image to stay fixed while scrolling (parallax effect) */
    /* background-attachment: fixed; */
}

/* ===================== ABOUT ===================== */
#about {
    padding: 6rem 10%;
    text-align: center;
    background: var(--white);
}

.about-content { max-width: 760px; margin: 0 auto; }

.about-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.about-content p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
}

.location-badge {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--accent-dark);
    border: 1px solid rgba(212,175,55,0.3);
}

/* ===================== PORTFOLIO ===================== */
#portfolio {
    padding: 5rem 6%;
    text-align: center;
    background: var(--light);
}

#portfolio h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 16px;
}

/* ---- Standard Gallery Card ---- */
.gallery-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.gallery-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-label {
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--white);
    border-top: 3px solid var(--accent);
}

/* ===================== REVIEWS ===================== */
#reviews {
    padding: 5rem 10%;
    text-align: center;
    background: var(--white);
}

#reviews h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    background: var(--light);
    padding: 28px 24px;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

.testimonial p {
    font-style: italic;
    color: #555;
    font-size: 1rem;
    margin: 0 0 12px;
}

.testimonial span {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-dark);
    letter-spacing: 0.5px;
}

/* ===================== QUOTE ===================== */
#quote {
    padding: 5rem 10%;
    text-align: center;
    background: var(--light);
}

#quote h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input, textarea {
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.2s;
    width: 100%;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

textarea { min-height: 110px; resize: vertical; }

button[type="submit"] {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 16px;
    font-weight: 700;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 6px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
    width: 100%;
}
button[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===================== CONTACTS ===================== */
#contacts {
    padding: 5rem 10%;
    text-align: center;
    background: var(--primary);
    color: var(--white);
}

#contacts h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3rem;
}

#contacts h2 span {
    color: var(--accent);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}

.contact-item {
    text-align: center;
    padding: 28px 20px;
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 8px;
    transition: border-color 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.contact-item-label {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-item-value {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    /* Ensuring long emails wrap and stay centered without breaking layout */
    word-break: break-word;
    overflow-wrap: break-word; 
    max-width: 100%;
}

.contact-item-value a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.2s;
}
.contact-item-value a:hover {
    color: var(--accent);
}

/* ===================== LIGHTBOX ===================== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.93);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    border: 2px solid var(--accent);
    border-radius: 4px;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: var(--white);
    padding: 12px 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.close-lightbox {
    position: absolute;
    top: 15px; right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.close-lightbox:hover { color: var(--accent); }

/* ===================== FOOTER ===================== */
footer {
    background: #0a0a0a;
    color: rgba(255,255,255,0.4);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 4%;
        gap: 10px;
    }

    .logo {
        height: 84px;
    }
    .logo-full { height: 72px; }

    .nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        padding: 8px 0;
    }
    
    .hero-section {
        height: 50vh; /* Make the hero image slightly smaller on mobile to save vertical space */
    }

    #about, #portfolio, #reviews, #quote, #contacts {
        padding: 3.5rem 6%;
    }

    /* Scale down large headings for mobile screens */
    #about h2, #portfolio h2, #reviews h2, #quote h2, #contacts h2 {
        font-size: 2rem;
    }

    .gallery-img { height: 200px; }
}