/* Variáveis e Reset */
:root {
    --primary: #123f59;
    --secondary: #24759b;
    --accent: #e85d3f;
    --light: #f3f6f5;
    --dark: #18313d;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
}

html { scroll-padding-top: 92px; }

p { color: #49616c; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--primary);
}

section {
    padding: 80px 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* Navbar */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar-logo {
    height: 60px;
    object-fit: contain;
}

.navbar-brand-text {
    color: var(--primary);
    font-weight: 600;
    margin-left: 10px;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--accent) !important;
}

.nav-cta { background: var(--accent); color: #fff !important; border-radius: 999px; margin-left: 8px; padding-inline: 18px !important; }
.nav-cta:hover { background: #c9472e; color: #fff !important; transform: translateY(-1px); }

/* Hero */
.hero {
    background-image: linear-gradient(90deg, rgba(8,31,43,.86) 0%, rgba(8,31,43,.65) 50%, rgba(8,31,43,.35) 100%), url('../images/obra-balneario-camboriu-home-v2.webp');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 165px 0 90px;
    border-bottom: 5px solid var(--accent);
    margin-top: 0;
}

.hero .lead { max-width: 780px; margin-inline: auto; font-size: 1.2rem; }
.hero-proof { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0 0 28px; list-style: none; font-weight: 600; }
.hero-proof i { color: #7dd3a7; margin-right: 6px; }

.quick-nav { position: relative; z-index: 2; margin-top: -28px; }
.quick-nav-inner { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 14px; box-shadow: 0 18px 45px rgba(18,63,89,.14); overflow: hidden; }
.quick-nav a { display: flex; align-items: center; gap: 14px; padding: 22px 26px; text-decoration: none; color: var(--dark); border-right: 1px solid #e3eaed; }
.quick-nav a:last-child { border-right: 0; }
.quick-nav a:hover { background: #f7faf9; }
.quick-nav i { color: var(--accent); font-size: 1.35rem; }
.quick-nav span { display: flex; flex-direction: column; }
.quick-nav small { color: #6c818a; }

.hero h1, .hero h2, .hero h3, .hero h4, .hero h5, .hero h6 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Botões */
.btn-custom {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
}

.btn-custom i {
    margin-right: 8px;
}

.btn-primary-custom {
    background-color: var(--accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-primary-custom:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-secondary-custom {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-custom:hover {
    background-color: white;
    color: var(--primary);
    transform: translateY(-3px);
}

.btn-light-custom {
    background-color: #fff;
    color: var(--primary);
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
}

.btn-light-custom:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    justify-content: center;
}

.btn-outline-custom:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* Acessibilidade: foco visível em todos os elementos interativos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Cards */
.card-service {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    text-align: left;
    border: 1px solid #e4eaed;
}

.card-service:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-service i {
    font-size: 50px;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-service h3 { font-size: 1.25rem; }
.card-service > i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: #e9f1f4; font-size: 25px; }

.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.local-section { background: #f7f9f8; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-heading-row > div { max-width: 760px; }
.section-heading-row h2 { margin: 8px 0 12px; }
.text-link { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }
.neighborhood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.neighborhood-grid a { display: flex; flex-direction: column; min-height: 120px; justify-content: center; padding: 22px; color: var(--dark); text-decoration: none; background: #fff; border: 1px solid #dfe7e9; border-radius: 12px; transition: var(--transition); }
.neighborhood-grid a:hover { border-color: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.neighborhood-grid strong { color: var(--primary); font-size: 1.1rem; margin-bottom: 5px; }
.neighborhood-grid span { color: #647981; }

.faq-section { background: #eef3f2; }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-intro h2 { margin: 10px 0 16px; }
.faq-list details { background: #fff; border: 1px solid #dce5e5; border-radius: 10px; padding: 0 20px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; color: var(--primary); font-weight: 700; padding: 18px 28px 18px 0; position: relative; }
.faq-list summary::marker { color: var(--accent); }
.faq-list details p { padding-bottom: 18px; margin: 0; }

/* CTA */
.cta-section {
    background: linear-gradient(rgba(26, 76, 110, 0.9), rgba(26, 76, 110, 0.9)), url('../images/hero-background.jpg');
    background: linear-gradient(rgba(26, 76, 110, 0.9), rgba(26, 76, 110, 0.9)), image-set(url('../images/hero-background.webp') type('image/webp'), url('../images/hero-background.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2, .cta-section p {
    color: white !important;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 20px;
}

.footer h4 {
    color: white;
    margin-bottom: 25px;
    position: relative;
}

.footer h4:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    background-color: #153a55;
    padding: 20px 0;
    margin-top: 50px;
}

.footer-credit a {
    color: #e74c3c;
}

.footer-credit i {
    color: #e74c3c;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Flutuantes */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.whatsapp-button, .call-button, .email-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.whatsapp-button {
    background-color: #25D366;
}

.call-button {
    background-color: var(--primary);
}

.email-button {
    background-color: var(--accent);
}

.whatsapp-button:hover, .call-button:hover, .email-button:hover {
    transform: scale(1.1);
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 998;
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-5px);
    color: white;
}

/* Navbar Mobile */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .navbar-nav .dropdown-menu {
        border: none;
        background-color: rgba(0, 0, 0, 0.03);
        padding-left: 15px;
        box-shadow: none;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
        outline: none;
    }
    
    .navbar-toggler {
        border: none;
    }
    
    section {
        padding: 60px 0;
    }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .quick-nav-inner { grid-template-columns: 1fr; }
    .quick-nav a { border-right: 0; border-bottom: 1px solid #e3eaed; }
    .neighborhood-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-layout { grid-template-columns: 1fr; gap: 35px; }
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-logo {
        height: 45px;
    }
    
    .navbar-brand-text {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 125px 0 62px;
    }
    .hero-proof { display: grid; justify-content: start; max-width: 310px; margin-inline: auto; text-align: left; }
    .quick-nav { margin-top: 0; }
    .quick-nav .container { padding-inline: 0; border-radius: 0; box-shadow: none; }
    .section-heading-row { display: block; }
    .section-heading-row .text-link { display: inline-block; margin-top: 10px; }
    .neighborhood-grid { grid-template-columns: 1fr; }
    
    .hero h1 {
        font-size: 1.8rem !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn-group-responsive {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-secondary-custom {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .floating-buttons {
        gap: 10px;
        bottom: 70px;
        right: 10px;
        z-index: 1050;
    }
    
    .whatsapp-button, .call-button, .email-button {
        width: 50px;
        height: 50px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    
    .back-to-top {
        bottom: 70px;
        left: 10px;
    }
}
