*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A90B8;
    --primary-dark: #2E6E94;
    --primary-light: #7CB8D8;
    --accent: #6BA8C8;
    --accent-light: #A8D4E8;
    --bg: #F5F9FC;
    --bg-alt: #EBF2F8;
    --white: #FFFFFF;
    --text: #2C2C2C;
    --text-light: #5A6B7A;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 1.05rem;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    line-height: 1.35;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

.section-blue {
    background: #E3EEF5;
}

.section-brown {
    background: #F0EBE4;
}

.section-green {
    background: #E3F0E8;
}

.section-img {
    position: relative;
}

.section-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--section-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.section-img .container {
    position: relative;
    z-index: 1;
}

.section-alt-img {
    position: relative;
}

.section-alt-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--section-bg-img);
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    pointer-events: none;
}

.section-alt-img .container {
    position: relative;
    z-index: 1;
}

.section-img-right {
    display: flex;
    align-items: center;
    gap: 48px;
}

.section-img-right .section-text {
    flex: 1;
}

.section-img-right .section-decorative {
    flex: 0 0 280px;
}

.section-decorative img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    aspect-ratio: 1;
    object-fit: cover;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(74, 144, 184, 0.1);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 660px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(252, 250, 247, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-dot { color: var(--accent); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }
.nav-menu a.active { color: var(--primary); }

/* Language Selector */
.lang-selector {
    position: relative;
    margin-left: 16px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 144, 184, 0.08);
    border: 1px solid rgba(74, 144, 184, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all var(--transition);
}

.lang-btn:hover {
    background: rgba(74, 144, 184, 0.15);
}

.lang-flag {
    border-radius: 2px;
    width: 20px;
    height: 14px;
    object-fit: cover;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform var(--transition);
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    list-style: none;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all var(--transition);
    z-index: 100;
}

.lang-selector.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-dropdown li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    transition: background var(--transition);
}

.lang-dropdown li:hover {
    background: rgba(74, 144, 184, 0.08);
}

.lang-dropdown li img {
    border-radius: 2px;
    width: 18px;
    height: 12px;
    object-fit: cover;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--white);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/ocean-hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.18;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 110, 148, 0.12) 0%, rgba(74, 144, 184, 0.04) 100%);
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 32px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    border-color: #1ebe57;
    color: var(--white);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

/* Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.cards-stacked {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.card-full {
    max-width: 100%;
}

.card-contact {
    border: 2px solid var(--primary-light);
    position: relative;
}

.card-contact .contact-whatsapp {
    margin-top: 16px;
}

.card-highlight {
    border-left: 4px solid var(--accent);
    background: rgba(74, 144, 184, 0.06);
}

.card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    font-family: 'Merriweather', serif;
}

.card p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.card p:last-child { margin-bottom: 0; }

.card ul {
    list-style: none;
    padding: 0;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
    line-height: 1.6;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.card ul li strong {
    color: var(--text);
}

/* Glossário */
.glossario {
    max-width: 800px;
    margin: 0 auto;
}

.glossario-list dt {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-top: 28px;
    padding: 8px 16px;
    background: var(--white);
    border-radius: 8px;
    display: inline-block;
}

.glossario-list dd {
    color: var(--text-light);
    margin-top: 8px;
    padding-left: 16px;
    line-height: 1.7;
}

.glossario-list dt:first-child { margin-top: 0; }

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
}

.footer-content {
    text-align: center;
    margin-bottom: 32px;
}

.footer-logo {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.55;
}

/* Responsive */
@media (max-width: 820px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 24px;
        gap: 14px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-toggle { display: flex; }

    .card { padding: 24px; }

    .cta-section { padding: 56px 0; }
    .cta-content h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
}
