/* Bar da Tomazia - Global Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

/* Color Palette - Tomazia Brand Theme */
:root {
    --primary-color: #5D1F3A;
    --primary-dark: #3D0F24;
    --secondary-burgundy: #4A1830;
    --secondary-color: #D4AF37;
    --accent-cream: #F5E6D3;
    --text-dark: #f0f0f0;
    --text-light: #cccccc;
    --bg-light: #5D1F3A;
    --white: #ffffff;
    --overlay-dark: rgba(93, 31, 58, 0.85);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--secondary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--white);
}

/* Navbar */
.navbar {
    background-color: rgba(93, 31, 58, 0.95) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
}

.navbar-brand img {
    max-height: 80px;
    transition: opacity 0.3s;
}

.navbar-brand img:hover {
    opacity: 0.8;
}

/* Hamburger Menu */
.navbar-toggler {
    border: 2px solid var(--secondary-color);
    padding: 5px 10px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Cards */
.card {
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    background-color: rgba(93, 31, 58, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(212, 175, 55, 0.3);
}

.card-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card-text {
    color: var(--text-light);
    font-size: 1rem;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    background: var(--primary-color);
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-dark);
    z-index: 1;
}

.hero .content {
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.hero p {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 12px;
    transition: border-color 0.3s;
    background-color: rgba(93, 31, 58, 0.2);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    background-color: rgba(93, 31, 58, 0.3);
    color: var(--white);
}

.form-control::placeholder {
    color: rgba(240, 240, 240, 0.5);
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-check-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-check-input {
    background-color: rgba(93, 31, 58, 0.3);
    border: 2px solid var(--secondary-color);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Tables */
.table {
    background: rgba(93, 31, 58, 0.2);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

.table thead {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.table-bordered {
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 0 20px;
    text-align: center;
    border-top: 2px solid var(--secondary-color);
}

footer p {
    color: var(--text-light);
    margin: 0;
}

footer a {
    color: var(--secondary-color);
}

footer a:hover {
    color: var(--white);
}

/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 31, 58, 0.75); /* Darker overlay for better text readability */
    z-index: -1;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

/* Fade-in on scroll animation classes */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Mobile First Approach */
/* Base styles above are optimized for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }
    
    .navbar-brand img {
        max-height: 80px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    section {
        padding: 80px 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Mobile adjustments */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    .hero {
        height: 70vh;
    }

    section {
        padding: 40px 0;
    }

    .navbar-brand img {
        max-height: 60px;
    }
    
    .form-container {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        max-height: 50px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

