/* ==========================================================================
   Cores d'Aventura - custom additions
   Loaded AFTER style.css so cascade order gives these rules priority.
   No !important needed; specificity matches the theme via parent prefixes.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Spacing utilities the theme omitted (symmetric pt-/pb- pairs).
   Theme defines .pt-50 but not .pb-50 (and similar gaps). Adding the
   missing companions so the intuitive pattern works.
   -------------------------------------------------------------------------- */
.pt-30 { padding-top: 30px; }
.pb-20 { padding-bottom: 20px; }
.pb-50 { padding-bottom: 50px; }
.pb-95 { padding-bottom: 95px; }
.pb-120 { padding-bottom: 120px; }
.pb-180 { padding-bottom: 180px; }


/* --------------------------------------------------------------------------
   Mega-menu dropdown ("Serviços" nav item)
   -------------------------------------------------------------------------- */
.main-nav .nav-services-dropdown {
    position: relative;
}

.main-nav .nav-services-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 22px 26px;
    z-index: 1000;
    min-width: 880px;
    max-width: 95vw;
}

.main-nav .nav-services-dropdown.open .nav-services-menu {
    display: block;
}

/* Hover-to-open only on devices with a real pointing device (mouse).
   On touch devices :hover gets "stuck" after a tap, preventing the .open
   toggle from closing the menu. Restricting this rule to mouse-capable
   devices means mobile uses click-to-toggle exclusively. */
@media (hover: hover) and (pointer: fine) {
    .main-nav .nav-services-dropdown:hover .nav-services-menu {
        display: block;
    }
}

.main-nav .nav-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.main-nav .nav-services-col h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #2d373c;
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Selectors below use 3 classes to beat the theme's 0,0,2,4 specificity rule
   on `header .header-style-four .main-nav ul li a` (padding/color/transform). */
.main-nav .nav-services-menu .nav-services-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.main-nav .nav-services-menu .nav-services-col li {
    margin: 0;
    padding: 0;
    display: block;
    line-height: 1;
    float: none;
}

.main-nav .nav-services-menu .nav-services-col li a {
    display: block;
    color: #444;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    padding: 7px 0;
    margin: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.main-nav .nav-services-menu .nav-services-col li a:hover {
    color: #3cb462;
}

/* Disable the theme's underline ::before that's added on hover for nav links */
.main-nav .nav-services-menu .nav-services-col li a::before {
    display: none;
}

.main-nav .nav-services-toggle .bx-chevron-down {
    transition: transform 0.2s;
}

.main-nav .nav-services-dropdown.open .nav-services-toggle .bx-chevron-down {
    transform: rotate(180deg);
}

@media (max-width: 1199px) {
    .main-nav .nav-services-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        max-width: 100%;
        background: transparent;
        border-radius: 0;
    }
    .main-nav .nav-services-dropdown.open .nav-services-menu {
        display: block;
    }
    .main-nav .nav-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .main-nav .nav-services-menu .nav-services-col h6 {
        color: #888;
        border-color: #eee;
        margin: 12px 0 6px 0;
        font-size: 11px;
    }
    .main-nav .nav-services-menu .nav-services-col li a {
        color: #2d373c;
        white-space: normal;
        padding: 6px 0;
        font-size: 14px;
    }
}


/* --------------------------------------------------------------------------
   Footer - services index block (internal linking, 4 columns of landing pages)
   -------------------------------------------------------------------------- */
.footer-area .footer-services {
    padding-top: 32px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-area .footer-services-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 18px 0;
    padding: 0;
}

.footer-area .footer-services .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-area .footer-services .footer-links li {
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 1.2;
}

.footer-area .footer-services .footer-links li:last-child {
    margin-bottom: 0;
}

.footer-area .footer-services .footer-links a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s;
    display: inline-block;
}

.footer-area .footer-services .footer-links a:hover {
    color: #3cb462;
}


/* --------------------------------------------------------------------------
   Content links - FAQ answers, hero paragraphs, package cards (brand green)
   :not() excludes button anchors so their white-on-green text stays visible.
   -------------------------------------------------------------------------- */
.accordion-body a:not(.button-fill-primary):not(.text-fill-primary),
.package-card-body a:not(.button-fill-primary):not(.text-fill-primary),
.about-tab-wrap a:not(.button-fill-primary):not(.text-fill-primary) {
    color: #3cb462;
    text-decoration: underline;
    transition: color 0.15s;
}

.accordion-body a:not(.button-fill-primary):not(.text-fill-primary):hover,
.package-card-body a:not(.button-fill-primary):not(.text-fill-primary):hover,
.about-tab-wrap a:not(.button-fill-primary):not(.text-fill-primary):hover {
    color: #2d8a4a;
}


/* --------------------------------------------------------------------------
   WhatsApp floating button (every page)
   -------------------------------------------------------------------------- */
.wa-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    min-width: 56px;
    height: 56px;
    padding: 0 20px 0 16px;
    background: #25d366;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.wa-float-label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    white-space: nowrap;
}

.wa-label-main {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.15;
}

.wa-label-sub {
    font-weight: 500;
    font-size: 11px;
    line-height: 1.15;
    opacity: 0.92;
}

.wa-float-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
}

/* Gentle attention pulse */
.wa-float-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    animation: wa-pulse 2.4s ease-out infinite;
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-float-btn::after { animation: none; }
}

@media (max-width: 576px) {
    .wa-float-btn {
        height: 52px;
        padding: 0 16px 0 14px;
        gap: 8px;
        bottom: 16px;
        right: 16px;
    }
    .wa-label-main { font-size: 14px; }
    .wa-label-sub  { font-size: 10px; }
}


/* --------------------------------------------------------------------------
   Quote-request page (orcamentos-gratis.php)

   Accessibility baseline:
   - Body text minimum 16px (WCAG comfort)
   - Secondary text minimum 14px
   - Form inputs 16px (prevents iOS zoom-on-focus + comfortable for typing)
   - Line-height 1.5+ for paragraph text
   -------------------------------------------------------------------------- */
.quote-trust-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}
.quote-trust-row span i {
    margin-right: 4px;
    font-size: 20px;
    vertical-align: middle;
}

.quote-channel-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.quote-channel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
.quote-channel-card p.text-muted.small {
    font-size: 15px !important;
    line-height: 1.5;
    color: #666 !important;
}
.quote-channel-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quote-channel-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d373c;
    margin: 0;
}
.quote-channel-tag {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #3cb462;
    font-weight: 600;
    margin: 4px 0 12px 0;
}
.quote-channel-btn {
    margin-top: auto;
}

/* WhatsApp variant: lock color/background so the parent button hover doesn't
   flip to a green-on-green low-contrast state. */
.quote-channel-btn-whatsapp,
.quote-channel-btn-whatsapp:link,
.quote-channel-btn-whatsapp:visited {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
}
.quote-channel-btn-whatsapp:hover,
.quote-channel-btn-whatsapp:focus,
.quote-channel-btn-whatsapp:active {
    background: #1ebe57;
    border-color: #1ebe57;
    color: #fff;
}
.quote-channel-meta {
    font-size: 16px;
    color: #2d373c;
    margin-bottom: 0;
    line-height: 1.5;
}
.quote-channel-meta .text-muted.small {
    font-size: 14px !important;
}
.quote-email-secondary {
    font-size: 15px;
    line-height: 1.6;
}
.quote-email-secondary a {
    color: #666;
    text-decoration: none;
    padding: 2px 4px;
}
.quote-email-secondary a:hover,
.quote-email-secondary a:focus {
    color: #3cb462;
    text-decoration: underline;
}
.quote-email-secondary span {
    color: #ccc;
    margin: 0 6px;
}

.quote-checklist-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    height: 100%;
}
.quote-checklist-item i {
    font-size: 30px;
    flex-shrink: 0;
    margin-top: 2px;
}
.quote-checklist-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2d373c;
    margin: 0 0 6px 0;
    line-height: 1.3;
}
.quote-checklist-item p {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.quote-form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.quote-form .form-label {
    font-weight: 600;
    color: #2d373c;
    margin-bottom: 6px;
    font-size: 16px;
}
.quote-form .form-control {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
}
.quote-form .form-control:focus {
    border-color: #3cb462;
    box-shadow: 0 0 0 0.2rem rgba(60, 180, 98, 0.2);
    outline: none;
}


/* --------------------------------------------------------------------------
   Paragraph spacing — the theme sets global `p { margin: 0 }` which kills
   reading rhythm in long-form content. Scope spacing to specific containers
   so we don't break tightly-laid-out areas (cards, tables, sidebars).
   -------------------------------------------------------------------------- */
.about-tab-wrap .lead,
.about-tab-wrap > p {
    margin-bottom: 16px;
    line-height: 1.65;
}
.about-tab-wrap > p:last-of-type {
    margin-bottom: 24px;
}

.blog-post-body > p,
.blog-post-body > ul,
.blog-post-body > ol {
    margin-bottom: 18px;
    line-height: 1.7;
}
.blog-post-body h2 {
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 26px;
    font-weight: 700;
}
.blog-post-body h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}
.blog-post-body > ul,
.blog-post-body > ol {
    padding-left: 24px;
}
.blog-post-body > ul li,
.blog-post-body > ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   Landing page utilities (used by components/landing-page.php and
   transfer-aeroporto-lisboa.php)
   -------------------------------------------------------------------------- */
.landing-hero-img-wrap {
    overflow: hidden;
    border-radius: 6px;
    display: block;
    width: 100%;
}

.landing-hero-img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
}

.landing-section-alt {
    background: #f8f8f8;
}

.landing-feature-icon {
    font-size: 36px;
}

/* Space between phone and email in the header contact bar */
header .header-style-four .nav-right .inner-contact-options {
    gap: 28px;
}

/* Breathing room between a section heading and the link list under it
   (site map + blog related-reading) */
.faqs h3,
.blog-post-related h3 {
    margin-bottom: 14px;
}

/* Blog body inline links use the brand green, not default blue */
.blog-post-body a {
    color: #3cb462;
    text-decoration: underline;
}

.blog-post-body a:hover,
.blog-post-body a:focus {
    color: #2e8c4b;
    text-decoration: underline;
}
