:root {
    --color-primary: #a8763e; /* Elegant gold/bronze tone */
    --color-secondary: #5d4d3c;
    --color-background-dark: #1a1a1a;
    --color-background-light: #f4f4f4;
    --color-text-light: #ffffff;
    --color-text-dark: #333333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --spacing-large: 4rem;
    --spacing-medium: 2rem;
    --spacing-small: 1rem;
    /* Fotos mescladas do Douglas em diferentes momentos */
    --main-photo-primary: url('daddd.jpg');
    --main-photo-secondary: url('dfff.jpg');
    --main-photo-tertiary: url('daa.jpg');
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-text-light);
    /* Prevent horizontal scroll on small devices */
    max-width: 100vw;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-medium);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: var(--spacing-small);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-medium);
    color: var(--color-primary);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #926437;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* Header and Navigation */
.header {
    background-color: #000000;
    color: var(--color-text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 0 0.5rem;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.logo img {
    display: block;
    height: 150px;
    width: auto;
}

/* Ajustes de responsividade para o cabeçalho */
@media (max-width: 768px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 95px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 80px;
    }
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list a {
    color: var(--color-text-light);
    text-decoration: none;
    padding: 1rem 1.2rem;
    display: block;
    transition: color 0.3s, background-color 0.3s;
}

.nav-list a:hover {
    color: var(--color-primary);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-background-dark);
        border-top: 1px solid #333;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav.is-open {
        max-height: 300px; /* Adjust based on content */
    }

    .nav-list {
        flex-direction: column;
        padding: var(--spacing-small) 0;
    }

    .nav-list li {
        text-align: center;
        width: 100%;
    }

    .nav-list a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #333;
    }
    
    .nav-list li:last-child a {
        border-bottom: none;
    }
}

/* Hero Section */
.hero {
    /* Use min-height instead of fixed height for better mobile behavior */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Colagem de fotos: uma principal ao centro e duas em sobreposição suave */
    background-image: 
        var(--main-photo-primary),
        var(--main-photo-secondary),
        var(--main-photo-tertiary);
    background-position:
        center center,
        10% 10%,
        90% 90%;
    background-size:
        cover,
        40%,
        40%;
    background-repeat: no-repeat;
    position: relative;
    color: var(--color-text-light);
    padding: 4rem 0;
}

/* Ajustes da hero em telas menores para melhor enquadramento */
@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
        padding: 3rem 0;
        background-size:
            cover,
            55%,
            55%;
        background-position:
            center center,
            0% 15%,
            100% 85%;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
        padding: 2.25rem 0;
        background-size:
            cover,
            70%,
            70%;
        background-position:
            center center,
            5% 10%,
            95% 90%;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }
}

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

.hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-medium);
    color: var(--color-text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: var(--spacing-large);
}

/* Sections */
.section {
    padding: var(--spacing-large) 0;
}

/* Garante que a rolagem ao clicar no menu compense a altura do cabeçalho fixo */
section[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 768px) {
    section[id] {
        scroll-margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 1.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-inline {
        align-items: flex-start;
    }
}

.bg-light {
    background-color: var(--color-background-light);
}

.bg-dark {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
}

.bg-dark h2, .bg-dark .section-description, .bg-dark label {
    color: var(--color-text-light);
}

/* Contact form */
.contact-form {
    max-width: 780px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-medium);
    margin-bottom: var(--spacing-medium);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group-full {
    margin-top: var(--spacing-small);
}

.form-group-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.contact-form label {
    font-weight: 500;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #555;
    background-color: #111;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(168, 118, 62, 0.4);
    background-color: #181818;
}

.field-hint {
    font-size: 0.8rem;
    color: #b8b8b8;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
}

.field-error {
    border-color: #ff7676 !important;
    box-shadow: 0 0 0 1px rgba(255, 118, 118, 0.4);
}

.contact-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

.status-error {
    color: #ffb3b3;
}

.status-success {
    color: #b5ffb3;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-large);
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--color-primary);
}

.tagline {
    font-style: italic;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-medium);
}

.about-image-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-inline {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: var(--spacing-small);
}

.about-inline-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
    .about-inline {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .about-inline-photo {
        width: 160px;
        height: 160px;
    }
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    /* Foto principal do Douglas na seção Sobre */
    background-image: url('d (1).jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.75rem;
        align-items: flex-start;
    }
    .about-image-container {
        max-width: 360px;
        margin: 1.5rem auto 0;
        order: 1;
    }
    .about-text {
        order: 2;
    }
    .about-text .btn {
        margin-top: var(--spacing-medium);
    }
}

@media (max-width: 600px) {
    .about-image {
        min-height: 220px;
    }

    .about-text {
        text-align: left;
    }

    .about-grid {
        gap: 1.25rem;
    }

    .about-image-container {
        width: 100%;
    }
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-medium);
}

.card {
    background-color: var(--color-text-light);
    padding: var(--spacing-medium);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-small);
}

/* Media Section */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-medium);
}

@media (max-width: 600px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-item iframe {
        height: 190px;
    }
}

.placeholder-audio, .placeholder-photo {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-small);
    background-color: #e0e0e0;
}

.placeholder-audio {
    align-items: stretch;
}

.placeholder-audio > p {
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.audio-demo {
    width: 100%;
    margin-top: 0.5rem;
}

.audio-demo-title {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #444;
}

.placeholder-audio audio {
    margin-top: 0;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    background-color: #f0f0f0;
}

.photo-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 110px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    cursor: zoom-in;
}

.photo-thumb-main {
    grid-column: span 2;
    min-height: 140px;
    background-image: var(--main-photo-primary);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.photo-thumb-muted {
    background-image: linear-gradient(135deg, #d5c2a3, #b08a57);
    filter: grayscale(0.2) brightness(1.05);
}

.photo-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    filter: none;
}

.photo-thumb:hover::after {
    opacity: 1;
}

@media (max-width: 480px) {
    .photo-thumb-main {
        min-height: 140px;
    }
    .photo-thumb {
        min-height: 90px;
    }
}

.caption {
    padding: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    background-color: var(--color-background-light);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.lightbox-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    padding: 0 1rem;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Make the lightbox content large and fully visible when the overlay is active */
.lightbox-overlay.is-visible .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-image {
    width: 100%;
    height: 100%;
    min-height: 60vh;
    border-radius: 8px;
    /* Show the entire image without cropping */
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    cursor: zoom-out;
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 100vw;
        max-height: 80vh;
        padding: 0 0.5rem;
    }
    .lightbox-close {
        top: -2rem;
        font-size: 1.75rem;
    }
}

/* Footer */
.footer {
    background-color: #000;
    color: #bdbdbd;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-icon::before {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.social-icon.whatsapp::before {
    content: "WA";
}

.social-icon.instagram::before {
    content: "IG";
}

.social-icon.facebook::before {
    content: "FB";
}

.social-icon.youtube::before {
    content: "YT";
}

.social-icon:hover {
    transform: translateY(-2px);
    border-color: #ffffff;
}

.social-icon.whatsapp:hover {
    background-color: #25d366;
}

.social-icon.instagram:hover {
    background-color: #d62976;
}

.social-icon.facebook:hover {
    background-color: #1877f2;
}

.social-icon.youtube:hover {
    background-color: #ff0000;
}
