/* ═══════════════════════════════════════════════════════════
   ENDURO ADVENTURE PORTUGAL — Main Stylesheet
═══════════════════════════════════════════════════════════ */

:root {
    /* ── Mudar estas 3 variáveis para recolorir todo o site ── */
    --primary:       #E8701A;   /* laranja — cor principal        */
    --primary-dark:  #C0392B;   /* vermelho — hover / acento      */
    --primary-text:  #ffffff;   /* texto sobre fundo primary      */

    --dark: #1a1a1a;
    --font-heading: 'Oswald', sans-serif;
}

/* ── Bootstrap "warning" → brand primary ─────────────────── */
/*
   Todas as views usam btn-warning / text-warning / bg-warning.
   Redefinimos aqui para que mudar --primary seja suficiente.
*/
.btn-warning,
.btn-warning:focus {
    background-color: var(--primary) !important;
    border-color:     var(--primary) !important;
    color:            var(--primary-text) !important;
}
.btn-warning:hover {
    background-color: var(--primary-dark) !important;
    border-color:     var(--primary-dark) !important;
    color:            var(--primary-text) !important;
}
.btn-outline-warning {
    color:        var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-warning:hover {
    background-color: var(--primary) !important;
    border-color:     var(--primary) !important;
    color:            var(--primary-text) !important;
}
.text-warning        { color:            var(--primary) !important; }
.bg-warning          { background-color: var(--primary) !important; }
.border-warning      { border-color:     var(--primary) !important; }
.badge.bg-warning    { color:            var(--primary-text) !important; }
.progress-bar.bg-warning { background-color: var(--primary) !important; }

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: var(--font-heading);
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }

/* ─── Navbar ─────────────────────────────────────────────── */
#mainNav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    transition: background .3s, box-shadow .3s;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: #1a1a1a !important;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    padding: .5rem 0;
}

#mainNav .nav-link {
    font-weight: 600;
    letter-spacing: .5px;
    transition: color .2s;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--primary) !important;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    /* background-image injetado inline pela view (gerido nas Definições) */
    background-color: #1a1a1a;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,.7) 0%, rgba(232,112,26,.15) 100%);
    /* Nota: se mudar --primary, actualize também o rgba aqui */
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ─── Section Titles ─────────────────────────────────────── */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
}

.letter-spacing { letter-spacing: 2px; }

/* ─── Tour Cards ─────────────────────────────────────────── */
.tour-card {
    transition: transform .25s, box-shadow .25s;
    border-radius: 12px !important;
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,.12) !important;
}

/* ─── Gallery ────────────────────────────────────────────── */
.gallery-thumb img,
.gallery-hover {
    transition: transform .3s;
}

.gallery-thumb:hover img { transform: scale(1.08); }

.gallery-thumb .gallery-overlay {
    transition: opacity .3s;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1 !important;
}

.inset-0 { inset: 0; }
.transition { transition: all .3s; }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-card {
    border-radius: 12px !important;
    transition: transform .2s, box-shadow .2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,.1) !important;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-section {
    /* background-image injetado inline pela view (gerido nas Definições) */
    background-color: #1a1a1a;
    position: relative;
}

.cta-overlay {
    position: absolute;
    inset: 0;
}

/* ─── Page Hero ──────────────────────────────────────────── */
.page-hero {
    position: relative;
}

/* ─── WhatsApp Float ─────────────────────────────────────── */

@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: .7; }
    70%  { transform: scale(1.55); opacity: 0;  }
    100% { transform: scale(1.55); opacity: 0;  }
}

/* Wrapper posicionado para os anéis ficarem atrás do botão */
.whatsapp-float-wrap {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 58px;
    height: 58px;
}

/* Anéis de pulsar (pseudo-elementos no wrapper) */
.whatsapp-float-wrap::before,
.whatsapp-float-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    opacity: 0;
    animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-float-wrap::after {
    animation-delay: .8s;
}

.whatsapp-float {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    transition: transform .2s, box-shadow .2s;
    z-index: 1;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,.6);
    color: #fff;
}

/* ─── Footer ─────────────────────────────────────────────── */

/* Cor base de todos os textos/links no footer */
.footer .text-muted,
.footer p,
.footer li,
.footer span,
.footer a.text-muted {
    color: #adb5bd !important;
}

.footer a.footer-link {
    color: #adb5bd !important;
    transition: color .2s;
}

.footer a.footer-link:hover,
.footer a.text-muted:hover {
    color: var(--primary) !important;
}

/* Exceções: manter cor de warning/success explícitos */
.footer .text-warning  { color: var(--primary) !important; }
.footer .text-success  { color: #198754 !important; }

/* ─── Utilities ──────────────────────────────────────────── */
.z-1 { z-index: 1; }
.mt-6 { margin-top: 5rem; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .py-6 { padding-top: 3rem; padding-bottom: 3rem; }
    .hero-section { min-height: 90vh; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.3rem; }
}
