/* 
   Rio Smart Travel Guide - Official Stylesheet
   Design Identity: RIO COASTAL SMART TRAVEL
   Palette: Atlantic Blue, Deep Ocean Blue, Rio Sand, Tropical Sun, Atlantic Green
*/

:root {
    --atlantic-blue: #087EA4;
    --atlantic-blue-hover: #066584;
    --deep-ocean-blue: #064C66;
    --rio-sand: #FAF8F2;
    --rio-sand-dark: #E8D6B0;
    --rio-sand-card: #FFFFFF;
    --tropical-sun: #F5C451;
    --tropical-sun-hover: #E5B33D;
    --atlantic-green: #4FAF83;
    --coral-alert: #EF6F61;
    --text-color: #2D3748;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--rio-sand);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--deep-ocean-blue);
    font-weight: 700;
}

/* Header & Language Switcher Bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(250, 248, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(6, 76, 102, 0.08);
    z-index: 1000;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--deep-ocean-blue);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.brand-badge {
    background-color: var(--atlantic-blue);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

.lang-switch-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--deep-ocean-blue);
    display: none;
}

@media (min-width: 640px) {
    .lang-label { display: inline; }
}

.lang-switch {
    display: flex;
    gap: 10px;
}

.lang-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.lang-btn.active {
    border-color: var(--tropical-sun);
    box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.4);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Language Visibility */
.lang-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lang-content.active {
    display: block;
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 140px 5% 80px;
    text-align: center;
    background: linear-gradient(180deg, #E8D6B0 0%, #FAF8F2 100%);
    position: relative;
    overflow: hidden;
}

.hero-tag {
    display: inline-block;
    background: rgba(8, 126, 164, 0.12);
    color: var(--atlantic-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 15px;
    color: var(--deep-ocean-blue);
}

.hero .promise {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--atlantic-blue);
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 35px;
    font-size: 1.1rem;
    color: #4A5568;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
        justify-content: center;
    }
}

.cta-primary {
    display: inline-block;
    background-color: var(--tropical-sun);
    color: var(--deep-ocean-blue);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(245, 196, 81, 0.4);
    transition: all 0.3s ease;
}

.cta-primary:hover {
    background-color: var(--tropical-sun-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(245, 196, 81, 0.5);
}

.cta-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--atlantic-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid var(--atlantic-blue);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    background-color: rgba(8, 126, 164, 0.08);
}

/* Section Styling */
.section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--atlantic-blue);
    margin-bottom: 50px;
}

/* Three Pillars Cards */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    background: var(--rio-sand-card);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(6, 76, 102, 0.06);
    border-top: 5px solid var(--atlantic-blue);
    transition: transform 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
}

.pillar-card.green { border-top-color: var(--atlantic-green); }
.pillar-card.sun { border-top-color: var(--tropical-sun); }

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(8, 126, 164, 0.1);
    color: var(--atlantic-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.pillar-card p {
    color: #4A5568;
    font-size: 0.98rem;
}

/* Highlights Grid */
.highlights-container {
    background-color: #fff;
    border-radius: 20px;
    padding: 50px 5%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
}

@media (min-width: 640px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .highlights-grid { grid-template-columns: repeat(4, 1fr); }
}

.highlight-box {
    background: var(--rio-sand);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--atlantic-blue);
}

.highlight-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.highlight-box p {
    font-size: 0.9rem;
    color: #555;
}

/* Emergency Card Banner */
.emergency-banner {
    background: linear-gradient(135deg, var(--deep-ocean-blue) 0%, #087EA4 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    margin: 60px 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .emergency-banner {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.emergency-banner h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.emergency-banner p {
    color: #E2E8F0;
    max-width: 600px;
}

/* Pricing Section */
.pricing-card {
    background: #fff;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(6, 76, 102, 0.12);
    border: 2px solid var(--rio-sand-dark);
    text-align: center;
}

.pricing-badge {
    background: var(--atlantic-green);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    color: var(--deep-ocean-blue);
    margin: 20px 0 10px;
}

.price-tag span {
    font-size: 1rem;
    color: #718096;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #EDF2F7;
    font-size: 0.98rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--atlantic-green);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--deep-ocean-blue);
    color: var(--rio-sand);
    padding: 50px 5% 30px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.5;
}
