/* BahiaByte - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Color Variables */
:root {
    --primary-blue: #1A2B4D;
    --accent-red: #E74C3C;
    --white: #FFFFFF;
    --light-gray: #F8F8F8;
    --text-dark: #333333;
    --text-light: #666666;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar .timing {
    font-weight: 500;
}

.top-bar .contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Header */
.header {
    background-color: var(--primary-blue);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-primary {
    background-color: var(--accent-red);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #C0392B;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2C3E50 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-bg.png') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 600px;
}

.hero-subtitle {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Ensure all hero text is white and visible */
.hero {
    color: var(--white) !important;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
    color: var(--white) !important;
}

.hero p,
.hero span,
.hero div {
    color: var(--white) !important;
}

.hero li {
    color: var(--white) !important;
}

.hero a {
    color: var(--white) !important;
}

.hero .btn-primary {
    background-color: var(--accent-red) !important;
    color: var(--white) !important;
}

.hero .btn-secondary {
    background-color: transparent !important;
    color: var(--white) !important;
    border: 2px solid var(--white) !important;
}

.hero .btn-secondary:hover {
    background-color: var(--white) !important;
    color: var(--primary-blue) !important;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-white {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--light-gray);
}

.section-blue {
    background-color: var(--primary-blue);
    color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-blue .section-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Override all text colors in blue sections */
.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4,
.section-blue h5,
.section-blue h6 {
    color: var(--white);
}

.section-blue p {
    color: rgba(255, 255, 255, 0.9);
}

.section-blue .card {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-blue .card-title {
    color: var(--white);
}

.section-blue .card-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Universal overrides for blue sections - ensure all text is visible */
.section-blue * {
    color: inherit;
}

.section-blue h1,
.section-blue h2,
.section-blue h3,
.section-blue h4,
.section-blue h5,
.section-blue h6 {
    color: var(--white) !important;
}

.section-blue p,
.section-blue span,
.section-blue div {
    color: rgba(255, 255, 255, 0.9) !important;
}

.section-blue li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.section-blue strong,
.section-blue b {
    color: var(--white) !important;
}

.section-blue a {
    color: var(--accent-red) !important;
}

.section-blue a:hover {
    color: #C0392B !important;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Override for blue sections */
.section-blue .card-title {
    color: var(--white);
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Override for blue sections */
.section-blue .card-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Images */
.image-rounded {
    border-radius: 10px;
    overflow: hidden;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Ensure all footer text is white and visible */
.footer {
    color: var(--white) !important;
}

.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.footer h6 {
    color: var(--white) !important;
}

.footer p,
.footer span,
.footer div {
    color: var(--white) !important;
}

.footer li {
    color: var(--white) !important;
}

.footer a {
    color: var(--white) !important;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    color: var(--accent-red) !important;
    opacity: 1;
}

.footer .btn-primary {
    background-color: var(--accent-red) !important;
    color: var(--white) !important;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.footer .btn-primary:hover {
    background-color: #C0392B !important;
    color: var(--white) !important;
}

/* CTA Section in footer */
.footer .section-title {
    color: var(--white) !important;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer .section-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Footer logo text */
.footer .logo-text {
    color: var(--white) !important;
}

.footer .logo-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer section titles */
.footer .footer-title {
    color: var(--white) !important;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Footer descriptions */
.footer .footer-description {
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Footer links */
.footer .footer-links a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .footer-links a:hover {
    color: var(--accent-red) !important;
}

/* Footer bottom text */
.footer-bottom p,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-bottom a:hover {
    color: var(--accent-red) !important;
}

/* Universal footer text override - ensure ALL text is visible */
.footer * {
    color: inherit;
}

.footer {
    color: var(--white) !important;
}

.footer *:not(.btn-primary):not(.btn-primary *) {
    color: var(--white) !important;
}

.footer .btn-primary {
    background-color: var(--accent-red) !important;
    color: var(--white) !important;
}

.footer a:not(.btn-primary) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a:not(.btn-primary):hover {
    color: var(--accent-red) !important;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-bar .contact-info {
        display: none;
    }
    
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 20px;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.2rem;
}

.cookie-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-red);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-accept {
    background-color: var(--accent-red);
    color: var(--white);
}

.btn-accept:hover {
    background-color: #C0392B;
}

.btn-necessary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-necessary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-settings {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--accent-red);
}

.btn-settings:hover {
    background-color: var(--accent-red);
    color: var(--white);
}

/* Cookie Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background-color: var(--white);
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 5px;
}

.cookie-modal-body {
    padding: 20px;
}

.cookie-category {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--accent-red);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #999;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }
    
    .btn-cookie {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
