/* ===== CSS Variables ===== */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2B48C;
    --accent-color: #CD853F;
    --dark-color: #2C1810;
    --light-color: #F5F5DC;
    --gradient: linear-gradient(135deg, #8B4513, #CD853F);
}

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

.navbar-brand img{
    max-width: 200px;
    width: 200px;
    object-fit: contain;
}

html{
    overflow-x: hidden;
}


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* ===== Page Management ===== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ===== Decorative Elements ===== */
.coffee-beans {
    position: absolute;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><ellipse cx="25" cy="25" rx="12" ry="20" fill="%23CD853F" opacity="0.1"/></svg>') repeat;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

.section-divider {
    height: 3px;
    background: var(--gradient);
    margin: 60px 0;
    border-radius: 2px;
}

/* ===== Navigation ===== */
.navbar {
    background: rgba(139, 69, 19, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-color) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar-toggler {
    border-color: var(--secondary-color);
}

.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%28245, 245, 220, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: var(--light-color) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.dropdown-menu {
    background-color: var(--dark-color);
    border: 1px solid var(--accent-color);
}

.dropdown-item {
    color: var(--light-color);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--light-color);
}

/* ===== Hero Section ===== */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(139, 69, 19, 0.7), rgba(205, 133, 63, 0.7)),
                url('images/banner.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--light-color);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: 1.3rem;
    color: var(--light-color);
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-custom {
    background: var(--gradient);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
    text-decoration: none;
}

/* ===== Floating Coffee Beans Animation ===== */
.floating-beans {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bean {
    position: absolute;
    font-size: 2rem;
    color: rgba(205, 133, 63, 0.3);
    animation: floatBean 15s infinite linear;
}

@keyframes floatBean {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== Mood Meter Section ===== */
.mood-meter {
    background: linear-gradient(45deg, var(--light-color), #FFF8DC);
    padding: 80px 0;
    position: relative;
}

.mood-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient);
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.mood-icon {
    font-size: 4rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== Coffee Journey Section ===== */
.coffee-journey {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 80px 0;
    position: relative;
}

.journey-step {
    background: rgba(205, 133, 63, 0.1);
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--accent-color);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.journey-step:hover {
    transform: translateX(10px);
    background: rgba(205, 133, 63, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.journey-step h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.journey-step i {
    margin-right: 10px;
    color: var(--accent-color);
}

.price-highlight {
    background: var(--gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.2rem;
    display: inline-block;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 6px 20px rgba(205, 133, 63, 0.4); }
}

/* ===== Community Wall Section ===== */
.community-wall {
    background: url('images/comm.jpg') center/cover;
    padding: 100px 0;
    position: relative;
}

.community-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.8);
}

.community-content {
    position: relative;
    z-index: 2;
}

.polaroid {
    background: white;
    padding: 15px 15px 50px;
    transform: rotate(-5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    margin: 20px;
    max-width: 300px;
}

.polaroid:nth-child(even) {
    transform: rotate(3deg);
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.polaroid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.polaroid p {
    font-family: 'Dancing Script', cursive;
    font-size: 1.2rem;
    color: var(--dark-color);
    margin: 0;
    text-align: center;
}

/* ===== Secret Menu Section ===== */
.secret-menu {
    background: var(--secondary-color);
    padding: 80px 0;
    position: relative;
}

.secret-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 3px dashed var(--accent-color);
    height: 100%;
    margin-bottom: 30px;
}

.secret-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-style: solid;
}

.secret-item h4 {
    color: var(--primary-color);
    margin: 20px 0 15px;
    font-family: 'Playfair Display', serif;
}

/* ===== Page Headers ===== */
.page-header {
    background: var(--gradient);
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 76px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ===== About Page Styles ===== */
.about-content {
    padding: 80px 0;
    background: var(--light-color);
}

.story-content {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 100%;
}

.story-content h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.2rem;
}

.story-content .lead {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 25px;
}

.values-section {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.value-card {
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 15px;
    margin-bottom: 30px;
}

.value-card:hover {
    background: var(--light-color);
    transform: translateY(-5px);
}

.value-card i {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.value-card h4 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.final-message {
    background: var(--primary-color);
    padding: 60px 40px;
    border-radius: 20px;
    color: white;
}

.final-message .blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
}

.final-message .blockquote-footer {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* ===== Contact Page Styles ===== */
.contact-section {
    padding: 80px 0;
    background: var(--light-color);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-form h3 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

.form-control {
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(205, 133, 63, 0.25);
}

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

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h3 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 30px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--light-color);
}

.contact-item i {
    color: var(--accent-color);
}

.contact-item h5 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    margin: 15px 0 10px;
}

.contact-item a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
}

.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Policy Pages Styles ===== */
.policy-section {
    padding: 80px 0;
    background: var(--light-color);
}

.policy-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 40px 0;
}

.policy-content h2 {
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.policy-content h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin: 25px 0 15px;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-content ul {
    margin: 15px 0 15px 30px;
}

.policy-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-content strong {
    color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer h5 {
    color: var(--secondary-color);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.footer p {
    margin-bottom: 15px;
    line-height: 1.6;
}

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

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    color: var(--dark-color);
}

.footer hr {
    border-color: var(--accent-color);
    margin: 40px 0 20px;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: var(--light-color);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-bottom: 0;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner a:hover {
    color: var(--light-color);
}

.cookie-banner .btn {
    margin-left: 10px;
}

.btn-outline-light:hover {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--dark-color);
}

/* ===== Utility Classes ===== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Loading Animation ===== */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loaded {
    opacity: 1;
}

/* ===== Form Validation Styles ===== */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .mood-circle {
        width: 150px;
        height: 150px;
    }
    
    .mood-icon {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .journey-step {
        padding: 25px;
        margin-bottom: 20px;
    }
    
    .journey-step:hover {
        transform: translateX(5px);
    }
    
    .polaroid {
        margin: 10px auto;
        display: block;
        max-width: 250px;
    }
    
    .secret-item {
        margin-bottom: 20px;
    }
    
    .story-content {
        padding: 25px;
        margin-bottom: 30px;
    }
    
    .values-section {
        padding: 40px 25px;
    }
    
    .final-message {
        padding: 40px 25px;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .policy-content {
        padding: 30px 20px;
    }
    
    .navbar-brand {
        font-size: 1.8rem;
    }
    
    .cookie-banner .row {
        text-align: center;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .btn-custom {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .mood-circle {
        width: 120px;
        height: 120px;
    }
    
    .mood-icon {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .polaroid {
        max-width: 200px;
        padding: 10px 10px 30px;
    }
    
    .secret-item {
        padding: 20px;
    }
    
    .story-content h2 {
        font-size: 1.8rem;
    }
    
    .story-content .lead {
        font-size: 1.1rem;
    }
    
    .final-message .blockquote p {
        font-size: 1.1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .cookie-banner,
    .floating-beans,
    .btn-custom {
        display: none !important;
    }
    
    .page {
        display: block !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .page-header {
        margin-top: 0;
        padding: 20px 0;
    }
    
    .hero-section {
        height: auto;
        padding: 40px 0;
        background: none;
        color: black;
    }
    
    .hero-title,
    .page-title {
        color: black !important;
        text-shadow: none;
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Focus Styles for Accessibility ===== */
.btn-custom:focus,
.navbar-nav .nav-link:focus,
.form-control:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #666;
        --accent-color: #333;
        --dark-color: #000;
        --light-color: #fff;
    }
}