/* ============================================
   Arquitetura Manuelina - Stylesheet
   Colors: Marine Blue & Sandy Beige
   ============================================ */

:root {
    --marine-blue: #1a4d6e;
    --marine-blue-dark: #0f2d42;
    --marine-blue-light: #2d6a9e;
    --sandy-beige: #d4c5a9;
    --sandy-beige-light: #e8ddd0;
    --sandy-beige-dark: #b8a689;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --shadow: rgba(26, 77, 110, 0.2);
    --shadow-strong: rgba(26, 77, 110, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-dark) 100%);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px var(--shadow-strong);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    color: var(--sandy-beige-light);
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: var(--white);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--sandy-beige-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sandy-beige);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--sandy-beige-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-light) 50%, var(--sandy-beige) 100%);
    overflow: hidden;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px var(--shadow-strong);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px var(--shadow);
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background-color: var(--sandy-beige);
    color: var(--marine-blue-dark);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    background-color: var(--sandy-beige-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-strong);
}

.btn-secondary {
    background-color: var(--marine-blue);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-secondary:hover {
    background-color: var(--marine-blue-light);
    transform: translateY(-2px);
}

/* ============================================
   SECTIONS
   ============================================ */

.intro-section,
.content-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper article {
    background: var(--white);
}

.content-wrapper h2 {
    color: var(--marine-blue-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.content-wrapper h3 {
    color: var(--marine-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.content-wrapper p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.intro-section h2,
.content-section h2 {
    font-size: 2.5rem;
    color: var(--marine-blue-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.page-header {
    background: linear-gradient(135deg, var(--marine-blue) 0%, var(--marine-blue-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--sandy-beige-light);
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--sandy-beige-light) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ============================================
   GALLERY
   ============================================ */

.gallery-preview,
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--sandy-beige-light) 100%);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item,
.gallery-item-zoom {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img,
.gallery-item-zoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item-zoom:hover img {
    transform: scale(1.1);
}

.gallery-overlay,
.zoom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 77, 110, 0.9) 0%, transparent 100%);
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay,
.gallery-item-zoom:hover .zoom-overlay {
    transform: translateY(0);
}

.zoom-icon {
    font-size: 2rem;
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ============================================
   ZOOM MODAL
   ============================================ */

.zoom-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.zoom-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.zoom-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: var(--marine-blue);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.zoom-close:hover {
    color: var(--marine-blue-dark);
}

.zoom-modal-content img {
    max-width: 100%;
    max-height: 70vh;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.zoom-modal-info {
    margin-top: 1.5rem;
    text-align: center;
}

.zoom-modal-info h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
}

.zoom-modal-info p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   MONUMENTS
   ============================================ */

.monuments-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.monuments-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.monument-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, var(--sandy-beige-light) 0%, var(--white) 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monument-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-strong);
}

.monument-image {
    overflow: hidden;
}

.monument-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.monument-card:hover .monument-image img {
    transform: scale(1.1);
}

.monument-content {
    padding: 2rem;
}

.monument-content h2 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.monument-location {
    color: var(--marine-blue);
    font-weight: bold;
    margin-bottom: 1rem;
}

.monument-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   CHARACTERISTICS
   ============================================ */

.characteristics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.characteristic-item {
    background: var(--sandy-beige-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--marine-blue);
    transition: transform 0.3s ease;
}

.characteristic-item:hover {
    transform: translateX(10px);
}

.characteristic-item h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
}

/* ============================================
   VIRTUAL TOUR
   ============================================ */

.virtual-tour-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--sandy-beige-light) 100%);
}

.tour-container {
    margin-top: 3rem;
}

.tour-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tour-btn {
    background-color: var(--marine-blue);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tour-btn:hover {
    background-color: var(--marine-blue-light);
    transform: translateY(-2px);
}

.tour-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tour-counter {
    font-size: 1.2rem;
    color: var(--marine-blue-dark);
    font-weight: bold;
}

.tour-viewer {
    position: relative;
    min-height: 500px;
}

.tour-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
}

.tour-slide.active {
    display: grid;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tour-image {
    overflow: hidden;
    border-radius: 10px;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-info h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.tour-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   VISIT INFO
   ============================================ */

.visit-info-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--sandy-beige-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 1rem;
}

/* ============================================
   CONTACT
   ============================================ */

.contact-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--white) 0%, var(--sandy-beige-light) 100%);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    color: var(--marine-blue-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-details {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-item h3 {
    color: var(--marine-blue-dark);
    margin-bottom: 0.5rem;
}

.contact-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--sandy-beige-light);
    border-radius: 10px;
    border-left: 4px solid var(--marine-blue);
}

/* ============================================
   PRIVACY & FORM
   ============================================ */

.privacy-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-content h2 {
    color: var(--marine-blue-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.contact-form-container {
    margin-top: 3rem;
    background: var(--sandy-beige-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--marine-blue-dark);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--sandy-beige-dark);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--marine-blue);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.3rem;
    cursor: pointer;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--marine-blue-dark) 0%, var(--marine-blue) 100%);
    color: var(--sandy-beige-light);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--sandy-beige-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--marine-blue-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .monument-card,
    .tour-slide {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .characteristics-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .intro-section h2,
    .content-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .zoom-modal-content {
        padding: 1rem;
    }
}

/* ============================================
   3D EFFECTS
   ============================================ */

.gallery-item-zoom,
.monument-card,
.feature-card {
    perspective: 1000px;
}

.gallery-item-zoom:hover,
.monument-card:hover {
    transform-style: preserve-3d;
}

/* Additional 3D transforms for architectural details */
.characteristic-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.characteristic-item:hover {
    transform: translateX(10px) rotateY(5deg);
}

