/* ============================================
   Cazombo Tourism Site — Main Stylesheet
   ============================================ */

:root {
    --color-primary: #1a5632;
    --color-primary-dark: #0f3520;
    --color-primary-light: #2d7a4a;
    --color-brand-red: #e30613;
    --color-brand-yellow: #ffd700;
    --color-accent: #e30613;
    --color-accent-light: #ffd700;
    --color-earth: #8b5a2b;
    --color-dark: #1a1a2e;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f7f5;
    --color-border: #e0e8e3;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: color var(--transition);
}

/* Logo */
.site-logo {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.footer-logo {
    height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

/* Top Bar */
.top-bar {
    background: #000;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.5rem 0;
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
}

.lang-switcher a.active,
.lang-switcher a:hover {
    color: var(--color-brand-yellow);
}

.lang-switcher span {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

/* Navigation */
.main-nav {
    background: #000 !important;
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 3px solid var(--color-brand-red);
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.1rem;
    transition: all var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(227, 6, 19, 0.25);
}

/* Buttons */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(var(--vh, 1vh) * 100 - var(--header-height, 110px));
    min-height: calc(100dvh - var(--header-height, 110px));
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.55) 45%,
        rgba(227, 6, 19, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: var(--color-accent-light);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 0.5rem;
    max-width: 700px;
}

.hero-slogan {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions .btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    border-radius: 8px;
}

.hero-actions .btn-outline-light:hover {
    background: #fff;
    color: var(--color-primary);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Page Hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 60%, #2d1010 100%);
    color: #fff;
    padding: 3.5rem 0 4rem;
    text-align: center;
    border-bottom: 3px solid var(--color-brand-red);
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-brand-red) 50%, var(--color-brand-yellow) 50%);
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
}

.page-hero-about { background: linear-gradient(135deg, #000 0%, #0f1f0f 100%); }
.page-hero-tourism { background: linear-gradient(135deg, #000 0%, #1a1505 100%); }
.page-hero-culture { background: linear-gradient(135deg, #000 0%, #1f1005 100%); }
.page-hero-gallery { background: linear-gradient(135deg, #000 0%, #0a0a1a 100%); }
.page-hero-visitors { background: linear-gradient(135deg, #000 0%, #051a10 100%); }
.page-hero-contact { background: linear-gradient(135deg, #000 0%, #100510 100%); }

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--color-bg-alt);
}

.section-label {
    display: inline-block;
    color: var(--color-brand-red);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 0.5rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--color-brand-yellow);
    vertical-align: middle;
    margin-right: 0.6rem;
}

.section-header.text-center .section-label::before {
    display: none;
}

.section-desc {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0.75rem auto 0;
    font-size: 1.05rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Welcome Section */
.welcome-image-grid {
    position: relative;
    padding: 1rem;
}

.welcome-image-grid .img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.welcome-image-grid .img-secondary {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 55%;
    border-radius: var(--radius);
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

/* Highlight Cards */
.highlight-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-brand-red), #b0050f);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}

.highlight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.highlight-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0;
}

/* Featured Cards */
.featured-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    height: 220px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.08);
}

.featured-body {
    padding: 1.5rem;
}

.featured-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.featured-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin: 0 0 1rem;
}

.card-link {
    color: var(--color-brand-red);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card-link:hover {
    color: #b0050f;
    gap: 0.55rem;
}

/* CTA Section */
.cta-section {
    padding: 3rem 0 5rem;
}

.cta-box {
    background: linear-gradient(135deg, #000, #1a1a1a);
    color: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--color-brand-red);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2) 0%, transparent 70%);
}

.cta-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-bottom: 0.5rem;
}

.cta-box h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-box p {
    opacity: 0.9;
    margin: 0;
}

/* Stats */
.stats-section {
    background: var(--color-primary-dark);
    padding: 4rem 0;
}

.stat-card {
    color: #fff;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent-light);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Admin Table */
.admin-table {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.admin-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.admin-row:last-child {
    border-bottom: none;
}

.admin-row:nth-child(even) {
    background: var(--color-bg-alt);
}

.admin-label {
    font-weight: 600;
    color: var(--color-primary);
}

.admin-value {
    text-align: right;
    color: var(--color-text);
}

/* Tourism Cards */
.tourism-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition);
}

.tourism-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tourism-image {
    height: 200px;
    overflow: hidden;
}

.tourism-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tourism-card:hover .tourism-image img {
    transform: scale(1.05);
}

.tourism-body {
    padding: 1.5rem;
}

.tourism-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.tourism-body p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
}

/* Culture Cards */
.culture-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.culture-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.culture-card-body {
    padding: 1.5rem;
}

.culture-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.food-card, .craft-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.food-card:hover, .craft-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.food-icon, .craft-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    color: var(--color-primary);
}

.food-card h3, .craft-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.food-card p, .craft-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Events Timeline */
.events-timeline {
    max-width: 700px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    flex-shrink: 0;
    width: 90px;
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    align-self: flex-start;
}

.event-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.event-content p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
}

/* Gallery */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.filter-btn {
    background: #fff;
    border: 2px solid var(--color-border);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-category {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    width: fit-content;
}

.gallery-overlay p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--color-primary);
    cursor: pointer;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.video-info p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
}

/* Visitor Info */
.info-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    text-align: center;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: #fff;
    font-size: 1.5rem;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--color-text-light);
    font-size: 0.92rem;
    margin: 0;
}

.season-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
    border: 1px solid var(--color-border);
}

.season-badge {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.season-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.contacts-list .contact-item {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0.15rem 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.contact-item i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.tips-list li:last-child {
    border-bottom: none;
}

.tips-list i {
    color: var(--color-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.map-container {
    border: 3px solid var(--color-border);
}

/* Contact Page */
.contact-info-box,
.contact-form-box {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--color-border);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.contact-details li {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-details li:last-child {
    border-bottom: none;
}

.contact-details i {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-top: 0.2rem;
}

.contact-details strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.15rem;
}

.contact-details span {
    font-size: 0.95rem;
}

.contact-hours h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border-radius: 8px;
    border: 2px solid var(--color-border);
    padding: 0.65rem 1rem;
    transition: border-color var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 50, 0.15);
}

/* Footer */
.site-footer {
    background: var(--color-dark);
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer-wave {
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-red), var(--color-brand-yellow), var(--color-brand-red));
}

.footer-brand {
    display: flex;
    align-items: flex-start;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
}

.site-footer h5 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--color-brand-yellow);
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--color-brand-red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b0050f;
    color: #fff;
    transform: translateY(-3px);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .welcome-image-grid .img-secondary {
        position: relative;
        width: 80%;
        margin: -2rem auto 0;
        right: auto;
        bottom: auto;
    }

    .admin-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .admin-value {
        text-align: left;
    }

    .event-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .event-date {
        width: auto;
        align-self: flex-start;
    }
}

/* ── Professional Enhancements ── */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--color-brand-red);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    outline: 2px solid var(--color-brand-yellow);
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.top-bar a:hover {
    color: var(--color-brand-yellow);
}

.main-nav.nav-scrolled {
    padding: 0.35rem 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.btn-brand {
    background: var(--color-brand-red);
    border-color: var(--color-brand-red);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all var(--transition);
}

.btn-brand:hover {
    background: #b0050f;
    border-color: #b0050f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.img-cover {
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.stats-bar {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: -1px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item i {
    font-size: 1.4rem;
    color: var(--color-brand-yellow);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.stat-text {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.15rem;
}

.quick-nav-section {
    padding: 2rem 0;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.quick-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
    text-align: center;
}

.quick-nav-card i {
    font-size: 1.5rem;
    color: var(--color-brand-red);
    transition: transform var(--transition);
}

.quick-nav-card:hover {
    border-color: var(--color-brand-red);
    color: var(--color-brand-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-nav-card:hover i {
    transform: scale(1.1);
}

.welcome-image-accent {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 80px;
    height: 80px;
    border-top: 4px solid var(--color-brand-red);
    border-left: 4px solid var(--color-brand-yellow);
    border-radius: var(--radius-lg) 0 0 0;
    z-index: 1;
    pointer-events: none;
}

.breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}

.breadcrumb-item a:hover {
    color: var(--color-brand-yellow);
}

.breadcrumb-item.active {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.footer-slogan {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-brand-yellow);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--color-brand-yellow);
}

.video-soon-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.video-soon-content {
    text-align: center;
}

.video-soon-content i {
    font-size: 3rem;
    color: var(--color-brand-red);
    margin-bottom: 1rem;
    display: block;
}

.video-soon-content h3 {
    margin-bottom: 0.75rem;
}

.video-soon-content p {
    color: var(--color-text-light);
    margin: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-brand-red);
    border-color: var(--color-brand-red);
}

.gallery-category {
    background: var(--color-brand-yellow);
    color: #000;
}

.form-control:focus {
    border-color: var(--color-brand-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

*:focus-visible {
    outline: 2px solid var(--color-brand-yellow);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .site-logo {
        height: 42px;
        max-width: 180px;
    }

    .footer-logo {
        height: 56px;
        max-width: 200px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .cta-box {
        padding: 2rem;
        text-align: center;
    }

    .cta-box .text-lg-end,
    .turismo .cta-box .text-lg-end {
        text-align: center !important;
        margin-top: 1.5rem;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .col-6:nth-child(odd) .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE & DYNAMIC — ALL DEVICES
   ══════════════════════════════════════════ */

:root {
    --header-height: 110px;
    --container-pad: clamp(0.875rem, 3.5vw, 1.5rem);
    --section-pad: clamp(2.5rem, 6vw, 5rem);
    --touch-min: 44px;
    --content-max: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.section {
    padding: var(--section-pad) 0;
}

.container {
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* Top bar mobile icons */
.top-bar-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.top-bar-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
}

.top-bar-mobile:hover {
    color: var(--color-brand-yellow);
    background: rgba(227, 6, 19, 0.3);
}

@media (min-width: 768px) {
    .top-bar-mobile {
        display: none;
    }
}

/* Mobile navigation drawer */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100dvh;
        height: 100vh;
        background: #000;
        padding: 1.5rem;
        padding-top: calc(1.5rem + env(safe-area-inset-top));
        margin: 0;
        display: block !important;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: 3px solid var(--color-brand-red);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    }

    .main-nav .navbar-collapse.show {
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .navbar-toggler {
        position: relative;
        width: var(--touch-min);
        height: var(--touch-min);
        padding: 0;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        z-index: 1055;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
    }

    .main-nav .navbar-nav {
        margin-top: 1rem !important;
        gap: 0.25rem;
    }

    .main-nav .nav-link {
        padding: 0.85rem 1rem !important;
        font-size: 1rem;
        min-height: var(--touch-min);
        display: flex;
        align-items: center;
        border-radius: 8px;
    }

    .mobile-nav-header {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0.5rem;
    }

    .mobile-nav-header-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-nav-close {
        flex-shrink: 0;
        width: var(--touch-min);
        height: var(--touch-min);
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        color: #fff;
        font-size: 1.1rem;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-nav-close:hover,
    .mobile-nav-close:focus {
        background: rgba(227, 6, 19, 0.4);
        color: #fff;
    }

    .mobile-nav-header span {
        display: block;
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 700;
        color: #fff;
    }

    .mobile-nav-header small {
        font-size: 0.72rem;
        color: var(--color-brand-yellow);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        touch-action: manipulation;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* Dynamic hero height */
.hero-content {
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
}

.hero-actions .btn {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Gallery — touch & scroll */
.gallery-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 8px), transparent);
}

.touch-active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md) !important;
}

.gallery-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    min-height: var(--touch-min);
    padding: 0.5rem 1.25rem;
}

.gallery-item .gallery-overlay {
    opacity: 1;
    background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.85));
}

.gallery-zoom {
    width: var(--touch-min);
    height: var(--touch-min);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item .gallery-overlay {
        opacity: 0;
    }

    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }

    .quick-nav-card:hover,
    .highlight-card:hover,
    .featured-card:hover {
        transform: translateY(-5px);
    }
}

/* Map responsive */
.map-container iframe {
    min-height: 280px;
    height: clamp(280px, 50vw, 450px);
}

/* Buttons touch-friendly */
.btn, .btn-brand, .btn-primary, .btn-lg {
    min-height: var(--touch-min);
}

.back-to-top {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    right: calc(1.25rem + env(safe-area-inset-right));
}

/* Fluid typography */
.lead {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.page-hero {
    padding: clamp(2.5rem, 8vw, 4rem) 0;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

/* Stats responsive grid */
@media (max-width: 575.98px) {
    :root {
        --header-height: 95px;
    }

    .hero {
        min-height: 75dvh;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }

    .hero-slogan {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-nav-card {
        padding: 1rem 0.5rem;
        font-size: 0.78rem;
    }

    .quick-nav-card i {
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-item {
        padding: 1.25rem 0.5rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 5vw, 1.75rem);
    }

    .welcome-image-grid {
        padding: 0;
        margin-bottom: 1rem;
    }

    .welcome-image-accent {
        width: 50px;
        height: 50px;
        top: -6px;
        left: -6px;
    }

    .featured-image,
    .tourism-image {
        height: clamp(180px, 40vw, 220px);
    }

    .culture-card img {
        height: clamp(180px, 40vw, 220px);
    }

    .breadcrumb {
        font-size: 0.78rem;
        padding: 0.35rem 0.9rem;
        max-width: 100%;
    }

    .breadcrumb-item {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.35rem;
    }

    .video-soon-card {
        padding: 1.25rem;
    }

    .footer-social a {
        width: var(--touch-min);
        height: var(--touch-min);
    }
}

/* Tablet */
@media (min-width: 576px) and (max-width: 991.98px) {
    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-actions .btn-lg {
        padding: 0.75rem 1.5rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero h1 {
        max-width: 800px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    .hero-content {
        padding: 1rem 0;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .hero-subtitle {
        margin-bottom: 1rem;
    }

    .hero-scroll {
        display: none;
    }

    .page-hero {
        padding: 1.5rem 0;
    }
}

/* ── v5: todos os dispositivos ── */

.navbar-brand {
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
}

.navbar-brand .site-logo {
    max-width: 100%;
    height: auto;
    max-height: 52px;
}

.lang-switcher a {
    min-width: var(--touch-min);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    padding: 0 var(--container-pad);
}

.welcome-image-grid .img-main {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.admin-value {
    word-break: break-word;
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3rem);
}

.contact-form .btn-brand {
    width: 100%;
}

.site-footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

#galleryModal .modal-body img {
    max-height: 80vh;
    object-fit: contain;
}

/* Telemóveis pequenos (< 375px) */
@media (max-width: 374.98px) {
    :root {
        --header-height: 88px;
        --container-pad: 0.75rem;
    }

    .site-logo {
        height: 36px;
        max-width: 150px;
    }

    .top-bar {
        font-size: 0.78rem;
        padding: 0.35rem 0;
    }

    .top-bar-mobile {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.72rem;
        padding: 0.4rem 0.85rem;
    }

    .hero h1 {
        font-size: 1.65rem;
    }

    .quick-nav-card span {
        font-size: 0.72rem;
        line-height: 1.25;
    }

    .highlight-card,
    .featured-body,
    .tourism-body,
    .culture-card-body {
        padding: 1.25rem;
    }

    .navbar-toggler {
        width: 40px;
        height: 40px;
    }
}

/* Telemóveis */
@media (max-width: 575.98px) {
    .footer-brand,
    .footer-social,
    .site-footer h5,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .contact-details li {
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }

    .contact-details i {
        margin: 0 auto;
    }

    .season-card {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem 1rem;
    }

    .admin-row {
        padding: 0.85rem 1rem;
    }

    .gallery-overlay p {
        font-size: 0.82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #galleryModal .modal-dialog {
        margin: 0;
        max-width: 100%;
        min-height: 100dvh;
    }

    #galleryModal .modal-content {
        min-height: 100dvh;
        border-radius: 0;
        border: none;
    }

    #galleryModal .modal-header {
        padding: 0.75rem 1rem;
    }

    #galleryModal .modal-title {
        font-size: 0.9rem;
        margin: 0;
        padding-right: 2rem;
    }

    #galleryModal .modal-body img {
        max-height: calc(100dvh - 100px);
    }

    .cta-section .btn,
    .turismo .cta-box .btn,
    .contact-form .btn-brand {
        width: 100%;
    }
}

@media (min-width: 576px) {
    .contact-form .btn-brand {
        width: auto;
    }

    .cta-section .btn {
        width: auto;
    }
}

/* Telemóvel grande / phablet */
@media (min-width: 576px) and (max-width: 767.98px) {
    .stats-bar .col-6:nth-child(odd) .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .stats-bar .col-6:nth-child(even) .stat-item {
        border-right: none;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero h1 {
        font-size: clamp(2rem, 4.5vw, 2.75rem);
    }

    .welcome-image-grid .img-secondary {
        width: 50%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-box {
        padding: 2.25rem;
    }

    .contact-info-box,
    .contact-form-box {
        padding: 2rem;
    }

    .main-nav .navbar-collapse {
        width: min(360px, 70vw);
    }
}

/* Desktop médio */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem !important;
    }

    .site-logo {
        max-width: 200px;
    }
}

/* Ecrãs grandes */
@media (min-width: 1200px) {
    .hero {
        background-attachment: fixed;
    }
}

/* Ecrãs ultra-largos */
@media (min-width: 1600px) {
    :root {
        --section-pad: 6rem;
    }

    .container {
        max-width: 1400px;
    }

    .hero h1 {
        font-size: 4rem;
    }
}

/* Pointer fino — hover effects */
@media (hover: hover) and (pointer: fine) {
    .featured-card:hover .featured-image img,
    .tourism-card:hover .tourism-image img,
    .gallery-item:hover img {
        transform: scale(1.08);
    }
}

/* Pointer grosso — sem scale em imagens */
@media (hover: none) {
    .featured-card:hover .featured-image img,
    .tourism-card:hover .tourism-image img,
    .gallery-item:hover img {
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* Print */
@media print {
    .top-bar, .main-nav, .back-to-top, .hero-scroll, .footer-social, .gallery-filters {
        display: none !important;
    }

    .hero {
        min-height: auto;
        page-break-after: avoid;
    }

    .section {
        padding: 1.5rem 0;
    }
}
