/* 
   Agência Santo Amaro - Global Design System 2026
   Theme: Eco-Luxury / Clean Minimalist
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* Cores Institucionais */
    --color-primary: #0F4C5C;
    /* Azul Petróleo Profundo - Profissionalismo e Confiança */
    --color-secondary: #E36414;
    /* Laranja Queimado - Acentos e Calls to Action */
    --color-sand: #F0E6D2;
    /* Areia Suave - Fundo de seções de destaque */
    --color-white: #FFFFFF;
    --color-dark: #2C3E50;
    /* Cinza Chumbo - Textos principais */
    --color-gray-light: #F9FAFB;
    /* Fundo geral */
    --color-gray-medium: #BDC3C7;

    /* Tipografia */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;

    /* Espaçamentos e Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- RESET & BASIC --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-gray-light);
    color: var(--color-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    /* Espaço para o header fixo */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- GLOBAL LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--color-sand);
}

/* --- COMPONENTES: BOTÕES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(227, 100, 20, 0.3);
}

.btn-primary:hover {
    background-color: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 100, 20, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

/* --- HEADER FIXO --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    /* Ensure no bullets */
}

/* Dropdown Support */
.main-nav li {
    position: relative;
}

.main-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    /* Center relative to parent */
    transform: translateX(-50%);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
    /* Override flex if inherited */
    flex-direction: column;
    gap: 0;
    z-index: 1001;
}

.main-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    top: 120%;
    /* Slight offset animation effect */
    margin-top: -10px;
    /* Correction */
}

.main-nav .dropdown li {
    width: 100%;
}

.main-nav .dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: var(--color-dark);
    text-transform: none;
    /* Normal case for dropdown items */
    white-space: nowrap;
}

.main-nav .dropdown a:hover {
    background-color: var(--color-gray-light);
    color: var(--color-secondary);
}

.main-nav .dropdown a::after {
    display: none;
    /* Remove underline effect from main items */
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    padding: 10px 0;
    /* Increase hit area */
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width 0.3s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* --- HERO SECTION PADRÃO --- */
.page-hero {
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    margin-top: -80px;
    /* Compensa o header fixo */
    padding-top: 80px;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 76, 92, 0.4);
    /* Overlay Azul Petróleo */
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.page-hero h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- CARDS (GLOBAL) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.card-text {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 15px;
    display: block;
}

.card-meta {
    font-size: 0.85rem;
    color: #888;
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.card-meta i {
    color: var(--color-primary);
    margin-right: 5px;
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-white);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-tag.coletivo {
    background-color: #27ae60;
    /* Green for Collective */
    color: white;
}

.card-tag.privativo {
    background-color: var(--color-primary);
    /* Dark Teal for Private */
    color: white;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-sand);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* --- UTILS --- */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-40 {
    margin-top: 40px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        padding: 10px;
    }

    .site-header {
        height: auto;
        position: relative;
    }

    body {
        padding-top: 0;
    }

    .page-hero {
        margin-top: 0;
        height: 50vh;
    }

    .main-nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }
}

/* --- CAROUSEL STYLES --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--color-white);
    border-color: var(--color-secondary);
    transform: scale(1.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    opacity: 1;
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        opacity: 0.7;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* --- CAROUSEL TEXT OVERLAY ANIMATION --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-container+div h2 {
    animation: fadeInDown 1s ease-out;
}

/* Animação especial para menu Promoções */
.main-nav a[href="promocoes.html"] {
    position: relative;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    padding: 8px 20px;
    border-radius: 25px;
    color: white !important;
    font-weight: 700;
    animation: promoPulse 1.5s infinite;
}

.main-nav a[href="promocoes.html"]::after {
    content: '→';
    margin-left: 8px;
    animation: arrowBounce 0.8s infinite;
    display: inline-block;
}

@keyframes promoPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 230, 109, 0.6);
        transform: scale(1.05);
    }
}

@keyframes arrowBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.main-nav a[href="promocoes.html"]:hover {
    background: linear-gradient(135deg, #FF8E53, #FFD93D);
    transform: scale(1.08);
}