/* Tribo Hostel Design System - Complete CSS Translation from React */

/* CSS Variables matching the Tailwind design system */

:root {
  --site-favicon: url("favicon.png");
}

:root {
    /* Colors - HSL values */
    --background: hsl(35, 25%, 97%);
    --foreground: hsl(30, 15%, 25%);
    
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(30, 15%, 25%);
    
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(30, 15%, 25%);
    
    /* Earth green primary - main brand color */
    --primary: hsl(85, 40%, 35%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-light: hsl(85, 35%, 45%);
    --primary-dark: hsl(85, 45%, 25%);
    
    /* Warm sand secondary */
    --secondary: hsl(45, 60%, 85%);
    --secondary-foreground: hsl(30, 15%, 25%);
    
    /* Natural muted tones */
    --muted: hsl(40, 20%, 92%);
    --muted-foreground: hsl(30, 10%, 45%);
    
    /* Tropical accent - sunset orange */
    --accent: hsl(25, 85%, 65%);
    --accent-foreground: hsl(0, 0%, 100%);
    
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    
    --border: hsl(40, 15%, 88%);
    --input: hsl(40, 15%, 88%);
    --ring: hsl(85, 40%, 35%);
    
    /* Ocean blue for highlights */
    --ocean: hsl(200, 70%, 45%);
    --ocean-light: hsl(200, 60%, 75%);
    
    --radius: 0.75rem;
    
    /* Gradients */
    --gradient-tropical: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-ocean: linear-gradient(135deg, var(--ocean), var(--ocean-light));
    --gradient-sunset: linear-gradient(135deg, var(--accent), hsl(45, 90%, 75%));
    --gradient-earth: linear-gradient(180deg, var(--secondary), var(--background));
    
    /* Shadows */
    --shadow-soft: 0 4px 20px hsla(85, 40%, 35%, 0.1);
    --shadow-tropical: 0 8px 32px hsla(25, 85%, 65%, 0.2);
    --shadow-deep: 0 12px 40px hsla(85, 40%, 35%, 0.15);
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--foreground);
    background-color: var(--background);
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Icons - Simple CSS-based icons */
.icon-phone::before { content: "📞"; }
.icon-map::before { content: "📍"; }
.icon-mail::before { content: "✉️"; }
.icon-chevron-down::before { content: "⌄"; }
.icon-chevron-left::before { content: "‹"; }
.icon-chevron-right::before { content: "›"; }
.icon-bed::before { content: "🛏️"; }
.icon-users::before { content: "👥"; }
.icon-coffee::before { content: "☕"; }
.icon-calendar::before { content: "📅"; }
.icon-arrow-right::before { content: "→"; }
.icon-facebook::before { content: "📘"; }
.icon-instagram::before { content: "📷"; }
.icon-youtube::before { content: "📺"; }

/* Header Styles */
.header {
    position: relative;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

/* Top Bar */
.top-bar {
    background: var(--gradient-earth);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-foreground);
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Main Header */
.main-header {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

.logo-text {
    line-height: 1;
}

.logo-line {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.logo-middle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 50;
    min-width: 200px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--foreground);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--muted);
    color: var(--primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    color: var(--foreground);
}

.hamburger {
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 1rem 0;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.mobile-nav-link:hover {
    color: var(--primary);
}

.mobile-blog-section {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: 1rem;
}

.mobile-blog-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.mobile-blog-link {
    display: block;
    padding: 0.5rem 0 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--foreground);
    transition: var(--transition-smooth);
}

.mobile-blog-link:hover {
    color: var(--primary);
}

/* Second Navigation Bar */
.second-nav {
    background: var(--primary);
    color: var(--primary-foreground);
}

.second-nav-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.second-nav-link {
    color: var(--primary-foreground);
    transition: var(--transition-smooth);
}

.second-nav-link:hover {
    color: var(--accent);
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.7s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.slide-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--accent-foreground);
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius);
    box-shadow: var(--shadow-tropical);
    transition: var(--transition-smooth);
}

.cta-button:hover {
    background: var(--accent);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 20;
    font-size: 1.5rem;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 20;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--accent);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--gradient-earth);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

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

.service-icon {
    width: 4rem;
    height: 4rem;
    background: var(--gradient-tropical);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    font-size: 0.875rem;
    color: var(--foreground);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background: var(--accent);
    border-radius: 50%;
}

/* News Section */
.news-section {
    padding: 5rem 0;
    background: var(--card);
}

.news-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.news-main {
    order: 2;
}

.news-sidebar {
    order: 1;
}

.news-header {
    margin-bottom: 2rem;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.news-articles {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-article {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-article:hover {
    box-shadow: var(--shadow-tropical);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(25, 85, 65, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.article-title:hover {
    color: var(--accent);
}

.article-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: var(--foreground);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.read-more:hover {
    color: var(--primary);
}

/* Sidebar */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.ubatuba-card {
    background: var(--gradient-tropical);
    color: white;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

.ubatuba-card .sidebar-link {
    color: rgba(255, 255, 255, 0.9);
}

.ubatuba-card .sidebar-link:hover {
    color: var(--accent);
}

.contact-card .sidebar-title {
    color: var(--primary);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.contact-item strong {
    color: var(--primary);
}

.map-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gradient-tropical);
    color: white;
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.map-button:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-main {
    grid-column: 1 / -1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
}

.footer-logo-text .logo-line {
    color: var(--accent);
}

.footer-logo-text .logo-middle {
    color: var(--primary-foreground);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-foreground);
    transition: var(--transition-smooth);
    border-radius: 0.5rem;
}

.social-link:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.footer-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-icon {
    color: var(--accent);
    margin-top: 0.25rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .contact-info {
        flex-wrap: nowrap;
    }

    .news-content {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }

    .news-main {
        order: 1;
    }

    .news-sidebar {
        order: 2;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-main {
        grid-column: 1;
    }
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .mobile-nav {
        display: none !important;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.second-nav,
.second-nav-content,
.second-nav * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}



/* Fix for navigation with many links */
@media (min-width: 1024px) {
    .desktop-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 600px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    .dropdown-toggle {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .logo {
        flex-shrink: 0;
    }
}

@media (min-width: 1200px) {
    .desktop-nav {
        gap: 1rem;
        max-width: 700px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
}